Error while running Interactive Training On Docker

Rasa Core version: 0.13.0a5
Operating system (windows, osx, ...):  Ubuntu 18.04.1
I have deployed bot on docker. To generate stories , I want to run the interactive learning . Used command as
docker run -v $(pwd):/app/project -v $(pwd)/models/rasa_core:/app/models rasa/rasa_core:latest run python -m rasa_core.train interactive -o models -d /app/project/domain.yml -s /app/project/data/stories.md --nlu /app/models --endpoints /app/project/config/endpoints.yml

this worked but after Epoch , I got this error

2019-01-02 08:57:30 INFO     rasa_core.policies.keras_policy  - Done fitting keras policy model
Processed actions: 39it [00:00, 3432.11it/s, # examples=39]
2019-01-02 08:57:30 INFO     rasa_core.agent  - Persisted model to '/app/models'
2019-01-02 08:57:30 INFO     rasa_core.training.interactive  - Rasa Core server is up and running on http://localhost:5005
Processed Story Blocks: 100%|███████Bot loaded. Visualisation at http://localhost:5005/visualization.html.Ctr-c to abort):
Type a message and press enter (press 'Ctr-c' to exit).
? Next user input (Ctr-c to abort):

Warning: Output is not to a terminal (fd=1).
Warning: Input is not to a terminal (fd=0).
2019-01-02 08:57:30 ERROR    rasa_core.training.interactive  - An exception occurred while recording messages.
Traceback (most recent call last):
  File "/app/rasa_core/training/interactive.py", line 1213, in record_messages
    _enter_user_message(sender_id, endpoint)
  File "/app/rasa_core/training/interactive.py", line 1063, in _enter_user_message
    lambda a: not a)
  File "/app/rasa_core/training/interactive.py", line 313, in _ask_or_abort
    answers = questions.ask()
  File "/usr/local/lib/python3.6/site-packages/questionary/question.py", line 17, in ask
    return self.unsafe_ask(patch_stdout)
  File "/usr/local/lib/python3.6/site-packages/questionary/question.py", line 27, in unsafe_ask
    return self.application.run()
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 699, in run
    return run()
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 673, in run
    return f.result()
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/future.py", line 149, in result
    raise self._exception
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/coroutine.py", line 90, in step_next
    new_f = coroutine.throw(exc)
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 652, in _run_async2
    result = yield f
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/coroutine.py", line 90, in step_next
    new_f = coroutine.throw(exc)
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 604, in _run_async
    result = yield From(f)
EOFError
Exception in thread Thread-7:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/app/rasa_core/training/interactive.py", line 1213, in record_messages
    _enter_user_message(sender_id, endpoint)
  File "/app/rasa_core/training/interactive.py", line 1063, in _enter_user_message
    lambda a: not a)
  File "/app/rasa_core/training/interactive.py", line 313, in _ask_or_abort
    answers = questions.ask()
  File "/usr/local/lib/python3.6/site-packages/questionary/question.py", line 17, in ask
    return self.unsafe_ask(patch_stdout)
  File "/usr/local/lib/python3.6/site-packages/questionary/question.py", line 27, in unsafe_ask
    return self.application.run()
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 699, in run
    return run()
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 673, in run
    return f.result()
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/future.py", line 149, in result
    raise self._exception
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/coroutine.py", line 90, in step_next
    new_f = coroutine.throw(exc)
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 652, in _run_async2
    result = yield f
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/coroutine.py", line 90, in step_next
    new_f = coroutine.throw(exc)
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 604, in _run_async
    result = yield From(f)
EOFError

Ok, I resolved it with reference to 1227 .
Do I need to run nlu server and rasa core sdk before running interactive training?

I used the -it flag and its working. The problem now is its not able to parse question on the nlu server.
The command I used is :
sudo docker run -it   -v $(pwd):/app/project   -v $(pwd)/models/rasa_core:/app/models   rasa/rasa_core:latest   run python -m rasa_core.train interactive -o /app/project/models/rasa_core/ -s/app/project/data/stories.md -d /app/project/domain.yml --endpoints /app/project/config/endpoints.yml  -u /app/project/rasa_nlu/current

But now I am getting error as :
ERROR    rasa_core.interpreter  - Failed to parse text 'hello' using rasa NLU over http. Error: HTTPConnectionPool(host='<IP_ADDRESS>', port=5000): Max retries exceeded with url: /parse?model=current&project=%2Fapp%2Fproject%2Frasa_nlu&q=hello (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7df04bf710>: Failed to establish a new connection: [Errno 110] Connection timed out',))

I am now stuck on this

@akelad  Please help on this

@stacybot123 Whether you have to start the NLU server depends on the content of your endpoints.yml.  How does it look like?
In general, please ask usage questions in our forum if you need help and don't tag persons in the github issues. We will make sure that your issue is redirected to the right person.

In this case you have to start nlu and expose port 5000 of it.
You can also omit the nlu part and just link the trained NLU model if don't want to start a nlu server.

Exception: Not all required packages are installed. To use this pipeline, you need to install the missing dependencies. Please install spacy, sklearn_crfsuite

Sorry, I forgot that you are using docker containers. The Core container does not include all NLU dependencies to keep them more lightweight. So you have to use a separate NLU container.

Other method , if I keep the nlu url in endpoints.yml and then train the bot , it have every intent incorrect. It is just taking the text as the intent. For example, if I type hello its taking hello as intent

Did you launch the NLU container with the mounted volume and check the log output? I think the NLU model Core is referencing is not found by the NLU container. When NLU is linked through the endpoints configuration, you don't have to specify the path to model with -u but instead the NLU project and the model name. From what I see this should be -u current. Please also see this guide: https://rasa.com/docs/core/docker_walkthrough/#connecting-rasa-core-and-rasa-nlu

@wochinge , Thank you replying. I am getting error  that its not able to connect to the nlu server.  Can you  please advice if I am using the correct commands.
Here is the error:
ERROR    rasa_core.interpreter  - Failed to parse text 'hello' using rasa NLU over http. Error: HTTPConnectionPool(host='ip_address_of_server', port=5000): Max retries exceeded with url: /parse?model=current&project=&q=hello (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbb0c0ab7f0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

I startup my server for nlu and action . Here is the docker-compose.yml for running both of them
version: '3.0'

services:
  action_server:
    image: action_end:latest
    ports:
      - 5055:5055
    volumes:
      - ./actions:/app/actions
  rasa_nlu:
    image: rasa/rasa_nlu:latest-spacy
    ports:
      - 5000:5000
    volumes:
      - ./models/rasa_nlu:/app/models
    command:
      - start
      - --path
      - models

my endpoint.yml
action_endpoint:
    url: 'http://ip_address_of_server:5055/webhook'
nlu:
    url: 'http://ip_address_of_server:5000'

docker command I am using now
sudo docker run -it  -v $(pwd):/app/project   -v $(pwd)/models/rasa_core:/app/models   rasa/rasa_core:latest   run python -m rasa_core.train interactive -o project/model/rasa_core/dialogue -s  project/data/stories.md -d project/domain.yml --endpoints project/config/endpoints.yml -u current

Here is what I get if I test both of these servers are running:
#1 : Action server

#2 Rasa NLU

replace ip_address_of_server with localhost in your endpoints.yml

I already tried that now it says;
Failed to parse text 'hello' using rasa NLU over http. Error: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /parse?model=current&project=&q=hello (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ffb4c269c88>: Failed to establish a new connection: [Errno 111] Connection refused',))
``

sure you started the nlu container? how does your endpoints.yml look?

yes. here is the endpoints.yml
action_endpoint:
    url: 'http://localhost:5055/webhook'
nlu:
    url: 'http://localhost:5000'

I started both the nlu and action server using below  docker-compose.yml file
version: '3.0'

services:
  action_server:
    image: action_end:latest
    ports:
      - 5055:5055
    volumes:
      - ./actions:/app/actions
  rasa_nlu:
    image: rasa/rasa_nlu:latest-spacy
    ports:
      - 5000:5000
    volumes:
      - ./models/rasa_nlu:/app/models
    command:
      - start
      - --path
      - models

@stacybot123 @wochinge ,
Im stuck with the same error too running the interactive trainer using the docker....

Bot loaded. Visualisation at http://localhost:5005/visualization.html.
Type a message and press enter (press 'Ctr-c' to exit).
Processed Story Blocks: 100%|██████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1162.50it/s, # trackers=1]
? Next user input (Ctr-c to abort): hello
2019-01-04 22:43:26 ERROR    rasa_core.interpreter  - Failed to parse text 'hello' using rasa NLU over http. Error: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /parse?model=&project=current&q=hello (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5a50471198>: Failed to establish a new connection: [Errno 111] Connection refused',))

Thanks,
-SR

@wochinge Did you got a chance to check this? Sorry for bothering you.

@stacybot123 I think I now finally now the problem. Since Rasa Core is started within a docker image, localhost:5005 points to the Core container itself. What you have to do is either link the Core container with NLU or (since the NLU port is exposed) use the ip address of your docker host instead of localhost.
action_endpoint:
  url: 'http://localhost:5055/webhook'
nlu:
  url: 'http://<ip-of-your-docker-host>:5000'

@wochinge  Now my endpoints.yml look like this
action_endpoint:
  url: 'http://localhost:5055/webhook'
nlu:
  url: 'http://<IP_ADDRESS>:5000'

I am still getting the same error , instead of host='<IP_ADDRESS>' it now says host='<IP_ADDRESS>' :
ERROR    rasa_core.interpreter  - Failed to parse text 'hello' using rasa NLU over http. Error: HTTPConnectionPool(host='<IP_ADDRESS>', port=5000): Max retries exceeded with url: /parse?model=current&project=current&q=hello (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f67cc36fac8>: Failed to establish a new connection: [Errno 111] Connection refused',))

@netcarver This won't work since @stacybot123 does not run Rasa Core as part of docker-compose.
@stacybot123 127.0.01 is not the ip of the host, but simply the localhost of the docker container.
You need the ip address from your host machine from the perspective of your docker container.

@wochinge  This resolved the issue. Thank you so much for your your help. Thank you for being patient.

@stacybot123 Which ip did you finally put in?
Great it is finally solved! 🚀  Sorry, that it took so long to solve that one.

@wochinge I got the IP of the docker host using the command:
docker inspect  container_id
I got two IP address , Gateway and IPAddress , IPAddress was <IP_ADDRESS> , which was not working , so I used the gateway ip address <IP_ADDRESS>.
I tried accessing http://<IP_ADDRESS>:5000/parse?model=current&project=current&q=hello  in browser and this was working.


Update legacy config handling

Task Summary
📅 Due date: N/A
🎯 Success criteria: ...
config.py has been updated with functions to read the config variables easily. All access to configurations should be done via the config.ORGANIZATION_CONFIG.get* functions.
There is currently a re-indexing of the read config to a key:value pair that should be addressed as well.
To Do

[ ] Identify where indexed config variables are used details

init_dirs does not trigger without this so there is something in the startup of the script

[ ] Pass IDs instead of config fragments to functions

IE:
https://github.com/starlinglab/integrity-backend/blob/patches/integritybackend/actions.py#L35
https://github.com/starlinglab/integrity-backend/blob/patches/integritybackend/actions.py#L255
https://github.com/starlinglab/integrity-backend/blob/patches/integritybackend/actions.py#L275

[ ] use config config.ORGANIZATION_CONFIG.get* functions to access data throughout

See: https://github.com/starlinglab/integrity-backend/pull/84/files#r842150626


Improve user name generator

Improved generation of user name which doesn't rely on email (use real name instead)

updated!


Question: Is there a sample for SQLight?

Hi,
I've read, that the current beta supports SQLight again. Is there a sample that shows how to use this Feature?
Wishes,
Manfred

Hey,
SQLite will be supported in Beta6 (coming out shortly). There will be a walkthrough on our doc site (http://ef.readthedocs.org) that shows how to use SQLite.
~Rowan

@rowanmiller how about Redis support?

@tinganho We prototyped a Redis provider (to help us design the core to support non-relational stores) but we won't be working on that provider again until after we get the first stable release of EF7 out.

great. Thx for the quick reply.


Add support for exact matches of indels

As per: https://github.com/ga4gh/beacon-team/tree/developer-faq
No regular expressions patterns.
Example of asking for a deletion: reference=CG & alternate=C
Example of asking for an insertion: reference=C & alternate=CG

Isn't this already supported through referenceBases and alternateBases?

Probably YES, but we want to make it explicit what we are planning to support in a given version.
This "issue" could be a side effect of translating the document to a set of issues.


Replace AMBLDC project with AMCBLDC experimental

This PR aims to replace the current AMCBLDC architectural model with the one present in AMCLBDC_experimental.
The experimental project depends on the common project, to reference Simulink models that could be shared between other boards (such as the amc-foc).
The simulink models in common are:

control foc
control outer
estimators
supervisor rx -> which underwent major refactoring (#65 and #84)

In the amcbldc project the current specialized models are kept:

can encoder
can decoder
supervisor-tx

This PR is the result of the tests performed in #92.

[!IMPORTANT]
The ARM Cortex M CMSIS functions are disabled.

True that, I'll do both and keep this in draft until the tests on the wrist are done.

Testing completed successfully ✅


Models zoo

Mentioned in the "mega-issue" #100, though it would be worth having a separate one.
The simplest model zoo is a github wiki page, another option it to have it as a page in the documentation and receive updates via push requests.
I think model zoo matters most for models that take "more 6 hours to train" (i.e. a large fraction of 24h).

For now we have one VGG net ;-) https://gist.github.com/baraldilorenzo/07d7802847aaad0a35d3
In the near future I hope we will be able to load arbitrary Caffe models, which would give us access to the Caffe model zoo.

Hello,
Working with Keras what I have missed has been some trained model, so taking the VGG net you previously share and a model that I manually ported from C3D (Caffe's fork that allow 3D convolution), I created a repository and some contribution guidelines to share between the community trained models for Keras.
I invite you to share your models on the repository:
https://github.com/albertomontesg/keras-model-zoo
Thanks,

Closing this old issue. The Keras model zoo is the applications module: https://keras.io/applications/


Cannot materialize view models shared via Delta Sharing

Describe the bug
When trying to materialize a view in dbt via dbt run or dbt build, and the view is shared via Delta Sharing, the materialization fails:
Runtime Error in model my_view_model (models/my_view_model.sql)
  [RequestId=xxxxx ErrorClass=INVALID_STATE]
TABLE datacloud_prod_catalog.due_diligence_silver_views.my_view_model cannot be deleted
because it is being shared via Delta Sharing. It is shared through the following shares: my_share.
If you just want to update a shared view, please use ALTER VIEW instead.

To update a view definition when the underlying view is shared over Delta Sharing, ALTER VIEW should be used instead of CREATE OR REPLACE, which is issued by dbt for view models. Ideally, this is baked into the default view materialization in dbt-databricks.
An alternative I have considered is to use pre- and post-hooks to remove and add the view back to the underlying share. However, this is not always feasible.
Steps To Reproduce
In as much detail as possible, please provide steps to reproduce the issue. Sample data that triggers the issue, example model code, etc is all very helpful here.

Create a view model in dbt.
Share the view model with a data recipient via Delta Sharing.
Run the view model using dbt run -s <model>.

Expected behavior
I expect the dbt view to be materialized even if it is shared by Delta Sharing. The view materialization should check if the view exists; if it does, then ALTER VIEW should be issued to Databricks instead of CREATE OR REPLACE to update the view definition.
Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
System information
The output of dbt --version:
Core:
  - installed: 1.8.2
  - latest:    1.8.6 - Update available!

  Your version of dbt-core is out of date!
  You can find instructions for upgrading here:
  https://docs.getdbt.com/docs/installation

Plugins:
  - databricks: 1.8.1 - Update available!
  - spark:      1.8.0 - Up to date!

  At least one plugin is out of date or incompatible with dbt-core.
  You can find instructions for upgrading here:
  https://docs.getdbt.com/docs/installation

The operating system you're using: macOS, M3 Max
The output of python --version: Python 3.12.3
Additional context
Add any other context about the problem here.

@benc-db for when you're back from vacation

This is an interesting edge case that will require some significant testing.  The safest change would be to only use alter in place of 'create or replace' if the table is being delta-shared.  Is there a tblproperty that indicates this?

@benc-db I don't believe so, the closest piece of metadata I found was by calling the REST API and grabbing the storage_location of the view.
databricks tables get $TABLE_FQN | jq .storage_location

For Delta-shared tables/views, the storage_location URI will begin with uc-deltasharing://.
I'd like to see if I can grab storage_location with SQL instead, that way it could be incorporated into the materialization logic like you suggest

My team experiences the same issue. We would be glad about a solution as well.
@shivonchain If I'm not mistaken then the storage_location can only be used from the recipients side to check if a view was received via delta sharing. To resolve the issue we would need to know from the sharing side if a view is part of a share.
The only way I found to check if a view is being delta-shared is using a requests to the shares api: databricks shares list and databricks shares get <share_name> --include-shared-data. The result would be a list of all catalogs, schemas and relations that are being delta-shared. It would be possible to check whether the current view is part of this.
@benc-db would it maybe be better to try to execute the create or replace statement and, if it fails with the error above, retry it using an alter statement?


Issues with opening and import of xlf files

Hi
thanks for this tool!
Currently I have some troubles to use it under Ubuntu 23.04.
The tool shuts down immediately, leaving the google chrome window open, without any language files loaded. In rare cases the xlf files are loading and I can edit and save them. I did not figure out, when it works or when it fails. There is also no exception message or anything else in the logs.
What can I do to get an exception message to find the cause?
TIA

Tested versions 0.6.6 and 0.6.5 ... The files load and can be edited.
Both variants of the import fail here also. Checked it with a minimal fresh exported file with minor changes.

I asked a colleague using the current MacOS 13.4.1c to test it. The xlf files open as expected. The import of an csv results also in closing the app without any comment or exception.

Hint:
If you are in the same situation like me: There is a TYPO3 extension undefined/translate-locallang, that does exactly the same thing in the TYPO3 backend. It is compatible up to TYPO3 V11.
composer req --dev undefined/translate-locallang
@garfieldius : No pun indented  with this comment ... It should be just a hint, if somebody has the same issue and needs to edit / import many labels.
Big advantage of your solution is, that no fully installed TYPO3 is necessary.  :-)

I'll test on Fedora 38 with chromium tomorrow again. But last time it worked flawlessly.
Not sure if this could be remotely related, but maybe it helps to cleanup some caches of *chrome. ~/.config/chromium/Default/*Cache/*

@mschwemer I found some issues with the CSV handling. The browser navigates away, which causes the server to "loose contact" and closes. Will look into that. However, this is only during exporting or importing CSV files. During "standard" operations I cannot reproduce this. Calling t3ll locllang.xlf loads the file and editing and saving it works on several systems. Including Ubuntu jammy.

@mschwemer There were several issues with the sent HTTP headers and internal state handling. Please upgrade to 0.7.2 and check if it works now.

@garfieldius
I have the same problem on Windows 11, if I try to open locallang files via WSL2  - the command executes but no Chrome window appears (problem even with the new 0.7.2 release). Is it possible to start the program with debugging output to check where it hangs?

Hi, unfortunately I cannot reproduce this on Fedora or Windows 11.
In Version 0.7.4 there is now a debug flag. Please try this version like this: t3ll -d path/to/locallang.xlf and check if it says something about a chrome error.


SCIM 2 Filter Request response resource attribute is case sensitive

SCIM has support for the filter & gives the below image response

In response we see all the attribute are starting with small case except the Resources attribute which is having capital 'R'. Is it really needed  for R to be capital case in response or it is the typo error. And is Resource keyword is case sensitive.
We refer the different sites for the documentation from http://www.simplecloud.info/ it shows resources attribute R is capital.

SCIM RFC 7644 specification defines the SCIM resources query response as follows
https://www.rfc-editor.org/rfc/rfc7644.html#section-3.4.2
The key Resources starts with capital R
There is no mention of the case sensitivity of the keys in response to JSON
Since this is an open standard and need to confirm the interoperability between SCIM servers, it's better to adhere to the same keywords given in the specification


Compile mock crate, first attempt.

Please help keep the CHANGELOG up to date by providing a one sentence summary of your change:
(N/A)
https://github.com/rusoto/rusoto/issues/1184 - compile the mock crate.
Left to do: ensure a failed build shows up in Travis and just run it on one job, not all of them like this.

🤔 the AppVeyor build failed due to the mock crate having the intentional error in it. But how did it  pass before, when the mock crate didn't compile for publishing? Hrm...

I think what happened is I got ahead of myself and didn't let the AppVeyor build finish on the PR for the release. So this PR isn't necessary as AppVeyor does this already.
Unless I hear otherwise I'll assume this is the case. 😄

Going with this PR not needed. 😉


Deeplink is no longer followed after forced login

Hi,
I have been using the deep link module since the start of the project but ever since the update, i cannot get the following scenario te work, which was always fine:

User goes to a deeplink that requires a logged in user
In the old version, i had a specific login.html in the resources/deeplink which allowed a user to login but keep the URL in the bar
In this version, it is replace with a theme/login.html but that just leads ppl to the default MF/page after login
If they follow the deeplink while logged in, it works fine

Please assist because i cannot follow what exactly was changed thats causing this to function like this?

Have you set the constant: DeepLink.LoginLocation?

I have set the login location. but still, it is not redirecting to the respective page, but it is redirecting to the login page.

This should be fixed now when using the latest Mendix version.


Windowed returns partial window when source length < window size

Suppose:
var ns = Enumerable.Range(1, 10);

Console.WriteLine(ns.Windowed(5)
                    .Select(w => w.ToDelimitedString(","))
                    .ToDelimitedString(Environment.NewLine));

Console.WriteLine(ns.Take(3)
                    .Windowed(5) // NOTE: window size > source length
                    .Select(w => w.ToDelimitedString(","))
                    .ToDelimitedString(Environment.NewLine));

The first console output is correct:
1,2,3,4,5
2,3,4,5,6
3,4,5,6,7
4,5,6,7,8
5,6,7,8,9
6,7,8,9,10

The second one should have been blank but instead prints: 1,2,3
Tested against MoreLINQ 2.0 beta 3.

Hmm. the xmldoc says:

This operator is guaranteed to return at least one result, even if the source sequence is smaller than the window size

So I'd say it was a feature, not a bug...

This operator is guaranteed to return at least one result, even if the source sequence is smaller than the window size

So I'd say it was a feature, not a bug...

Perhaps it was a feature for the original contributor but could be a bug depending on the user. I found it to be a bug when expecting it to behave just like F#'s version, especially if it's going to go by the same name…
Microsoft (R) F# Interactive version 14.0.23413.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

For help type #help;;

> [1..5] |> Seq.windowed 3;;
val it : seq<int []> = seq [[|1; 2; 3|]; [|2; 3; 4|]; [|3; 4; 5|]]
> [1..2] |> Seq.windowed 3;;
val it : seq<int []> = seq []

Aligning it means lesser of an element of surprise (e.g. LINQ's Take & F#'s take differ; the latter throws if there are more elements than you asked whereas truncate works more like Take). I'm not saying partial windows are wrong to expect but perhaps that needs to be an option or another method.
I forgot to update the doc summary so thanks for spotting that.

I'm not particularly attached to either behavior per se, but I worry that this is a backwards-incompatible change. Windowed is part of linq since the first 2.0 beta, and as of this writing has over 15000 downloads . It would be a shame if people were depending on this behavior, and then a new version changes it. The worst part is that the behavior changes silently; with a crash or failure to build at least the issue will not go undetected.

I worry that this is a backwards-incompatible change.

I'm glad to learn someone else cares about that too 😄 but frankly 2.0's been a beta all along (for far too long & something I'm trying to change) and that does mean that authors reserve the right to change things that still needs attention or fixing.
If we cannot afford a breaking change to this beta then it makes #209 hopeless.

The worst part is that the behavior changes silently; with a crash or failure to build at least the issue will not go undetected.

Are you suggesting to change the name just to crash builds? Perhaps mentioning the behavioural change in the release notes is better?

I'm not particularly attached to either behavior per se

Have you looked at #153?


[Impeller] Metal playgrounds are not retina display aware.

But the OpenGL variants are. Which makes it hard to visually compare rendering results between the two.

Fixed by https://github.com/flutter/engine/pull/33708.


Fix PST time difference offset in help message

Sorry if this is intended, but I think usually PST is expressed as UTC-8, not UTC+8...
This message will be shown in new/ pages of Oozie Coordinator and Bundle :point_down:

FYI, there will be no banner from Hue 3.10, but we can use this fix for earlier versions. Thank you.

@sai-krish we do still have the banner AFAIK, just here in 3.10 there is no more notion of PST and we use the new editor only (templates in 'editor2' directory, not 'editor')?
cf. Timezone improvements
http://gethue.com/oozie-improvements-in-hue-3-10/

This page is not used anymore


Documentation for value comparers

Fixes #1986

@smitpatel Can I merge this?

@smitpatel Can I merge this?

What is acrolinx score?

What is acrolinx score? - I don't care. I want to deliver value for customers, not get a high score on some set of rules.
@smitpatel Can I merge this?

I don't care about high score either. But there was typo. At least it catches those obvious cases. It is same as saying to deliver feature we don't care about code quality.
Someone else can sign off, I am not.

Where is the typo?


Update SPEC.md

adding back sections for version header and authentication
removed unnecessary backslash in "dashboard\_url"
Intro for Update a Service Instance
Removed section "Manage Application Requests with Route Services"
Removed section "Volume Services (Experimental/Obsolete)"
Removed sections related to using cf curl to manage Access Control

LGTM

@shalako you'll need to sign your commits.

@shalako you'll need to sign your commits.

I don't know how to change commits I've already made. I added another commit and signed it. Good enough?
Is this a CFF requirement? I've never had to do this before.

@shalako just rebase/squash your commits down to one and make sure you sign that one - then it should be ok.

since we don't have any kind of CLA thing in place DCOs are the next best thing.

LGTM

@shalako should we close this?


Reformatted bottom part of website to look nicer on desktop

Closes #52, #79, #80, #81, #82

Now also closes #85 #86 #87 #88 #89 #90 #91 - will separate many issues into different PRs going forward


Question: Is it possible to create a dynamic/adaptive forms with WTForms?

I'm sorry if the title wasn't clear enough but I have an example that demonstrates what I need.
I have an example that I built using json-editor/json-editor and JSON Schema.
Here is the direct link to that example: click
Here are the screenshots:

As you can see, there is a dropdown called "Content" which lets you choose the type of content. Depending on the content type, the form changes.

In this image, I chose "Attachment", which requires some fields that other types don't have.

In this image, I chose the "Text" type, and the form automatically transforms.

As you can see, if I chose the "Image" type, the form adopts its fields.
The best workaround I can think of to implement something similar to this is to create three different forms and put them in separate tabs but if someone fills the form and decides to change the type of the form, the filled part will not be in other type. Is there any implementation or a way to make this kind of form in WTForms?

Yes, it is possible to process dynamic forms using field lists and nested form fields. You still need JavaScript to handle building the dynamic changes to the forms.

I wanted to stay in *.py files and do the things I wanted to do without creating any front-end files.
For anyone who met this issue: this can be easily done without writing a single line of JavaScript using AlpineJS or hyperscript.
Just use the render_kw argument of the fields, then you are good to go!
As for the validation, use If validator from wtforms-components.


MSI installer could user our logo

Right now I'm looking at a red CD icon, but it'd be cool if we could get the Rust gear in there!
cc @vadimcn

Unfortunately it isn't just the icon.  You have to replace the whole top panel.
If anybody is feeling artsy, here's a spec of the graphical assets that we'll need: http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html#replacing-the-default-bitmaps.  We'd probably want to replace both WixUIBannerBmp and WixUIDialogBmp.


Fix link to license

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Create admin

When I  tried to create an admin user I had this error:
" Was unable to import superset Error: cannot import name 'quoted_name' "
Anyone have an idea about this issue?
Thanks

I too am getting the same error. Can someone please help?

This Github issue has pretty much no context at all. Did you follow the installation steps?

Actually, please reopen an issue and fill the template this time.

@ganesh3  @MB-ADS @mistercrunch This is sqlachemy error. Updating your SQL alchemy with pip install -U sqlalchemy v1.1.7 > v1.3.1 solved this for me

General answer: Don´t use pip, but install from this repository.


Inference speed

How does the implementation in this repository compares to the MMTracking implementation? Does MMtracking has a lower latency during inference?

I compared the inference time on cpu with the MMtracking. The MMtracking is very slow but at leas it runs at almost 1 fps but the implementation in this repo takes for ever.

@noahcao ^^

From my experience, the implementation in mmtracking is slower in most cases as it requires a large codebase and designed for better flexibility. But I don't think it ran as slow as 1fps when I tested it. Can you check the efficiency bottleneck for the mmtracking implementation to make more cues?


Add Homebrew packaging

If you want to maintain the packaging by yourself, simply fork https://github.com/leonklingele/homebrew-pick, then update the README of pick and homebrew-pick to use your GH username.

There is already an app called pick:
$ brew info pick
pick: stable 1.4.0 (bottled)
Utility to choose one option from a set of choices
https://github.com/thoughtbot/pick
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/pick.rb

We could rename the brew app to pick-pswd or similar. What do you think?

Awesome, thanks for setting that up! I will go ahead and fork/maintain the repo to keep releases in sync.
The name conflict in Homebrew is a bummer, so adding a suffix is probably the best bet. After a fair amount of thought I couldn't come up with anything better than pick-pswd, so I'm happy to use that.

Updated.
pick-pass also sounds nice and is even pronounceable :)

Can this be merged / have you decided on a name?

Sorry for the delay, I haven't yet read the homebrew docs to figure out exactly how to set the name. It looks like it may just be the script name?
pick-pass sounds great.

Yup, just rename the script to pick-pass.rb.

Thanks, renamed. Does that change the install instructions?
$ brew tap bndw/pick-pass
$ brew install bndw/pick-pass/pick-pass

I have updated the PR: https://github.com/bndw/pick/pull/85/files
This and this should be helpful. tl;dr is here

I've updated https://github.com/bndw/homebrew-pick to reflect. Thanks for the links :)

Seems like you also have to use class PickPass < Formula inside the file ("formula"). Sorry.

Thanks for the catch, updated


Install Error: KeyError: 'twilio_scr'

Fresh install of Raspbian, cloned oscar from github, and then ran $sudo ./install.py and after a long, long time, spits out this error:
Traceback (most recent call last):
File "./install.py", line 239, in
'''.format(**locals()))
KeyError: 'twilio_src'
Didn't even pick twilio. Picked Gmail.

#29


[lit-next] input does not work with null/undefined values like it did on version 1

Description
Just tried version 2.0
Dont know if Im doing something wrong, but version 2.0 does not handle null/undefined with .valueAsDate.
lit-html version
2.0.0-pre3
Steps to Reproduce
Use this and set to version 2.0.0-pre3
https://codesandbox.io/s/lit-html-forked-njyi8?file=/index.html

Live Reproduction Link
https://codesandbox.io/s/lit-html-forked-njyi8?file=/index.html
Expected Results
Work as normal like version 1
Actual Results
Try sample...
TypeError
Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.
Browsers Affected

[x] Chrome
[ ] Firefox  (I have not tried)
[ ] Edge   (I have not tried)
[ ] Safari   (I have not tried)

Thank you for the issue report!  This was indeed a bug in the pre-release, and has already been fixed on the lit-next branch in this PR: https://github.com/Polymer/lit-html/pull/1347/files#r508116058
We are going to get a new pre-release out soon, hopefully early next week. Thanks for the help in testing!


[vs16.8 snap] Updated branding for 16.8

Same changes as in the last update for 16.7.
Grepping the tree for "16.7", I'm wondering if we still need this override in eng\Versions.props:
    <!-- Override Arcade's default VSSDK version with one that supports client enablement.
         Can be removed after Arcade moves up. -->
    <MicrosoftVSSDKBuildToolsVersion>16.7.13</MicrosoftVSSDKBuildToolsVersion>

Thanks, I'll let you guys merge when the branch opens for 16.8 commits.

Arcade still seems to be on an old VSSDK so I think leaving the override is correct.


New Release?

I see a whole lot of changes have landed since the last release, but I can't tell what state master is in. Are there plans for a new release soon, or some kind of idea what needs to be done for one?
Thanks!

Things look to be in an okay state for release. I think the only major changes are some asserts, skip and currentElement were added. I think everything else was internal cleanup.

I think https://github.com/google/incremental-dom/pull/179 is the only open PR I'd like to see merged before v0.3.

Hmm, I think if we are adding skip and currentElement, might be good to have the PRs with the asserts too. I think I just need to merge them.

Version 0.3 was created from this commit: https://github.com/google/incremental-dom/commit/9ac4fcf756e47f088a7a08b8b6cb4d279631fcfb


Race when table is missing

There is a race during table creation. When two or more instances find the table missing, all will try to create it but only one will succeed. The others will fail with a ResourceInUseException even though the error is harmless and they could just proceed.

thanks. will verify asap


Fixing shadowed variables in tmop files [shadow-tmop-dev]

This PR partially addresses issue #2701.
I tried to make minimal changes and keep the spirit of the original variable names. Hopefully, splitting these into small PRs will assist the original authors and/or reviewers in assessing the changes.
The compiler has no trouble determining which variable is intended but the choice is not always obvious to developers who may not be aware of one or the other of the possibilities.

PR
Author
Editor
Reviewers
Assignment
Approval
Merge

#2732
@mlstowell
@tzanio
@vladotomov + @camierjs
12/22/21
⌛due 01/05/22
⌛due 01/12/22

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Merged in next for testing...


[VS Code] Update document

Coverage remained the same at 48.454% when pulling d07abfddbc25c60789c482bc43bdfb6a454222d3 on yiyi/vscode_update_doc into df38cbba7161cfa37e59b3fb8359b850c1389c08 on master.


Nginx creates encryption keys on every restart

When I start docker-compose up -d for the first time, nginx generates a private key:
nginx                 | diffie hellman private key does not exist; creating..
nginx                 | Generating DH parameters, 2048 bit long safe prime, generator 2
nginx                 | This is going to take a long time

When I shut the server down with docker-compose down and start again with docker-compose up -d, the keys are generated again (same message). Since this really takes several minutes, this is quite annoing.
I guess, the nginx keys could be saved in a volume to prevent re-generation.

Same for the certificates:
nginx                 | Error: urn:ietf:params:acme:error:rateLimited :: There were too many requests of a given type :: Error creating new order :: too many certificates already issued for exact set of domains: central-test.apps.soilandmore.com: see https://letsencrypt.org/docs/rate-limits/

Can you please tell us more about why you are doing a down? This is a dramatic action intended to throw everything away so I think that’s the right behavior.
We have a note about not using down (unless you really do want to start from scratch) at https://docs.getodk.org/central-install/.

Oh, sorry, didn't see that... It was just how I expect docker-compose to work from other projects: Application state is stored in persistent volumes and I can throw the images away at any time... (and move to a different machine for example)


Change format of Validate Extension message

Is there an existing issue for this?

[X] I have searched the existing issues.

Please describe the feature you have in mind and explain what the current shortcomings are?
Currently it throws ValueError, it should trigger KnownPublishError (?) to show it in Report tab instead.
How would you imagine the implementation of the feature?
Add link to documentation about installing.
Are there any labels you wish to add?

[X] I have added the relevant labels to the enhancement request.

Describe alternatives you've considered:
No response
Additional context:
No response

it should trigger KnownPublishError (?)

Validation? That's PublishValidationError.


enable configuration to be dumped with new Symfony2 config:dump-reference command

ref: https://github.com/symfony/symfony/commit/79a957be77d3afbb8b3ddbb83a330e05d85b876a

Is there more?

nope

most bundles work out of the box, but this bundle's Configuration class has a constructor, so it needs to be manually configured.

Thanks!


Cannot find settings

I'm using atom 0.174.0. Cannot find settings under the package.

I've just updated to 0.174.0 and can confirm that the settings do not appear. Will do some testing now

This is caused by this bug: https://github.com/atom/settings-view/issues/356
If you activate the package by opening anything (I suggest the new post window then close it) the settings will now appear

This was fixed in atom


[chore] updating codecov configs

Changes
Updating Codecov configs following kn/client, ignoring tests and hack dir

:broom: clean up config and add ignores

/kind cleanup

Release Note

Docs

@lance @lkingland can we get a lgtm here?


Wrong type export when building in Next.js

Next.js apparently doesn't like the exported typings:

Type error: Could not find a declaration file for module 'rxdb-supabase'. '[stuff]/node_modules/rxdb-supabase/build/supabase-replication.js' implicitly has an 'any' type.
There are types at '[stuff]/node_modules/rxdb-supabase/build/src/supabase-replication.d.ts', but this result could not be resolved when respecting package.json "exports". The 'rxdb-supabase' library may need to update its package.json or typings.

I'm not sure whether this is genuinely a problem with rxdb-supabase, or if it should be raised with Next.

  "exports": {
    ".": {
      "import": "./build/supabase-replication.js",
      "require": "./build/supabase-replication.js",
      "types": "./build/src/supabase-replication.d.ts"
    }
  },

I don't know if this is going to ruin CJS compatibility. Another artificial problem created by ESM.


Add email validation to feedback form

Issue:
When a user enters their email address into the feedback form the email address should be checked for proper formatting as an email address in case the user mis-entered the address. The user should be notified to: "Please enter a valid email address" and prevented from submitting feedback.
DoD:
Entering a malformed email address in the feedback form results in a notification and prevents the user from submitting the form.
Details:

TBC  how to handle missing email ID information - Need error message

duplicate of https://github.com/unfoldingword/gateway-edit/issues/106


Tests bytes00-spec and keccak00-spec now pass

The following tests now pass:

tests/specs/benchmarks/bytes00-spec.k
tests/specs/benchmarks/keccak00-spec.k

The new lemmas introduced are:

rule #bufStrict(SIZE, DATA) => #buf(SIZE, DATA) requires #range(0 <= DATA < (2 ^Int (SIZE *Int 8)))
rule (#buf(DATA_LEN, DATA) ++ _BUF) [0 .. DATA_LEN] => #buf( DATA_LEN , DATA ) [simplification]

I will update this soon with a claim spec to test simplification of the term that I handled.

Fails CI. Perhaps there were changes I relied on from #1034 that I didn't account for in this PR.

No it's just timing out, you can re-trigger the job.

Still fails CI because of timeout.

Blocked on #1055


PEP 8 and simplify some statements.

Hi, I tried to apply the PEP 8 as much as possible.

nice reformatting :)


Feature request - implement ON CONFLICT WHERE

Sqlite supports this but the onConflictUpdate method does not allow me to add a where clause.
https://www.sqlite.org/lang_UPSERT.html

Yep, I'll add support for this. Postgres also supports the other where clause (before DO). I'll need to break/improve the onConflict methods to get this done. Currently there's two methods onConflictDoNothing and onConflictUpdate. I don't want to keep adding arguments to those since everything else in Kysely is builder-based.
I'm thinking this kind of interface would be handy and in line with Kysely's API:
db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .column('name')
    .where(...) // You can chain multiple of these (?)
    .doNothing()
  )

db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .constraint('name_unique_constraint')
    .where(...)
    .doNothing()
  )

db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .columns(['name', 'birth_date'])
    .where(...)
    .doUpdateSet({ ... }))
    .where(...)

db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .columns(['name', 'birth_date'])
    .doUpdateSet({ ... }))
    .where(...)  // You can chain multiple of these (?)

Actually it seems that postgres supports the exact same syntax as sqlite.

This is now implemented in 0.14.0. All dialects so far (SQLite and PostgreSQL) that support on conflict support the same API. I didn't need to add any new dialect-specific methods.

Just tested it, looks great! Thanks!

Hey - since this adds that virtual "excluded" table to the query - is it possible to do this while keeping strong typing?
VALUES
    (2, 'robert'),
    (5, 'sheila'),
    (6, 'flora')
ON CONFLICT (id) DO UPDATE
**SET name = EXCLUDED.name**;```

I checked the docs for the regular update query builder and didn't see anything about using refs in the values of the MutationObject there either.

@midwesterntechnology Currently there's no way to do that in a type-safe way. We could add a ref method to the expression builder so that you could do this:
db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .column('id')
    .doUpdateSet({
      name: (eb) => eb.ref('excluded.name')
    })
  )

but I think that's too much ceremony for such a simple thing. This wouldn't work
db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .column('id')
    .doUpdateSet({
      name: db.ref('excluded.name')
    })
  )

because db isn't aware of the context and there is no excluded table as far as it's concerned.
This isn't possible either:
db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .column('id')
    .doUpdateSet({
      name: 'excluded.name'
    })
  )

because in theory, somebody could want to set the value to a string "excluded.something" and we can't know which the user means.
So the only option really is to add a ref method to the expression builder passed to the callback.

We could add a generic ref function like this
db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .column('id')
    .doUpdateSet({
      name: ref('excluded.name')
    })
  )

and we could make it type-safe BUT without autocompletion. You'd just get an massive obscure typescript error when the value doesn't match any of the visible columns.

@midwesterntechnology Currently there's no way to do that in a type-safe way. We could add a ref method to the expression builder so that you could do this:
db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .column('id')
    .doUpdateSet({
      name: (eb) => eb.ref('excluded.name')
    })
  )

but I think that's too much ceremony for such a simple thing. This wouldn't work
db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .column('id')
    .doUpdateSet({
      name: db.ref('excluded.name')
    })
  )

because db isn't aware of the context and there is no excluded table as far as it's concerned.
This isn't possible either:
db.insertInto('person')
  .values(person)
  .onConflict((oc) => oc
    .column('id')
    .doUpdateSet({
      name: 'excluded.name'
    })
  )

because in theory, somebody could want to set the value to a string "excluded.something" and we can't know which the user means.
So the only option really is to add a ref method to the expression builder passed to the callback.

So this, correct:
>       name: (eb) => eb.ref('excluded.name')
>     })```

That makes sense to me. Or maybe a ref method on the oc object? I believe in sqlite anything within the DO UPDATE SET clause is aware of the "excluded" row.

That's true. We could add it to the oc object, but would people find it?
I was thinking about a more general feature. ExpressionBuilder is always passed to callbacks throughout Kysely. Whenever you are creating a subquery or a raw expression in select, where etc. using a callback, it's always ExpressionBuilder that's passed there. If we added a ref  method to ExpressionBuilder people would get used to it being there and it could be used anywhere.

Exactly my thinking, it could be used for regular update queries as well, I had just edited my comment to add that!

I'm all for that if you're willing to add it, seems like something that would definitely fill a gap.

I've thought about this before. The only reason it's not added yet is that it only helps when you want to assign some other column directly. As soon as you want to do something more complex (for example: count = excluded.count + 1 you need to once again use raw. We would of course allow ref to be passed to raw as well, but the code quickly becomes so messy that it's better to just write less type-safe, but readable code.
.doUpdateSet({
  count: (eb) => db.raw('? + 1', [eb.ref('excluded.count')])
})

I think for basic updates you'll never want to assign columns directly like that, but for ON CONFLICT DO UPDATE at least, in most cases you'd be doing a direct assignment with no functions. An update that includes a join could have direct assignments as well. I'm using db.raw right now for mine, but in this case the type safe option would be no less readable.

Could you open a new issue for this feature? You can just copy paste some examples from our discussion to it.

Done.


redid popover mechanism to avoid from beeing removed from DOM

Fixes #376
Extra:
CSV export will now export filtered (via simple and advanced search forms) results

Coverage remained the same at 73.739% when pulling 8205cf2399b161f56477e1c7e26927abfb481c40 on feature/#376-fix-advanced-search-form into 58e657456541f003724af0f40312c9fed27d3854 on develop.


fix assertion for empty values

Added new tests which fails currently

I'm not sure about this - why would you want to actually send empty values?

Well I'm not sure too :)
But it happened to us with generic data acquisition that one of the string field value became empty and server asserts on it.
We've added the check to solve this and I created this PR with a thought that maybe library can handle this instead of just assert.
But I don't know if it's better to let it assert to notify the wrong data input to the caller or make it work by default and potentially cause other problems unnoticed.

The assert is there if I'm not mistaken because influx didn't like it at all. It makes more sense to stop it before it goes out through the network. It can either be an assert and part of the API's contract or an enforce, but I don't think it should be silently swallowed.

Ok, agree, I'll close this then. Better to know about it sooner than later.

Hello,
I agree w/ both of you. In my hobby project I am reading data from sensors and sometimes data can be empty (not null). My Influx version doesn't have any problem to store such a data. So for me it is not a problem to handle such a case in app but not in lib. But generally I think there is a use cases that you want write tags only or tags w/ some values having data and some of them empty.


Formatted indentation with 2 spaces on examples/simulate-springs page

Fix: Inconsistent indentation (mixed Tab or Spaces)
https://p5js.org/examples/simulate-springs.html
Changes:

Change Indentation with 2 spaces.

Screenshots of the change:
e.g.

Looks good. Thanks!


github.com/willdonnelly/passwd is still an indirect dependency of yip after #149

https://github.com/mudler/yip/blob/master/go.mod#L81

@mauromorales @mudler should we also refractor here to completely remove passwd from yip's dependency?

@nianyush nice catch, will do

@mudler please have a look at https://github.com/mudler/entities/pull/13, after it's merged I will bump entities in yip

merged the bump in yip but we still need a release
cc @mudler

https://github.com/mudler/yip/releases/tag/v1.8.0 published now :+1: , closing! thanks @mauromorales !


The page scrolls up randomly suddenly after autosave

The page scrolls up randomly suddenly after autosave
Steps to reproduce the behavior:
It just automatically happens when editing the content
Screenshots
https://github.com/sanity-io/next-sanity/assets/43655450/e795fa07-edf2-4259-acf5-fd7521ba438c
*Versions of sanity dependencies
"@sanity/image-url": "1"
"@sanity/vision": "3"
"next-sanity": "^8.4.6"
"sanity": "3"
What operating system are you using?
Windows 11, Edge/chrome, or Android 14  Edge/chrome
Which versions of Node.js / npm are you running?
10.2.4
v20.11.0.

That looks really jarring! Can you share the exact versions of sanity and next that you're using?


(Temporarily) disable upcoming events for live site

Live website builds are failing; disable this part of the shortcode to allow builds to resume.
Helps with issue #22222.

Thanks @sftim by the way probably should still track down the issue so that we can find real fix for this.

/lgtm
/approve


Upgrade Credo to 1.3.1

Overview
Just a Credo update for our Elixir toolchain :-)
Testing recommendations
Just issue make elixir-credo, or check if the CI is green
Related Issues or Pull Requests

Checklist

[ ] Code is written and works correctly
[ ] Changes are covered by tests
[ ] Any new configurable parameters are documented in rel/overlay/etc/default.ini
[ ] A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation

+1
Thanks!


Will Chromium's high resource usage be resolved at all?

Title.
Pretty much all Chromium-based browsers use a little over 1 gig.
Even Firefox has this issue.

This is related to Chromium's multi-threaded architecture and factors such as the number of tabs you currently have open, whether the tabs are awakened, and the type of content currently carried by the tabs.
You can use Chromium's built-in memory saving feature to control memory usage.
@MagmaBro123

@MagmaBro123 Here some gifts : in chrome flags
smooth scrolling
Auto-disable Accessibility
secret command line to improve speed,  battery , security
--enable-low-end-device-mode -enable-low-res-tiling
--js-flags=--noexpose_wasm --js-flags=--jitless --disable-webgl --disable-webgl2 --disable-3d-apis --disable-features=WebAssembly,AsmJsToWebAssembly

@gz83 @MagmaBro123 @drimisssss Yeah, this is just how it is. Firefox is starting to get up there too with resource usage. Plus web pages get larger and larger. It is not uncommon to find websites that download 50Mb of data, and take 250+Mb of memory for the renderer process hosting the tab.
All browsers nowdays except for Palemoon and Internet Explorer use a multi process architecture, with a central, main "host process" that acts as a delegate and supervisor for child processes that It spawns as needed. Usually each child process will host a tab, a GPU context (like a WebGL Canvas surface), or in the case of Chromium, extensions are also sandboxed and get their own process.
Also, this is not reddit, so In case you were thinking about it, please don't turn this into a Chromium versus Firefox flame war. Both browsers have good things and bad things about them. Thats why I maintain forks of both! If you wanna use firefox, maybe try my compiler optimized, and privacy tweaked firefox fork, Mercury > https://github.com/Alex313031/Mercury

@Alex313031 Great ! Thank you for these advices end Mercury :)
about multi process architecture, can these flags disable multi process in Thorium ?
--single-process --process-per-site  --process-per-tab

I second previous two answers.
Not Thorium related, so closing for good.
P.S.: Use an ad-blocker to minimize (unnecessary) JavaScript runtimes.


Add docker option to dev-ops

Pulled from Ez Cypto. Put all the docker stuff into a subfolder, to separate from pm2 option. Will clean it up

Need to bind to localhost

@RalphLavelle have you done this for ez crypto?

I split the pm2 and docker stuff into subfolders to reduce confusion


[mgmt] drop python2

RE: Python 3 packaging updates starting Jan 1st

RE: Python 3 packaging updates starting Jan 1st


Where did Shiffman code this website

Hey y'all,
Sorry if I'm wrong but I surely remember Shiffman coding this website somewhere on a livestream some time ago, and I was searching for it again. Did he cut it out of the livestream or did he make it private? I'll be very happy if someone can point me to the specific video or livestream.
Thanks in advance!
Nola

https://www.youtube.com/user/shiffman/search?query=maze+generator
Look for: Maze Generator with p5.js - Part 1 to 4

i dont know

I think he first introduced the new system in this stream: https://www.youtube.com/watch?v=iCxqLVm2H3w


bundle installer : error >>> gem 'ffi', :git=> 'https://github.com/ffi/ffi.git', :branch => 'elcapt'

I comment on the last line on Gemfile: eidolon project i can ignore gem ffi?
and bundler install are worked.
========
Gemfile:
source 'https://rubygems.org'
gem 'cocoapods'
gem 'cocoapods-keys'
gem 'sbconstants'
gem 'second_curtain'
gem 'fastlane'
gem 'ffi', :git=> 'https://github.com/ffi/ffi.git', :branch => 'elcapt'
=======
error information , when i bundler install and uncomment gem 'ffi'
Uthens-MacBook-Pro:eidolon uthen$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Fetching https://github.com/ffi/ffi.git
fatal: Could not parse object 'd94b923c1f574ff63743f0a3eefc917da03386b9'.
Git error: command git reset --hard d94b923c1f574ff63743f0a3eefc917da03386b9 in directory /Users/uthen/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/ffi-d94b923c1f57 has
failed.
If this error persists you could try removing the cache directory
'/Users/uthen/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/cache/bundler/git/ffi-7fa1fad54f97b3471351dbde91d8b0a9444ce49e'

Next problem on x-code i can't build project :
diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
i try : sudo gem install cocoa pods and re-build again still same error on X-code.

Build on x-code to have the problem: on  ../eidolon/Kiosk/Supporting Files/PodsBridgingHeader.h
/Users/uthen/Projects/eidolon/Kiosk/Supporting Files/PodsBridgingHeader.h:1:9: 'Artsy_UIColors/UIColor+ArtsyColors.h' file not found

Now i open : Kiosk.xcworkspace workspace and rebuild ti's worked
http://stackoverflow.com/questions/31139534/pod-error-in-xcode-id-framework-not-found-pods

👍


WIP Outputs in inputs rebased twice.

Reorged output file computation in preparation for batch mode.

@swift-ci please smoke test

@swift-ci please smoke test os x platform

@swift-ci please smoke test os x platform


Fixes CI and ecoding issue

This should fix unnecessary errors.
cc @SauravMaheshkar .

So the issue was we used to use both sdist and bdist_wheel apparently only one is needed and bdist_wheel is enough.


Laravel 5.3 blade translation error @role()

I'm currently upgrading to Laravel 5.3 and I found a problem with some of my templates when using the @role() directive from Entrust.
The error I get:
Parse error: syntax error, unexpected ''admin'' (T_CONSTANT_ENCAPSED_STRING)

My view (testcase):
@role('admin')

test

@endrole

The rendered cached view:
<?php if (\Entrust::hasRole'admin') : ?>

test

<?php endif; // Entrust::hasRole ?>

Which off course gives a syntax error.
This could be an issue unrelated to Entrust, but I'm unable to find out what the problem is.

I found the problem in the upgrade guide:

Custom Directives

In prior versions of Laravel, when registering custom Blade directives using the directive method, the $expression passed to your directive callback contained the outer-most parenthesis. In Laravel 5.3, these outer-most parenthesis are not included in the expression passed to your directive callback. Be sure to review the Blade extension documentation and verify your custom Blade directives are still working properly.

I will try to create a pull request.

I have error with Fix
BadMethodCallException in Builder.php line 2437:
Call to undefined method Illuminate\Database\Query\Builder::hasRole()

I can't reproduce that here, and I can imagine the fix won't work on pre 5.3 Laravel installations. What would be the best way to solve this?

 Like this:
@role(('admin'))
...
@endrole

@permission(('role-edit'))
...
@endpermission

The file EntrustServiceProvider needs changed.
\Blade::directive('permission', function($expression) {
return "";
});
needs to be
\Blade::directive('permission', function($expression) {
return "";
});
if you add the () around {$expression } it works. you also need to change it for role and ability.

Hi @kezzab25,
Just want to clarify, is your resolution works on Laravel 5.3? Because I also found resolution here
What would be the best solution, modifying the class or use double parenthesis as what @marzochi advice?
I was using Laravel 5.2 before with Zizaco/Entrust and want to upgrade to 5.3, but before doing that just want some clarification before diving into it.

The double (( would work but I put in the the service file so that I
wouldn't have to go and change it in multiple blade files.
On Sep 25, 2016 8:57 PM, "Angelo Escasio"<EMAIL_ADDRESS>wrote:

Hi @kezzab25 https://github.com/kezzab25,
Just want to clarify, is your resolution works on Laravel 5.3? Because I
also found resolution here https://github.com/Zizaco/entrust/issues/653
What would be the best solution, modifying the class or use double
parenthesis as what @marzochi https://github.com/marzochi advice?
I was using Laravel 5.2 before with Zizaco/Entrust and want to upgrade to
5.3, but before doing that just want some clarification before diving into
it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Zizaco/entrust/issues/657#issuecomment-249463348, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AERrge6Q3FqVETJI6Uc0vr7uhDYluC14ks5qtyaIgaJpZM4J6VQY
.

@marzochi  Thanks

it may help you
user like this :
@role(('admin'))
test
@endrole


Added doc of chunk* options for addLayers

Description for addLayers options (chunkedLoading, chunkInterval, chunkDelay and chunkProgress).
Copied option spiderLegPolylineOptions into All options section as well (was only in top Defaults section).
Also slightly improved punctuation here and there.

Thanks for the corrections!
I also took the opportunity to re-organize the Options and Methods section.
For the latter, I tried differentiating methods for the MCG and the ones for Clusters only.

Awesome, thanks


hbase - recordcount and readlatency

I am running performance tests on our hbase cluster.
I have populated a test table by running ycsb load with record count of 17million.
I ran several ycsb runs with different values for record count.
The AverageLatency for READ operations vary based on record count.
For record count 10000, the results are under 5ms. For large recordcount, the READ latency is in the order of 100+ ms.

recordcount=200000
fieldcount=34
fieldlength=210
readproportion=1
readallfields=true
maxscanlength=400
operationcount=15000
Output:
<clipped ..>
[READ], AverageLatency(us),<PHONE_NUMBER>0011662
Question is, how does recordcount affect read latency?
Does it do read operation only within the given record count?
recordcount: number of records to load into the database initially (default: 0)

Hi, for HBase the latency may be due to splits on the region server which you would see more often with higher record counts. Take a look at your region count before and after or try running the read-only workloads to see what it looks like.

closing as stale. if you're still facing issues please reopen.


Fix flashcard responsiveness

fixes #61
This PR fixes the responsiveness of the flashcard for mobile devices like s23.

Hi @haseebzaki-07, can you please give me preview?

@Suraj-kumar00 here is the preview


Abstract the Tenant name in the API URL context

Description:
The requirement to customize the API URLs by abstracting out the tenant context (/t/{tenant-domain}) from the URL, seems to be a common use-case among several customers. Therefore it would be better if we can add the following information to the official APIM docs, for any future references.
Sample use-case.
Default URL of an API deployed in the tenant domain
http://:8280/t/{tenant-domain}/{api-name}
Required customized URL
http://:8280/{api-name}
This requirement can be catered by using a reverse proxy such as NGINX.
Following is a sample server configuration in NGINX which defines rules to proxy requests.
server {
listen 8280;
server_name <host_name>;
    location / {
       proxy_set_header X-Forwarded-Host $host;
       proxy_set_header X-Forwarded-Server $host;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header Host $http_host;
       proxy_pass http://<host_name>:8280/t/{tenant-domain};
       proxy_redirect  http://<host_name>:8280/t/{tenant-domain} /;
   }

This can go under section "Load Balancer, Revers Proxy configuration scenarios" in [1].
[1] https://docs.wso2.com/display/AM250/Configuring+the+Proxy+Server+and+the+Load+Balancer
Suggested Labels:

Docs/No Impact
Priority/Normal
Type/Improvement
Suggested Assignees:

I’m closing this issue because it has been inactive for more than two years. Please reopen if this still a requirement with the latest version.


TypeError: get_updates() missing 1 required positional argument: 'constraints'

Dear author, I came across a problem while compiling your code. I ran " python main.py --dataset cuhk-03.h5, to get the following error. A lot of efforts were paid to solve the problem but I still can't figure it out. Could you please give me some help?
F:\Users\wanfb\Documents\Implementation-CVPR2015-CNN-for-ReID-master\CUHK03>python main.py --dataset cuhk-03.h5
Using TensorFlow backend.

Layer (type)                    Output Shape         Param #     Connected to
input_1 (InputLayer)            (None, 160, 60, 3)   0

conv2d_1 (Conv2D)               (None, 156, 56, 20)  1520        input_1[0][0]
input_2[0][0]

max_pooling2d_1 (MaxPooling2D)  multiple             0           conv2d_1[0][0]
conv2d_1[1][0]
conv2d_2[0][0]
conv2d_2[1][0]
conv2d_5[0][0]
conv2d_6[0][0]

input_2 (InputLayer)            (None, 160, 60, 3)   0

conv2d_2 (Conv2D)               (None, 74, 24, 25)   12525       max_pooling2d_1[0][0]
max_pooling2d_1[1][0]

lambda_1 (Lambda)               (None, 185, 60, 25)  0           max_pooling2d_1[2][0]
max_pooling2d_1[3][0]

up_sampling2d_1 (UpSampling2D)  (None, 185, 60, 25)  0           max_pooling2d_1[2][0]
max_pooling2d_1[3][0]

lambda_2 (Lambda)               (None, 185, 60, 25)  0           lambda_1[0][0]
lambda_1[1][0]

add_1 (Add)                     (None, 185, 60, 25)  0           up_sampling2d_1[0][0]
lambda_2[1][0]

add_2 (Add)                     (None, 185, 60, 25)  0           up_sampling2d_1[1][0]
lambda_2[0][0]

conv2d_3 (Conv2D)               (None, 37, 12, 25)   15650       add_1[0][0]

conv2d_4 (Conv2D)               (None, 37, 12, 25)   15650       add_2[0][0]

conv2d_5 (Conv2D)               (None, 35, 10, 25)   5650        conv2d_3[0][0]

conv2d_6 (Conv2D)               (None, 35, 10, 25)   5650        conv2d_4[0][0]

concatenate_1 (Concatenate)     (None, 17, 5, 50)    0           max_pooling2d_1[4][0]
max_pooling2d_1[5][0]

flatten_1 (Flatten)             (None, 4250)         0           concatenate_1[0][0]

dense_1 (Dense)                 (None,<PHONE_NUMBER>     flatten_1[0][0]

dense_2 (Dense)                 (None, 2)            1002        dense_1[0][0]
Total params: 2,183,147
Trainable params: 2,183,147
Non-trainable params: 0

Model Compile Successful.
number 0 in 100
start model.fit_generator
Traceback (most recent call last):
File "main.py", line 108, in
main(args.dataset_path)
File "main.py", line 24, in main
train(model, dataset_path)
File "main.py", line 49, in train
model.fit_generator(Data_Generator.flow(f,flag = flag_train),one_epoch,epoch_num,validation_data=Data_Generator.flow(f,train_or_validation=which_v
al_data,flag=flag_val),validation_steps=nb_val_samples, workers=1)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\legacy\interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\training.py", line 1961, in fit_generator
self._make_train_function()
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\training.py", line 990, in _make_train_function
loss=self.total_loss)
TypeError: get_updates() missing 1 required positional argument: 'constraints'

Dear all,
I am having the same problem, I found this https://github.com/the-moliver/kfs/issues/17 and seems to be a problem related with keras version, I have also try some solutions based on it but none works

I use  keras 2.0.0 , it can work,
but use keras 2.0.8 can not work

Thanks @Phoebe-star ! it is working now :D

Hello @qiaoguan,
I am using keras 2.1.3 and I am getting similar error
2018-02-15 13:13:59.367091: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1195] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:05:00.0, compute capability: 6.1)
Using real-time data augmentation.
Traceback (most recent call last):
  File "cifar10_cnn.py", line 106, in <module>
    validation_data=(X_test, Y_test))
  File "/usr/local/keras3/lib/python3.5/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/keras3/lib/python3.5/site-packages/keras/models.py", line 1256, in fit_generator
    initial_epoch=initial_epoch)
  File "/usr/local/keras3/lib/python3.5/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/keras3/lib/python3.5/site-packages/keras/engine/training.py", line 2026, in fit_generator
    self._make_train_function()
  File "/usr/local/keras3/lib/python3.5/site-packages/keras/engine/training.py", line 970, in _make_train_function
    loss=self.total_loss)
TypeError: get_updates() missing 1 required positional argument: 'constraints'

Since keras is installed in virtual environment over GPU cluster, I am not sure how should I go about making the changes, which has worked for you. Could you please suggest, how could i move forward.
Nitin

@qiaoguan  I'v used your method ,but ir raised a new Error,
File "F:/CVPR2015-CNN for P Re-id/Implementation-CVPR2015-CNN-for-ReID-master/CUHK03/main.py", line 48, in train
nb_val_samples=nb_val_samples)
File "E:\Anaconda\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "E:\Anaconda\lib\site-packages\keras\engine\training.py", line 2192, in fit_generator
generator_output = next(output_generator)
File "E:\Anaconda\lib\site-packages\keras\utils\data_utils.py", line 584, in get
six.raise_from(StopIteration(e), e)
File "", line 3, in raise_from
StopIteration.
It seems that , the generator can not iterate.Can you give me some suggests?Thank you so much!

Hello guys,
I have tried to rewrite the function:

get_updates

in file:

kfs/kfs/optimizers.py

at this class:

class NadamAccum(Optimizer)

and it seems working now. Any feedbacks would be appreciated 😃 😃 😃
    def get_updates(self, loss, params):
        grads = self.get_gradients(loss, params)
        self.updates = [K.update_add(self.iterations, 1)]

        t = (self.iterations + 1.)/self.accum_iters
        accum_switch = K.cast(K.equal((self.iterations + 1.) % self.accum_iters, 0), dtype=K.floatx())

        # Due to the recommendations in [2], i.e. warming momentum schedule
        momentum_cache_t = self.beta_1 * (1. - 0.5 * (K.pow(0.96, t * self.schedule_decay)))
        momentum_cache_t_1 = self.beta_1 * (1. - 0.5 * (K.pow(0.96, (t + 1) * self.schedule_decay)))
        m_schedule_new = self.m_schedule * momentum_cache_t
        m_schedule_next = self.m_schedule * momentum_cache_t * momentum_cache_t_1
        self.updates.append((self.m_schedule, accum_switch*m_schedule_new + (1. - accum_switch)*self.m_schedule))

        shapes = [x.shape for x in K.batch_get_value(params)]
        ms = [K.zeros(shape) for shape in shapes]
        vs = [K.zeros(shape) for shape in shapes]
        gs = [K.zeros(shape) for shape in shapes]

        self.weights = [self.iterations] + ms + vs

        for p, gp, m, v, ga in zip(params, grads, ms, vs, gs):

            g = (ga + gp)/self.accum_iters
            # the following equations given in [1]
            g_prime = g / (1. - m_schedule_new)
            m_t = self.beta_1 * m + (1. - self.beta_1) * g
            m_t_prime = m_t / (1. - m_schedule_next)
            v_t = self.beta_2 * v + (1. - self.beta_2) * K.square(g)
            v_t_prime = v_t / (1. - K.pow(self.beta_2, t))
            m_t_bar = (1. - momentum_cache_t) * g_prime + momentum_cache_t_1 * m_t_prime

            self.updates.append(K.update(m, (1. - accum_switch)*m + accum_switch*m_t))
            self.updates.append(K.update(v, (1. - accum_switch)*v + accum_switch*v_t))
            self.updates.append(K.update(ga, (1. - accum_switch)*(ga + gp)))

            p_t = p - self.lr * m_t_bar / (K.sqrt(v_t_prime) + self.epsilon)
            new_p = p_t

            # Apply constraints.
            if getattr(p, 'constraint', None) is not None:
                c = constraints[p]
                new_p = c(new_p)

            self.updates.append(K.update(p, (1-accum_switch)*p + accum_switch*new_p))
        return self.updates

Works for me only with
print(tf.__version__) # 1.1.0 only
print(keras.__version__) # 2.0.5 only


Implementation: nicovideo wrap api

strike nicovideo api and save to db, return result.

niconico/videoInfo ?
nicovideo/info ?

base implement ended, save to db and load from db....

save / load works fine, now is the close time!


goneovim panics on startup (when minimap is disabled?)

Judging by the message, it seems that the code always expects the minimap to be enabled
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xe0e41c]

goroutine 1 [running, locked to thread]:
github.com/akiyosi/goneovim/editor.(*Workspace).lazyDrawUI(0xc000404700)
	github.com/akiyosi/goneovim/editor/workspace.go:267 +0xac
github.com/akiyosi/goneovim/editor.(*Workspace).registerSignal.func3()
	github.com/akiyosi/goneovim/editor/workspace.go:374 +0x3e
github.com/akiyosi/goneovim/editor.callbackworkspaceSignal28652a_LazyDrawSignal(0x3a2b470)
	github.com/akiyosi/goneovim/editor/moc.go:419 +0x68
github.com/akiyosi/goneovim/editor._cgoexpwrap_45da67de0cd5_callbackworkspaceSignal28652a_LazyDrawSignal(0x3a2b470)
	_cgo_gotypes.go:4540 +0x2b
github.com/akiyosi/goneovim/editor._Cfunc_workspaceSignal28652a_EventDefault(0x3a2b470, 0x7fca7c000c40, 0x0)
	_cgo_gotypes.go:4029 +0x4a
github.com/akiyosi/goneovim/editor.(*workspaceSignal).EventDefault.func1(0xc00043e050, 0x1359180, 0xc00050e258, 0xc00050e258)
	github.com/akiyosi/goneovim/editor/moc.go:755 +0xb6
github.com/akiyosi/goneovim/editor.(*workspaceSignal).EventDefault(0xc00043e050, 0x1359180, 0xc00050e258, 0x5)
	github.com/akiyosi/goneovim/editor/moc.go:755 +0x4d
github.com/akiyosi/goneovim/editor.callbackworkspaceSignal28652a_Event(0x3a2b470, 0x7fca7c000c40, 0x11c1b58)
	github.com/akiyosi/goneovim/editor/moc.go:750 +0x11e
github.com/akiyosi/goneovim/editor._cgoexpwrap_45da67de0cd5_callbackworkspaceSignal28652a_Event(0x3a2b470, 0x7fca7c000c40, 0x7fca68005010)
	_cgo_gotypes.go:4644 +0x35
github.com/therecipe/qt/widgets._Cfunc_QApplication_QApplication_Exec(0xc000000000)
	_cgo_gotypes.go:2600 +0x49

Hi :)
Thanks for the report.
I have tried to fix this problem.
Could you please try the latest build below?
https://github.com/akiyosi/goneovim/actions/runs/741108632

Hi @akiyosi
It doesn't panic on startup with that build anymore. Though it doesn't seem to find the settings file either. I have the following under ~/.config/goneovim/settings.toml on linux
StartFullscreen = true
ExtCmdline   = true
ExtPopupmenu = true
ExtTabline   = true
ExtMessages  = true
DisableLigatures = false
RestoreSession = true

And none of these settings appear to be active. The debug log says that the config is being read (though it doesn't specify from which path):
2021/04/12 17:16:30.739312 000.639 reading config

Hi, thanks for the confirmation.
Would it behave differently if you set it as follows?
[Editor]
StartFullscreen = true
ExtCmdline   = true
ExtPopupmenu = true
ExtTabline   = true
ExtMessages  = true
DisableLigatures = false

[Workspace]
RestoreSession = true

@akiyosi
Yep, was missing the headers. I guess I didn't see them since they were commented out in the wiki page.

@urandom
Oh, sorry. I have fixed wiki page.


Add graphics/qgis-ltr and graphics/qgis  to GhostBSD binary packages for installation to GhostBSD.  Already exists in FreeBSD

Describe the feature or enhancement
Please place QGIS & QGIS-LTR into GhostBSD supported binary packages
QGIS is at 3.28.7 version number
QGIS-LTR is at 3.22 version number
Why this request?
S P uses QGIS software in his daily work and wishes to use QGIS on his home GhostBSD computer
also development manager view  URL link is not working  https://github.com/orgs/ghostbsd/projects/4/views/12
FreeBSD Pkgs 13  QGIS pkg
FreeBSD Ports QGIS for 13.1
FreeBSD directory browser for QGIS port

PDAL did not compile.
/wrkdirs/usr/ports/math/pdal/work/PDAL-2.3.0-src/pdal/Geometry.cpp:143:26: error: cannot initialize a variable of type 'OGRSpatialReference *' with an rvalue of type 'const OGRSpatialReference *'
    OGRSpatialReference *srs = m_geom->getSpatialReference();
                         ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/math/pdal/work/PDAL-2.3.0-src/pdal/Geometry.cpp:162:26: error: cannot initialize a variable of type 'OGRSpatialReference *' with an rvalue of type 'const OGRSpatialReference *'
    OGRSpatialReference *inSrs = m_geom->getSpatialReference();
                         ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I completely forgot to close this issue since it is available.
> pkg search qgis-ltr
qgis-ltr-3.28.9_1              Free and Open Source Geographic Information System


AppName vs AppTitle?

There are places in the UI where the Application Name is used and, in my opinion, the Application Title would be better. So if my product has an application title called "TheGreatProduct.exe" and an ApplicationTitle of "The Great Product", I currently get told
"TheGreatProduct 1.3.49 is now available (you have 1.3.48). Would you like to download it now?" or when downloading, the progress window says "Downloading TheGreatProduct...". I'd prefer: "The Great Product 1.3.49 is now available (you have 1.3.48). Would you like to download it now?" and "Downloading The Great Product...". A minor point but I think it adds to the professionalism of the upgrade experience.
To this end, I made the following changes (line numbers approximate as knocked out sligtly by additions, but if lines are added in sequence should tie up ok)...

Add ApplicationTitle to Netsparkle\Configurations\Configuration object and read it it from AssemblyTitle. For those situations where AssemblyTitle is not set, use AssemblyProduct (so no change in behaviour!)

namespace NetSparkleUpdater.Configurations
{
public abstract class Configuration
{
///
/// The application name
///
public string ApplicationName { get; protected set; }		(line 21, add 4 below to declare ApplicationTitle)
///
/// The application title
///
public string ApplicationTitle { get; protected set; }
	...
        try
        {
            // set some value from the binary
            AssemblyAccessor = assemblyAccessor;
	ApplicationName = assemblyAccessor.AssemblyProduct;		(line 81, add line below to assign ApplicationTitle)
	ApplicationTitle = assemblyAccessor.AssemblyTitle.Length > 0 ? assemblyAccessor.AssemblyTitle : assemblyAccessor.AssemblyProduct;
	...

Add AppTitle to Netsparkle\AppCastItem object
[Serializable]
public class AppCastItem : IComparable
{
...
public string AppName { get; set; }								(line 18, add 3 below to declare AppTitle)
///
/// The application title
///
public string AppTitle { get; set; }
 /// <summary>
 /// Parse item Xml Node to AppCastItem
 /// </summary>
 /// <param name="installedVersion">Currently installed version</param>
 /// <param name="applicationName">Application name</param>		(line 174, add 1 below to keep documentation happy)
 /// <param name="applicationTitle">Application title</param>
 /// <param name="castUrl">The url of the appcast</param>
 /// <param name="item">The item XML node</param>
 /// <param name="logWriter">logwriter instance</param>
 /// <returns>AppCastItem from Xml Node</returns>				(add applicationTitle as arg to Parse function)
 public static AppCastItem Parse(string installedVersion, string applicationName, string applicationTitle, string castUrl, XElement item, ILogger logWriter)
 {

     var newAppCastItem = new AppCastItem()
     {
         AppVersionInstalled = installedVersion,
         AppName = applicationName,								(line 186, add 1 below to initialise AppTitle)
         AppTitle = applicationTitle,
 ...

In NetSparkle\AppCastHandlers\XMLAppCast, pass the ApplicationTitle from the Configuration to the AppCastItem Parse call
line 166: var currentItem = AppCastItem.Parse(_config.InstalledVersion, _config.ApplicationName, _config.ApplicationTitle, _castUrl, item, _logWriter);

And finally use the AppTitle where it's better than the AppName...

NetSparkle.UI.WinForms.NetCore\DownloadProgressWindow
line 38: lblHeader.Text = lblHeader.Text.Replace("APP", item.AppTitle + " " + item.Version);

NetSparkle.UI.WinForms.NetCore\UpdateAvailableWindow
line 70: lblHeader.Text = lblHeader.Text.Replace("APP", item != null ? item.AppTitle : "the application");

NetSparkle.UI.WinForms.NetFramework\DownloadProgressWindow
line 38: lblHeader.Text = lblHeader.Text.Replace("APP", item.AppTitle + " " + item.Version);

NetSparkle.UI.WinForms.NetFramework\UpdateAvailableWindow
line 70: lblHeader.Text = lblHeader.Text.Replace("APP", item != null ? item.AppTitle : "the application");
line 85: lblInfoText.Text = string.Format("{0} {3} is now available (you have {1}). Would you like to {2} it now?", item.AppTitle, versionString, downloadInstallText, item.Version);

Off to learn Git to see if I can turn this into a pull request... :)

I think your overall code is fine, and the changes you've made don't break things, which is good; however, I'm not sure that I agree with the change.
According to this SO post, AssemblyTitle is the File Description, not the name of the product. This is also reflected when you right-click an EXE and look at the Properties tab:

As a normal user, it would make much more sense for the name to show up in NetSparkleUpdater to be the same as the product name that shows up in the Windows properties window.
HOWEVER, in the same SO post here, the AssemblyTitle shows up in Task Manager as the app title!
So.........Windows is rather confusing, here.
In the docs:

AssemblyProductAttribute -> "Defines a product name custom attribute"
AssemblyTitleAttribute -> "Specifies a description for an assembly."

I'm not sure what to do. Windows' use of things sort of conflicts with the docs.
I'm leaning on keeping things as they are, but I'm open to arguments the other direction. 🤔

After I posted the issue, I did what you did and looked at the usage of these things and, you're right, it's all over the shop. And every single example fails to address my problem because they all use YourAssemblyTitle and YourApplication (i.e. Camel Case no spaces) thus not addressing the problem. Checking excel.exe I get

I agree with you. Leave things as they sit and I'll adjust my Product Name to include spaces...


Specify Maven Java source and target versions

This PR adds explicit Maven source and target Java versions to the pom.xml.
Without this it fails to build in my environment (it appears to default to Java 6)

@purplefox are you sure you are on the latest main branch as this properties are not used anymore.

Ah, you're already fixed it :)
Didn't notice that.


Add CertificatesExpiration to cluster status [v2.2]

Backport https://github.com/rancher/rancher/pull/20989


Update meta.yaml

Checklist

[x] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

The migration to R4.0.0 never happened for this one for some reason, so I won't bother bumping (no package was built).

@conda-forge-admin please rerender


Search bar makes panning of the map sluggish

In this branch, https://github.com/khpeek/beomaps/tree/searchbox, I've essentially copied the example from https://tomchentw.github.io/react-google-maps/#searchbox above another map which has just a GroundOverlay.
What I notice, as shown in this GIF (https://imgur.com/gallery/HoZC3jX), is that in the map with the search bar, I can only pan so far before the map 'halts'. What is causing this 'performance bug'?
Here is the MapWithASearchBox component:
/* global google */

import React from 'react'
import _ from 'lodash'
import { compose, withProps, lifecycle } from 'recompose'
import {
  withScriptjs,
  withGoogleMap,
  GoogleMap,
  Marker,
  GroundOverlay } from 'react-google-maps'
const { SearchBox } = require("react-google-maps/lib/components/places/SearchBox");

export const MapWithASearchBox = compose(
  withProps({
    googleMapURL: `https://maps.googleapis.com/maps/api/js?key=${process.env.REACT_APP_GOOGLE_MAPS_API_KEY}&v=3.exp&libraries=geometry,drawing,places`,
    loadingElement: <div style={{ height: `100%` }} />,
    containerElement: <div style={{ height: `400px` }} />,
    mapElement: <div style={{ height: `100%` }} />,
  }),
  lifecycle({
    componentWillMount() {
      const refs = {}

      this.setState({
        bounds: null,
        center: {
          lat: 41.9, lng: -87.624
        },
        markers: [],
        onMapMounted: ref => {
          refs.map = ref;
        },
        onBoundsChanged: () => {
          this.setState({
            bounds: refs.map.getBounds(),
            center: refs.map.getCenter(),
          })
        },
        onSearchBoxMounted: ref => {
          refs.searchBox = ref;
        },
        onPlacesChanged: () => {
          const places = refs.searchBox.getPlaces();
          const bounds = new google.maps.LatLngBounds();

          places.forEach(place => {
            if (place.geometry.viewport) {
              bounds.union(place.geometry.viewport)
            } else {
              bounds.extend(place.geometry.location)
            }
          });
          const nextMarkers = places.map(place => ({
            position: place.geometry.location,
          }));
          const nextCenter = _.get(nextMarkers, '0.position', this.state.center);

          this.setState({
            center: nextCenter,
            markers: nextMarkers,
          });
          // refs.map.fitBounds(bounds);
        },
      })
    },
  }),
  withScriptjs,
  withGoogleMap
)(props =>
  <GoogleMap
    ref={props.onMapMounted}
    defaultZoom={15}
    center={props.center}
    onBoundsChanged={props.onBoundsChanged}
  >
    <SearchBox
      ref={props.onSearchBoxMounted}
      bounds={props.bounds}
      controlPosition={google.maps.ControlPosition.TOP_LEFT}
      onPlacesChanged={props.onPlacesChanged}
    >
      <input
        type="text"
        placeholder="Customized your placeholder"
        style={{
          boxSizing: `border-box`,
          border: `1px solid transparent`,
          width: `240px`,
          height: `32px`,
          marginTop: `27px`,
          padding: `0 12px`,
          borderRadius: `3px`,
          boxShadow: `0 2px 6px rgba(0, 0, 0, 0.3)`,
          fontSize: `14px`,
          outline: `none`,
          textOverflow: `ellipses`,
        }}
      />
    </SearchBox>
    {props.markers.map((marker, index) =>
      <Marker key={index} position={marker.position} />
    )}
  </GoogleMap>
);

Hello @khpeek
This library is unsupported and unmaintained more than a year. Please look at our re-implementation @react-google-maps/api library. We have working docs and examples, spectrum community and several maintainers. We have get rid of all extra dependencies, and had rewritten the codebase to typescript. We have easier API and supporting new React versions.
https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api
https://www.npmjs.com/package/@react-google-maps/api
https://react-google-maps-api-docs.netlify.com/
https://react-google-maps-api-gatsby-demo.netlify.com/
https://spectrum.chat/react-google-maps?tab=posts


Investigate Less Eager Requests when Sending Network Data

Currently, when sending a network request (only investigated with azure-core-http-netty) the subscription to the Flux<ByteBuffer> body request a sizeable amount of emissions (generally 256). This can result in scenarios where we request data more quickly than the network can write, potentially leading to spikes in memory consumption while the request is sent and drains the buffer. Instead, we should look into reducing our requests to match how quickly the outgoing buffer is draining to reduce our peak memory consumption.

Duplicate of #18680


jq: fix cve-2015-8863

Motivation for this change
https://lwn.net/Vulnerabilities/686291/
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

this is related to https://github.com/NixOS/nixpkgs/issues/18856

Please note that there's already #18908. You've added the patch correctly but the CVE-2016-4074 patch from https://github.com/stedolan/jq/issues/1136 should also be applied.

the other pull-request now do both. Merge this one.


How windows are determined to be eligible for management

The following is an attempt to describe how exactly yabai determines that a window is eligible for management. "Management" entails that the window is allowed to have its properties modfied. If a window is not eligible for management, yabai has not touched a single property of said window; it is only tracked for debug purposes (e.g: we only read information about the window).
The situation is a bit messy because a lot of the elements that are visible on the screen on macOS is reported as "a window". There are multiple attributes reported through APIs that we can use to determine which type of window it is, but very often these attributes are not set correctly by the application/window. This applies to both Apple and third-party software, and makes this seemingly simple job of distinguishing between an application window, dialog window, popup window, autocomplete window, language input-switcher window, etc. quite difficult.
TODO: write stuff

Windows with subrole kAXUnknown are fully ignored (not managed, not tracked for debug purposes).
Detect if root-window. if no; window is not eligible for management (tracked for debug purposes -- read only).
If window has AXRole and AXSubrole identifying it as a real window OR a window rule has been created that sets manage=on, this window is eligible for management.
If window does not have AXRole and AXSubrole identifting as a real window AND no window rule with manage=on, window is not eligible and only tracked for debug purposes.
Even if a window is eligible for management, only standard windows (subset of a real window -- e.g not dialogs) can be tiled unless a rule specifies the AXRole and AXSubrole filter with the manage=on property.
Only windows eligible for management is reported through window_created and window_destroyed signals.

Just FYI, for anyone interested/searching, this change broke management of Emacs frames for me. Adding this rule seems to have fixed it:
yabai -m rule --add app="Emacs" role="AXTextField" subrole="AXStandardWindow" manage=on