RPM build for calico latest stable version

Currently we use this version which is pretty old. We can keep both versions for the time being (if possible). https://github.com/mantl/mantl/issues/1928

@stevendborrelli @Zogg Any words of wisdom regarding this process? 👍

Here's the packaging spec for Calico in Mantl: https://github.com/mantl/mantl-packaging/blob/4961400efbc881bab355e84bf7d6df47d691a16e/calico/calico/spec.yml

They've deprecated calico-mesos:
Note: Mesos has deprecated support for the Net-Modules networking interface in favor of the standardized Container Networking Interface (CNI).
Per: https://github.com/projectcalico/netmodules-plugin

Okay, attempting to package latest version: https://travis-ci.org/mantl/mantl-packaging/builds/225029503

Alright folks, here ya go, see if it works: https://bintray.com/mantl/rpm-packages/calico/1.1.1-1
You'll have to change the calico_version in roles/calico/defaults/main.yml to version 1.1.1

When deploying Mantl with the latest version of Calico, I receive this error:
TASK: [calico | add calico ip-ip pool if required] ****************************
failed: [control-01] => {"changed": true, "cmd": "calicoctl pool add \"<IP_ADDRESS>/16\" --ipip --nat-outgoing", "delta": "0:00:00.119116", "end": "2017-04-24 00:36:50.870788", "rc": 1, "start": "2017-04-24 00:36:50.751672", "warnings": []}
stderr: Unknown command: "pool"
stdout: Usage:
  calicoctl [options] <command> [<args>...]

    create    Create a resource by filename or stdin.
    replace   Replace a resource by filename or stdin.
    apply     Apply a resource by filename or stdin.  This creates a resource
              if it does not exist, and replaces a resource if it does exists.
    delete    Delete a resource identified by file, stdin or resource type and
              name.
    get       Get a resource identified by file, stdin or resource type and
              name.
    config    Manage system-wide and low-level node configuration options.
    ipam      IP address management.
    node      Calico node management.
    version   Display the version of calicoctl.

Options:
  -h --help               Show this screen.
  -l --log-level=<level>  Set the log level (one of panic, fatal, error,
                          warn, info, debug) [default: panic]

Description:
  The calicoctl command line tool is used to manage Calico network and security
  policy, to view and manage endpoint configuration, and to manage a Calico
  node instance.

  See 'calicoctl <command> --help' to read about a specific subcommand.

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
common | install system utilities -------------------------------------- 77.79s
consul | enable nginx-consul ------------------------------------------- 68.63s
docker | install docker packages --------------------------------------- 52.32s
docker | enable docker ------------------------------------------------- 28.75s
calico | install calico ------------------------------------------------ 24.13s
vault | enable vault --------------------------------------------------- 20.41s
consul | install consul ------------------------------------------------ 18.64s
calico | ensure calico docker image is present ------------------------- 14.55s
mesos | wait for zookeeper service to be registered -------------------- 13.15s
docker | install latest device-mapper-libs ----------------------------- 11.02s
           to retry, use: --limit @/home/vagrant/sample.retry

control-01                 : ok=193  changed=155  unreachable=0    failed=1
edge-001                   : ok=115  changed=99   unreachable=0    failed=0
kubeworker-001             : ok=115  changed=99   unreachable=0    failed=0
localhost                  : ok=0    changed=0    unreachable=0    failed=0
worker-001                 : ok=115  changed=99   unreachable=0    failed=0

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
mobility:mantl trowland$

https://github.com/mantl/mantl/blob/master/roles/calico/tasks/calico-configure.yml https://github.com/mantl/mantl/blob/master/roles/calico/tasks/calico-configure.yml

Yeah, obviously the API has changed. Trying to figure out the new nomenclature right now.

http://docs.projectcalico.org/v1.5/reference/calicoctl/pool http://docs.projectcalico.org/v1.5/reference/calicoctl/pool

http://docs.projectcalico.org/v1.5/reference/calicoctl/

Hah, thanks @thomasvincent :)

Here's the most recent documentation for Calico: http://docs.projectcalico.org/v2.1/reference/calicoctl/commands/

It looks like the API has changed for sure.

I believe this is related to the deprecation, see these repos:

https://github.com/containernetworking/cni
https://github.com/projectcalico/cni-plugin

They are now using CNI - the Container Network Interface

I joined the Calico Users on Slack and I was informed of the following:
You can get a listing of the pools with calicoctl get pools -o yaml  or create or modify a pool with a calicoctl apply -f pool.yaml type command.  See http://docs.projectcalico.org/v2.1/reference/calicoctl/resources/ippool for the configuration parameters.

We will probably have to modify the profile creation too. https://github.com/mantl/mantl/blob/master/roles/calico/tasks/calico-configure.yml#L24

You're probably correct.

I have done this in the role busy testing

The profile can probably be created inside the same YAML file.

Okay that YAML change applies another commad that does not work
failed: [mantl-dev1-control-01] => {"changed": false, "cmd": "calicoctl profile show|grep -w "dev"", "delta": "0:00:00.070784", "end": "2017-04-24 09:50:07.951813", "failed": true, "failed_when_result": true, "rc": 1, "start": "2017-04-24 09:50:07.881029", "stdout_lines": [], "warnings": []}
stderr: Unknown command: "profile"

Yeah, that's what @dpavlos were just discussing.

http://docs.projectcalico.org/v2.1/reference/calicoctl/resources/profile

Yeah look like its separate YAML adding now

Try this:
apiVersion: v1
kind: profile
metadata:
  name: {{ calico_profile }}

Do we only need the name or the spec as well?
apiVersion: v1
kind: profile
metadata:
  name: profile1
  labels:
    profile: profile1
spec:
  ingress:
  - action: deny
    source:
      net: <IP_ADDRESS>/24
  - action: allow
    source:
      selector: profile == 'profile1'
  egress:
  - action: allow

Previously it was only passing name.

If that doesn't work, try this:
apiVersion: v1
kind: profile
metadata:
  name: {{ calico_profile }}
  labels:
    profile: {{ calico_profile }}

Ultimately, I think it would be a wise decision to set a proper route table here.

I just confirmed with Calico devs that spec is not required and default is allow all. They are going to update the docs to reflect that.

https://github.com/projectcalico/calico/issues/709

Get this for node status this looks like it is the k8 host network pods
Cant see anything for <IP_ADDRESS>/16
This is about the sum total of things I can find the calico pods are just stuck in ContianerCreating. I presume they have no access to the internet hence they can't pull the image
sudo calicoctl node status
Calico process is running.

IPv4 BGP status
+--------------+-------------------+-------+----------+-------------+
| PEER ADDRESS |     PEER TYPE     | STATE |  SINCE   |    INFO     |
+--------------+-------------------+-------+----------+-------------+
| <IP_ADDRESS>   | node-to-node mesh | up    | 14:23:23 | Established |
| <IP_ADDRESS>   | node-to-node mesh | up    | 14:23:24 | Established |
| <IP_ADDRESS>   | node-to-node mesh | up    | 14:23:24 | Established |
| <IP_ADDRESS>    | node-to-node mesh | up    | 14:23:23 | Established |
| <IP_ADDRESS>    | node-to-node mesh | up    | 14:23:24 | Established |
| <IP_ADDRESS>   | node-to-node mesh | up    | 14:23:23 | Established |
+--------------+-------------------+-------+----------+-------------+

IPv6 BGP status
No IPv6 peers found

@KaGeN101 Same here. I can't see any workload endpoints and pods are stucked on "creating" state. Seems that we are missing something with the cni plugin configuration.
kubelet service on kubeworker gives the following error.
# service kubelet status -l
[...]
kubeworker-001 kubelet[16755]: E0424 16755 cni.go:123] Error while adding to cni network: invalid configuration: no configuration has been provided

Will have to check the that CNI is configured when configuring k8 I guess. Was probably not used before but is now will dig around there

I get this error now on latest calico-upgrade branch:
failed: [mantl-dev1-control-01] => {"elapsed": 90, "failed": true}
msg: Timeout when waiting for <IP_ADDRESS>:8085
FATAL: all hosts have already failed -- aborting

Still timeouts here
TASK: [kubernetes-master | wait for apiserver to come up] *********************
:/

Fixed in master #1963. Closing the issue.


pca skeleton

Uses incremental PCA algorithm (Set it to produce deterministic output. However, the result might not be the same as using original PCA on the entire data)
Uses class-based UDF approach

Thanks a lot for your review! As for your general comment about incremental PCA, I've added the citations for papers I looked into. As for testing, I've been struggling in the past few days on constructing a test case. I will let you know if I succeed in making one or if I get too stuck and not make much progress.

Initial literature review on dimension reduction is referenced on Issue #363

Implementation for PCA
Testing for PCA
Documentation for PCA
Jupyter notebook for testing PCA
For now, removed codes on NMF.


Multi query on a same type and performance

Dear all,
I have a problem need your help.
Let's say I have a Product type like this:
class ProductType extends ObjectType
{
    public function __construct()
    {
        $config = [
            'name' => 'Product',
            'fields' => function(){
                return [
                    'product_id' => [
                        'type' => Type::nonNull(Type::id())
                    ],
                    'sku' => [
                        'type' => Type::nonNull(Type::string())
                    ],
                    'qty' => [
                        'type' => Type::nonNull(Type::int())
                    ],
                    'price' => [
                        'type' => Type::nonNull(Type::float())
                    ],
                    'name' => [
                        'type' => Type::string()
                    ],
                    'description' => [
                        'type' => Type::string()
                    ],
                    'meta_title' => [
                        'type' => Type::string()
                    ]
                ];

            },
            'resolveField' => function($value, $args, Container $container, ResolveInfo $info) {
                return isset($value[$info->fieldName]) ? $value[$info->fieldName] : null;
            }
        ];
        parent::__construct($config);
    }
}

And I am using graphql Server to load data.
$config = ServerConfig::create()
            ->setSchema($this->schema)
            ->setContext($this->container)
            ->setQueryBatching(true)
            ->setErrorFormatter(function(array $errors, callable $formatter) {
                return array_map($formatter, $errors);
            })
            ->setErrorsHandler(function(Error $error) {
                return new \Exception($error->getMessage());
            })
            ->setDebug(true);

        $server = new StandardServer($config);
       $this->results = $server->executeRequest($this->operationParams);

I have several middleware execute on every request.
First middleware needs to product name and description so It add a operationParams
['query' => "{description: product (id: 1) {name description}}"]
Second middleware need qty and price, then it adds a operationParams:
['query' => "{sale: product (id: 1) {price qty}}"]
then server will collect all operationParams and execute.
The problem is, I query the same "product" type, but in my case product type's resolver will be executed twice, I have 2 sql queries to my database.
Is there any way to have product type's resolver executes only 1 time even though I split it to several parts ?
Thank you so much for your support

Please read this: https://webonyx.github.io/graphql-php/data-fetching/#solving-n1-problem
If your resolver is written in a way outlined in this article - you should have a single query for those requests.

Closing this but feel free to reply or re-open if you want to continue this discussion.


bad status on uptime check

http://smart-api.info/portal/translator/summary
CAM-KP shows up in "bad" for Uptime Status. @jdr0887 could you investigate why this isn't working?

@gaurav - @jdr0887 figured that this is caused by the example query in the OpenAPI timing out. This is the one that returns quickly on dev but fails on master. Could you replace that query with some other one which returns very quickly? This is just meant to check that the service is alive.


pinpoint-web user group page doesn't show phone number when i update the user‘s’ info

Description

When I update the user information, the user's information has been saved to the database. However, the user's phone number can not be displayed when editing again.

Environment

Pinpoint version: 1.7.2-SNAPSHOT
OS, WAS, affected library, etc: unbuntu 16.04
Additional details (e.g. how your collector/web is set up):

Additional Info

https://github.com/naver/pinpoint/blob/f17dde245f66fa11f42662feaa1cf484c73fc366/web/src/main/webapp/features/configuration/userGroup/pinpoint-user.directive.js#L202
Changing the code oPinpointUser.phone to oPinpointUser.phoneNumber can solve the problem.

@denzelsN please check this issue.

@OTAKU-Wang
Thanks :)
I fixed it.


etcd core: there should be way to know whether etcd is initialized properly or not

Hi Team,
Currently i am writing one application in Golang, i am starting etcd daemon using go code by executing exec.Command.Start("/bin/etcd") and just after starting i am using etcd application and initializing my central store. But its giving me an error that etcd is not initialized properly. If i use  < 1 second sleep time then etcd is initializing properly. Just after issuing "exec.Command.Start" i checked the status of etcd process (ps aux | grep etcd) and its properly showing its pid and process was running but initialization didn't happen properly.
I would like to know that is there any way to get to know whether etcd initialization finished or not ?
Thanks in advance :)

@gaurav36 You might want to check check-health command here https://github.com/coreos/etcd/blob/master/Documentation/other_apis.md#checking-health-of-an-etcd-member-node. etcd has /health endpoint.

@gaurav36 Kindly ping.
There are various endpoints you can use for your use case: https://github.com/coreos/etcd/blob/master/Documentation/api.md.
Please let me know if you have any question. Thanks,

@gyuho
Thanks for the reply.
we are using libkv store and i am doing get call to get the /health endpoint value.
err := Store.CheckETCDHealth("/health")
func (s *GDStore) CheckETCDHealth(p string) error {
for {
pairs, e := s.List(p)
if e != nil {
log.Info(e.Error())
continue
}
for _, pair := range pairs {
log.Info(pair.Value)
if string(pair.Value) == "true" {
break
}
}
}
return nil
}
but i am getting continuous error key not found in store

@gaurav36 You don't need bindings or client to do that. Just do:
curl http://YOUR_HOST:YOUR_PORT/health

@gyuho   i can issue "curl http://YOUR_HOST:YOUR_PORT/health" command using exec but there should be way for getting /health endpoint value.

@gaurav36 I understand but libkv is not an official etcd client. Please file an issue to libkv.
And we do have health-check command in our etcdctl. Please check https://github.com/coreos/etcd/blob/master/etcdctl/command/cluster_health.go.

Closing this for now. Please feel free to reach out for any other questions.
Thanks,

Thank you @gyuho  :)
issue solved :+1:

No problem. I am glad that it worked. Thanks!
On Tue, Jan 12, 2016, 02:57 Gaurav Kumar Garg<EMAIL_ADDRESS>wrote:

Thank you @gyuho https://github.com/gyuho :)
issue solved [image: :+1:]
—
Reply to this email directly or view it on GitHub
https://github.com/coreos/etcd/issues/4183#issuecomment-170875422.

--
Sincerely,
Gyu-Ho Lee


ELMoForManyLangs as Keras Layer

Hi!
Does anybody know how to use Embedder.sents2elmo() as a Layer for Keras?
I mean like using the one from tensorflow hub, see https://www.depends-on-the-definition.com/named-entity-recognition-with-residual-lstm-and-elmo/.
Thanks in advance!

You can create a Keras Sequence, in which you can apply the embedder on the input sequences, and use model.fit_on_generator/predict_on_generator

Thanks for answering!  I think one we can use the Lambda layer or create a custom one. I don' know how to handle the Tensors that keras gives and return a data structure that keras accepts.
e = Embedder('...')
sess = tf.Session()
def ElmoEmbedding(x):
    with sess.as_default():
        return tf.convert_to_tensor(e.sents2elmo(x.eval())[0]) # this does not work
...
embedding = Lambda(ElmoEmbedding, output_shape=(None, max_len, 1024))(input_text)

how about hub.Module("https://tfhub.dev/google/elmo/2", trainable=True)`

Yeah, but I would like to use non-english Embeddings from ELMoForManyLangs and need to be able to retrain them with custom training data. tfhub is no option, I think.

Hey juckeltour did you solve the problem?

Hi @juckeltour, have you found the way to use https://github.com/HIT-SCIR/ELMoForManyLangs embeddings with Keras

can anyone find any solution?

can anyone find any solution?

Hi guys, anyone found a solution yet?

No, I didn't solve this problem.
We switched to BERT (and pytorch)...

Anyone was able to make text classification in Keras successfully with sentence vectors?


Continued oddities using the PDK, plugin field setting didn't persist across phases?

Summary
Similar issues last time may have some relation: https://github.com/Kong/kong/issues/5853
I won't paste the full plugin code here so we can just narrow in on the discussion of what I see as a current issue. TLDR we have a tx debugger plugin internally that prints all request/response headers and bodies to stdout and it seems the pdk still has some bugs from newer iterations. Take this code:
function KongTxDebugger:access(conf)
  if conf.log_request_body then
    kong.ctx.plugin.request_body = kong.request.get_raw_body()
  end

  if conf.log_response_body then
    kong.ctx.plugin.response_body = ""
  end
end

function KongTxDebugger:body_filter(conf)
  if conf.log_response_body and conf.max_response_body_size > 0 then
   local chunk = ngx.arg[1]
   local res_body = kong.ctx.plugin.response_body .. (chunk or "")
   kong.ctx.plugin.response_body = string.sub(res_body, 0, conf.max_response_body_size)
  end
end

The above will allow the access phase to initialize the kong.ctx.plugin.response_body to an empty string right? Yet behavior is that by the time the body_filter() phase executes, this kong.ctx.plugin.response_body is once again nil(rather than the empty string that access phase set it to) and causes me a stacktrace 💔 .
Stack trace in my testing of the plugin, this code used to work fine(sry don't know what Kong version this plugin used to fully work on because we only use it on demand) too so I don't think its the code but can copy full plugin handler/schema if yall want to play with it. Here is stacktrace(line 29 == local res_body = kong.ctx.plugin.response_body .. (chunk or "") ):
2020/08/05 22:29:27 [error] 14664#0: *2174338 failed to run body_filter_by_lua*: .../share/lua/5.1/kong/plugins/kong-tx-debugger/handler.lua:29: attempt to concatenate field 'response_body' (a nil value)
--
  | stack traceback:
  | .../share/lua/5.1/kong/plugins/kong-tx-debugger/handler.lua:29: in function <.../share/lua/5.1/kong/plugins/kong-tx-debugger/handler.lua:26>
  | /usr/local/kong/luarocks/share/lua/5.1/kong/init.lua:240: in function 'execute_plugins_iterator'
  | /usr/local/kong/luarocks/share/lua/5.1/kong/init.lua:1076: in function 'body_filter'
  | body_filter_by_lua:2: in main chunk, client: <IP_ADDRESS>, server: kong, request: "GET /api/jeremy/test/v1 HTTP/1.1", host: "gateway-dev-core-dc2.company.com"
  | 2020/08/05 22:29:27 [error] 14664#0: *2174338 failed to run body_filter_by_lua*: .../share/lua/5.1/kong/plugins/kong-tx-debugger/handler.lua:29: attempt to concatenate field 'response_body' (a nil value)
  | stack traceback:
  | .../share/lua/5.1/kong/plugins/kong-tx-debugger/handler.lua:29: in function <.../share/lua/5.1/kong/plugins/kong-tx-debugger/handler.lua:26>
  | /usr/local/kong/luarocks/share/lua/5.1/kong/init.lua:240: in function 'execute_plugins_iterator'
  | /usr/local/kong/luarocks/share/lua/5.1/kong/init.lua:1076: in function 'body_filter'
  | body_filter_by_lua:2: in main chunk, client: <IP_ADDRESS>, server: kong, request: "GET /api/jeremy/test/v1 HTTP/1.1", host: "gateway-dev-core-dc2.company.com"

cc @thibaultcha I know you looked at this stuff earlier with pdk complications and may have the relevant insights to it.
Steps To Reproduce

Try that plugin code in a vacuum and watch the nil pointer.

Additional Details & Logs

Kong version 2.1.0 or 2.0.5 as well

@jeremyjpj0916 Are you sure that the access phase was executed when requests produce this stacktrace?

Good shout, another plugin could decide to respond in its own access phase(if executes before this plugin in priority) which would prevent this specific plugins access phase from executing at all. Let me look into this scenario more tonight and will get back here.

Ahh, yep oauth2 was stopping it early so this ones access phase wasn't getting hit. Adjusted the priority on my logging pluggin so its access phase can be hit first and did some general cleanup. Sorry for the false alarm!
Its important to be aware of how other plugins can impact the execution of others for sure I just was thinking with too narrow a scope in this specific plugins code.


Broken texture for brass/andesite parts for certain blocks

Describe the Bug
Brass/andesite part of certain Create blocks show the broken texture.
Affected blocks:

Smart Chute
Andesite/Brass Tunnel
Mechanical Crafter

Reproduction Steps

Install Create Fabric and the mods in the list below
Load a random Singleplayer map
Get the items with broken textures from the inventory

Expected Result
Broken textures (magenta and black squares, see attached screenshot for details) would appear at the andesite/brass part of the block.
Screenshots and Videos

Crash Report or Log
No response
Operating System
Windows 10
Mod Version
0.5.1b
Minecraft Version
1.18.2
Other Mods

Essential
Indium (v1.0.7)
Sodium (v0.4.1)
Iris (v1.6.4)
Lithium (v0.10.3)
Starlight (v1.0.2)
(other mods do not affect block/texture rendering)

Additional Context
Bug also appears in the pondering menu.
Mechanical Crafter does not seem to have any broken textures when placed down.

do you have any texture packs installed and can you share your instance?

Ok, now you can close the issue


add Blob support

Resolves #42 Resolves #43
loadModel() now also accepts Blob or File
TODO: add example

Super cool.
I'm curious: how does this deal with memory/chunking? Can I feed it a files list for example? Or is this for single .gguf files only?

@flatsiedatsie Yes, this is made so that we can feed in a list of gguf shards. Even better, this should allow us to load a big file from local hard drive without splitting it into shards.
Blob in js works a bit like file descriptor in low-level languages. It allows the program to read the file chunk by chunk (so it uses less RAM)
In theory, we could do the same with a remote file (i.e. loadModelFromUrl), but that requires some major changes will be quite messy. For now, let's just focus on loading a local file.

read the file chunk by chunk (so it uses less RAM)
In theory, we could do the same with a remote file (i.e. loadModelFromUrl)

Would love to see it in Wllama!
That's exactly how the loading of GGUF files was implemented in https://github.com/huggingface/ratchet

In theory, we could do the same with a remote file

That would be so great though!

Then people could create and share links that would instantly let them try .gguf files + prompts. HuggingFace could even integrate such a feature into their website. "Just one click to try the model on your own device, privacy protected". Though they would probably prefer to use Transformers.js. But you get my drift.

Great idea. I'm imagining an extension from that: An UI that you can select from a dropdown a list of prompts, maybe the list can be saved inside a config file in HF's repo. Probably this will be interesting for @julien-c

@felladrin @flatsiedatsie Small update on this PR (and globally on the project): I recently have quite a lot of things to do in my life, so the progress is currently slow down a bit. But luckily, this PR is making some substantial progress. The only thing missing is support for OPFS cache on Safari due to webkit bug
And a bit spoiler, I'm leaving cybersecurity and reorient myself to focus on machine learning. By september, when I move to the new job, I'll have more time dedicated to this project.

It's all good! Wllama is now in a very useable anyway. It's a core pillar of the project I will release this month.
Good luck on the switch! You definitely have the skills for it :-)

That's great news!! You've done a lot and Wllama is in great shape! Take your time and all the best with the career move!

Good news everyone! This PR is now ready for testing. I've been able to add a small demo under examples/basic that allow user to pick a local gguf file (or multiple files)

It is however, quite annoying to me because we still can't load files bigger than 2GB, due to ftell/fseek being limited to MAX_LONG, which is 2³¹ bytes. Basically this is even worst than the old day FAT32 since biggest file FAT32 can handle is 4GB (which is equivalent to MAX_UNSIGNED_LONG).
That aside, I'll merge this PR in the next days, so feel free to test it out. Thank you!

Just tested it! And it's working fine, except for one thing:
It's not caching the models anymore on iOS browsers (tested with Mobile Safari and Mobile Brave)
On both, I'm getting the message NOT using cache for (...).

So every time the page is refreshed, the model is fully downloaded again.
Notes:

On iOS, the inference is running fine, after the model is downloaded. The problem is just that it's not being cached.
On desktop browsers, everything is working fine.

@felladrin I updated a small fix for Safari iOS. It kinda work for me, but a bit unstable (as usual, I think)
I didn't test with model bigger than 60MB, so please give git a try. Thank you!

Let me check it now!

Excellent 🙌 On iOS, it's now loading from the cache correctly!


OMP: Error #15 on Windows 11

I tried running the example code from the README:
import txtai

embeddings = txtai.Embeddings()
embeddings.index(["Correct", "Not what we hoped"])
embeddings.search("positive", 1)

Yet I encountered the following error:
OMP: Error #15: Initializing libomp140.x86_64.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://openmp.llvm.org/

After a few hour of troubleshooting I've narrowed it down to faiss. All the issues I could find were related to macOS. As suggested in a recent related issue switching the backend to knsw works.
embeddings = txtai.Embeddings(backend="hnsw")
I'm unsure what is causing the issue. I did try downgrading from Python 3.12 to 3.10 as I saw that helped someone else but it didn't change anything for me. It maybe be related to the fact that txtai is installing torch-cpu and faiss-cpu despite my system having a GPU.
My system specs are:
CPU: i7-13620H
GPU: 4060 Mobile
OS: Windows 11 Pro Build 26100
Python: 3.10.11 (in a virtual environment)
IDE: PyCharm 2024.3 (Professional Edition)
It's a relatively fresh Windows 11 install. Besides PyCharm and Python, I have the C++ Build Tools.
Here is the output of pip list:
Package            Version
------------------ -----------
annoy              1.17.3
certifi            2024.8.30
charset-normalizer 3.4.0
colorama           0.4.6
faiss-cpu          1.9.0.post1
filelock           3.16.1
fsspec             2024.10.0
greenlet           3.1.1
hnswlib            0.8.0
huggingface-hub    0.26.3
idna               3.10
Jinja2             3.1.4
MarkupSafe         3.0.2
mpmath             1.3.0
msgpack            1.1.0
networkx           3.4.2
numpy              2.1.3
packaging          24.2
pgvector           0.3.6
pip                23.2.1
PyYAML             6.0.2
regex              2024.11.6
requests           2.32.3
safetensors        0.4.5
setuptools         68.2.0
SQLAlchemy         2.0.36
sqlite-vec         0.1.6
sympy              1.13.1
tokenizers         0.20.3
torch              2.5.1
tqdm               4.67.1
transformers       4.46.3
txtai              8.0.0
typing_extensions  4.12.2
urllib3            2.2.3
wheel              0.41.2

Thank you for taking the time to read this. I appreciate any insights.

Hello,
Thank you for taking the time to write this up. Normally, I see this type of problem on macOS. The best options I've seen:

Set this parameter
Use Conda package manager. The Faiss team publishes a different package there that works better for some.

You could also pair down the issue (create a simple Faiss only code snippet) and write something with the upstream project.

Thank you for the response. I tried the same code on my Windows 10 desktop which has a Ryzen 7700X paired with a RTX 3090 and I got the same error. I ended up using WSL with a virtual environment on my laptop and that is working. I no longer get the error with faiss-cpu and it installed PyTorch with CUDA.
Setting KMP_DUPLICATE_LIB_OK=true does allow the code to run but I'd rather not rely on it. Installing txtai in a conda virtual environment also allows the code to run but it still didn't install PyTorch with CUDA.

Instructions on how to install PyTorch with CUDA through Conda can be found here: https://pytorch.org/get-started/locally/
Ultimately if WSL works though, that isn't a bad way to do it either.

I was able to install PyTorch with CUDA manually when I was troubleshooting. My understanding is that txtai installs GPU enabled dependencies by default. I did see how to specify a CPU only install on txtai's documentation but not the other way around. Is the version of torch the only difference between the default and CPU only installs?

The default install uses the PyTorch GPU package. Are you referring to the docker images (txtai-cpu vs txtai-gpu)?

That was my understanding. I'm unsure why it doesn't install the PyTorch GPU package on Windows using pip or conda. With WSL it does install the PyTorch GPU package. For cpu-only I was referring to this section on the Installation - txtai document page.

Ok, well it sounds like you figured out a solution that works. I'm going to go ahead and close this issue.


INVALID_LOCATOR error in visual studio while running "SFDX: Retrieve Source from Org"

When running  "SFDX: Retrieve Source from Org" command in visual studio it is throwing this error. INVALID_LOCATOR.
Please help me out.

/causedByExtension
This command provided and handled by some Salesforce extension, not VS Code itself.
Please make sure that you have proper configuration and then report an issue or ask your question in channels specified by extension authors.


FORMS-229 # fix REQUIRED validation messages for date/time

There are several components to this fix.

Form and Element base models override Backbone.Model#isValid() so that a "valid" event is emitted when validation passes. This allows validation rendering to specifically hook both validation events ("invalid" and "valid") instead of hooking "change:value". This, in turn, means validation rendering strictly happens after validation, and never before.

Element#val() used to have special validation behaviour, so consumers that use it instead of Backbone.Model#set() would have different behaviour. Element now overrides Backbone.Model#set() so value changes are treated consistently, regardless of consumer. Validation is always triggered if the "value" attribute was involved.

Date view now correctly reacts to changes in the "_time" attribute on the model.

lgtm :+1:


debug in python class

VSCode Version: Code 1.17.2 (b813d12980308015bcd2b3a2f6efa5c810c33ba5, 2017-10-16T13:59:46.104Z)
OS Version: Windows_NT x64 10.0.15063
Extensions:

Extension
Author (truncated)
Version

python
don
0.7.0

vsc-material-theme
Equ
1.0.5

Go
luk
0.6.66

vscode-icons
rob
7.15.0

Steps to Reproduce:

Write a python class with some private properties that start with two leading underscore.
When debugging in that python class, no tip or local list for those private properties.
Is it possible to add this feature for debugging in python class?

Reproduces without extensions: Yes/No

Please file this against the python extension here https://github.com/DonJayamanne/pythonVSCode


can't print

When I add print("XXX") in any other files except train.py (GCN __init function for example), the contents can't be shown in terminal. Could anybody explain for me?

Could you find why?

Not yet.

The project was installed before you run it. So if you modify it, you need to reinstall.

Oh, that's it, thank you!


Allow updates beyond major bumps

Current dependencies on/for this PR:

main

PR #98   👈

This comment was auto-generated by Graphite.


add top and bottom sensors

For #111
But I couldn't find where to make the sensors point a specific direction by default unless that's in the specific sensor classes.
I did not add these types to the Contact sensor class or Distance sensor class because I wasn't sure what type of sensors these enums were intended for.

Yeah that's actually fine for now. We can deal with the angle stuff later


TypeError: unsupported operand type(s) for |: 'type' and 'type'

Hello @thejoabo, I just tried the latest release (1.2.0) and encountered this error:

The error suggests unsupported data type in ConfigManager.py line 87, I tried fiddling with it and the program works only if I set the data type to either only integers or floats, but not both.
I changed this:

To this:

and it works

I don't know if it's intended or not but for the meantime I'll use the aforementioned workaround, thank you so much!

This was intentional (but completly irrelevant), the " | " operator means "OR", since python is not a typed language I just define the types for organization purposes. Anyways, this really shouldn't raise any errors, which version of python are you running ?

I'm using python 3.8.2

Oh, that might be why. I'm building it with Python 3.10.4 and it doesn't seem to raise anything about that. I'll keep support for older versions tho.


2.19.4 - Swagger - Content-Type in model doesn't match API result of POST /users/{id}/tokens

Before you start please confirm the following.

[X] Yes, I've searched similar issues on GitHub.
[X] Yes, I've checked whether this issue is covered in the Portainer documentation or knowledge base.

Problem Description
When calling /users/{id}/tokens the resulting Content-Type header is text/plain; charset=utf-8; however, the Swagger API documentation states that the response type is application/json.
Expected Behavior
The Content-Type header is application/json matching the Swagger API documentation.
Actual Behavior
The Content-Type header is text/plain; charset=utf-8
Steps to Reproduce

Create an API token using the endpoint /users/{id}/tokens (method: POST)
The Content-Type header is not application/json

Portainer logs or screenshots
No response
Portainer version
2.19.4
Portainer Edition
Community Edition (CE)
Platform and Version
Docker version 25.0.2
OS and Architecture
Ubuntu 22.04.4, AMD64
Browser
No response
What command did you use to deploy Portainer?
No response
Additional Information
I believe this is caused by writing the HTTP Status before setting header values. Example: https://github.com/portainer/portainer/blob/develop/api/http/handler/users/user_create_access_token.go#L102
I think this would resolve the issue:
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)

This is likely occurring here as well: https://github.com/portainer/portainer/blob/develop/api/http/handler/helm/helm_install.go#L64

Thanks for this - I've reproduced this here and have raised an internal issue.
Internal Ref: PCT-388


[BUG] H5 Cell Actor

Describe the bug
It seems there's an issue with the "Cell" actor, I can't set "Desperation" and "Danger" permanently.
To Reproduce
Steps to reproduce the behavior:

Create a Cell actor
Open it
Click on "Desperation" or "Danger" to change the value
Close
Open again and the changed values are gone
(Same by unlocking and locking the Cell actor)

Desktop (please complete the following information):

Browser Chromium 112.0.5615.49
FoundryVTT Version 11.315
Foundry-V5 Version 4.0.1

Additional context

Active modules: 0

Thank you very much for embracing this system and all the work you've put into it. THANKS!

Oh, so sorry about that! I'll try to get it fixed up soon. Thank you for submitting an issue about this.

Managed to get it fixed! Should be merged shortly with pull request #304 and it'll be in whenever the next update to the system is.


subscribe and unsubscribe commands

all the suggestions and changes from the old/closed PR have been resolved

Had to close the earlier pr because I deleted the fork. This will close issue#31

Had to close the earlier pr because I deleted the fork. This will close issue#31

@Arnav-2004 are you planning on continuing this PR?

@Arnav-2004 are you planning on continuing this PR?

Yes, after 18th March I will be working on it. Because of school exams I am not able to work on it.

Also, I see a problem with the function names and doc strings, just for an example:
function: subscribe_group_helper
This name does not make anything clear, a better name would be _subscribe and the doc string could be
Subscribe for announcements and polls.
the current docstring Helper function for unsubscribe_group. Sends embed for role unsubscription. does not tell the actual functionality of the function, the function is also removing roles which is the main thing not mentioned in the doc string

Let's do it.


MINOR: Fix grammar

Can you piggy back this to #3224 ?

I'd rather not, they are not related.

@mihbor, thanks for this and other PRs. Keep in mind that there is overhead for a committer to review and merge each PR. So, one PR with a few documentation improvements is better than 5 small documentation PRs where some of the PRs change a single line.

@mihbor As we are close to the release, it might be nice to get those fixes for the docs merged. It's find to put all those PRs together into a single PR. Could you do one single PR for all of those and close all other duplicate PRs? Thx.

I'm afraid I have no interest in spending any more time on these, feel free to close if they're not worth merging as they are.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/5627/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/5641/
Test PASSed (JDK 7 and Scala 2.11).


Teach cp to reflink on Windows

add windows version of copy_on_write for cp command
This is implemented using DeviceIoControl FSCTL_DUPLICATE_EXTENTS_TO_FILE,
and thus only works on ReFS (and possibly winbtrfs, I'm not sure).
While it should be possible to handle sparse modes on windows as well
this PR doesn't do that. Note that we do set the destination file as sparse
while copying it, this is because the target of FSCTL_DUPLICATE_EXTENTS_TO_FILE
must be at least as large as the source, and we don't want to write out zeros to the disk
before copying over the extents.
I tried to do similar things to what linux does here, but things are a bit more complicated on windows, and I ended up
just handling fallback modes inline instead of via an enum parameter to duplicate_extents.
I don't actually check for FILE_SUPPORTS_BLOCK_REFCOUNTING, if it doesn't the call to DeviceIoControl will just fail and you'll get the fallback behavior (so an error with --reflink=always and a "real" copy with --reflink=auto.

nice, did you see performance improvements?

nice, did you see performance improvements?

Yes, assuming reflinking actually happened. I tried copying some video files between folders on a ReFS formatted drive and indeed things did speed up, a 5gb file took a bit longer than a minute (which is what I would expect for this drive, it's spinning disks and I had several background jobs ongoing so I'd expect transfer speeds of like 30-50MB/s. When reflinking was enabled things were mostly instant, although in some cases there was 10-30sec of waiting around for the disk, again, this is about what you'd expect.
Note that I didn't change the default for the --reflink option on windows, so it won't happen at all by default. I figured since ReFS is so rare and it's performance characteristics are somewhat unknown the default should stay "never", at least for a while (I think GNU CP on linux only started defaulting to auto after the --reflink option had existed for a while)

it needs some rustfmt ;)

it needs some rustfmt ;)

Just done, sorry that took so darn long

it needs some rustfmt ;)

Just done, sorry that took so darn long

No worries, 3 weeks is very reasonable :)

the coverage is complaining a bunch about windows.rs
do you know why we aren't covering more lines of code ?

the coverage is complaining a bunch about windows.rs do you know why we aren't covering more lines of code ?

It looks like that typo fix missed a usage and the whole windows build is now failing.
Coverage-wise I suspect that it's because I did not change the default reflinking mode on windows, I figured most people are probably using NTFS, which doesn't support reflinks anyways, and I haven't done a ton of testing for the failure path on different filesystems or different versions of windows. In any event this means it's likely the tests are not triggering reflinking at all on windows.

no action for  a while, closing
please reopen when ready :)


Mark release note items for GH issue generation

This change is

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/ae21b9dcf82e41a7eda4f00d4e9ab630a7ab3c90/
Edited pages:

releases/v20.2.0-beta.1.md


How to store amplitude values into a variable?

I'm trying to store a series of AKMicrophone's amplitude and frequency values into an array but there doesn't seem to be a delegate method that supports this sort of tracking. Does anyone know how to do this? EZMicrophone has a delegate method so I'm pretty confused.

Microphone doesn't have frequency or amplitude.  There's an AKFrequencyTracker and an AKAmpliutdeTracker that probably will do what you need.


Zsh: unknown signal  waybar

Waybar doesn't start with sway's swaybar_command (both configs here).
Executing from the command line is no different:
$ waybar
zsh: unknown signal  waybar

The double space is also part of it, so maybe that leads to something?
Waybar was working for a little bit but when I booted it up this morning this just..happened
Waybar version: 0.9.7-1, I could only check via pacman since /usr/bin/waybar -v had that strange signal error.
uname -a: Linux laptop 5.12.2-arch1-1 #1 SMP PREEMPT Fri, 07 May 2021 15:36:06 +0000 x86_64 GNU/Linux
Edit: Dropping down to dash, typing in waybar prints Real-time signal 12, so I know it's a shell issue now. What exactly does this?

I may be stupid, but I think the issue was MPD wasn't started and that made the bar fail


(OS Error: No address associated with hostname, errno = 7)

Hello,
I just started Flutter and I'm trying to get a request.
this is what I tried:
import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:http/http.dart';

class Loading extends StatefulWidget {
  @override
  _LoadingState createState() => _LoadingState();
}

class _LoadingState extends State<Loading> {

  void getTime() async {
    Response res = await get('http://worldtimeapi.org/api/timezone/Europe/Amsterdam');
    Map data = jsonDecode(res.body);
    print(data);
  }

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    getTime();
    print('How you doing');
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Text('Loading'),
    );
  }
}

I am having this error: E/flutter ( 3472): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: SocketException: Failed host lookup: 'worldtimeapi.org' (OS Error: No address associated with hostname, errno = 7) E/flutter ( 3472):
My HTTP is : http: ^0.12.2
Thank you.

Hi @connelevalsam
It seems you are asking for assistance on personal code. Please see https://flutter.dev/community for resources and asking questions like this. You may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

I think it has to do with Flutter.
Some of the answers I found didn't work for me and the slack channel is down.


How can I set the visibility of controls in TaskEditDialog and TriggerEditDialog ?

I want to hide some controls and cannot find any related API.
For now I just use reflection to implement it, but it is rough.
So I wonder if it is possible to provide some API or any ways to configure the visibility of controls?
Originally posted: 2016-05-30T02:59:12

I'll need a lot more information. Which controls are you trying to hide? What is the use case? Does the interface need to adapt its layout when controls are removed?
Originally posted: 2016-05-30T11:04:16


CentOS 6.9 - Failed to update secret file

I'm not able to activate google-authenticator on my CentOS server, can you guys help me?

[root@xxx log]# cat /etc/redhat-release
CentOS release 6.9 (Final)

[root@xxx log]# tail -f secure
Mar  8 14:00:56 xxx sshd[26942]: Connection closed by <IP_ADDRESS>
Mar  8 14:01:02 xxx sshd(pam_google_authenticator)[26946]: Accepted google_authenticator for fmgodias
Mar  8 14:01:02 xxx sshd(pam_google_authenticator)[26946]: Failed to delete tempfile "/home/fmgodias/.google_authenticator~O40FNf": No such file or directory
Mar  8 14:01:02 xxx sshd(pam_google_authenticator)[26946]: Failed to update secret file "/home/fmgodias/.google_authenticator": Permission denied

[root@xxx tmp]# cat /etc/pam.d/sshd
#%PAM-1.0
auth       required     pam_google_authenticator.so nullok
auth	   required	pam_sepermit.so
auth       include      password-auth
account    required     pam_nologin.so
account    include      password-auth
password   include      password-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open env_params
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      password-auth

[root@xxx tmp]# getenforce
Enforcing

Install How-To
### Compile Google Authenticator
yum remove google-authenticator -y;
yum install qrencode pam-devel make gcc wget autoreconf unzip autoconf automake libtool -y;
mkdir -p /opt/google-authenticator/ ;
cd /opt/google-authenticator/ ;
wget https://github.com/google/google-authenticator-libpam/archive/master.zip -O google-authenticator-libpam.zip ;
unzip google-authenticator-libpam.zip;
cd /opt/google-authenticator/google-authenticator* ;
./bootstrap.sh ;
./configure ;
make && make install ;

# Install Google Authenticator
unlink /usr/bin/google-authenticator ;
unlink /lib64/security/pam_google_authenticator.so ;
unlink /lib64/security/pam_google_authenticator.la ;
ln -s /usr/local/bin/google-authenticator /usr/bin/google-authenticator ;
ln -s /usr/local/lib/security/pam_google_authenticator.so /lib64/security/pam_google_authenticator.so ;
ln -s /usr/local/lib/security/pam_google_authenticator.la /lib64/security/pam_google_authenticator.la ;

# Config SSH Daemon
sed -i '/#%PAM/a auth\ \ \ \ \ \ \ required\ \ \ \ \ pam_google_authenticator.so nullok' /etc/pam.d/sshd ;
sed -i 's/#ChallengeResponseAuthentication\ yes/ChallengeResponseAuthentication\ yes/g' /etc/ssh/sshd_config ;
sed -i 's/ChallengeResponseAuthentication\ no/#ChallengeResponseAuthentication\ no/g' /etc/ssh/sshd_config ;
sed -i 's/#UseDNS\ yes/UseDNS\ no/g' /etc/ssh/sshd_config ;
sed -i 's/#PermitRootLogin\ yes/PermitRootLogin\ no/g' /etc/ssh/sshd_config ;
service sshd restart ;

Who owns /home/fmgodias/.google_authenticator and /home/fmgodias, and what permissions do they have?
I'm not very familiar with SELinux, so if it's not an ownership thing then it's probably SELinux blocking it somehow.

it's because SELinux is active, in the past I've been able to create a release rule using the URL hints below, but it does not work anymore.
If I disable SELinux it works, but I would like a solution with SELinux active.
http://blog.boa.nu/2012/11/two-factor-ssh-login-google-authenticator-and-selinux.html

@fmgdias,
I just setup Google Auth with SELinux enabled on my CentOS 7.x box. I used parts of that link, but found that there was an update ages ago in SELinux that attempted to automate the Google Authenticator process, which made name type conflicts come up when I was trying to make my own policy/type.
That being said, I succeeded. However, there's only two ways (as far as I can tell) to succeed in this because of those name type conflicts. Neither are as pretty as I'd like, but it is what it is.
There's two things to keep in mind when you're making your policy:

SELinux doesn't give sshd_t access to user_home_dir_t by default, and you'll need to give sshd_t write & read access to this (as well as setattr, getattr, etc) type in order for the .google_authenticator file to be directly in the user's home directory

Theoretically, you could move this file into its own directory, and then give that directory the context type ssh_home_t to get around that.

SELinux doesn't, by default, give the right context type to a newly created file without passing filetrans_pattern in the type configuration

Option 1 - Renaming ".google_authenticator" to something else in the home dir
You could either move .google_authenticator into a new directory, thereby getting rid of the rule that SELinux had by default (/home/[^/]+/\.google_authenticator takes on auth_home_t by default), or you could change .google-authenticator (the file name) to something else.
From there, you'd follow all of the steps in that URL to get the custom type setup, but keep in mind that you'll also need to pass the following "allow" unless you're working in a ssh_home_t context directory:
allow sshd_t user_home_dir_t : file { read write rename create unlink rw_file_perms getattr setattr };
Option 2 - Give all files changed in user_home_dir_t by sshd_t the custom context you make
This is easier if you're not relying on authorized_keys and other keys being inside of the user's home directory. My keys are all outside of the home directory (and authorized_keys are on a separate system partition), so this works for me.
Basically, instead of passing:
filetrans_pattern(sshd_t, user_home_dir_t, CUSTOM_TYPE_NAME_T, file, '.google_authenticator')
You would pass:
filetrans_pattern(sshd_t, user_home_dir_t, CUSTOM_TYPE_NAME_T, file)
This would also get around the fact that libpam-google-authenticator automatically attempts to create a temporary file (usually .google-authenticator~ with a random code at the end). Because you can't pass a regex pattern into filetrans_pattern, this would avoid any AVC errors caused by that create.
-- Dave.


FileNotFoundException

I get the following exception:
Could not load file or assembly 'Microsoft.Extensions.Options, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified.
I am truing to do the simplest test. Build fine, but throws exception on run-time.
Code:
class Program     {         static void Main(string[] args)         {             var a = new BinanceApi();         }     }

@vergilbg, that assembly is one of the required NuGet dependencies.
Dependencies:
Microsoft.Extensions.DependencyInjection.Abstractions (>= 2.0.0)
Microsoft.Extensions.Logging.Abstractions (>= 2.0.0)
Microsoft.Extensions.Options (>= 2.0.0)
Newtonsoft.Json (>= 10.0.3)
System.Threading.Tasks.Dataflow (>= 4.8.0)
System.Threading.Tasks.Extensions (>= 4.4.0)


Warn users that the default manylinux of auto may cause build failures

Hi - we just found out that because the default manylinux selected is 2014, this has a strong likelihood of causing a build failure if your library has rustls as a dependency.
Specifically, the ring crate does not compile with gcc-4.8.0 on arm64-linux: https://github.com/briansmith/ring/issues/1728
Our dependency on ring is implicit/transitive via rustls:
❯ cargo tree -i -p ring
ring v0.17.8
├── aws-config v1.5.3
│   └── baml-runtime v0.46.0 (/Users/sam/baml/engine/baml-runtime)
│       ├── baml v0.46.0 (/Users/sam/baml/engine/baml-cli)
│       ├── baml-python-ffi v0.1.0 (/Users/sam/baml/engine/language_client_python)
│       ├── baml-schema-build v0.46.0 (/Users/sam/baml/engine/baml-schema-wasm)
│       ├── baml-typescript-ffi v0.0.1 (/Users/sam/baml/engine/language_client_typescript)
│       └── ruby_ffi v0.1.0 (/Users/sam/baml/engine/language_client_ruby/ext/ruby_ffi)
├── rustls v0.21.12
│   ├── aws-smithy-runtime v1.6.0
│   │   ├── aws-config v1.5.3 (*)
│   │   ├── aws-sdk-bedrockruntime v1.37.0
│   │   │   └── baml-runtime v0.46.0 (/Users/sam/baml/engine/baml-runtime) (*)
│   │   ├── aws-sdk-sso v1.33.0
│   │   │   └── aws-config v1.5.3 (*)
│   │   ├── aws-sdk-ssooidc v1.34.0
│   │   │   └── aws-config v1.5.3 (*)
│   │   ├── aws-sdk-sts v1.33.0
│   │   │   └── aws-config v1.5.3 (*)
│   │   └── baml-runtime v0.46.0 (/Users/sam/baml/engine/baml-runtime) (*)
│   ├── hyper-rustls v0.24.2
│   │   ├── aws-smithy-runtime v1.6.0 (*)
│   │   └── reqwest v0.11.27
│   │       ├── baml v0.46.0 (/Users/sam/baml/engine/baml-cli)
│   │       └── check-latest v1.0.2
│   │           └── baml v0.46.0 (/Users/sam/baml/engine/baml-cli)
│   ├── reqwest v0.11.27 (*)
│   └── tokio-rustls v0.24.1
│       ├── hyper-rustls v0.24.2 (*)
│       └── reqwest v0.11.27 (*)
├── rustls-webpki v0.101.7
│   └── rustls v0.21.12 (*)
└── sct v0.7.1
    └── rustls v0.21.12 (*)

Took a solid hour+ of detective work to understand all the error messages we were getting and to track down the root cause correctly, so I wanted to flag this for your attention. It's clear that you've put a lot of work into making maturin cross-compilation Just Work out of the box, and this appears to stick a very frustrating wrench in that seamless experience.

Any solution for this ?

We target 2_24 for our arm64-linux builds now (link).
My reasoning was that arm64-linux is, all things considered, a pretty new platform to build for: it only really started becoming a thing when the major cloud vendors started pushing it, as a cheaper and more power-efficient compute platform, in the late 2010s. glibc 2.24 was announced in 2016, so I'm pretty comfortable using that as our lower backwards compatibility bound for arm64-linux.

I had an auto-generated ci.yml from maturin v1.5.0
https://github.com/fetter-io/fetter-py/actions/runs/11577938386/workflow
After trying some fresh builds this week I got the same ring errors:
https://github.com/fetter-io/fetter-py/actions/runs/11564744378/job/32191083539
I was able to get this to proceed by removing aarch64 from my Linux matrix, but I assume that is not the ideal solution.
What is the proper solution: not to use manylinux: auto?

For me this seems to work by specifying manylinux: "2_28" for the aarch64 build. https://github.com/kylebarron/arro3/pull/277

Using manylinux: 2_24 for aarch64 will be most similar to manylinux: auto if you have ring in your dependencies.
manylinux: 2_28 will also work, but isn't as backwards-compatible.
The deeper explanation: the version specifier fed to manylinux is the PyPI image spec, which for newer versions is just the glibc version it uses. 2_24 is the oldest that works with ring, so if you're building a library for 3rd party users, you want 2_24. (IIRC there's also some aws linux distros that won't work with 2_28, but don't quote me on that.)

Thanks, it looks like it does compile with 2_24, just not with 2_17.


Kubelet restart

What type of PR is this?
Managed Script addition for Kubelet restart
What this PR does / Why we need it?

Restart Kubelet on Master node.
Customer with cluster admin perms can do it but since the action needs to be on Master node, a preferable way would be doing it via managed script by MCS secondment engineers
Issues like: pod stuck in containerUnknown Status, bugs that require kubelet restarts to unblock upgrades etc.

Which Jira/Github issue(s) does this PR fix?
From one of the use cases, an example could be: https://access.redhat.com/solutions/6976343
Special notes for your reviewer
Reducing an OHSS and turn around time for customers by letting MCS secondment engineers quickly restart the kubelet in scenarios where required.

@jaybeeunix would you mind to take a look at this script from compliance point of view?

it looks good from my perspective.

/lgtm

/approve


Mention List position is not correct

We are using ngx-quill: 2.2.0 and quill-mention: 0.2.5. Suddenly we are getting this issue regarding the positioning of the Mention List in a VM. Locally it is reproducible but we also fixed it by giving a offsetTop: 2. Locally its working now but on VM issue still persists. Additionally in firefox(On VM) it is coming perfect. Can you please look into this if this is an issue with any of the module ?

With VM, I suppose you mean Virtual Machine? Is it Windows 10 or something else and what browser do you use? Is it Internet Explorer?
Could you try upgrade quill-mention to version 2.0.0?


reuslts of data

hi , could you please offer some results of this Network? thanks :-)

Hi :)
I uploaded a trained model - see https://github.com/nschor/CompoNet/issues/1
You can use it to generate some results in the Chair category.

thanks, I've solved it

I meet some error when i train the airplane.  The results generated by test are confusing,  can you provide more pre-trained models？ Thanks


Spark finished after the first stage and returned an empty dataframe

Thank for your work, but I wasn't able successfully run this plugin. The query finished after the first stage and returned an empty dataframe without any error.
Code to reproduce.

I installed spark in a docker image python:3.8-bullseye with openjdk_version="17" like this

ARG scala_version="2.12"

ENV APACHE_SPARK_VERSION="3.3.0" \
    HADOOP_VERSION="3" \
    SPARK_HOME=/usr/local/spark \
    SPARK_OPTS="--driver-java-options=-Xms1024M --driver-java-options=-Xmx4096M --driver-java-options=-Dlog4j.logLevel=info" \
    PATH="${PATH}:${SPARK_HOME}/bin"

WORKDIR /tmp
RUN wget -q "https://archive.apache.org/dist/spark/spark-${APACHE_SPARK_VERSION}/spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz" && \
    tar xzf "spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz" -C /usr/local --owner root --group root --no-same-owner && \
    rm "spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz" && \
    ln -s "/usr/local/spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}" $SPARK_HOME

WORKDIR /usr/local

# to read s3a
RUN wget -P "${SPARK_HOME}/jars" https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/3.2.2/hadoop-aws-3.2.2.jar && \
    wget -P "${SPARK_HOME}/jars" https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/1.11.375/aws-java-sdk-bundle-1.11.375.jar

RUN wget -P "${SPARK_HOME}/jars" https://github.com/IBM/spark-s3-shuffle/releases/download/v0.5/spark-s3-shuffle_${scala_version}-${APACHE_SPARK_VERSION}_0.5.jar

# Add a link in the before_notebook hook in order to source automatically PYTHONPATH
RUN mkdir -p /usr/local/bin/before-notebook.d && \
    ln -s "${SPARK_HOME}/sbin/spark-config.sh" /usr/local/bin/before-notebook.d/spark-config.sh

# Fix Spark installation for Java 11 and Apache Arrow library
# see: https://github.com/apache/spark/pull/27356, https://spark.apache.org/docs/latest/#downloading
RUN cp -p "${SPARK_HOME}/conf/spark-defaults.conf.template" "${SPARK_HOME}/conf/spark-defaults.conf" && \
    echo $'\n\
spark.driver.extraJavaOptions -Dio.netty.tryReflectionSetAccessible=true\n\
spark.executor.extraJavaOptions -Dio.netty.tryReflectionSetAccessible=true\n\
spark.driver.memory 200g\n\
spark.kryoserializer.buffer.max 2047\n\
spark.sql.shuffle.partitions 300\n\
spark.sql.execution.arrow.pyspark.fallback.enabled true\n\
spark.driver.maxResultSize 120g' >> "${SPARK_HOME}/conf/spark-defaults.conf"

RUN pip install pyspark

Configured spark in python:
from os import getenv

# set env vars in jupyter notebook
%env AWS_ACCESS_KEY_ID={getenv('S3_SMM_TEST_ACCESS_ID')}
%env AWS_SECRET_ACCESS_KEY={getenv('S3_SMM_TEST_ACCESS_KEY')}
%env S3_ENDPOINT_URL={getenv('S3_ADVANCED_ENDPOINT')}
%env S3_SHUFFLE_ROOT=s3a://smm-test/personal/s3-shuffle

from pyspark.sql import SparkSession

spark = SparkSession.builder.appName("name").master('local[*]').config(
    "spark.sql.execution.arrow.pyspark.enabled", "false"
).config(
    "spark.shuffle.manager", "org.apache.spark.shuffle.S3ShuffleManager"
).config(
    "spark.shuffle.sort.io.plugin.class", "org.apache.spark.shuffle.S3ShuffleDataIO"
).config(
    "spark.shuffle.s3.rootDir", "s3a://smm-test/personal/s3-shuffle"
).config(
    "spark.dynamicAllocation.enabled", "true"
).config(
    "spark.dynamicAllocation.shuffleTracking.enabled", "true"
).config(
    "spark.fs.s3a.path.style.access", "true"
).config(
    "spark.fs.s3a.fast.upload", "true"
).config(
    "spark.driver.extraClassPath", f'{getenv("SPARK_HOME")}/jars/aws-java-sdk-bundle-1.11.375.jar,/opt/spark/jars/hadoop-aws-3.2.2.jar'
).config(
    "spark.executor.extraClassPath", f'{getenv("SPARK_HOME")}/jars/aws-java-sdk-bundle-1.11.375.jar,/opt/spark/jars/hadoop-aws-3.2.2.jar'
).config(
    "spark.shuffle.s3.sort.cloneRecords", "true"
).config(
    "spark.shuffle.s3.useBlockManager", "true"
).config(
    "spark.shuffle.s3.forceBatchFetch", "true"
).config(
    "spark.shuffle.s3.supportsUnbuffer", "true"
).config(
    'spark.hadoop.fs.s3a.aws.credentials.provider', 'org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider'
).getOrCreate()
config_spark_s3 = {
    'access_id': getenv("S3_SMM_TEST_ACCESS_ID"),
    'access_key': getenv("S3_SMM_TEST_ACCESS_KEY"),
    'impl': 'org.apache.hadoop.fs.s3a.S3AFileSystem',
    'endpoint': getenv("S3_ADVANCED_ENDPOINT")
}
spark._jsc.hadoopConfiguration().set("fs.s3a.impl", config_spark_s3["impl"])
spark._jsc.hadoopConfiguration().set("fs.s3a.endpoint", config_spark_s3["endpoint"])
spark._jsc.hadoopConfiguration().set("fs.s3a.access.key", config_spark_s3["access_id"])
spark._jsc.hadoopConfiguration().set("fs.s3a.secret.key", config_spark_s3["access_key"])

and tried to execute a heavy query.
It has been ended in a couple of minutes and result was like

despite the fact that without spark-s3-shuffle it runs through many stages in a hour and returns a massive dataframe. The spark.shuffle.s3.rootDir was filled with a couple GBs of data but I would expected much more data.
Do you have any thoughts what can I do to make it work?
Thanks in advance!

Hi
Can you retry with spark-s3-shuffle version 0.7? The plugin has gotten a couple of improvements since version 0.5:

Improvements how Shuffle files are managed: The plugin now relies on S3ShuffleDataIO and does no longer try to serialize the shuffle data on its own.
Prefixing the shuffle files to increase the performance on S3.
Prefetching of multiple shuffle files.

Thank you
Pascal


In order to migrate Guzzle Services to Guzzle 6 add command to handler call.

I am currently migrating the Guzzle Services to Guzzle 6. At the deserialization of the respond to a result, Guzzle Services need a Command to get the operation from the description. This PR passes the command to the call.

Any reason to suspect this would be a breaking change? I'm thinking no, because you are just sending an extra parameter to the transformer function, and any existing guzzlehttp/command-based clients would not be adversely affected.

No, don't expect a BC.  The createCommandHandler() is private so nobody has this method overridden and the command is available in the method already.


Needed: path_to_documentation_in_repo

For example:
To construct the url https://github.com/TYPO3/TYPO3.CMS/edit/master/typo3/sysext/form/Documentation/Index.rst
we need to know in the theme that /typo3/sysext/form/Documentation is the path to the folder WITHIN the repo where the documentation of the 'form' (sub-) project starts.
Another typical address:
https://github.com/TYPO3/TYPO3.CMS/tree/master/typo3/sysext/form/Documentation
WRONG:
This is what the current, insufficient algorithm creates:
https://github.com/TYPO3/TYPO3.CMS/edit/master/Documentation/Index.rst

Solved with https://github.com/TYPO3-Documentation/t3SphinxThemeRtd/commit/aad134d881f58179f264456a11a0d362bfe2ea96 and https://github.com/TYPO3-Documentation/t3SphinxThemeRtd/commit/e0e25f8d3b777edced6900a4e9afd861989346ab


Adding support for Mapbox with Polygon

Mapbox Polygon support
This pull request is an attempt to implement the feature: https://github.com/apache/incubator-superset/issues/2675
Background
We are using superset with Druid in our project at Dataspark, Singtel, Singapore. We needed Mapbox with Polygon support in our project. So we have attempted to solve this problem using react-map-gl , deck.gl and d3. The new visualization is called "Mapbox with Polygon".
Usage

Create a new slice
Select the datasource as : "birth_france_by_region"
Select the visualization type : Mapbox with Polygon and click on "create a new Slice"

In the Query section , select the DEPT_ID under "Codes of region/province/department" and select a metric.
Click on Query. Zoom in/out to adjust if needed. hover around the map to see the details.

Features
The visualisation supports the following filters/selectors

Time

Query

Options

GeoJosn : select the geojson layer
RGB color sheme : select the Color scheme
Map Style : Select the map style

Viewport

SQL

Filters

We already have support for DeckGL polygons here:
superset/assets/visualizations/deckgl/layers/polygon.jsx
Also many other layer types and multi-layers charts! We haven't released it yet, coming in the next release.

Thanks for the PR regardless, looking forward to future collaborations.


Preliminary implementation of Jupyter Frontend

Need to merge before this: https://github.com/OpenDevin/OpenDevin/pull/1290
We could potentially also make it an optional plugin - if that's more preferable

Your PR includes node_modules, which should normally be ignored by Git in .gitignore. This explains why 470 files have been modified 😅

thanks for the reminder! frontend newbie here 😅 that's why i'm curious why i need to add so much thing despite only added a little bit of front-end modification.

I finally got this PR working with the Jupyter image display!! Now all left to do for front-end is:

The [continue] button near the chat input box, which only visible when agent is awaiting human input.
automatically switch to Jupyter IPython window when the first cell of IPython execution appeared.

https://github.com/OpenDevin/OpenDevin/assets/38853559/297689fe-8ed3-4df0-9990-c97f527228b8


Bug

Thanks for sending a pull request!
Please make sure you click the link above to view the contribution guidelines,
then fill out the blanks below.
Description
(Brief description on what this PR is about)
What does this implement/fix? Explain your changes.
...
Pull request type

[ ] [DATASET] Add a new dataset
[x] [BUGFIX] Bugfix
[ ] [FEATURE] New feature (non-breaking change which adds functionality)
[ ] [BREAKING] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] [STYLE] Code style update (formatting, renaming)
[ ] [REFACTOR] Refactoring (no functional changes, no api changes)
[ ] [BUILD] Build related changes
[ ] [DOC] Documentation content changes
[ ] [OTHER] Other (please describe):

Changes

Feature1, tests, (and when applicable, API doc)
Feature2, tests, (and when applicable, API doc)

or

Fix1, tests
Fix2, tests

Does this close any currently open issues?
...
Any relevant logs, error output, etc?
...
Checklist
Before you submit a pull request, please make sure you have to following:
Essentials

[ ] PR's title starts with a category (e.g. [BUGFIX], [FEATURE], [BREAKING], [DOC], etc)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage and al tests passing
[ ] Code is well-documented (extended the README / documentation, if necessary)
[ ] If this PR is your first one, add your name and github account to AUTHORS.md

Comments

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

Codecov Report

Merging #18 (86dec9f) into master (1738403) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #18   +/-   ##
=======================================
  Coverage   91.26%   91.26%
=======================================
  Files           6        6
  Lines         126      126
=======================================
  Hits          115      115
  Misses         11       11

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 1738403...86dec9f. Read the comment docs.


Revise inversion

As mentioned in #241 there may be some for EPIC unnecessary things happening in the inversion module (see inversion.f90). Comments of @daviddritschel:

Do we always filter after calling lapinv1? If so, could we incorporate the filter into that subroutine and perhaps save an extra loop?$
Again I wonder if we can incorporate this into diffx ... above, but we do use unfiltered velocity below for advection. Something to come back to: do we really need to do this? In MPIC, we did it because we felt there was not enough small-scale mixing. It might be different in EPIC.
Should we make as a 4D array like vortg? It would take some careful re-coding to use indices 1,2,3 for the x,y,z components of everything, but it might make the code more readable. But I see that we use a lot of temporary arrays repeatedly, and this may be more memory efficient

[ ] #257
[ ] #258
[ ] #259
[ ] #260


drivers/sensors/gnss: Fix deactivate failure when using both topic and device

Summary
drivers/sensors/gnss: Fix deactivate failure when using both topic and device
Deactivate lower driver fails when both uORB topic and driver device are subscribed and opened. (crefs has increased to 2)
Impact
drivers/sensors/gnss:
Testing

Selftest with customized board.
NuttX CI

@Donny9 Could you review this PR please?


Add support for user_country to oauth2_authorize_url

The oauth2_authorize_url function on the WePay::Client class does not currently support the user_country parameter, which is necessary to support Canadian merchants in the OAuth2 flow. This pull request adds that parameter in the same format/style as the existing parameters are handled for that function. See https://www.wepay.com/developer/reference/canadian-users for more details.
I've updated the version and added the appropriate documentation.
It does not appear that this repo has an existing test framework, so I tested this manually with my local version of EverButton. Also, the keybase code signing API is currently deprecated.
Thanks!

Also, it looks like someone removed the gemspec from the repository. This seems dangerous, and will also prevent users from specifying this repo (or forks of this repo) as the source for the gem in their gemfile (which can be useful for testing).


Support embedded AspNetCore Web API in DotNet Native UWP using TestServer

Use Case
We have a UWP LOB App designed to talk to an AspNetCore Web API server. Though we are working on server implementations for both local network IIS and Azure, we would also like to be able to provide a MS Store APP that works standalone with as much shared code as possible.
The choice of a MS Store UWP APP would enable us to have an almost frictionless install for single users (which are a big part of our intended market of micro-businesses) but requires that the app be able to pass DotNet native compilation.
Preferred Solution
The preferred solution is that we would like to embed the back-end logic, including EF Core database context, in the UWP App and to then host that using TestServer inside the UWP Process. We would then get maximum code re-use and be able to support both the embedded (local) use case as well as remote (networked) servers with one application.
Alternatives
The first approach we considered was to separate the server Web API controller logic from the pure business logic and database context, use MediatR as a commanding layer in the client and be able to compile the UWP app using the shared code without the need for AspNetCore. This approach proved expensive in terms of extra layers of code to allow supporting this façade approach as well as pure HttpClient to server comms.
The other approach we have considered is to look to providing a separate install for the server component but we've found that for a lot of our users this is just too difficult as they aren't particular computer savvy - they really just want to download it from the store and get cracking. A similar approach would be just to provide a classic cloud backend but that requires investment in terms of making the server multi-tenant, payment and billing issues and ultimately the app targets very sensitive data and we feel that potential users won't want to immediately incur cloud hosting fees.
Progress
We have actually made substantial progress in getting the preferred solution to work (currently using Mvc 2.1.3):

Instead of using automatic discovery of DLLs during startup (which isn't supported on UWP DotNet Native) we use the ApplicationPartManager and ApplicationPartFactory to enumerate the project DLLs (thanks to leads from #2116).
Instead of using full fat AspNetCore.Mvc we only use AspNetCore.Mvc.Core
The final obstacle was the async actions on controllers were throwing PlatformNotSupported. We tracked this down to the following lines in AwaitableInfo (from the Microsoft.Extensions.ObjectMethodExecutor.Sources NuGet package) :

https://github.com/aspnet/Extensions/blob/d2f4c6a2ed30be5fae6ec166bfb7a3073c9f1d17/src/Shared/src/ObjectMethodExecutor/AwaitableInfo.cs#L77-L99
The issue seems to be that GetRuntimeInterfaceMap() just doesn't work under DotNet Native. We have forked Mvc.Core  and changed the class to use the following:
https://gist.github.com/bridgesquared/c355b5afbc91592cecdcf8b2e2e6cdec
Where instead of using GetRuntimeInterfaceMap() we just use GetRuntimeMethods() which is supported. This works for us, I know the fix isn't theoretically solid because in theory an awaitable type could have multiple methods name OnCompleted or UnsafeOnCompleted but in practice that seems very unlikely, if not impossible.
So I'm looking to see whether we can get AwaitableInfo tweaked so that it will work on DotNet Native. This would mean we wouldn't have to fork Mvc :-)
It seemed right to start the issue here, but can move it over to the Extensions repo if that's preferred.
Look forward to hearing your thoughts. Thanks

Have you read https://github.com/aspnet/Announcements/issues/324 yet about the 3.0 framework plans?

Closing as we don't plan to support .NET Standard in ASP.NET Core 3.0.


[SPARK-24525][SS] Provide an option to limit number of rows in a MemorySink

What changes were proposed in this pull request?
Provide an option to limit number of rows in a MemorySink. Currently, MemorySink and MemorySinkV2 have unbounded size, meaning that if they're used on big data, they can OOM the stream. This change adds a maxMemorySinkRows option to limit how many rows MemorySink and MemorySinkV2 can hold. By default, they are still unbounded.
How was this patch tested?
Added new unit tests.

Can one of the admins verify this patch?

@jose-torres @brkyvz for review

Can one of the admins verify this patch?

Can one of the admins verify this patch?

ok to test

Jenkins add to whitelist

jenkins add to whitelist

Test build #91796 has started for PR 21559 at commit f981cb8.

Test build #91799 has started for PR 21559 at commit 4ab9bda.

Test build #91796 has finished for PR 21559 at commit f981cb8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/91796/
Test PASSed.

Test build #91799 has finished for PR 21559 at commit 4ab9bda.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/91799/
Test PASSed.

Test build #91861 has started for PR 21559 at commit b2ef59c.

Test build #91864 has started for PR 21559 at commit 25d6de1.

lgtm

Test build #91861 has finished for PR 21559 at commit b2ef59c.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/91861/
Test PASSed.

Merged build finished. Test PASSed.

Test build #91868 has started for PR 21559 at commit e5b6175.

Test build #91864 has finished for PR 21559 at commit 25d6de1.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
trait MemorySinkBase extends BaseStreamingSink with Logging

Test build #91868 has finished for PR 21559 at commit e5b6175.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/91868/
Test PASSed.

Merged build finished. Test PASSed.

Test build #91926 has started for PR 21559 at commit 0402b60.

Test build #91926 has finished for PR 21559 at commit 0402b60.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/91926/
Test PASSed.

Merged build finished. Test PASSed.

Thanks! Merging to master!


Add support for cloud search service application

xSPSearchServiceApp needs to add an option to enable to cloud search service application. This can be configured in a search service app by adding the CloudIndex option:
New-SPEnterpriseSearchServiceApplication -Name $SearchServiceAppName -ApplicationPool $appPool -DatabaseServer $DatabaseServerName -CloudIndex $true

The change should check for the August 2015 Public Update (PU) for SharePoint Server 2013  http://support.microsoft.com/kb/3055009 before allowing that flag to be used.

The code for this is in #209 but we need to separate it out from the other changes in that PR, so it will likely be closed there and opened as a new PR


GoogleClientSignInFaildErrorException. (The sign in attempt didn't succeed with the current account)

I did all the steps as per the document but I get application crash.
I have attached crash report.
Plugin.GoogleClient.Shared.GoogleClientSignInFailedErrorException
The sign in attempt didn't succeed with the current account.
The above Exception I got from the Visual studio.
Screenshots

Smartphone:

Device: OnePlus 3T, Redmi Y2
OS: Android
Version: v8.0.1

Desktop

Device: MacBook Air
OS : macOS v10.14
Visual studio v7.6.10

two things from my side

Have you registered your debug and release SHA1 in google console
Make sure your package name should be correct in google console.

I assume this is basically not from this library, its from configuring your app with google developer console

I have double check that..

Yes, I have register the SHA1
Yes, 100% I am sure both the package names are same

Please check this sample
https://drive.google.com/open?id=1uB1FT-FaHDEapr9H-M4QDRUTIV4TIGBw

Any updates on this issue?


Choosing which properties to serialize?

With the symfony serializer (or JMS), you can either use groups or config to dictate which properties should be serialized.
Can we do the same thing here?

Yes. See the example of the documentation:

stop properties being serialized:  hide_properties
renaming properties is done with:  aliased_properties

# app/config/serializer/acme_domain_dummy_post.yml

mapping:
  class: Acme\Domain\Dummy\Post
  alias: Message
  aliased_properties:
    author: author
    title: headline
    content: body
  hide_properties: []
  id_properties:
    - postId
  urls:
    self: get_post ## @Route name
    comments: get_post_comments ## @Route name
  relationships:
    author:
      related: get_post_author ## @Route name
      self: get_post_author_relationship  ## @Route name

Are hidden properties still processed by the system, just hidden from the final result?

This might be the cyclical reference Doctrine entities have. Hidden properties are not transformed but are initially read at the time being.
I'm working on this. I know I can fix it, but it's hard because of the Doctrine Proxies. Even the people at Doctrine are working on fixing this as it's a major concern for many. Symfony 2 managed to work around this with their serialized, so I must investigate and apply the fix.
Meanwhile you should use the main approach, which is mapping data to a new object and serialize that, as other Symfony packages are doing. I'm sorry =\

All good, this is an amazing library :).

I'm still hoping to add more features which will make your life even easier :+1:

Hi there, sorry for commenting on a closed issue.
¿Could this be the reason I'm getting Error: Maximum function nesting level of '1000' reached, aborting! when serializing a Doctrine entity? As far as I could dig it had something to do with serializing doctrine's PersistenCollection.
¿Could it be possible to integrate the library with Symfony's Serializer component?
Finally, do you have any links to packages using that other approach? I could use an example. Thanks in advance :smile:

Ohh Doctrine...
On the mean time, you've have to create an Adapter/Transformer and build an object that does not share the problems of Doctrine cyclic class dependencies...
I'm working on a solution for this

Got it, thanks!


(Fix) Send form fails to load

This is fixed by fixing the material-ui/lab dependency to version 4.0.0-alpha.39
The problem:

Travis automatic deployment:
https://pr574--safereact.review.gnosisdev.com

What was the problem in the newer version of material ui lab?

@mikheevm, I uploaded the PR description with @francovenica example.

I mean why the newer version didn’t work out. Did they change an api? Did they introduce a bug?

I mean why the newer version didn’t work out. Did they change an api? Did they introduce a bug?

@mikheevm, it was crashing with an Object(...) is not a function error and it was from within the Autocomplete package. Nothing to do with the implementation so far

@fernandomg got it. Just checked the releases of material-ui/lab and couldn't find any change related to this, so it looks like they introduced a bug. Do you mind creating a bug report in their repo?

@fernandomg got it. Just checked the releases of material-ui/lab and couldn't find any change related to this, so it looks like they introduced a bug. Do you mind creating a bug report in their repo?

yes, no problem

There were a few bugs introduced in the linting PR, I just fixed them in https://github.com/gnosis/safe-react/pull/574/commits/8fedee14b75df11cd5bb4d585f6398ad8cd9acc7
Please, @francovenica can you re-check/review that the safe is not breaking anymore?

Also, @mikheevm I fixated the web3connect version (https://github.com/gnosis/safe-react/pull/574/commits/0072be8adf4e4e0327a9efa01b75c0d5b4b24c7a). Because, as @nicosampler properly pointed to me, with the ^ it's still downloading the latter version.

Travis automatic deployment:
https://pr574--safereact.review.gnosisdev.com

Travis automatic deployment:
https://pr574--safereact.review.gnosisdev.com

@fernandomg @mikheevm
Tested this actions that were causing the page to crash
Send funds
Adding owners
Removing owners
So I tested em all and I had no issues. Tested Custom Tx as well just in case.
The PR is ok for me


On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

When I'm trying to render a view on Windows, I'm receiving the following error.
I've tried using a file:// url in the viewsDirectory, but that itself presents a different error (because of path.resolve giving the wrong destination)
Error:
Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
Triggered by:
https://github.com/pmb0/express-tsx-views/blob/9f1a9d90b3714bc0a1c8eff9387ebd63c38bcb4e/src/react-view-engine.ts#L57C57-L57C57
Should filename be wrapped in a url.pathToFileURL(path) call?

Just tested the same code using Debian (WSL) on the same computer. The code worked as expected.


DOCUMNENTATIONS: Readme Badge Versioning

@hassanhabib Please review and merge.

TY
On Sun, Dec 31, 2023, 3:34 PM Christo du Toit @.***>
wrote:

@.**** approved this pull request.
—
Reply to this email directly, view it on GitHub
https://github.com/hassanhabib/LeVent/pull/25#pullrequestreview-1799697723,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKD4KO7LRNSUPJJO7AHPYZ3YMHY77AVCNFSM6AAAAAA2SBGVFSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOOJZGY4TONZSGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

TY
On Sun, Dec 31, 2023, 3:34 PM Christo du Toit @.***>
wrote:

@.**** approved this pull request.
—
Reply to this email directly, view it on GitHub
https://github.com/hassanhabib/LeVent/pull/25#pullrequestreview-1799697723,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKD4KO7LRNSUPJJO7AHPYZ3YMHY77AVCNFSM6AAAAAA2SBGVFSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOOJZGY4TONZSGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

Closed as obsolete, in favor of PR #29


Assignment to constant variable error in dotnet-test module

Not sure how this one slipped by in my recent refactorings 😓
[and-cli] Full command:dotnet Cli.dll test db migrate
[Dotnet.Cli] Migrating test database 'CodesApi-Test'...
[Dotnet.Cli]  - Successfully migrated test database.
[and-cli] Found 9 test projects in the dotnet/api solution...
(node:99084) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.
    at _buildCommandString (C:\Users\bscot\proj\node_modules\and-cli\modules\dotnet-test.js:92:10)
    at Object.runProject (C:\Users\bscot\proj\node_modules\and-cli\modules\dotnet-test.js:177:31)
    at testProjects.map (C:\Users\bscot\proj\node_modules\and-cli\modules\dotnet-test.js:236:18)
    at Array.map (<anonymous>)
    at Object.runSolutionByProject (C:\Users\bscot\proj\node_modules\and-cli\modules\dotnet-test.js:235:38)
    at require.run (C:\Users\bscot\proj\node_modules\and-cli\and-cli-dotnet-test.js:44:20)
    at Object.module.exports.run (C:\Users\bscot\proj\node_modules\and-cli\command-runner.js:10:11)
    at Object.<anonymous> (C:\Users\bscot\proj\node_modules\and-cli\and-cli-dotnet-test.js:2:29)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
(node:99084) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:99084) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

The args variable on line 73 should actually be declared with let, not const.

Fixed in v1.2.0


Merging "Merging" into dev

This completes the merging of features added in "Integration" with the features added in "dev"


docs: fix migration guide link in vite v3 news

Description
This PR fixes the migration guide link in the Vite v3 announcement. Due to the vite v4 release, the link now points to the v3 -> v4 migration guide instead of the expected v2 -> v3 guide.
I was migrating from Vite 2 and didn't even notice I was reading the wrong guide -- oops!

What is the purpose of this pull request?

[ ] Bug fix
[ ] New Feature
[X] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[X] Read the Contributing Guidelines.
[X] Read the Pull Request Guidelines and follow the PR Title Convention.
[X] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[X] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[X] Ideally, include relevant tests that fail without this PR but pass with it.

Thanks!


OPTGROUP nesting level > 1

Acording to W3 the specs states that only one level of nesting is allowed. But it also sugest that "Implementors are advised that future versions of HTML may extend the grouping mechanism to allow for nested groups (i.e., OPTGROUP elements may nest). This will allow authors to represent a richer hierarchy of choices."
It would be interesting to track the status of that features among different browsers.

That's HTML 4, afaik HTML 5 does not permit this extension.

Yeah, since HTML 5 doesn't allow it and has been out for a while now I don't think it's worth tracking.


Add infrastructure for generating API ref docs from the Blazor NuGet packages

We shouldn't have the Blazor assemblies checked into the docs repo. Instead we should have some automation that restores the Blazor packages and extracts the Blazor assemblies and XML doc files that we can then run docfx on.

@danroth27 Since this will be resolved automatically with the move to official docs, do you still want to keep this as an open work item?

Nah


Suggestion: Add Blue Color Option to Obsidian Sunset Theme

Hi lczerniawski,
First, I want to say how much I appreciate the Obsidian Sunset Theme theme. The orange color scheme is vibrant and suits my needs really well.
I have a suggestion that I believe could enhance the theme even further. Would it be possible to add a blue color option as an alternative? I’ve noticed that the native PyCharm dark theme uses blue for buttons and other elements, which provides a nice contrast and complements the overall dark theme effectively. Incorporating a similar blue option could offer users additional customization choices and improve the versatility of the theme.
you can let the user choose between orange or other colour
If you think this is a feasible idea, I’d be happy to assist with testing or provide feedback on any implementations.
Thank you for considering this suggestion and for all your hard work on the theme!
Best regards,

Hi @hudy0,
It's great to hear that you like it, it's much appreciated!
I hadn't thought of adding any other colours before, but if you find that useful, I will be happy to add it.
As it is your suggestion, do you want to choose the colour for the accent to suit your taste?

Hi @lczerniawski
Yes it's gone be a great idea switching between different colours
Buttons can be blue or orange
Someone can switch between colours they like

@hudy0 I just pushed version 2.0 that contains blue color accent, let me know how you like it.

@lczerniawski  Hey, I just updated to V2. It looks great so far!

Keep this issue open for any future feedback ☘


Support Admin users to operate Authentications through API/CLI

Gitea version (or commit ref):  index.docker.io/gitea/gitea:latest
Git version: not relevant
Operating system: not relevant
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[x] SQLite

Can you reproduce the bug at https://try.gitea.io:

[x] Yes (provide example URL)
[ ] No
[ ] Not relevant

Log gist:

Description
To provide better automation and integration during deployment, I suggest adding Authentication APIs reserved to Administrators. This would greatly improve automated deployment methods having a Gitea deployed and running using our Authenticated method of choice.
...

./gitea admin --help
NAME:
   Gitea admin - Command line interface to perform common administrative operations

USAGE:
   Gitea admin command [command options] [arguments...]

COMMANDS:
     create-user         Create a new user in database
     change-password     Change a user's password
     repo-sync-releases  Synchronize repository releases with tags
     regenerate          Regenerate specific files
     auth                Modify external auth providers

and api provides many ways to create/edit/things for admin too:
https://try.gitea.io/api/swagger#/admin


Transaction example doesn't work with StrictRedisCluster

Checklist

Python version: 3.8
Using hiredis or just Python parser: hiredis
Using uvloop or just asyncio event loop: uvloop
Does issue exists against the master branch of aredis? yes

Steps to reproduce
I'm initializing a StrictRedisCluster against an AWS ElastiCache Redis cluster, using skip_full_coverage_check and decode_responses.
When I run the example:
async with await r.pipeline() as pipe:
    while 1:
        try:
            # put a WATCH on the key that holds our sequence value
            await pipe.watch("OUR-SEQUENCE-KEY")
            # after WATCHing, the pipeline is put into immediate execution
            # mode until we tell it to start buffering commands again.
            # this allows us to get the current value of our sequence
            current_value = await pipe.get("OUR-SEQUENCE-KEY")
            next_value = int(current_value) + 1
            # now we can put the pipeline back into buffered mode with MULTI
            pipe.multi()
            pipe.set("OUR-SEQUENCE-KEY", next_value)
            # and finally, execute the pipeline (the set command)
            await pipe.execute()
            # if a WatchError wasn't raised during execution, everything
            # we just did happened atomically.
            break
        except WatchError:
            # another client must have changed 'OUR-SEQUENCE-KEY' between
            # the time we started WATCHing it and the pipeline's execution.
            # our best bet is to just retry.
            continue

current_value is an instance of StrictClusterPipeline instead of an int. Looks like the watch doesn't make the pipeline go into immediate execution mode?
Expected behavior
The pipeline is put into immediate execution mode.
Actual behavior
The pipeline returns self.

It seems calling pipe.watch does nothing except log a warning ('Call WATCH from a Pipeline object'), so I'm not sure how to proceed.