Riddle::CommandFailedError (Sphinx command failed to execute)

Hi, I am using ts version 3.1.3 with Sphinx ver 2.2.11-id64-release on Ubuntu 14.04.4 LTS on Rails 4.2
Running rake ts:rebuild works perfect however, production server have the following error log:

F, [2016-12-31T08:50:55.798962 #2042] FATAL -- :
Riddle::CommandFailedError (Sphinx command failed to execute):
app/controllers/profiles_controller.rb:69:in block in create'   app/controllers/profiles_controller.rb:68:in create'

p.s. I am using delta indexing on profile model
commands

searchd -v

rake ts:rebuild

works perfectly
Any idea what can cause the error ?

I don't suppose you can get a full stack trace of the error? In particular, any lines referencing either TS or the Riddle gem.
Also, I'd recommend upgrading TS to v3.3.0, which makes better use of the latest Riddle release and the error messages may be a little more helpful then. I don't believe there are any breaking changes, but it's definitely worth reading the release notes for v3.1.4, v3.2.0 and v3.3.0.
But more generally: are you using any background worker to process the deltas? Or are you using the default approach? Have deltas worked in the past, or is this the first time you're using them?

It's been a few months since this issue was last referenced, so I'm going to close it. Feel free to discuss the issue further, though - and if we need to, I can always re-open it.

I'm having this error when running my tests. Here's the stack trace:

EXCEPTION: Sphinx command failed to execute
BACKTRACE: /Users/keith/.rvm/gems/ruby-2.4.2/gems/riddle-2.2.0/lib/riddle/execute_command.rb:23:in call' /Users/keith/.rvm/gems/ruby-2.4.2/gems/riddle-2.2.0/lib/riddle/execute_command.rb:5:in call'
/Users/keith/.rvm/gems/ruby-2.4.2/gems/riddle-2.2.0/lib/riddle/controller.rb:29:in index' /Users/keith/.rvm/gems/ruby-2.4.2/gems/thinking-sphinx-3.4.1/lib/thinking_sphinx/controller.rb:8:in block (2 levels) in index'
/Users/keith/.rvm/gems/ruby-2.4.2/gems/thinking-sphinx-3.4.1/lib/thinking_sphinx/guard/files.rb:14:in call' /Users/keith/.rvm/gems/ruby-2.4.2/gems/thinking-sphinx-3.4.1/lib/thinking_sphinx/guard/files.rb:3:in call'
/Users/keith/.rvm/gems/ruby-2.4.2/gems/thinking-sphinx-3.4.1/lib/thinking_sphinx/controller.rb:7:in block in index' /Users/keith/.rvm/gems/ruby-2.4.2/gems/thinking-sphinx-3.4.1/lib/thinking_sphinx/indexing_strategies/all_at_once.rb:5:in call'
/Users/keith/.rvm/gems/ruby-2.4.2/gems/thinking-sphinx-3.4.1/lib/thinking_sphinx/controller.rb:6:in index' /Users/keith/.rvm/gems/ruby-2.4.2/gems/thinking-sphinx-3.4.1/lib/thinking_sphinx/deltas/index_job.rb:7:in perform'

Hi Keith,
I'm not sure why this is happening, but could you try rescuing the Riddle::CommandFailedError error, and then outputting the command_result value from it? It may hold more clues. So, something like the following in your test:
begin
  # do the things that invoke the delta indexing
rescue Riddle::CommandFailedError => error
  puts "Command Result: #{error.command_result}"
end

Ah, thank you; I've found the suspicious index. I'm going through a rails upgrade to 5.1, so I'm going to check my index definition for any breaking changes

Hi Pat,
I'm sorry I didn't get back immediately. I had some other things to attend to. The update on this issue is that I have gone back to a more stable version of riddle(1.5.10). I am now using thinking sphinx 3.1.0 which works with riddle 1.5.10. My indexing on production went through successfully after that. So, there seems to be some bug because of changes between riddle 1.5.10 and 2.2 I guess.
I was not able to replicate the issue on my local machine. So I just thought I would let you know. Riddle is the culprit. Also, it did not give a descriptive error message. It just said Command failed to execute. Hope this helps. Let me know if I can help in any other way.

I'm having much the same issue with TS 3.4.2 (riddle 2.3.0).
$ bundle exec rake ts:restart
Sphinx 3.0.1 (commit 7fec4f6)
Copyright (c) 2001-2017, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file 'shared/sphinx/development.sphinx.conf'...
WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: 17 more warnings skipped.
stop: successfully sent SIGTERM to pid 19257

The Sphinx stop command failed:
  Command: searchd --pidfile --config "shared/sphinx/development.sphinx.conf" --stopwait
  Status:
  Output:  See above

There may be more information about the failure in log/sphinx.log.
rake aborted!
TypeError: no implicit conversion from nil to integer
/home/andrew/.rbenv/versions/2.1.3/bin/bundle:23:in `load'
/home/andrew/.rbenv/versions/2.1.3/bin/bundle:23:in `<main>'
Riddle::CommandFailedError: Sphinx command failed to execute
/home/andrew/.rbenv/versions/2.1.3/bin/bundle:23:in `load'
/home/andrew/.rbenv/versions/2.1.3/bin/bundle:23:in `<main>'
Tasks: TOP => ts:restart => ts:stop
(See full trace by running task with --trace)

The log file is surprisingly empty:
# log/sphinx.log
[Tue Feb 27 07:34:49.538 2018] [15217] watchdog: main process 15218 forked ok
[Tue Feb 27 07:34:49.539 2018] [15218] listening on <IP_ADDRESS>:9312
[Tue Feb 27 07:34:49.590 2018] [15218] WARNING: No extra index definitions found in data folder
[Tue Feb 27 07:34:49.591 2018] [15218] accepting connections
[Tue Feb 27 07:34:49.591 2018] [15230] prereading 22 indexes
[Tue Feb 27 07:34:49.591 2018] [15230] prereaded 22 indexes in 0.000 sec

lsof shows that sphinx actually was successfully restarted, and I can confirm that TS callbacks etc still work correctly.
$ lsof -i :9312
COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
searchd 15218 andrew    7u  IPv4 107732      0t0  TCP localhost:sphinxapi (LISTEN)

My production environment (same version of Ruby, TS, Sphinx and Riddle) has exactly the same issue, so it may well be an incompatibility with the version of Ruby that I'm running? (I'm gradually upgrading, but it is a fairly lengthy process.)
For the moment, it isn't the end of the world, but it would be nice to be able to start Sphinx from a Procfile without having to ignore the exit code. :)
Any ideas?

It looks like my issue is caused by Sphinx itself, not TS, as Sphinx has a segmentation fault and crashes. The daemon (running on ports 9312 and 9306) remains active.
c$ searchd --pidfile --config "shared/sphinx/development.sphinx.conf"
Sphinx 3.0.1 (commit 7fec4f6)
Copyright (c) 2001-2017, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

listening on all interfaces, port=9312
listening on all interfaces, port=9306
WARNING: No extra index definitions found in data folder
Segmentation fault (core dumped)

I'll keep looking. :)

Hmm, wonder if it's a change in behaviour with Sphinx 3.0.1? 3.0.2 was just released a few days ago, maybe it's worth giving that a shot and seeing if it behaves the same way?

Thanks @pat. I've checked version 3.0.2 (and the glibc 2.12 version, as my dev machine is running on Fedora 26) to no avail. When I get another chance I'll run strace/gdb against it again to see if I can work out what is going on.
Thanks once again!

Definitely sounds like a Sphinx issue (Riddle uses the exit status to determine whether there's a problem) - though the seg fault you shared in the latest output wasn't in your previous one? The source for the v3 releases of Sphinx aren't public (yet? ever? 🤷♂), so that's another challenge for debugging…


Skipped setup for camel-k using nexus deployment on ppc64le

For test TestMavenCASecret, as sonatype/nexus3:3.30.0 is not supported on ppc64le platform, need to skip the part of nexus deployment and use directly globally installed camel-k operator for integration.

Release Note
NONE

If we still want to maintain the test, we can skip it entirely when the platform detected is different than the one expected, as we're doing for openshift. In such case we can introduce some environment variable to control the behavior.


Gadm preprocessing and ingestion

General description
Small fix of gadm preprocessing and ingestion:

Replaces sql script with python (x100 faster) in preprocessing since we do not need any db ops to generate the intermediate csv
Fixes the copy from csv in ingestion forcing the input columns to avoid problems with missing columns
Updates h3ronpy to latest version

Testing instructions
Provide minimal instructions on how to test this PR.

Apart from the added feature / bug fix, check overall performance, styling...

Checklist before merging

[ ] Branch name / PR includes the related Jira ticket Id.
[ ] Tests to check core implementation / bug fix added.
[ ] All checks in Continuous Integration workflow pass.
[ ] Feature functionally tested by reviewer(s).
[ ] Code reviewed by reviewer(s).
[ ] Documentation updated (README, CHANGELOG...) (if required)

somehow messed with the requirements and still tweaking and testing locally so it works without unexpected crashes


Abstract how our webhook implementations target things.

This change introduces a targeter.Interface abstraction that we've been
using downstream to abstract the core logic of webhooks from the details
of how delivery to them is handled.
The most immediate benefit of this refactoring is that each of our webhooks
no longer needs direct knowledge of caBundle and the secret logic, which
is consolidated in the provided implementations.  So for examples, folks
could now provide an implementation of targeter.Interface that receives
its caBundle information in a wholly different way (e.g. mounted from the
filesystem).
This encapsulation of how the WebhookClientConfig is produced also enables
folks to produce these configurations in more imaginative ways. For example,
I have included an implementation that allows folks to host a webhook with a
BasePath(), produce configs for "names" under this BasePath() and
then extract the "name" being handled when receiving a webhook request.
This encapsulation also lets folks produce WebhookClientConfig blocks that
don't even need caBundle and leverage URL blocks, if they are hosting
things with public-CA TLS-terminated endpoints (e.g. as a ksvc).

Changes

:broom: Update or clean up current behavior
/kind cleanup

Release Note

Docs

/cc @n3wscott

Do you have an example usage of the DispatchingInterface? My guess is you're using it to
support multiple webhooks within a single MutatingWebhookConfiguration. If that's the case
why not just have the GetConfig include the name of the webhook?

Nothing public yet, but yes.  It isn't about multiple webhooks within a single MutatingWebhookConfiguration, it's sort of the opposite.  We have N webhook configurations pointed at /base/{name} and want to be able to dispatch to an appropriate configuration based on the request path.  This is a simple case, it gets more fun from there.
The problem with including name directly in the interface for fetching the client config is that it assumes one particular implementation, to spitball a little bit:

For NewFixed the name parameter would be meaningless (it's the same config for all names).
(Devil's advocate a bit) Where name is sufficient for reading named configuration with a particular type, it is insufficient for say a polymorphic namespaced resource where I might want (kind, namespace, name) to determine the config to process.

I don't believe we're leveraging NewDynamic downstream as-is, since I think I wanted a few changes not easily upstreamed, so I am happy to remove it if it's confusing things, but I thought it might help illustrate a second implementation.  The main thing I'm after is a good targeter.Interface (or w/e we call it) to encapsulate how we slot in different logic for producing these configs.
I'm not in any particular rush here, so marinate on it a bit, and maybe I can set up some time next week to hop on a call (I can check if the WG call slot works, if that's best).

I guess the name I was referring to was some combination of the webhook metadata.name and the webhooks[*].name and for conversion webhooks that would be just the metadata.name
That's the final destination for these webhook configs. So for me it's easy to reason our webhooks scan the current webhook spec and delegate to the helper with some additional context.

(Devil's advocate a bit) Where name is sufficient for reading named configuration with a particular type, it is insufficient for say a polymorphic namespaced resource where I might want (kind, namespace, name) to determine the config to process.

Given this - Get probably needs the entire context of the target webhook -
ie. type & object meta, webhook name for *WebhookConfiguration and the CRD definition for conversion webhooks

We have N webhook configurations pointed at /base/{name} and want to be able to dispatch to an appropriate configuration based on the request path. This is a simple case, it gets more fun from there.

But what's putting the Name on the context? I want to avoid these hidden APIs semantics on context objects. Thus I hope improvements don't continue this pattern.

For NewFixed the name parameter would be meaningless (it's the same config for all names).

Yup - I think that's fine - ie. serving's webhook uses the same config for validation, defaulting and configmaps etc.


Android Compose Add a Scrollable List

Name of the Codelab or Codelab URL
https://developer.android.com/codelabs/basic-android-kotlin-compose-training-add-scrollable-list?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-3-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-training-add-scrollable-list#2
Describe the problem
In this code snippet:

import com.example.affirmations.data.Datasource
@Composable
fun AffirmationsApp() {
val layoutDirection = LocalLayoutDirection.current
Surface(
Modifier = Modifier
.fillMaxSize()
.statusBarsPadding()
.padding(
start = WindowInsets.safeDrawing.asPaddingValues()
.calculateStartPadding(layoutDirection),
end = WindowInsets.safeDrawing.asPaddingValues()
.calculateEndPadding(layoutDirection),
),
) {
}
}

function is called AffirmationApp() before in the code, so compiler doesn't recognise it. And first Modifier has to be written in lowercase (modifier = Modifier).
Thanks for the great job doing this training programs! Please do not missunderstand my intentions pointing errors. I just do it as a way to collaborate, not complain.

Yeah, it is correct, but this repository does not appear to be regularly managed.


Fix space in gas turbine tooltip

I'll be honest I have no clue how to do that, I just know enough to find the string and add a space 😛 - searched around the repo, couldn't find a function called formatNumbers.

it's at GT_Utility.formatNumbers

@Connor-Colenso can you help here ?

@the-emerald your turn now


CastError: Cast to ObjectId failed for value "" at path "_id"

when mongoose model :
{ type: mongoose.Schema.Types.ObjectId, ref:'User' }
save recode mongo ok but notify error message.
Check log: CastError: Cast to ObjectId failed for value "60431cda5212971347249673,6043153626c524444533d6d8" at path "_id"

i have the same issue 🤧

same here.

const mongoose = require("mongoose");

const clientSchema = mongoose.Schema({
  belongsTo: { type: String, ref: 'User', required: true },
  toAddress: { type: String, max: 128, required: true },
  toCity: { type: String, max: 128, required: true },
  toName: { type: String, max: 128, required: true },
  toPib: { type: String, max: 128, required: true },
});

module.exports = mongoose.model("Client", clientSchema);

This is an example model. It tries to convert the belongsTo to objectId because it references to User model. You can fix this error by removing this ref and leaving it like this.
const mongoose = require("mongoose");

const clientSchema = mongoose.Schema({
  belongsTo: { type: String, required: true },
  toAddress: { type: String, max: 128, required: true },
  toCity: { type: String, max: 128, required: true },
  toName: { type: String, max: 128, required: true },
  toPib: { type: String, max: 128, required: true },
});

module.exports = mongoose.model("Client", clientSchema);

If someone knows any other solutions, because I'd love a solution where we can add the ref and it would be a link to the other document.


Uncatchable error is thrown if undefined is given on query filter (JS built version)

Environment details

OS: macOS Mojave
Node.js version: v10.16.0
npm version: 6.9.0
@google-cloud/datastore version: 4.2.0
Built version

Steps to reproduce
If we give undefined to a query filter, an uncatchable error is thrown: Error: Unsupported field value, undefined, was provided., and program crashes.
Problem occurs only in built version, because Typescript doesn't compile with this scenario:
let query = new FakeQuery();
query.namespace = 'namespace';
query = extend(true, new FakeQuery(), query);
query.filter('myfield', undefined); // => error TS2345: Argument of type 'undefined' is not assignable to parameter of type '{}'.

To be able to catch the error, the library instead of doing:
// src/request/ts: l.788
stream.once('reading', () => {
  makeRequest(query);
});

could do this:
// src/request/ts: l.788
stream.once('reading', () => {
  try {
    makeRequest(query);
  } catch (err) {
    stream.emit('error', err);
  }
});

For Typescript it doesn't change anything. But for the JS built version, the error becomes catchable.
I can send a pull request if you want.

👋 @godjirax  thanks for opening an issue about this. I went ahead and submitted a PR (#492) that I believe will resolve your issue. Feedback would be most welcome!


Add jose extension

Description

Personalized Assistants: Custom prompts for each user.
Snippets Creation: Small tasks for conversation.
Conversation History: Keep track of chats.
Chat with Specific Assistant: Use snippets.
Webhook Response: Connect to Make/n8n.
API Communication: Interact with your API.
Local Binary Script Communication: Chat with local scripts.

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Hi!
Is this extension ready for review? I see that you added a few more commits after the first submission and I wonder if you are done?

@mil3na
current functionality is closed and ready for review.
Further features are in progress and will be delivered in subsequent commits.

Hi!
Thank you for your contribution! My name is Milena and I will be reviewing it today.
A few comments:

What is the difference between the Chat and Chats command? If the second one is the history, I would name it like so.
What is the difference between your extension and the PromptLab extension? https://www.raycast.com/HelloImSteven/promptlab
We also already have a ChatGPT extension and I would like to hear what your extension brings that is not fufilled by those https://www.raycast.com/abielzulio/chatgpt
When entering the Chat command, I get the following error and my clipboard is immediately pasted on the input param:

Can you please check my comments and tell me what you think? Cheers!

Zasadniczo to niczym, wszystkie opierają się na tym samym. Dać LLM w Raycast i według mnie wszystkie robią i będą to robić dobrze.
Główne cechy Jose to:

integracja z centralnym źródłem - (assystenci i snippety są pobierani przez api tak aby utrzymywać ich strukturę w jednym miejscu), w przyszłości będą to również intencje (na potrzeby agentów)
komunikacja po api oraz webhooki - to jest podobne wszędzie w Jose jest wysyłana tylko większa ilość danych aby mieć pełen context tego co się działo
komunikacja przez binnary file - mechanizm pozwala wskazać plik binnarny oraz wskazać że dany asystent ma się przez niego komunikować (pozwala to w łatwy sposób na korzystanie np z qdrant w sieci lokalnej lub zmieniać zachowanie asystenta)
jest też sporo miejszych zmian ale mniej znaczących

w przygotowaniu mam repozytoria które pokazują plik binnarny oraz api w nodeJS oraz golang.
Jose służy bardziej do celów grupowych, nie wymaga rekonfiguracji raycasta u każdego z użytkowników oraz daje możliwość zarządzania centralnym stanem.
Dodatkowo jego celem jest szersze spojrzenie na LLM i możliwości jakimi jest aktualnie wąsko specialistyczny asystent (konkretne zadanie) oraz mam nadzieje że już niedługo agent i jego możliwości.
Zasadniczo próbowałem dodać do ChatGPT powyższe możliwości ale zrozumiałem że zmiana zachowania aplikacji której celem jest wyłącznie uproszczona komunikacja z chatGPT (co robi bardzo dobrze) nie ma większego sensu. Dodawanie w nim funkcjonalności jakie otrzymał Jose spowodowały by nadmiar którego użytkownicy nie spodziewają się i zapewne nie chcą.
Stąd powstał Jose którego 1 wersja bazowała na zmodyfikowanym ChatGPT a aktualnie została przepisana na mój kod (mam nadzieje że nie taki zły).
Mam nadzieję że powyższa odpowiedź zaakceptuje Jose w repozytorium raycast i pozwoli na jego dalszy rozwój i dokumentowanie jego możliwości.

Hi! Thank you for your contribution! My name is Milena and I will be reviewing it today.
A few comments:

What is the difference between the Chat and Chats command? If the second one is the history, I would name it like so.
What is the difference between your extension and the PromptLab extension? https://www.raycast.com/HelloImSteven/promptlab
We also already have a ChatGPT extension and I would like to hear what your extension brings that is not fufilled by those https://www.raycast.com/abielzulio/chatgpt
When entering the Chat command, I get the following error and my clipboard is immediately pasted on the input param:

Can you please check my comments and tell me what you think? Cheers!

Basically it's nothing, they're all based on the same thing. Give an LLM in Raycast and in my opinion they all do and will do it well.
Jose's main features are:

integration with a central source - (assistants and snippets are downloaded via the API to keep their structure in one place), in the future these will also be intentions (for the needs of agents)
communication via API and webhooks - it is similar everywhere in Jose, only a larger amount of data is sent to have a full context of what was happening
communication via binary file - the mechanism allows you to indicate a binary file and indicate that a given assistant should communicate through it (this allows you to easily use, for example, qdrant in the local network or change the assistant's behavior)
there are also a lot of smaller changes, but less significant

I am preparing repositories that show the binary file and api in nodeJS and golang.
Jose is used more for group purposes, it does not require reconfiguration of the raycast for each user and allows for central state management.
Additionally, its goal is to take a broader look at LLM and the possibilities of currently a narrowly specialized assistant (specific task) and, I hope, soon an agent and its possibilities.
Basically, I tried to add the above capabilities to ChatGPT, but I realized that changing the behavior of an application whose goal is only simplified communication with chatGPT (which it does very well) does not make much sense. Adding the functionalities that Jose received would result in an excess that users do not expect and probably do not want.
Hence, Jose was created, the first version of which was based on a modified ChatGPT and has now been rewritten into my code (I hope it's not that bad  ).
I hope the above answer will accept Jose in the raycast repository and allow for further development and documentation of its capabilities.

@mil3na any news / comment ?

Sorry for the delay answering. I'm struggling to see a difference between this extension and what we already have. Do you mind provide an usecase that cannot be solved with the existing extensions?

@mil3na
Below is a list of what I see:

llm support: anthropic, cohere, groq, ollama, openai, perplexity
ability to switch between different llms within one context, changing "assistant" while maintaining history

llm: anthropic
llm: cohere
llm: groq
llm: ollama
llm: openai
llm: perplexity

ability to send a hook to the API both from the assistant level and from the snippet (useful when we save e.g. conversation history or want an event at the assistant level)
working with a binary file (local file with llm support)
working with the endpoint and a full stream of responses
trace support (single or simultaneous)

lunary
langfuse

support for graphic files at endpoints and binary files
support for a centralized repository providing assistants
support for a centralized repository providing snippets
sync with raycast ai (import)

Will such differences be enough?
If you have any questions, I will be happy to provide additional information.

I would love to hear @pernielsentikaer's opinion on this. In my eyes, these features can be implemented on the extensions we already have, if they don't have it already.

I don't know if adding more llms to (https://www.raycast.com/abielzulio/chatgpt) makes sense - this package focuses very much on GPT.
https://www.raycast.com/HelloImSteven/promptlab has also closed down very heavily on Anthropic and GPT, from what I can see.
The implementation of subsequent llms in these packages would involve a very large reconstruction and a potential error that could arise when trying to expand.
Personally, I would not like to make such a big change in these packages, the gpt and anthropic values are very strongly embedded there.

I have to agree with @mil3na here. I tried to set it up, but I'm not able to figure out what's going on. From a UX perspective, it's quite challenging to get started. I don't even know where to begin and I'm so confused

I 100% agree with the lack of UX.
I mainly wanted to provide functionality that users already use, not UX.
In the current version, this has been improved, messages about the lack of a key or another problem at the communication level have been added, editing assistants and snippets has been improved to make the form look better. A few UX changes have been made so that the messages about what happened do not get mixed up.
Generally, you can now see what is happening and why.
Below I am also sending a video of the operation to illustrate the entire functionality.
Currently, the whole thing works for models from the range: Anthropic, Cohere, Groq, Ollama, OpenAi, Perplexity
Video: https://streamable.com/mjl5hr
Is this behavior enough? @pernielsentikaer

Let me know what you think the problem is?
From what I see from users who use it, they don't have a major problem with the way it works.

I have introduced onboarding which explains the operation and guides you through the first configuration of the plugin
FYI @pernielsentikaer

How come you have users if the extension is not published yet? I find the UI confusing and I still think that the functionality is duplicated. I vote for closing this PR.

The functionality is used by several users by simply running npm run dev.
Please suggest if something needs to be changed, I will change it to pass the review.

Here's the thing: my suggestion would be to this extension to not exist. It is functionality that is already present in other extensions but with a worse UI. Maybe Per has a different opinion and actually have suggestions for getting this accepted.

I don't agree here, if something works for a certain range of users, I think that there is a point in having such an extension.
The extension is indeed extensive and offers more options than others (many models, many communications, etc.) but this is what users of this type of plugin require.
The current LLM market is so dynamic that focusing on one LLM does not make sense in my opinion and in the opinion of people who are currently testing it. These LLMs need to be combined into one working organism.
If we are to use raycast for this, jumping between one plugin for OpenA and another for A\ the third for Perplexity is very tiring.
Additionally, each extension is configured differently, each has a different webhook mechanism, each sends information differently and some do not have the functions that others have.
It is torture to maintain such an LLM system and manage it efficiently.
In the case of Jose, these problems remain in one tool that offers many functions and possibilities but has one main advantage - a coherent communication system for each LLM in the same interface.
Before building Jose I used chatgpt, ollama and perplexity (3 independent extensions) I wanted to use at least API communication, in each of them it works differently unfortunately. The huge amount of work for other systems and the lack of consistency led me and the current testers to the need to build something unifying.

I will leave a link to our guidelines here https://manual.raycast.com/extensions#:~:text=We want your extension to bring something that Raycast or other extensions don't provide yet.
I will leave to Per to make the final decision. Mine is not changed.

@pernielsentikaer any news?

Hi @tkowalski29 👋
I gave it another try and I'm still, unfortunately, lost. I followed the new onboarding and added a key for the LLM. I added my OpenAI demo key, but I still get an error

The onboarding provided more context. After successfully adding it, it remains in view. Pressing the escape key sends you back to the steps.
I'm not sure users of Raycast will find it easy to use. It feels incomplete, as mentioned earlier.

@pernielsentikaer I fixed onboarding, moved it as a separate command, now undo, esc and other elements work better than before in my opinion.
I also fixed the fix for openAI with key loading, now everything should be correct.
Please take a look again. I would like to get to the point where we have clarity as to whether the extension can be allowed into raycast. If we have consistency with this, I will run the entire application through the current test group again and I will catch up with the changes in external libraries (api and binaries) that are prepared to make the entire communication interface consistent

I can't tell you what it is, but the extension is too big and covers way more than it should, which makes the UI/UX feel bad. We already have multiple extensions in the store with this purpose, and this is too similar. The more I try it, the more confused I get, so I have to agree with @mil3na and say it's more suited for a private store.
Feel free to create an organization and serve it that way instead in the private store. This way, it's still possible for all your users to get updates for it. Could that work?


Include HACS

[x] Create hacs.jason
[x] Create info.md
[x] Update README.md
[x] Update docs (gifs, etc)

[x] Test with Custom repositories
[x] Pull request on HACS

hi, I cannot locate your themes pack inside HACS. followed your instructions.

@kegra Sorry. It's not showing up yet. But you can add it as "Custom repositories".
1 - Open HACS
2 - Click on Frontend
3 - Click on the menu in the upper right corner
4 - Go to the "Custom repositories" option
5 - Paste the link https://github.com/orickcorreia/caule-themes-pack-1
6 - Define the category as "Themes" and include
7 - Now the themes will be available for installation

it showed automatically just now after unrelated restart. Noteworthy after installing none of the themes worked until another HA restart although HACS usually only warns me of the need to restart when I add integrations not themes. In any case many thanks for the themes they're very eye pleasing!

It showed automatically now (perhaps earlier) after unrelated restart.
Noteworthy after installing none of the themes worked until another HA restart although HACS usually only warns me of the need to restart when I add integrations not themes. In any case many thanks for the themes they're very eye pleasing!

I made an issue for the HACS team about this.
HA has a service called "frontend.reload_themes", but that service doesn't work as well. HACS could try to use this service or alert the user that it will be necessary to restart for the themes to take effect, just as it does with integrations.


Cancelled patreons

Hi and thanks for this wrapper,
Is it possible to see the cancelled patrons ?
I would like to check if some subscription are still valid
Regards

Seems that there is "former_patron". Unsure what this is about

I'm not sure how did I missed this from the notification but there seems to be "former_patron" in the Patreon API documentation.

Just added it ae4decf


Smoothing Methods like Jacobi & Gauss-Seidel

Hi Patrick & Jason,
Thanks for this wonderful library. I was curious if you are interested in adding smoothing methods based on matrix decomposition, such as the Jacobi method or Gauss-Seidel (potentially with the option for relaxation).
Certainly, these solvers a way less efficient than the Krylov ones and need matrix materialization (the state of sparse matrices in JAX is not mature enough?!?), but they could complete the suite of solvers. They might also serve as a nice educational example.

Hey @Ceyron, this relates to https://github.com/patrick-kidger/lineax/issues/113 and https://github.com/patrick-kidger/lineax/issues/8 . Those methods would be very useful in multigrid methods that could be used for preconditioners to feed into e.g. GMRES. I am currently running a project that needs those. It could be nice to coordinate; I suggested to implement an example with preconditioning for solving a 2D Poisson system in https://github.com/patrick-kidger/lineax/issues/8, although I have not advanced on that yet.

I'd be happy to take a PR on these :)

Excellent. Then, we could start working on this in the coming weeks.
@vboussange: Do you already have some code for Jacobi or Gauss-Seidel? Otherwise, I would start looking into subclassing a new iterative solver since I need it for my research anyway.

@Ceyron Nope, I have not started digging into that - great that you can take the lead! I had in mind to get inspired from AMG.jl, specifically here and there. Let me know if I can help!

@Ceyron Nope, I have not started digging into that - great that you can take the lead! I had in mind to get inspired from AMG.jl, specifically here and there. Let me know if I can help!

No problem :+1:  Cool, then I'd start fresh with Jacobi & GaussSeidel. I want to create a first draft and afterward loop you in for some feedback.


Buildkit binaries fail to execute files within PATH invoked within an already emulated processes

I've discovered an issue while trying to perform builds via buildkit, on a host architecture of linux/amd64, while the target is linux/arm64 (although this also happens for other emulated architectures). This is happening when relying on the buildkit binfmt emulation, and not having host-level support installed into the kernel. binfmt output for the host, showing no emulation support for arm64 and others:
{
  "supported": [
    "linux/amd64",
    "linux/386"
  ],
  "emulators": null
}

When run in this configuration with buildkit v0.10.4, which includes binfmt v6.2.0-24, buildkit itself is configured to run commands using the buildkit variant qemu binaries. Previously I believe the way to support this was to install the host-level emulation support, however with the capabilities in buildkit itself now, my understanding is that should no longer be the case?
RUN commands in the Dockerfile via emulation work in many cases with the buildkit provided qemu, with it modifying the RUN command to inject the buildkit qemu binary into the call. For some (many?) cases where the program being run itself tries to run something else in the PATH, this fails.
Minimal Dockerfile examples that fail when run through emulation:
FROM alpine:3.16

RUN /usr/bin/env sh -c 'echo Hello World'

FROM debian:bullseye

RUN /usr/bin/env sh -c 'echo Hello World'

Note: this doesn't just affect env, but other commands that execute files within the PATH as well, like xargs
From debugging the process, I can see that within the buildkit qemu emulation, the execve syscall modifies the arguments to inject .buildkit_qemu_emulator into the call, ensuring that the invocation is run through the emulator. This change to the call modifies the behaviour such that it breaks execution of binaries within the PATH, e.g. via an execvp syscall.
Typically the execvp call will iterate over each element of the PATH, and each time the target file doesn't exist within that path element, will return an ENOENT and continue the loop until either; 1) the file is found (and executed); or 2) the entire PATH is searched and the file isn't found. When executed via .buildkit_qemu_emulator however, the qemu binary itself is always found, but internally the command being called (e.g. absolute path /usr/local/sbin/sh) isn't found. .buildkit_qemu_emulator fails indicating Error while loading /usr/local/sbin/sh: No such file or directory, but the error returned through the execve call is the child process (.buildkit_qemu_emulator) failing with an error. This bubbles back to the execvp call, matches its unhandled error case, and aborts the entire process.
Workaround: by modifying the PATH so that the first element contains the file to be executed, the process succeeds.
The relevant portion of the build for the alpine example run with strace enabled for qemu:
#5 [2/2] RUN /usr/bin/env sh -c 'echo Hello World'
#5 0.302 1 set_tid_address(365117932080,1,16,16,0,365117246396) = 1
#5 0.304 1 brk(NULL) = 0x00000055000eb000
#5 0.304 1 brk(0x00000055000ed000) = 0x00000055000ed000
#5 0.304 1 mmap(0x00000055000eb000,4096,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x00000055000eb000
#5 0.305 1 mprotect(0x00000055000e6000,16384,PROT_READ) = 0
#5 0.307 1 getuid() = 0
#5 0.308 1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x0000005502b9a000
#5 0.308 1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x0000005502b9b000
#5 0.309 1 getpid() = 1
#5 0.309 1 mmap(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x0000005502b9c000
#5 0.309 1 rt_sigprocmask(SIG_UNBLOCK,0x0000005502aeb820,NULL) = 0
#5 0.309 1 rt_sigaction(SIGCHLD,0x0000005502aeb800,NULL) = 0
#5 0.310 1 getppid() = 0
#5 0.310 1 uname(0x5502aeb9f0) = 0
#5 0.311 1 getcwd(0x5502aeab30,4096) = 2
#5 0.312 1 rt_sigaction(SIGINT,NULL,0x0000005502aeba30) = 0
#5 0.312 1 rt_sigaction(SIGINT,0x0000005502aeba10,NULL) = 0
#5 0.312 1 rt_sigaction(SIGQUIT,NULL,0x0000005502aeba30) = 0
#5 0.312 1 rt_sigaction(SIGQUIT,0x0000005502aeba10,NULL) = 0
#5 0.312 1 rt_sigaction(SIGTERM,NULL,0x0000005502aeba30) = 0
#5 0.327 Error while loading /usr/local/sbin/sh: No such file or directory
#5 ERROR: process "/dev/.buildkit_qemu_emulator -strace /bin/sh -c /usr/bin/env sh -c 'echo Hello World'" did not complete successfully: exit code: 1

The issue also impacts script shebang execution (which is how I initially encountered this), but I'm unclear on how much of that process differs inside the emulation from the example cases here.
#!/usr/bin/env sh
echo "Hello World!"

^ Also fails when executed via a RUN instruction

We are also affected by this issue, and nothing mentioned in any linked issues help, we have latest docker, latest buildx plugin, it runs with latest buildkit and all helper containers were tried.
All qemu emulations are in binfmt and still the emulation fails with this ridiculous issue of failing on the very first lookup from PATH.

I've had success in patching the implementation to return the right error numbers when the target executable doesn't exist or isn't executable. This is applied before attempting to execute the target with execve. Thus far appears to correct the behaviour in the cases I've manually tested.
I'm aiming to raise a Draft PR tomorrow with the patch, and continue to try and implement relevant tests in this repo. Difficulty in defining the right tests for this issue is that there is no env or similar binary in the test build stage compiled for the architecture being emulated which uses execve to call another executable on the PATH.


Development tfgateway

This was manually redone in https://github.com/threefoldtech/jumpscaleX_libs/pull/185


Unify the values of CollectionKind.

Currently, there are two patterns "None" and "NONE".

Box installation API : "NONE"
Property registration API : "None"

It is necessary to unify either.

For OData "None" seems to be correct.
https://msdn.microsoft.com/ja-jp/system.data.metadata.edm.collectionkind?f=255&MSPPError=-2147217396

Released v1.6.7


x/build: misc-compile TryBots are too slow

I am waiting for try-bots on https://go-review.googlesource.com/c/go/+/177959, and generally try-bots are finished withing about 5 minutes, but misc-compile-mips takes more than 11 minutes from https://farmer.golang.org/try?commit=fa91b668

• android-amd64-emu | pass
-- | --
• freebsd-amd64-12_0 | pass
• js-wasm | pass
• linux-386 | pass
• linux-amd64 | pass
• linux-amd64-race | pass
• misc-compile-darwin | pass
• misc-compile-freebsd | pass
• misc-compile-linuxarm | pass
• misc-compile-mips | running 11m3s
• misc-compile-nacl | pass
• misc-compile-netbsd | pass
• misc-compile-openbsd | pass
• misc-compile-other | pass
• misc-compile-plan9 | pass
• misc-compile-ppc | pass
• misc-compile-solaris | pass
• nacl-amd64p32 | pass
• openbsd-amd64-64 | pass
• windows-386-2008 | pass
• windows-amd64-2016 | pass

Every bot is finished, except misc-compile-mips. Maybe misc-compile-mips should not be part of try-bots, if it is soo slow.
Alex

On https://farmer.golang.org/try?commit=c29ef957, I'm seeing multiple misc-compile TryBots (in this case, mips, netbsd, openbsd) taking upwards of 10m, when all of the real (sharded test) builders are already long done.
CC @dmitshur @toothrot @cagedmantis

On https://farmer.golang.org/try?commit=5b2140c8, I'm again seeing misc-compile TryBots taking upwards of 10m.

I too have observed this:

When these trybots take the longest, they become a bottleneck for overall TryBot completion speed (e.g., #17104).
The "misc-compile" trybots do much less work than normal trybots: they check only that compilation is successful, but don't execute tests. They're generally split by OS, matching all architectures available:
https://github.com/golang/build/blob/f539cd3e8d00b786b2c500b824a0d69d196ea3c6/dashboard/builders.go#L1600-L1609
Those architectures are currently tested sequentially. So one possible explanation is if newly added architectures start to get matched, and there become too many for sequential testing to be viable.
If that's the case, we can fix this by adjusting the split to avoid putting too much work into any single trybot.

I observed a case where misc-compile-openbsd was the slowest run:

Looking at its logs confirmed it was building as many as 5 different architectures, all sequentially:
### Building openbsd-386

### Building openbsd-amd64

### Building openbsd-arm

### Building openbsd-arm64

### Building openbsd-mips64

So the root problem here is pretty clear: we need to parallelize the workload better for OSes that have many architectures.

With the work done to migrate x/build to OpenCensus in CL 303669, we're closer to starting to measure and track TryBot completion time, which has been a blocker for making progress on #17104.
However, the problem here is quite clear and a simple fix is available, so I've sent CL 313210 that implements the suggestion in https://github.com/golang/go/issues/32632#issuecomment-789870534. Our updated target time for TryBot completion time is 10 minutes (see subject of issue #17104), so going with at most 2 ports per misc-compile TryBot should be a good compromise until we can measure and find something that works even better.


add mocha sidebar (VScode extension) to mocha documentation

this PR adds mocha sideBar to mocha's documentation. under the extensions section.
the extension is currently the most  popular mocha extension for VS code.
5 start ranked with almost 4k downloads in the last two months
the extension has lot of features and it well maintained(already have 3 contributers)
so IMO it will be great if you guys will add it to mocha documentation
Tks

thanks.  I'll merge this in https://github.com/mochajs/mocha/pull/3123 w/ some tweaks. unfortunately we can't stuff a 21MB  animated gif on the homepage, but if you want to supply a screenshot, please send a PR at the main repo https://github.com/mochajs/mocha/.  docs are now in docs/ after 3123 is merged.


SummedOp does not distribute over ListOp under reduce()

What is the expected enhancement?
We currently have
(Y @ ListOp([X, Z])).reduce() == ListOp([Y @ X, Y @ Z])

That is, ComposedOp distributes over ListOp.
But, we also have
(Y + ListOp([X, Z])).reduce() != ListOp([Y + X, Y + Z])

reduce does not change the expression on the LHS.
Several other operations are vectorized wrt ListOp. I suspect this has simply not yet been implemented for SummedOp.
It would be good if the inequality above were instead an equality.

@jlapeyre Do we need this transferring over to Terra?

@jlapeyre Do we need this transferring over to Terra?

@woodsp-ibm , yes this should be transferred.

@woodsp-ibm , yes this should be transferred.


Remove "react/react-in-jsx-scope" from recommendations

As of React 17, this is no longer needed and the recommendation is that this import be removed. https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports

Those using the new jsx transform - which react 17+ users still might not use - should extend react/jsx-runtime.
Removing this from the recommended config would break users who aren’t using the jsx runtime.

Thanks @ljharb. I'm new to this plugin and can't find this answer in the readme, but looking at the code the react/jsx-runtime config appears to be an "override" of react/recommended. Is the recommendation to those using the new JSX transform to use the following?
{
  "extends": ["eslint:recommended", "plugin:react/recommended", "plugin:react/jsx-runtime"]
}

Yes, precisely that.

@ljharb Thanks again.


Bug Report: Navbar Home Button Missing & Layout/Position Changes on Project Page

Description
When navigating to the "Projects" page of the website, two issues occur:

The "Home" button disappears from the navbar.
The position and layout of the navbar change, which affects the overall user experience and visual consistency.

Steps to Reproduce

Visit the website: https://ml-fusion-lab.netlify.app/
Click on the "Projects" link in the navbar.
Observe the following issues:

The "Home" button is missing from the navbar.
The navbar's position and layout differ from other pa

Expected Behavior

The "Home" button should remain visible across all pages.
The navbar's position and layout should remain consistent across all pages for a smooth user experience.

Actual Behavior

The "Home" button is missing when navigating to the "Projects" page.
The navbar's position and layout change when navigating to the "Projects" page.

Screenshots

Additional Information
This issue may be related to how the navbar is dynamically styled or structured based on the active route.
What browser are you seeing the problem on?

[ ] Firefox
[X] Chrome
[ ] Safari
[ ] Microsoft Edge

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)

see when you click the logo in the project page, it redirects to home and there is no need of creating a separate navbar for home button.
I have seen many navbar issues, and i have mentioned it before for contributors to not create issues regarding navbar and there should be no more navbar issues, so i have closed this issue, if you have any queries, you can join discord server for further updates and communication.
we are not looking for navbar updates for now, as it was done and changes many times before.
please understand.


ci: changelog updates

Pull Request Test Coverage Report for Build<PHONE_NUMBER>3
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 76.055%

Totals

Change from base Build<PHONE_NUMBER>6:
0.0%

Covered Lines:
12117

Relevant Lines:
15865

💛  - Coveralls


TypeError miro.isAuthorized is not a function

This error sometimes occur when I try to start using the plugin, browser - Firefox

@fan-tom thank you for the report. We will check compatibility with Firefox


Does it only support the algolia client 1.0?

Hi Vincent, seems it is still using the 1.0 php client of algolia, will that be upgraded to latest version?
thanks
Roger

:+1: @vinkla  Yes will be a good thing to update it as it implement new retry strategy and fixes bug

Is 2.0 out already? Must have missed that. Sorry if I've.

Yes we are at 1.5.*
Le jeudi 11 juin 2015, Vincent Klaiber<EMAIL_ADDRESS>a écrit :

Is 2.0 out already? Must have missed that. Sorry if I've.
—
Reply to this email directly or view it on GitHub
https://github.com/vinkla/algolia/issues/2#issuecomment-111222125.

--
Maxime Locqueville

Ahh okay, then its no problem. ~1.0 means everything below 2.0.


Can I temporary use English in PowerShell?

All commands will work with Japanese outputs, it is not convenient if I want to get English error messages....
I don't want to switch whole of system languages 🤔
https://stackoverflow.com/questions/59909992/temporarily-change-powershell-language-to-english
https://github.com/PowerShell/PowerShell/issues/666
https://learn.microsoft.com/ja-jp/powershell/module/international/get-winsystemlocale?view=windowsserver2022-ps&viewFallbackFrom=win10-ps
https://crieit.net/posts/aka-win-sysconf-1

https://github.com/microsoft/WSL/issues/9242#issuecomment-1992936254
https://github.com/microsoft/WSL/releases/tag/2.1.3
May fix?

Still want to fix, however I don't want to waste debugging time about these Windows problems anymore


Add unpackaged support to PushNotifications spec

Because packaged applications will use ComActivator or ProtocolActivator depending on the build (builds earlier than 19041), they should check the flag that was used to register and unregister accordingly.

ComActivator = Pass the token and ComActivator flag
ProtocolActivator = Pass nullptr token and ProtocolActivator flag if they want to remove notifications from the application completely

/azp run

Need to change ProtocolActivator value from 0x3 -> 0x4.

/azp run

/azp run

/azp run

/azp run

/azp run


Eslint fix semicolons

Coverage remained the same at 68.617% when pulling f998083a2b2bb203eda0d695038f63afb07e897e on ynurmahomed:lint into 372d6a9855c5ec8355a006ba167ac0b591d8708a on esaude:master.


Status of proposed JSON schema extensions?

The Google doc for #59 mentions some JSON schema extensions:
https://docs.google.com/document/d/1-IKI-PwPnhtbK0su1UzWA_UoyaCjL8S2d6ky3Xmuwvg/edit#
It's not clear to me what the status of these are, even though the proposal in the validation through implementation phase. Specifically I'm interested in the x-servicebroker-secret extension since it has security implications.
It doesn't seem uncommon for brokers to accept passwords, access tokens, and other sensitive data as parameters, but only the broker knows which are potentially sensitive. This impacts how UIs display these values and how the platform stores them.
What is the status of the proposed x-servicebroker-secret extension? Is this something implementations can begin validating or does it require a separate proposal?
cc @pmorie @jwforres

We're also interested in this, and as part of the validation work we're doing for #59 we have been investigating how we could implement this.
The simplest solution we've found so far is adding a "sensitive": true field to any object for which UIs should render as a password. The key issue is, if we all agree this is a sensible addition, how should we add this to the spec?
We have considered two approaches:

Adding these special fields to the profiles.md file for each platform
Creating a meta schema that extends JSON schema draft 4 and details these extensions

We can discuss this on next weeks' call, but it would be great to hear any feedback folks have on this.

There is a bunch of discussion on this issue in the comments section here and below.

Can we repurpose this issue to the problem statement?
While it's fine for @mattmcneeney to consider this as part of the validation, I would like to see the spec released with schemas and then add this later.

I agree. @spadgett do you want to rename this issue so it only relates to the 'secret' field problem and put your problem and any proposed solution in a google doc? If you open up the permissions and ping me a link I'd be happy to help drop our use cases in!

Open issue in JSONSchema: https://github.com/json-schema-org/json-schema-spec/issues/249

Closing due to inactivity


pd.DataFrame.fillna() recasts to previous dtype

Getting some really funny functionality with pd.DataFrame.fillna(). After running fillna() on a non-null dataframe (or series), it converts items that should be objects (as I typecasted them) back to floats (as they originally were).
import pandas as pd
import numpy as np

test = pd.DataFrame(np.random.randn(1,10),columns=['a','b','c','d','e','f','g','h','i','k'])
test.dtypes  # all floats
test = test.astype('object')
test.dtypes  # all objects
test['j'] = '0'  # this is a string containing the number zero
test.dtypes  # all objects
test = test.fillna('-1')
test.dtypes  # test is now all floats, except test['j']

Any help would be appreciated.
pd.show_versions()
In [14]: pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.8.final.0
python-bits: 64
OS: Darwin
OS-release: 15.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8

pandas: 0.16.2
nose: 1.3.4
Cython: None
numpy: 1.10.0.post2
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 3.2.0
sphinx: None
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.6
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: None
xlrd: 0.9.3
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.9999999
httplib2: 0.9.2
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: 2.5.1 (dt dec pq3 ext)

I think you want test.fillna('-1', downcast=False). .fillna (and a bunch of other pandas operations) will try to downcast from object -> float -> integer when they can. This is useful if you have a column of ints, but a NaN forces it to be floats. When you .fillna(integer) it's often useful to automatically downcast.

Ah, that makes sense. I was looking at the API docs and saw the downcast attribute, but for some reason I read that as downcast=False as opposed to downcast=None. This led me to believe that the downcasting operation is off instead of 'None' by default.
What still bothers me is that for the items that started out as floats (via np.random.randn), even after they converted to objects, they were downcast back to floats after the fillna() - as per the downcast=None attribute. But why wasn't fillna() able to convert my object zero ('0') to a float or int?
And yes, I'll work on the PR for the docs. It's important to know that downcast=None defaults to an implicit object -> float -> integer.
Thanks!

We'l want to check with @jreback that my understanding of downcast is correct :)
Oh and I misread the bit about columns j. That's because .astype(object) is not the same as .astype(str). Strings are stored as object dtype, but you can also store an int/float as object dtype if that makes sense. If you had test.astype(str).fillna('-1') you'll see that they're all still object (with strings). That might actually have been what you're looking for, not downcast.

Ah, okay. I was treating objects and strings interchangeably because of some (likely deprecated) solution on Stack Overflow. I'll try astype('str') instead of astype('object'). But downcast=False works for my purposes too.
I'll wait for input from @jreback.

@TomAugspurger Another thing - and I don't know if this is implicit in the functionality of pandas - pd.DataFrame.apply is putting my dataframe back together, but some of the columns don't have the right format. That is, I have a column with dtype of 'object', but after apply returns, the dtype has changed to int64. I don't see a downcast attribute for apply, and I don't know if this is a bug or feature.
If needed, I can throw an example in this comment.

@alichaudry this is all correct. you never ever want to keep things as object if you have an alternative. pandas is all about inferring to the correct dtype eagerly. So this is all as expected.


cest plotting bug

Version 0.6.0dev
While running n_iph cest (including example), I receive this error during plotting:
Plotting Data
=============

File(s):
  * output/global/plots/n_iph_cest_13hz_500ms_499mhz_1c.pdf [.fit]
Traceback (most recent call last):
  File "<dir>/bin/chemex", line 9, in <module>
    load_entry_point('chemex==0.6.0dev', 'console_scripts', 'chemex')()
  File "<dir>/lib/python/site-packages/chemex-0.6.0dev-py2.7.egg/chemex/__main__.py", line 191, in main
    output_dir
  File "<dir>/lib/python/site-packages/chemex-0.6.0dev-py2.7.egg/chemex/__main__.py", line 151, in fit_write_plot
    plot_results(par_fit, par_indexes, par_fixed, data, output_dir)
  File "<dir>/lib/python/site-packages/chemex-0.6.0dev-py2.7.egg/chemex/__main__.py", line 127, in plot_results
    output_dir=output_dir_plot)
  File "<dir>/lib/python/site-packages/chemex-0.6.0dev-py2.7.egg/chemex/plotting.py", line 17, in plot_data
    plot(dataset, par, par_names, par_fixed, output_dir)
  File "<dir>/lib/python/site-packages/chemex-0.6.0dev-py2.7.egg/chemex/experiments/cest/plotting.py", line 150, in plot_data
    with PdfPages(name_pdf) as file_pdf, open(name_txt, 'w') as file_txt:
AttributeError: __exit__

This should work with matplotlib >= 1.3.1 (see http://stackoverflow.com/questions/21933904/matplotlib-pdf-savefig-exiting-early).
Not sure whether I should  modify the code or enforce 1.3.1 in setup.py...

Oy ... seems I'm only running 1.1.1 on Mac. port doesn't update further. I'll see how tough it is to get 1.3.1 ...

Have you tried Homebrew instead of port? Works great.
http://brew.sh/

I just tried homebrew ... "brew install matplotlib" didn't do anything

Anyways, I'm on the dev branch now (v 1.5.dev1) from cloning matplotlib off of git. Plotting works fine now.

I guess this means matplotlib >=1.3.1 should be enforced.

I'm going to close this issue. I don't see the problem anymore, I don't think.


Generate random _id for actor template

It seems we need an _id to update now, which the template currently does not have

This may be wrong, i think i need to use updateSource for the temporary actor stuff

Yep, this was stupid :D


CodeHelper CPU占用率很高 in my MACBookPro 中 ，CPU 很高，不知道什么原因

VSCode Version: 1.14.2
OS Version: 10.12.5

Steps to Reproduce:

Reproduces without extensions: Yes/No

We already have several existing issues referring to the same problem. Please drop your comments/reprosteps there.


Repeated downloads of the same torrents

Since the update to v 2.0 Catch keeps downloading the same two torrents. In the Recent Episodes window the torrents are not shown at all and they don't seem to be duplicated in the RSS feed. I recently uninstalled and reinstalled the app.
I am running version 2.0.1 (720).

Hi!
Did you ever restart the Mac since?


I needed to delete this symlink "rm /usr/lib/erlang/man" before running your script.

@clydiksen a little more details please? I don't see why you needed to do it.

had the same problem. Check this: https://github.com/emqtt/emqttd/issues/530

@clydiksen @rvanzon I'm afraid I personally don't have much time to maintain these scripts. Pull requests are welcome.


Patch call for updating authorization status of user on mobile app

This PR is regarding: #942

make sure we handle all status response 4xx given in the API contract
(here)[https://github.com/Real-Dev-Squad/website-api-contracts/pull/134/files#diff-4df11ed74a4b8d770caaa7512db70b9845093a1d1581d82452748ad27012ea34]

Can we also add unit and integration-test, now? everything else looks same


add WithSkipEventFunc

Note, We need to add more implementation for deleting expired events to support NIP-40.

@fiatjaf any thought?

Looks good to me if you like it.


Add email auth

https://github.com/gratipay/gratipay.com/issues/1052.
This PR allows users to sign-in or create an account on Gratipay using email.
Screenshots
Email HTML

Email text

Signup flow (GIF)

(http://recordit.co/ZJwXHLYiHF)
Signin flow (GIF)
(http://recordit.co/SX6hYCQI7j)
Non-critical items to reticket

[ ] Add cron to clean out old email_auth_nonces
[ ] When we show 'link expired' upon verification, we only say 'Generate a new one'. Provide a button inline instead (or open the sign-in modal with the error message)

Ready for review. I've taken care to structure the commits such that this PR is easy to break down into pieces if needed.

To Review

[ ] run it soup to nuts
[ ] _check_orphans
[ ] with_email_and_username, from_email — actually useful?
[ ] proof-read comments and copy

[ ] "sign-in" → "sign in"

[ ] security/authentication/email → models/participant/email
[ ] website_helpers?
[ ] button CSS
[ ] test coverage
[ ] www/auth
[ ] merging accounts
[ ]

I think we should standardize on - instead of _ in URLs.
$ find . -name \*-\*|wc -l
      60
$ find . -name \*_\*|wc -l
       8
$

I think maybe we should allow reclaiming an existing account when signing up with the same email, as we do with accounts elsewhere.

I should get a notification when I follow a link from email to sign in.

Picking up from #4543 …

IMO that worked pretty well on #4488.

Sorry, I meant #4305. #4488 was a single PR (∆ = 359), whereas #4305 was an integration PR for a larger chunk of work (∆ = 3,628). We merged a couple dozen PRs into #4305 before merging the whole thing back to master. In my view it was a successful way of building out a fairly complex feature. I don't think this PR will be as big, but I like the idea of making PRs against it before merging to master.
What's behind your aversion to this method? Burned in the past? ... ?

Not sure I like how the login screen just sits there after you submit an email, and how the message at the top fades away so quickly. Maybe we should close the modal so people can look at projects while they wait for the email?

For my part, a) I've never seriously used feature flags, but b) I'm disinclined towards them because I think they are overkill for our current level of complexity. There's only two-ish of us working on Gratipay right now. The main disadvantage with the integration branch approach is keeping it in sync as master moves (yes?), and that's not very hard at our current velocity. Feature flags are tech debt in our codebase itself. Integration branches essentially delegate code branching to git, which imo seems like a good place for it. ☺
One way or another, we do need to find a development pattern that allows us to move quickly (by digesting small chunks at a time, ∆ <= 400), while also not pushing out incomplete features. I caught a quote from Mårten Mickos from HackerOne / MySQL that I like, along the lines of "MVP is only for the first iteration, after that you should only ship finished features." Room for interpretation in what constitutes "finished," of course, but it's often going to require ∆ > 400, I think.

@mattbk Noted in todo in ticket description as "tighten up UI on sign-in"

Re: feature flags:
https://martinfowler.com/articles/feature-toggles.html
https://martinfowler.com/bliki/FeatureToggle.html
Many caveats and best practices in there, e.g.:

Savvy teams view the Feature Toggles in their codebase as inventory which comes with a carrying cost and seek to keep that inventory as low as possible. In order to keep the number of feature toggles manageable a team must be proactive in removing feature toggles that are no longer needed. Some teams have a rule of always adding a toggle removal task onto the team's backlog whenever a Release Toggle is first introduced. Other teams put "expiration dates" on their toggles. Some go as far as creating "time bombs" which will fail a test (or even refuse to start an application!) if a toggle is still around after its expiration date. We can also apply a Lean approach to reducing inventory, placing a limit on the number of toggles a system is allowed to have at any one time. Once that limit is reached if someone wants to add a new toggle they will first need to do the work to remove an existing toggle.

I see so many similarities between email and accounts elsewhere. We talked about this before (should dig up): why don't we expand the accounts elsewhere machinery to encompass emails?

Running into issues on my Macbook, but still running fine on the Ubuntu VM.

Rebased, was 114f36c00de3eea050adc59680005df709052f79.

Coming back here from https://github.com/gratipay/gratipay.com/pull/4604 ... I am thinking about taking the stub participant approach discussed at ... somewhere? We already have plumbing for routes and exchanges and email addresses, seems wrong to duplicate those to enable anon to make payments. Better to stub out a participant, send a normal email verification, and then populate the return page with a "Confirm Payment" section similar to how we could do package claims on the receiver side.

I am thinking about taking the stub participant approach discussed at ... somewhere?

https://github.com/gratipay/gratipay.com/issues/4547#issuecomment-315657487

Closing as stale


feat: add server-side validation

implements TECH-1153
Changes in this PR

[x] call API to get server-side validation result
[x] implement UI to display results
[x] UI - empty state
[x] UI - loading state
[x] UI - error state
[x] implement re-run validation
[x] add tests

The following will be tackled in separate PRs:

implement changed data notification
investigate and implement comments required violations
refactor to not have a second call for validation metadata once endpoint is implemented
export results

Screenshots

error state

loading state

empty state

One thing I noticed, which I don't think has to do with the content of this PR: the names of data elements can be inconsistent in these three places 🤔 (validation rule name, validationRule.leftSide.description, and the data element's display name)

Ah one other thing I noticed in the spec: it looks like we want to show the values of the relevant data items in the validation expression

Ah one other thing I noticed in the spec: it looks like we want to show the values of the relevant data items in the validation expression

Updated to show the value in the validation expression

I feel it might be better to hold off on that until we've had the chance to properly discuss the proposal.

I second this opinion upon reflecting what's happening here. For now I'd prefer if we simply use the CustomDataProvider as that's our current standard.
We could create a branch/PR based on this one that introduces msw which gives us time to talk about it, best practices, standards we want to follow, how to integrate the library into this app, etc.
Additionally we can start a proper discussion in our dhis2/notes repository.

@Mohammer5  I think I tackled all your comments (pending reaching a decision about the component structure).


Popular Repositories should not display private project repositories

Harbor version: 0.5.0
Current login page without logged:

BUT the project i1dev is private!

Popular Repositories should not display private project's repositories..

Version of harbor?

I think this is fixed in dev branch.

@laz2 I didn't try dev branch.
It's ok to close if next version has fixed this issue.


[Feature][Travis] Add travis as a CI/CD tool to devlake

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
Currently Travis is neither supported nor is it on the roadmap.  It's a popular CI/CD tool in the open source community and support is going to be appreciated by many in that community including where I work.
Use case
Travis supports an API with the services that can provide data needed to a CI/CD dashboard plugin.  The proposal would be to use the standard plug-in format and normalized CI/CD data model.  Please let me know if this is not detailed enough I plan to start working on this myself for my organization's own purposes in any case.
Related issues
No response
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Happy coding!


[foxy backport] restore alphabetical include order (#563)

backport of https://github.com/ros2/rviz/pull/563

Closed in favor of #570


Rasa nlu: RuntimeError: Calling rasa.nlu.train using docker

Hi,
I am using rasa-nlu for my project. I am running rasa-nlu using docker. I am using the below command to train the rasa-nlu.
docker run
-v $(pwd):/app/project
-v $(pwd)/models:/app/models
rasa/rasa_nlu:latest
run
python -m rasa_nlu.train -c config.yml --data project/data/MyModel -o models --fixed_model_name MyProject --project current --verbose
Whenever I am trying to train the rasa-nlu model I getting the following issue:
/app/rasa_nlu/init.py:12: UserWarning: The ‘rasa_nlu’ package hase been renamed. You should change your imports to use ‘rasa.nlu’ instead.
RuntimeError: Calling rasa.nlu.train directly is no longer supported. Please use rasa train nlu instead.
I was not facing the issue earlier while using the same command. I think issue is because of the latest update on 23 April 2019 [Ref. Link: https://rasa.com/docs/nlu/changelog/].
Please help me to resolve this.

Hi, i got it working by migrating the command to use rasa shell:
docker run \
    -v $(pwd):/app/project \
    -v $(pwd)/models:/app/model \
    rasa/rasa_nlu:latest \
    run \
        rasa train nlu \
            --config /app/project/nlu/config.yml \
            --nlu /app/project/data/nlu.md \
            --out /app/model

But it's probably better to revert to a previous tag for now. I use rasa/rasa_nlu:0.14.4-full

Hi @azazdeaz,
Thank you so much for the solution. rasa/rasa_nlu:0.14.4-full helped for me.

glad you figured it out, i'll close this issue

Not running rasa_nlu using docker, but getting the same issue on windows.
Here is the error:
C:\Users\DELL\iplbot\practice_version>python -m rasa_nlu.train -c nlu_config.yml --data data/nlu_data.md -o models --fixed_model_name nlu --project current --verbose
C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_nlu_init_.py:12: UserWarning: The 'rasa_nlu' package has been renamed. You should change your imports to use 'rasa.nlu' instead.
UserWarning,
Traceback (most recent call last):
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa\nlu\train.py", line 101, in
"Calling rasa.nlu.train directly is no longer supported. Please use "
RuntimeError: Calling rasa.nlu.train directly is no longer supported. Please use rasa train to train a combined Core and NLU model or rasa train nlu to train an NLU model.


rbac permissions are missing for external-dns

Bug Report
Certain rbac permissions are missing for external-dns - https://github.com/vmware-tanzu/community-edition/tree/main/addons/packages/external-dns/0.10.0 due to which the service is failing to start when installed using the package.
Logs -

E1216 16:26:12.754277       1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.Ingress: failed to list *v1.Ingress: ingresses.networking.k8s.io is forbidden: User "system:serviceaccount:svc-external-dns-6-domain-c9:external-dns" cannot list resource "ingresses" in API group "networking.k8s.io" at the cluster scope
E1216 16:26:14.142866       1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.Ingress: failed to list *v1.Ingress: ingresses.networking.k8s.io is forbidden: User "system:serviceaccount:svc-external-dns-6-domain-c9:external-dns" cannot list resource "ingresses" in API group "networking.k8s.io" at the cluster scope
E1216 16:26:16.922958       1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.Ingress: failed to list *v1.Ingress: ingresses.networking.k8s.io is forbidden: User "system:serviceaccount:svc-external-dns-6-domain-c9:external-dns" cannot list resource "ingresses" in API group "networking.k8s.io" at the cluster scope
E1216 16:26:22.179923       1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.Ingress: failed to list *v1.Ingress: ingresses.networking.k8s.io is forbidden: User "system:serviceaccount:svc-external-dns-6-domain-c9:external-dns" cannot list resource "ingresses" in API group "networking.k8s.io" at the cluster scope
E1216 16:26:29.711349       1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.Ingress: failed to list *v1.Ingress: ingresses.networking.k8s.io is forbidden: User "system:serviceaccount:svc-external-dns-6-domain-c9:external-dns" cannot list resource "ingresses" in API group "networking.k8s.io" at the cluster scope
E1216 16:26:44.290082       1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.Ingress: failed to list *v1.Ingress: ingresses.networking.k8s.io is forbidden: User "system:serviceaccount:svc-external-dns-6-domain-c9:external-dns" cannot list resource "ingresses" in API group "networking.k8s.io" at the cluster scope

Expected Behavior
external-dns needs certain permissions - https://github.com/kubernetes-sigs/external-dns/blob/master/charts/external-dns/templates/clusterrole.yaml
This needs to be included as part of the carvel external-dns package

For instance, nodes resource does not have watch permission
ingresses is not listed as part of apiGroup - networking.k8s.io

Steps to Reproduce the Bug
Start the external-dns with core-dns as the provider.

Screenshots or additional information and context

Environment Details

Build version (tanzu version): v0.10.0-rc.1
Deployment (Managed/Standalone cluster): Standalone cluster
Infrastructure Provider (Docker/AWS/Azure/vSphere): vSphere
Operating System (client): Linux

Diagnostics and log bundle

@adityask2 I can see the clusterrole that upstream has: https://github.com/kubernetes-sigs/external-dns/blob/v0.10.0/kustomize/external-dns-clusterrole.yaml. in our 0.10.0 package https://github.com/vmware-tanzu/community-edition/blob/main/addons/packages/external-dns/0.10.0/bundle/config/upstream/external-dns-clusterrole.yaml

@jorgemoralespou These priveleges aren't sufficient due to which we are seeing above mentioned errors.
A quick check here also shows difference - https://github.com/kubernetes-sigs/external-dns/blob/v0.10.0/charts/external-dns/templates/clusterrole.yaml


Metrics auth should use C&U endpoint

Combined with https://github.com/ManageIQ/ovirt_metrics/pull/10, this fixes metrics capturing for Rails 5 <3
Note that ideally I'd like to replace the connections by role API to make it betterer, but for now it would be lovely if we could just get metrics working first to eliminate this release blocker.

@miq-bot add_label core, rails5, darga/yes

This looks good 👍 But, I think you also need to make a change here https://github.com/ManageIQ/manageiq/blob/15c5c03d1261c872210a5f37fa11070cecaf8991/app/models/manageiq/providers/redhat/infra_manager.rb#L119 for the validate button on the provider add/update screen.

Oh yeah, will do
On Monday, May 2, 2016, Gregg Tanzillo<EMAIL_ADDRESS>wrote:

This looks good 👍 But, I think you also need to make a change here
https://github.com/ManageIQ/manageiq/blob/15c5c03d1261c872210a5f37fa11070cecaf8991/app/models/manageiq/providers/redhat/infra_manager.rb#L119
for the validate button on the provider add/update screen.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/ManageIQ/manageiq/pull/8382#issuecomment-216273484

--
Chris Arcand
@chrisarcand

ovirt_metrics 1.2.0 released with your changes @chrisarcand

@chrisarcand we'll need the Gemfile bumped, maybe with this PR once you get the remaining code changes done.  It's quite timely, because we'll need a new version to fix https://bugzilla.redhat.com/show_bug.cgi?id=1328908.

@gtanzillo Fixed in 16bdad4

:+1:

👍

Merge when green!  👍

  1) ManageIQ::Providers::Redhat::InfraManager rhevm_metrics_connect_options
     Failure/Error:
       server   = options[:hostname] || connection_configuration_by_role('metrics')
                                          .endpoint
                                          .hostname

     NoMethodError:
       undefined method `endpoint' for nil:NilClass
     # ./app/models/manageiq/providers/redhat/infra_manager.rb:121:in `rhevm_metrics_connect_options'
     # ./spec/models/manageiq/providers/redhat/infra_manager_spec.rb:19:in `block (2 levels) in <top (required)>'

@chrisarcand
https://www.youtube.com/watch?v=1ytCEuuW2_A

@chrisarcand https://www.youtube.com/watch?v=1ytCEuuW2_A
  1) ManageIQ::Providers::Redhat::InfraManager rhevm_metrics_connect_options
     Failure/Error: expect(h.rhevm_metrics_connect_options[:host]).to eq("h")

       expected: "h"
            got: nil

       (compared using ==)
     # ./spec/models/manageiq/providers/redhat/infra_manager_spec.rb:19:in `block (2 levels) in <top (required)>'

@jrafanie

/cc @blomquisg

The winning guy looks like a really young Ed Helms.

The internet was made for reacting to failed and then passing tests. :tada:

https://bugzilla.redhat.com/show_bug.cgi?id=1322891


Shim layer support for Spark 3.0.0 Databricks

Add in Support for Spark 3.0.0 databricks. This requires to be built on a databricks host, so the default build doesn't build it, but it will try to pull from sonatype.  That will obviously be broken until we push once.  I did add in an option to skip pulling it in via the -Pexclude-databricks option.
Unfortunately our dev-ci seems to be messed up again so I have not been able to test full end to end with deployment to urm. if it fails I will have to do a followup or work with team to get the dev environment back working.
For databricks, it does require joins and then FileSourcescanExec, so I ended up copying those files again. Hopefully we can do the follow on to combine those somehow - issue https://github.com/NVIDIA/spark-rapids/issues/412

build

I'm going to see if I can get ci-dev env going, otherwise this build won't pass. Or I could change to exclude databricks by default until we have it working, but let me ping the devops from ngc to see if I can get dev env going in reasonable amount of time.

build

ci dev build passed and pushed one version of jar to urm

The changes look good to me, I just wanted to be sure I understood everything that you wanted to happen.
So is this the final version?  Do we intend to push a version of the databricks shim to sonatype and have the final build pull that in for shadeing?

good question, ideally yes we push it to sonatype.  I'll turn the exclude-databricks on by default for now and then followup with a different issue for pushing to sontaype.

note, still  updating jenkins files

build

build


Can't parse negative timestamp.

Problem
$ ut p -1234
error: Found argument '-1' which wasn't expected, or isn't valid in this context

USAGE:
    ut parse [OPTIONS] <TIMESTAMP>

correct behavior is...
$ ut p -1234
1970-01-01 08:39:26 (+09:00)

How to fix
Add AppSettings::AllowLeadingHyphen to the settings.
see: https://github.com/clap-rs/clap/issues/1245

fixed.


How to Configure SignalR with Azure Redis Backplane

Hi there,
this might not be the right forum but i dont know here else to ask this quesiton. I am using asp.net core with SignalR alpha 2. my web app is hosted in Azure and trying to use Azure Redis Cache for backplane. So far i have only found the following:
services.AddSignalR().AddRedis();
No idea how to add the Azure Redis cache connection string.  without the connection string i get (on console window)
info: Microsoft.AspNetCore.SignalR.Redis.RedisHubLifetimeManager[0]
Connecting to redis endpoints:
And exception on route.MapHub("myhub");
StackExchange.Redis.RedisConnectionException: 'It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING'
please help :(

When you call AddRedis you can provide an Action<RedisOption> which you can use to set the Factory.

hi moozzyk,
First of all thanks for replying to my question. I have tried that too.. below is the code:
public void ConfigureServices(IServiceCollection services)
{
        services.AddMvc();
        services.AddSignalR()
                .AddRedis(option =>
                                {
                                    option.Factory = t => ConnectionMultiplexer.Connect("********.redis.cache.windows.net:1111,password=mypasswprd=,ssl=False,abortConnect=False");
                                });
    }

and in Congifure function:
app.UseSignalR(routes =>
{
routes.MapHub("hub");
});
and the error i am getting is

in the console window it says connecting to redis endpoint:
and it does not say my azure endpoint..
any change you could share a running sample?
thanks again

What you have should work. I just tried to make sure and was able to run the chat sample with redis on azure. Here my code:
            // To use Redis scaleout uncomment .AddRedis and uncomment Redis related lines below for presence
            services.AddSignalR()
                .AddRedis(options => options.Factory = writer =>
                {
                    return ConnectionMultiplexer.Connect("******.redis.cache.windows.net:6380,password=******,ssl=True,abortConnect=False", writer);
                });

and I can see keys in my Redis cache on Azure:

I noticed that you have ssl=False in your query string. I think that by default Redis cache on Azure can only be accessed by SSL, so you won't be able to connect with ssl=False. Try to connect using SSL. If you still cannot connect you can pass a TextWriter to the ConnectionMultiplexer.Connect method which will be used by StackExchange to write logs which should help you figure out the problem.
I think this problem is external to SignalR so I am closing the issue.


[UI] Ability to maximize the Application and Pattern Editor

Current Behavior
Long pattern and application files are easier to edit when the user can maximize (and restore back to original modal size) the editor modal.
Implementation

choose one of the two matching sets of icons below (https://react-icons.github.io/react-icons/search?q=maxim)
place maximize/restore icon in upper right hand corner of modal

Acceptance Tests

When modal is orginal size show maximize button.
When modal is maximized show restore button.

Mockups

Contributor Guides and Resources

🎨 Wireframes and designs for Meshery UI in Figma
🖥 Contributing to Meshery UI
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

@leecalcote can i work on this?

@Meghana-12 @Abhishek-kumar09 ... any takers?

@leecalcote could I try this out?

Here you go @warunicorn19 :+1:

Thanks @Chadha93

Sorry to be a let down, but not being able to execute this. That's why unassigning. Also, the layout for patterns has changed, so this only needs to be executed in the application files and maybe filter? @Meghana-12 @Abhishek-kumar09 any takers?

Oh that's okay @warunicorn19
Can I give it a try?

That would be great @Abhishek-kumar09 , 🙏 thanks


Duplicate token CfNkADyvwg66yLtctbuDo381s6VqVC8583ur7uvooE43

I'm submitting a ...
[*] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary
My pull request is failing at build with duplicate error, but the token that it's giving error for is CfNkADyvwg66yLtctbuDo381s6VqVC8583ur7uvooE43

Other information

That token is present twice in tokens.json and is constantly failing all pull requests - It'd be great if you could investigate it and remove that problematic token.

im having the exact same token interefere with my token

duplicate removed.


QAF can't run with Selenium 4.3.0

Starting from Selenium 4.3.0 some of the classes that QAF uses have been moved to a new package in selenium, that causes the compilation to fail since it no longer can find the required classes
Here is the QAF class using a class that is no longer located in that package

Selenium 4.2.2
https://github.com/SeleniumHQ/selenium/tree/selenium-4.2.2-java/java/src/org/openqa/selenium/interactions
From selenium 4.2.2 to Selenium 4.3.0 this classes are moved into a new package

Selenium 4.3.0
https://github.com/SeleniumHQ/selenium/tree/selenium-4.3.0/java/src/org/openqa/selenium/interactions
https://github.com/SeleniumHQ/selenium/tree/selenium-4.3.0/java/src/org/openqa/selenium/remote/server/handler/interactions
QAF Version
QAF 3.1.0
Steps To Reproduce
1. Update POM file to use Selenium 4.3.0
2. Run mvn install

Expected behavior
mvn would run and tests start running
Actual behavior
maven fails indicating that the class org.openqa.selenium.interactions.HasInputDevices can't be found
Is the issue reproducible on runner?

[ ] QAS
[x] Maven
[ ] Gradle
[ ] Ant
[ ] Eclipse

Test case sample

Thanks for reporting. We will take a look on impact and possible solution in upcoming release. Meanwhile you can continue using previous client library version targeting on latest selenium server using remote driver.

@cjayswal  : We are facing multiple issues as well . Can you help address the core libraries

We will have QAF 4 with minimum selenium version 4.3. Meanwhile you should try using remote driver pointing to local selenium server 4.x

We will have QAF 4 with minimum selenium version 4.3. Meanwhile you should try using remote driver pointing to local selenium server 4.x

What is the expected release for QAF4 ?
We are already overriding selenium which by defuult provided by QAF which is quite old. as we are currently using 4.1+ but the problem arises when we have to use 4.8+ to have latest edge support, but QAF can't go above 4.2 due to compilation issue caused by removed interfaces.

Regarding using using selenium 4.8+,
You can continue using selenium 4.1+ in your project and target to run on selenium server 4.8+. For that you need to use remote driver. Here are the steps:

Configure your project to use remote driver, for example:
 #[selenium]
 remote.server=localhost
 remote.port=4444
 driver.name=chromeRemoteDriver

Download and run selenium server as standalone or grid.
java -jar selenium-server-4.8.3.jar standalone --port 4444

Run your tests

In example above selenium server assumed to run on local machine.

Hello Chirag,
Thank you. With QAF 4.0 can we also make necessary changes around the
driver Management ?
As you are aware starting 4.6.0 , selenium has inbuilt driver manager.
What can be done :

Remove Webdriver Manager related code from UiDriverFactory.class
Make necessary changes to allow use of latest selenium dependencies.
For any customized driver initiation , listeners can be used.

Regards
Saifuddin Raj
On Thu, Apr 13, 2023 at 4:51 AM Chirag Jayswal @.***>
wrote:

Regarding using using selenium 4.8+,
You can continue using selenium 4.1+ in your project and target to run on
selenium server 4.8+. For that you need to use remote driver. Here are the
steps:

Configure your project to use remote driver, for example:
#[selenium]
remote.server=localhost
remote.port=4444
driver.name=chromeRemoteDriver

Download https://www.selenium.dev/downloads/ and run selenium server
as standalone or grid.
java -jar selenium-server-4.8.3.jar standalone --port 4444

Run your tests
In example above selenium server assumed to run on local machine.
—
Reply to this email directly, view it on GitHub
https://github.com/qmetry/qaf/issues/425#issuecomment-1505836011, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AILXHZZZJWP5LYOX6VTPJGLXA4BTZANCNFSM565TZ2YQ
.
You are receiving this because you commented.Message ID:
@.***>

@cjayswal  : Thank you very much. As part of which release version can we try this out ?

QAF 4.0.0-SNAPSHOT is available in snapshot repository to try/test. You can refer to the commit for further details. With this update qaf-support-mobile is also updated with appium minimum version to 8.
Repo:
<repository>
   <id>oss.sonatype.org-snapshot</id>
   <url>http://oss.sonatype.org/content/repositories/snapshots</url>
  <releases>
    <enabled>false</enabled>
  </releases>
  <snapshots>
     <enabled>true</enabled>
  </snapshots>
</repository>

Hi @cjayswal,
CC: @SaifuddinR,
We did further investigation and found some issue.
We are trying to execute testcases in Docan Browser which works for specific Chrome driver version “75.0.3770.140”. We tried below options [with no ChromeOptions and no DesiredCapabilities]. But, it is not working.

We tried initializing the chrome driver as below :

WebDriverManager.globalConfig()
        .setAvoidBrowserDetection(true)
        .setChromeDriverVersion("75.0.3770.140");

But it is initializing to the latest chrome driver version and not “75.0.3770.140”.
The same is working fine in QAF 3.1.0.

We also tried to initialize the by providing chromedriver executable path for chromedriver version “75.0.3770.140". But, we are facing NoSuchMethodException.

Error log:
Starting ChromeDriver 75.0.3770.140 (2d9f97485c7b07dc18a74666574f19176731995c-refs/branch-heads/3770@{#1155}) on port 2939

Only local connections are allowed.

Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.

INFO  - Unable to create driver instance in 3rd attempt with retry timeout of 60 seconds. You can check/set value of 'driver.init.retry.timeout' appropriately to set retry timeout on driver initialization failure.Unable to Create Driver Instance for chromedocan: java.lang.NoSuchMethodException: org.openqa.selenium.chrome.ChromeDriver.<init>(java.net.URL, org.openqa.selenium.Capabilities)

Build info: version: '4.8.2', revision: '826dbfc730'

System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_333'

Driver info: driver.version: unknown

Can you please check and fix it before deploying these change?


Can the notebooks "run number" not flicker on run?

Testing https://github.com/microsoft/vscode-jupyter/issues/10170
A lot of flickering goes on when executing a cell, can the number in [] not get its text cleared and instead go from [5] to [6] for example to minimize flickering?

We clear the execution order when execution starts, and jupyter itself does not provide the new execution order until slightly after execution starts. All I can think of is doing something on the rendering side, like wait a bit to render a cleared execution order?

``

Found it annoying while testing https://github.com/microsoft/vscode-jupyter/issues/10598. Not that in the video, I was dragging an ipywidgets slider, which somehow is updating execution status. Though it didn't really increment the execution count, it kept flickering.
https://user-images.githubusercontent.com/876920/176246736-3ed9921d-3cc1-44c1-ba8c-f5cee17d2b2c.mov
It's also annoying to see the spinner.

I wonder if that is related to creating a fake execution to update an output

To summarize since this goes on the plan, two related issues:

Blinking when doing normal execution due to updating the execution count async
Blinking and showing running state when updating outputs with the "fake" execution object. I'm not sure what we will be able to do about the running state - we even have code that specifically ensures that if the cell enters the running state, it should show the running indicator for some minimum amount of time

So far I have

Fixed an issue with the extension using temp executions unnecessarily, so for the original report it doesn't blink anymore
Fixed some unnecessary blinking for normal executions

However, it's hard to avoid this for actual fake executions, because since this is a workaround for our API, it's not really clear how to detect this and treat them differently.
We've said that we want an execution to show the progress spinner for a minimum time, 500ms, so that you can definitely tell in the UI that an execution happened, even if it is very fast. So then even if an execution is created and completed within the same js task, we will still show the progress spinner. This is good for fast normal executions and not good for "fake" executions.
We could say that an execution that is completed immediately does not get the spinner at all, but I don't like that because it could hurt some simple kernel that doesn't need to do any async work as part of an execution.

For future reference, here is a snippet that does a "fake" execution to update outputs outside of an execution.
from ipywidgets import interact, interactive, fixed, interact_manual, widgets

caption = widgets.Label(value='The values of slider is : ')
slider = widgets.IntSlider(min=-5, max=5, value=0, description='Slider')

def handle_slider_change(change):
    print(change)
    caption.value = 'The values of slider is : ' + str(change.new)

slider.observe(handle_slider_change, names='value')

display(caption, slider)

Interesting, I hadn't realize this - print in the snippet above in vscode adds outputs to the cell. In Jupyter lab, it actually writes to a different log instead of adding outputs to the cell.
To understand this usecase I'm looking for an example that updates the output in jupyter lab outside of an execution - I remember there was one which I think involved subprocess, but I can't find an example anywhere. Wondering whether you have one handy @DonJayamanne

Verification steps:

No flickering of the execution order or timer in a normal execution of a cell in a Jupyter notebook
No flickering when changing the slider with this code:

from ipywidgets import interact

def func1(x):
    return 5*x
interact(func1, x=10);

Some other ipywidget scenarios will still produce flickering from "fake executions", this is probably not solvable without API changes. Discovered that it's actually not working as expected in some other cases and so it could get more investigation later.

Verified


KNOX-2722 upgrade common-compress to 1.21

(It is very important that you created an Apache Knox JIRA for this change and that the PR title/commit message includes the Apache Knox JIRA ID!)
KNOX-2722
What changes were proposed in this pull request?
Change jar version
How was this patch tested?
CI build
Please review Knox Contributing Process before opening a pull request.

@smolnar82 thanks for merging the spring change - would you be able to review this change too?


Fix the extra "/" bug in srcPath in DestinationObjectFactory

The old code sometimes creates double slash unintentionally.
This patch adds a warning and also fixes the double slash situation.

LGTM


catalog not found error when using a bookmark link while not being authenticated

If I got to a page and use the permalink menu to copy the link location.
e.g., https://staging.gpcrconsortium.org/chaise/record/#1/gpcr_browser:construct_gui/title=IMPT-100
Then open an incognito window and paste the link I get the following browser error
Not Found
We're sorry, the catalogue id 1 does not exist. Please try again!
In the server logs I see
==> /var/log/httpd/ssl_access_log <==
<IP_ADDRESS> - - [01/Mar/2016:19:02:39 -0800] "GET /ermrest/catalog/1/schema HTTP/1.1" 401 70
If I then use the same link while authenticated then then it works ok

Is this already fixed? I got directed to the login page. @bugacov @hongsudt

i think this has been fixed long ago.