Added  Receipe Bot :Receipe Rover

Fixes Issue
#639
Pull Request Description:
This pull request introduces a new feature to the project: RecipeRover, a food ordering chatbot that offers users complete support through both voice and text interactions. RecipeRover aims to enhance the user experience by providing personalized assistance and facilitating the process of ordering food while browsing recipes.
Feature Overview:

Chat Support: RecipeRover has been integrated into the project to enable interactive chat support for users. It engages users in conversations, providing real-time assistance related to food ordering, recipe suggestions, dietary preferences, and more.

Voice Interaction: Leveraging advanced AI voice capabilities, RecipeRover now supports voice interaction in addition to text-based communication. Users can now interact with the bot using natural language and voice commands, making the experience more intuitive and user-friendly.

Food Ordering Integration: RecipeRover has been connected to the food ordering system, allowing users to seamlessly transition from exploring recipes to placing food orders. Users can discuss their preferences, choose items from menus, customize orders, and finalize transactions, all within the chatbot interface.

Personalization: RecipeRover utilizes AI to understand user preferences and history, tailoring its recommendations and suggestions based on past interactions. This personalization enhances the user experience and encourages engagement.

Integration with Existing UI: The user interface has been updated to accommodate the RecipeRover chatbot. The chat window, both for text and voice interactions, is seamlessly integrated into the UI, ensuring a smooth and consistent experience for users.

Implementation Details:

The RecipeRover bot was developed using state-of-the-art AI techniques, integrating both natural language processing (NLP) for text interactions and speech recognition for voice interactions.
API calls have been established between RecipeRover and the food ordering system, allowing for real-time menu updates and order processing.
UI elements have been added or modified to accommodate the chat window, voice input, and other relevant components.

Testing:

Thorough testing has been conducted to ensure the smooth functioning of RecipeRover's chatbot capabilities, both in text and voice modes.
Integration tests have been performed to validate the communication between RecipeRover and the food ordering system.

Screenshots

Note to reviewers

@Anupkjha2601 ,please review and merge my pull request


Board 1.9.x - Yaml to gitops template

Overview
The Github templates today live on this PR
In order to merge this PR we need to find a way that allows us to have github and gitlab registry simple and compatible with both tools, in order to achieve that we have some choices.
A - Enable a new template engine, based on @pagottoo PR only for the gitops-template repo as it doesn't have any helm application(no charts are defined).

Helm based applications, may have conflict with helm templates.

B - To enhance this steps to be used by gitlab/github installations and add some "file manipulations" that based on the install mode a set of  files are moved or removed on the final version of the repo.
C - To have 2 branches on this repo, on for each flavor of install.
D - Something else

Notes:
I would tend to prefer A or B..
C - create extra burden to maintain on the long term, it has been used only a way to speed up development.

On A -> We need to rest templating tool, and see if any of our templates would break. And also to update all the templated files to follow the new mechanism or use a hybrid of using 2 template engine.. The old-way first, then run templates through the new engine.
gitops-template -> regular detokenize  -> new engine -> final gitops code

On B -> Although we can centralize the logic on the command action load-template, it may be bit harder to know how to create templates and how to read the templates. It would be a bit sneaky the logic of translation.

Option A: Requires implementation of #295 to be completed.

We are proceeding with A as path until we get better resolution of D. What would be something else.

This was replaced by addons strategy implement by PR from @pagottoo.
We now have a way to select yamls, based on an addon annotation, example:
https://github.com/kubefirst/gitops-template/blob/main/registry/argo-github.yaml#L10
Mustache operator created a conflict with argo templating strategy on its yaml artifacts.


Discordinteraction node failed when clicking on button but button still works

When i press the button an "interaction failed" error was displayed but after a time the button appear to work becase the flow starts to work, but no info was injected.
Example: i press the button and the button says "interacion failed" and node-red display "unknowd interaction" but if the flow contain a discordmessage like "hello world" the message is displayed
I'm having the same issue described in this link:
https://stackoverflow.com/questions/75612087/discord-js-v14-interaction-failed-when-clicking-on-button-but-button-still-works#:~:text=So Discord thinks you didn,collector
I think that the solution is:
"Note that you need to use the update function of your buttonInteraction, since you are just updating the message the button is atteched to."

did you set a custom_id in your discordInteraction? Could you post you node configuration or an example flow?
Thanks!

yes, i set a custom_id to manage the discordinteraction node.
the configuration is not important, you can try to create a button and try to push ir two times.
I used the discordinteraction node to add the user into a role:
discordinteracion node had the custom_id of the button

function:
msg.action = "set";
msg.user = msg.member.userId;
msg.guild = msg.member.guildId;
msg.role = "1082753233711267904";
return msg;

discordpermission node

Could you post your flow so i can reproduce this situation on my dev environment?
I'd appreciate if you can detail the steps too.
Thank you!

[
{
"id": "cc39b8a07791bee8",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "55bea025aa7e33e1",
"type": "inject",
"z": "cc39b8a07791bee8",
"name": "Crear Boton",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 170,
"y": 160,
"wires": [
[
"0de16e02d9e5cf1b"
]
]
},
{
"id": "0de16e02d9e5cf1b",
"type": "function",
"z": "cc39b8a07791bee8",
"name": "Componentes Boton",
"func": "msg.payload = "Pulsa en ACEPTAR si quieres continuar en esta aventura. Ganarás el rol de interesado que te dará derecho, entre otras cosas, a entrar en las partidas";\nmsg.components =[\n                    {\n                        "type": 1,\n                        "components": [\n                            {\n                                "type": 2,\n                                "label": "ACEPTAR",\n                                "style": 3,\n                                "custom_id": "boton_aceptar"\n                            }\n                        ]\n                    }\n                ]\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 440,
"y": 160,
"wires": [
[
"10c5b697ea40612f"
]
]
},
{
"id": "10c5b697ea40612f",
"type": "discordMessageManager",
"z": "cc39b8a07791bee8",
"name": "",
"channel": "1085107611558477845",
"token": "",
"x": 730,
"y": 160,
"wires": [
[
"1fb72ac0a5077282"
]
]
},
{
"id": "1fb72ac0a5077282",
"type": "debug",
"z": "cc39b8a07791bee8",
"name": "Creacion botón",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 980,
"y": 160,
"wires": []
},
{
"id": "54e708022e39f755",
"type": "discordInteraction",
"z": "cc39b8a07791bee8",
"name": "",
"token": "",
"interactionType": "button",
"custom_id": "boton_aceptar",
"commandResponse": "",
"interactionObject": true,
"ephemeral": false,
"x": 170,
"y": 260,
"wires": [
[
"ca080f1cfefb4684"
]
],
"info": "msg.payload = "Prueba";\nreturn msg;"
},
{
"id": "ca080f1cfefb4684",
"type": "function",
"z": "cc39b8a07791bee8",
"name": "definicion permisos",
"func": "msg.action = "set";\nmsg.user = msg.member.userId;\nmsg.guild = msg.member.guildId;\nmsg.role = "1082753233711267904";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 430,
"y": 260,
"wires": [
[
"567e3eba9e546a5a"
]
]
},
{
"id": "567e3eba9e546a5a",
"type": "discordPermissions",
"z": "cc39b8a07791bee8",
"name": "",
"token": "",
"x": 710,
"y": 260,
"wires": [
[
"cdabf4975acaacea"
]
]
},
{
"id": "cdabf4975acaacea",
"type": "debug",
"z": "cc39b8a07791bee8",
"name": "debug 2",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 920,
"y": 260,
"wires": []
}
]

I tested it, I think the problem is that your nodered is not responding within the 3 seconds that discord waits for a reply.
The discordInteraction node replies automatically so you need to figure out why the reply is not reaching discord servers in time.
Look the code:

but the first time that i create the button it respond fine, the error appear the next time that someone push the button
I If delete it and create it, it works again one more time until a second push
Also, the discord interaction node display the following error that not display when the button is pushed at the first time:
DiscordAPIError[10062]: Unknown interaction

I tried to pusj a lot of time the button and sometimes it works. Seems you are right.
Thanks for your help :)


drive: add workaround for slow downloads

Add --drive-v2-download-min-size flag to allow downloading files via the drive v2 API. If files are greater than this flag, a download link is generated when needed.
The flag is disabled by default.
Workaround for #2573

Sure, I will split the commit.
Rebuilding the vendor tree after a rebase is probably the fastest way to get a clean result.

Thank you :-)

Do you want to advertise that in the thread on the forum?


Request for comments: python 3.6 shim

tldr
shim written in python3.6 allows up to run python3.6 code. POC for concurrent handler is slow.
Details
Compared to apex, Up always needs to run the node shim (Since up-proxy is written in go).  However, this prevents native support for all lambda languages.
This happens to work for almost all supported languages since their binaries are embedded into the nodejs6.10 runtime.
This notably breaks with the python3.6 runtime, since the 'python' available and the PYTHONPATH are all in reference to python 2.7.
This PR does 2 things:

Demonstrates python3.6 support is possible with up (with no changes elsewhere)
Demonstrates a multithreaded capable shim (assume handler is called concurrently)

The code to support 1 is dramatically simpler than the current node.js shim, mostly because python comes built in with a line reader.
The code for 2 requires a little extra help from go-apex, to boomerang the ID back to us (since we can receive concurrent responses, and need to tell the difference between them). apex-go.patch.txt
The concurrent proof of concept works, however it appears to be fairly slow, which I need to dig into.
Suggestions for next steps
After getting some feedback from the community, my suggest to move forward would be to simplify this code back to the single threaded version, make it python 2 and 3 compatible, and deploy this proxy only for python3.6 functions.
If the benchmarks show it is just as fast as the node.js shim, I think the extra simplicity is worth replacing the nodejs shim with this (however my intuition says it will be slower).
if concurrency is desired from the shim at all (it may not be)
I suggest throwing out all of the concurrent code pending a refactor of the (shim -> go) communication to vanilla http, gRPC or some sort of request-response IPC framework that has already been performance tuned (vs my hand-rolled producer-consumer model below).

hmmm Lambda only processes with a concurrency of 1 anyway, so that part might be unnecessary. I think if we're switching shims the only thing currently worth it is the Python -> Go bindings for the improved cold start times, but IIRC they were using Docker for that, might be too much of a hack

@tj I poked around a bit - and couldn't really figure out how to get python 3.6 to run in the current up.  Maybe that's not a goal of the project - which is fine, but possibly just adding an example for python 3.6 would completely solve the problem.

@skabbes ahhh I thought someone found that it was installed as python36 or something? Maybe I misread that in Slack

Going to close this, and re-open simplified and with new lambda research.


python_version markers not honoured when emulating pip-compile

Is there an existing issue for this?

[X] I have searched the existing issues

Package ecosystem
pip
Package manager version
pip-compile 7.3.0
Language version
Python 3.12
Manifest location and content before the Dependabot update

requirements.in
requirements-3.12.txt

dependabot.yml content
https://github.com/ska-sa/spead2/blob/dependabot/pip/production-group-fb82a53692/.github/dependabot.yml
Updated dependency
Full list: https://github.com/ska-sa/spead2/pull/291/files#diff-4b5a2854e17d8006e68ca88a537e627d3b924ad4d85e36c867ff1db4e706b038
Some critical changes:

numpy==1.26.0 ; python_version >= "3.12.0rc1" becomes numpy==1.24.4 ; python_version < "3.12.0rc1"
Packages marked as < "3.12.0rc1" in requirements.in are added e.g. numba==0.58.1 ; python_version < "3.12.0rc1"
Dependencies of those packages are added, without a version marker e.g.importlib-metadata==6.8.0
    # via numba

What you expected to see, versus what you actually saw
I expected some versions to change (increase) but little else. I was also expecting some of the -c constraint.txt comments to vanish since I know dependabot doesn't parse that out of the file header. However, Dependabot has made significant changes, some of them breaking. In particular, processing this file with Python 3.12 will no longer install numpy, and it will install some unnecessary packages.
Native package manager behavior
https://github.com/ska-sa/spead2/pull/292/commits/bc2a3d5cf192ac041435f672b505e79dbb6f5d3f is done using pip-compile.
Images of the diff or a link to the PR, issue, or logs
https://github.com/ska-sa/spead2/pull/291
Smallest manifest that reproduces the issue
No response

Hei, I think I just realized about what's going on here. We still don't support Python 3.12, see #8227, so as a result, we're falling back to the latest version we have available (3.11), which I think would cause this issue?

That certainly sounds plausible. I guess I'll take another look once 3.12 is supported.

This seems to be working better now, so I'm closing. Dependabot still isn't quite doing what I expect, but it looks like a different issue that I'll file a separate ticket for.


Configure JSX runtime per file

This fixes #96 by configuring the JSX runtime per file. By doing this, we can use the classic runtime but still use the new JSX runtime alongside it (e.g: CRA).

But doesn't this no longer use jsx from theme-ui? It looks like this would break it unless I'm missing something.

But doesn't this no longer use jsx from theme-ui? It looks like this would break it unless I'm missing something.

@nandorojo I'm not actually using ssr-component so it didn't error for me but you're right. I updated the PR so it tells the plugin to use jsx and the classic runtime.


Update README.md

Hey, @calebamiles, thanks. This is superseded by #8, so I'll close this out.
Best,
Eric


Discussion: Name convention and structure of models

My suggestion for the naming convention for the models :
<model_name>_<noise_ratio>_<machine_name>_<machin_id>
The order mirrors the structure of our data directory (i.e. .../sound-of-failure/data/mel_spectrograms/6dB/valve/id_00/... ), otherwise I am personally not a fan of the noise_ratio being first. But again, as a physicist I love symmetry, so I suggest to mirror the data folder structure!!!

<model_name> = {convae, vae, lstm, lstmae, convlstmae, isoforest, ...} ---> i.e. abbreviation of the model names, and we'll add in the README file what is the meaning of each abbreviation. We should decide if we want capital or small letters or combination, and be consistent every where throughout the GitHub repo,  every where! :)
<noise_ratio> = {6dB, 0dB, min6dB, all} ---> 'all' is for the case that we train on all the noise ratios together
<machine_name> = {valve, fan, pump, slider}
<machin_id> = {id00, id02, id04, id06, all} ---> 'all': as above

Then we will have these files:

conf/conf_<model_name>_<noise_ratio>_<machine_name>_<machin_id>.ini ---> for the configuration file that keeps the hyperparameters of that model which is trained / going to be trained for that specific machine, id, etc.
model/<model_name>_<noise_ratio>_<machine_name>_<machin_id>.hdf5 ---> for the model that we save after training

and anywhere else that anything specific for these combination of model, machine, id, ... is needed to be saved (for example maybe in output folder ?!) the similar name convention can be used.
To avoid git conflicts, we can add to .gitignor the lines conf/conf_*.ini and model/*.hdf5, and then we manually save the best  model and its relevant config file with names like conf/final_conf_<...>.ini and model/final_<...>.hdf5 so that only these best and supposedly final versions will be pushed and kept in GitHub, and they are being freezed and not overwritten by any of the scripts.
Note that we might come up with even a better version of our already best model, but that should be again saved under the name with format final_<...>, i.e. please avoid names like final01_<...>, final_2_<...>, final_final_<...>, with the version control we can always retrieve older versions, no need to protect them but these sort of names.

already apologising for my mis-use of labels! You can totally change them! :)

Hi, generally agree with the naming convention. For local usage (running different models that would have same default name) I suggest a solution in a separate issue. I also suggest using a name as a consistent reference throughout the code - as some sort of session id. Happy to hear your opinion over there.

Ok, all in one place then.

Hi guys,
this is my suggestion to implement our naming convention.
I think the following script should be called when creating new config files so they can be stored according to the naming convention. This means the respective scripts (make_conf_base.py and the other one) need to take model_name, db, machine_type and machine_id. The script just makes sure the name is not taken already.
def get_scaler_path(name_string):
  return os.path.join('models', name_string + '_scaler.gz')

def get_conf_path(name_string):
  return os.path.join('conf', 'conf_' + name_string + '.ini')

def get_conf_base_path(name_string):
  return os.path.join('conf', 'conf_base_' + name_string + '.ini')

def get_model_path(name_string):
  return os.path.join('models', name_string + '.hdf5')

def get_new_name_string(model_name, db, machine_type, machine_id):
  name_string = model_name +'_' + db +'_' + machine_type +'_' + machine_id

  # Check if new_name_string is new
  count = 1
  new_name_string = name_string

  while os.path.exists(get_scaler_path(new_name_string)):
    new_name_string = name_string + '_' + str(count)
    count += 1

  while os.path.exists(get_model_path(new_name_string)):
    new_name_string = name_string + '_' + str(count)
    count += 1

  while os.path.exists(get_conf_base_path(new_name_string)) or os.path.exists(get_conf_path(new_name_string)):
    new_name_string = name_string + '_' + str(count)
    count += 1

  return new_name_string

I suggest we use name_string as a consistent reference throughout the code. It must be initially chosen.
So instead of
base_conf = train.read_config('/gdrive/MyDrive/sound-of-failure/conf/conf_base.ini')
param_conf = train.read_config('/gdrive/MyDrive/sound-of-failure/conf/conf_VAE.ini')

we will use sth like
base_conf = train.read_config(name_string)
param_conf = train.read_config(name_string)

Do you think this could be a useful structure?

def get_conf_base_path(name_string):
return os.path.join('conf', 'conf_base_' + name_string + '.ini')

Do we really want to have a conf_base file for every model+dB+machine+id ?

Let me know if I understood correctly, we take take model_name, db, machine_type and machine_id and make a name_string from them (so name_string = <model_name>_db_<machine_type>_ <machine_id>). Then why we want to protect it by checking if the name is not taken before? Every time that I want to train my model with different parameters I should be able to make a new config file for it. If the make_conf script does not allow me to overwrite, then I can only make a config file for the first time and the rest of the times I have to edit the existing config file manually. If that's your suggestion, then we can think about it. But I would like to avoid any editing by hand inside the conf files.

If conf_base.ini NEVER EVER changes, there is no need.

Currently there are parameters in the config files that can only be modified manually.
The specifics of layers, for example, are at some default values.
They are not controlled through the command line.
I find that preferable to overloading the command line.
So to train a model with parameters different from default you would manually modify the config file before reading it.
If you think what you have done before should be kept, you would create new config files (taking a new name) and start modifying these.

One more question:

def get_scaler_path(name_string):
return os.path.join('models', name_string + '_scaler.gz')

Do we need to save one scaler per model, or one scaler per dB+machine_type+machine_id is enough? Is it because the type of scaler that we used is defined in the model's config file? How about <scaler_type>_<dB>_<machine_type>_<machine_id>, if different models can benefit from it?

We may want to try different scalers. A scaler is two numbers, more or less, it does not take a lot of space.
My main goal here is to have some sort of log of what I'm doing. Of what has been used together.
So I would like to store the scaler with the rest. It will also be different in case a different value of n_mels was chosen. Or hop-length. So more likely than not the scaler will be different between experiments.

I see. Then as long as that if I change, say, n_mels or hop-length by hand inside the conf_<model_name>_<db>_<machine_type>_ <machine_id>, the mel_spectograms and the scaler files are guaranteed to be reproduced and overwritten, it all seem ok to me. Thanks!

Would include an overwrite argument to the respective functions, so you can control if you want to overwrite or not.
It should prompt you saying

'this_scaler.gz' already exists and was loaded.
Pleasew run fit_scaler(..., overwrite=True) to fit a new scaler.

To be discussed.

Hi Niklas,
We already talked via phone but let me summarize my comments here again 👍

In principle the naming convention model_name +'_' + db +'_' + machine_type +'_' + machine_id is fine.

In the script above the counter forces 1,2,3 etc if the file already exists. Since we are past the stage of experimentation and playing around with parameters, this is not strictly necessary. For private experimentation, one can choose to do that, however. So it should be up to the user whether they want to append the counter at the end of the name or not. In github while deployment we will only follow the naming convention model_name +'_' + db +'_' + machine_type +'_' + machine_id without the counter appended.

Best is to demonstrate the use case through your notebook. Maybe once you have the LSTM notebook ready it will be easier to see the new functionalities.

Just a reminder that at the moment config files are ignored by git.
Let's move on, so far it's been a solid plan, and we'll see while working if any changes are required.

Implemented and talked through, I believe ;)


text_on_image Creator - Web design #144

https://images01.nicepagecdn.com/page/54/40/html-template-54401.jpg Design a text_on_image like the above image
Create a file "text_on_image_NUM_by_(YourName).html" in the modules/text_on_image folder.
Use simple HTML and CSS and JAVASCRIPT to create the text_on_image animation. You can use the interface development https://kwickerhub.com/ (This project) or you can write the lines of code yourself.
Step by Step Guide.
Fork this project(Use the 'fork' button in the top right corner) and Clone your Fork.
git clone https://github.com/YOUR_USERNAME/frontend
Open your code Editor and Create a file "text_on_image_NUM_YOUR_NAME_.html" in the "modules/text_on_image" folder of this project you just cloned. No need to create head, title and body tags, Just Add a div tag with some embedded style(i.e use the style tag) and the script tag where necessary.
If you want to add an image resource, please add it in the folder ••
"modules/text_on_image/images_and_icons"
We recommend you use an svg for your image/icon.
Push your Code: You need to push your recent changes back to the cloud. Use the command below in the main directory of this Repository
git push origin dev
or use a GUI tool to avoid mistakes or complexity. LOL.
Then make you Pull Request...
Below is a example of the code structure we need:
<div>
    <!---YOUR CODE---->
</div>

<style>
    /* YOUR STYLE */
</style>

<script>
    // YOUR SCRIPT if any
</script>

The goal of this issue is to create modules that other people/dev/designers can use or easily import into their projects. Avoid the desire to style all elements in the page by using codes like:
<style>

*{

}
/* OR */

div, a, h1, pre{

}

</style>

use classes or id to style the elements to avoid a collision of styles.
Remember to make your module usable across different screens(Make your design responsive).
For more examples:
modules->buttons
modules->cards
for examples of contributions or Pull request accepted in to the project.
And please do not wait for this issue to be assigned to you as we have limited hands but have a lot to do/cover. Please send in your PR.
Good-luck and thank you.

Hi I would like to contribute in your project.

Hii I would like to contribute in your project.

I worked on this issue and raised a pull request. Can you please have a look at the PR @NtemKenyor


Fix patient birth date input

Make the input of entering birth date in the patient form work normal (see the video included).
https://user-images.githubusercontent.com/1663746/213120103-1d1428c5-4a10-4410-99e0-32e37f912a1c.mov
Also, restrict the input from entering a future date.

@qscgyjqscgyj please pull master and check one more time this issue. It might be fixed during the #31

Fixed in https://github.com/beda-software/fhir-emr/commit/24ddb2f74e5f56e0fd17506dca7bdd4274bf3b06


oonf_api: update OONF to v0.15.1

This is a migration to OONF v0.15.1, this is an experiment so don't merge it, this is to test (I haven't) and to see feedback.
I made this migration as some internals on oonf_rfc5444 will be needed in order to have a proper RFC 5444 protocol implementation (a real one) that's more stable, and that can work on various network interfaces without problems, will ease the parsing of AODVv2 messages.

Tested, AODVv2 still works like a charm!


Cycleway crossing node suggestion missing link

Description
When I add a cycleway crossing (cycleway=crossing) to a way that crosses a highway it correctly flags the fact that the node at the intersection needs to be updated , but the link to update it isn't correct.
Screenshots

Version
2.3.1
What browser are you seeing the problem on? What version are you running?
Chrome v125.0
The OS you're using
mac
Steps to reproduce

Find a cycleway that crosses a highway.
add a cycleway=crossing to the cycleway way
observe the validation issues that pops up as seen in the screenshot.
The link to apply the additional node tag is missing - the only thing I can do is ignore the issue or remove all crossing tags.

The browser URL at the time you encountered the bug
https://rapideditor.org/edit#map=20.00/61.49751/23.63440&background=mml-orto&datasets=fbRoads,msBuildings&disable_features=boundaries&id=w-1
The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36

maybe related to #1433


update words.json

bitties, mung, necked, tig ol bitties, tig old bitties, turd burgler, cumsucker, cumface, cumlicker, cumlickr, diaper daddy, diaperdaddy, dickslicker,

Digusting. Thanks.

Digusting. Thanks.

@ibuddy66 published in version 1.4.0.

@ibuddy66 published in version 1.4.0.


enum values don't canonicalize correctly when passing through a port on some ARM devices

I am getting reports from the users that they observe strange behaviour when passing enum values through ports. If the receiving side tries to compare received value with enum values - they don't compare equal. However this behaviour only occurs on some ARM devices and not others - with the same application.
e.g. this happens on Samsung A10, but not on Samsung A40.
This is similar to a bug reported by @simolus3 regarding moor package. https://github.com/simolus3/moor/issues/514
I am starting to suspect a CPU bug, because otherwise I find it hard to explain why would behaviour be different running the same code on two different phones.
We are aware at least about one such bug affecting Dart VM before (namely Cortex A53 Erratum 843419) and there is another erratum which affects multiply-accumulate instruction (Erratum 835769) - but mitigations for both of these are built into the compiler and should be enabled by default when targeting Android.
It is unclear for me what we could do to help users diagnose the problem - because we currently don't have access to the similar hardware.
/cc @mkustermann @rmacnak-google

We know that there's an issue - @aam has started investigating it a few days ago.

When I landed 8d1c4c555ce808b0a8ba2c513d25ca86d5b48f74 it added a number of new isolate tests, there @aam noticed that on simarm the enums don't get canonicalized correctly.
So we do have a repro.

@mkustermann do you know if simarm64 exhibit similar behaviour? is it ARM vs ARM64 issue? that would explain why it reproduces on some devices (ARM) but not others (ARM64).

Last time @aam mentioned the difference in behavior seems to show with using simarm_x64 vs simarm. So that would mean a bug in our cross configuration. Maybe different canonicalization hash codes or bug in generated code.

@mraleph see dartbug.com/41824

Duplicate of #41824


Broken link to /1.x/docs/Launcher.html

On the Command Line Reference page there are several links to the "sbt launcher" and they all point to an absent page at
https://www.scala-sbt.org/1.x/docs/Launcher.html.
Should these links point to this page instead?
https://www.scala-sbt.org/1.x/docs/Sbt-Launcher.html

@spattisson Yes.


AndroidPubSubWebSocket can't publish and subscribe topic

I am new for AWS IOT. I tried to build an Android  project (AndroidPubSubWebSocket) on my tablet.
Following doc (https://github.com/awslabs/aws-sdk-android-samples/blob/master/AndroidPubSubWebSocket/README.md) , it can connect to my thing(use unauthenticated identities). But, I can't get any message from MQTT client when I send message from my tablet.
When I clicked SUBSCRIBLE, the status change to Connecting -> Connected -> Connecting -> Connected......(looping). And nothing something shown in Last message.
Below is my Policy
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "iot:Connect"
            ],
            "Resource": [
                "*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "iot:Publish"
            ],
            "Resource": [
                "arn:aws:iot:us-east-1:471565932063:topic/mytopic/mysubtopic"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "iot:Subscribe",
                "iot:Receive"
            ],
            "Resource": [
                "arn:aws:iot:us-east-1:471565932063:topic/mytopic/mysubtopic"
            ]
        }
    ]
}

Is any setting I miss?

You only allow to pub/sub/receive messages from mytopic/mysubtopic. Is that you want?
You can try setting your resources to be "*" and this will allow your client to be able to perform on any resources without limit. Then, if you want, you can add more restrict on your policies.
Thanks,
Fengyi

Thanks for your suggestion. After I follow the doc again , it works!!
I can use app to send message and received the message from MTQQ client.


set headers on azure context

This PR set headers on azure context.
Others minor fix:

Use req.rawBody instead JSON.stringify(req.body) see this for more informations

Allow users to define binaryTypes.

@bigx333 PTAL

Thanks for the PR :)
I completely missed rawBody in the API.
Since aws-serverless-express seems to always expect the body as a string there's no point on doing it just for json so I modified the change to always use rawBody to create the event, this should also eliminate any edge cases with other content-types.

@bigx333 Please release a new version on npm.
Thanks.

Just did 👍

@bigx333 Confirm that with your latest release (1.0.5) more headers are overwritten. Can you explain the problem you have with my changes?

@mrbatista I'm not too sure what you mean.
Your original PR replaces the context.res headers with the output from aws-serverless-express. My approach was to merge them so if in the future Azure functions sets any headers on the context.res by default (something that is not happening today) they will not be discarded (unless the same header is also set by the output from aws-serverless-express in which case it will be overwritten).
This still allows you to set any headers you wish, including overwriting any header that Azure might decide to set in the future.
Is this modification causing you any issues on your use case?


Replacing layers in a ready-to-go T5-11B model with their 8bit counterparts

Hello,
I have a T5-11B model split over 2 x T4 for inference in FP16. This works quite well when using the parallelize() method instead of device_map="auto".
Now I would like to decrease memory usage just a bit by using Linear8bitLt as drop-in-replacement for some layers.
My questions:

What is the most efficient way of replacing a "ready-to-go" (that means weights are loaded and the layer is on the right device) Linear layer?
This might be more a question for the huggingface or accelerate team, but any best guess of which layers to replace to get the best memory savings while sacrifying the least performance?

Thank you very much in advance for any help :)

While I would still be interested in some tips from people more experienced with this usecase, I have found the following solution to work very well for me.
If you have 2 x T4 for inference, it should make much better use of the hardware than a full 8bit model, which gets very slow and wastes a lot of the available computing and memory resources.
Note: A single T4 is not enough to run T5-11B anyway, you would have to cast the "T5LayerFF.DenseReluDense.wo" weights into 8bit as well - instead of keeping them in 32bit - to not run into OOM, which breaks the model as far as I can tell.
Anyway, to keep performance high while still reducing memory usage as much as possible to easily run the model on 2xT4 I chose to only cast encoder layers to 8bit.
To do this efficiently I first load the model in float16 (not bfloat16 and also not 8bit!) onto CPU and then use .parallelize() to put all the layers onto the correct GPUs.
Parallelize() seems like a better alternative to the more general device_map = "auto", as it splits the encoder and the decoder and puts half of it on each GPU, so making the encoder 8bit will save memory on both GPUs equally.
(I experimented with my own version of parallelize() that keeps the encoder on cuda:0 and the decoder on cuda:1 but that was not worth it)
If you need a bit more memory saving you can also put the T5LayerFF.DenseReluDense.wi_0 and T5LayerFF.DenseReluDense.wi_1 layers of the decoder into 8bit (by setting only_encoder = False in the function below).
For my special usecase (large inputs, up to the full 512 tokens, up to 200 generated tokens, always a batch size of 1) I can save around 4.5gb of memory, allowing me to run other things on the GPUs next to the T5 model, while keeping the hardware requirements as low as somehow possible (as stated above, 1 x T4 is not enough) and the performance close to optimal (this is only 23% slower than running it on a A100-40gb):

16bit model took 10.4 sec for 4 beams. CUDA memory_reserved: 26.43 gb => freed 1976 mb => 24.5 gb # just the plain T5-11B in float16
8bit model took 9.98 sec for 4 beams. CUDA memory_reserved: 23.07 gb => freed 1718 mb => 21.39 gb # surprisingly even a bit faster ?!
8bit model took 11.26 sec for 4 beams. CUDA memory_reserved: 21.32 gb => freed 1362 mb => 19.99 gb # when setting only_encoder = False

import torch
from torch import nn
from transformers import T5ForConditionalGeneration, AutoTokenizer
from bitsandbytes.nn import Linear8bitLt, Int8Params

class T5Executor(object):

    def __init__(self, model_dir):
        self.model = T5ForConditionalGeneration.from_pretrained(model_dir, torch_dtype=torch.float16, low_cpu_mem_usage=True)
        self.model.parallelize()
        self.tokenizer = AutoTokenizer.from_pretrained(model_dir)
        self.is_8bit = False

    def to_8bit(self, threshold = 6.0, only_encoder = True, verbose = True):

        assert not self.is_8bit

        def patch_8bit_inner(module_parent, name="root"):
            if only_encoder and name.startswith("root.decoder"):
                return

            for n, module_child in module_parent.named_children():
                if isinstance(module_child, torch.nn.Linear):
                    assert module_child is getattr(module_parent, n)

                    target_dtype = module_child.weight.dtype
                    target_device = module_child.weight.device

                    if name.startswith("root.encoder") or n in {"wi_0", "wi_1"}:
                        if target_dtype in {torch.float16} and n not in {"wo", "lm_head"}:
                            if verbose: print("Patching", name, "::", n, "\t", getattr(module_parent, n), "with", target_dtype, "on", target_device)

                            replacement = Linear8bitLt(
                                module_child.in_features,
                                module_child.out_features,
                                module_child.bias is not None,
                                has_fp16_weights=False,
                                threshold=threshold,
                            )

                            replacement._parameters['weight'] = Int8Params(module_child.weight.data.cpu(), requires_grad=False, has_fp16_weights=False).to(target_device)
                            if module_child.bias is not None:
                                replacement._parameters['bias'] = nn.Parameter(module_child.bias.data, requires_grad=False)

                            setattr(module_parent, n, replacement)
                            del module_child

                else:
                    if len(list(module_child.children())) > 0:
                        patch_8bit_inner(module_child, name + "." + n)

            if name == "root":
                torch.cuda.empty_cache()
                module_parent.eval()

        patch_8bit_inner(self.model)
        self.is_8bit = True
        return self


Notification Count with TabBar

I've learned to ask this question before I start implementing it on my own with this router :)
Is there any way to add Notifications to the Tabbar? Something like this,

Ps great work with the continued progress with this project. Every time I look at it more and more stuff is added. I wouldn't built a RN app without it now.

It is definitely out of scope for this component - this component doesn't represent navbars or tabbars, but only navigation from one component to other
Pavel.

9 окт. 2015 г., в 07:46, Tyler McGinnis<EMAIL_ADDRESS>написал(а):
I've learned to ask this question before I start implementing it on my own with this router :)
Is there any way to add Notifications to the Tabbar? Something like this,
Ps great work with the continued progress with this project. Every time I look at it more and more stuff is added. I wouldn't built a RN app without it now.
—
Reply to this email directly or view it on GitHub.


False positive for Rails/NotNullColumn when adding not null constraint to text column ?

Rails/NotNullColumn warns against adding the not null constraint to text column without the default value, however the default value can't be set for text column in MySQL. I'm not sure if this is a bug, but it made me confused. Should we fix this behavior?
C: Rails/NotNullColumn: Do not add a NOT NULL column without a default value.
    add_column :users, :bio, :text, null: false
                                    ^^^^^^^^^^^

Expected behavior
No warnings.
Actual behavior
Get a warning for Rails/NotNullColumn.
Steps to reproduce the problem
Run rubocop against to this migration code.
class AddBioToUsers < ActiveRecord::Migration[7.0]
  def change
    add_column :users, :bio, :text, null: false
  end
end

RuboCop version
$ rubocop -V
1.48.0 (using Parser <IP_ADDRESS>, rubocop-ast 1.27.0, running on ruby 3.2.1) [aarch64-linux]
  - rubocop-performance 1.16.0
  - rubocop-rails 2.18.0
  - rubocop-rake 0.6.0
  - rubocop-rspec 2.19.0

Yeah, this issue has come up before; see: https://github.com/rubocop/rubocop-rails/issues/237
It's a database-specific problem. TEXT can have default values in Postgres, but not in MySQL. Since this cop doesn't know which database this migration is for, it simply always enforces a default value.
I suppose we could add a configurable "ignore list" of datatypes, but it might be easier to just disable the cop for that one line.
add_column :users, :bio, :text, null: false # rubocop:disable Rails/NotNullColumn


Fix lamp topic

Please confirm this pull request meets the following requirements:

[ ] I followed the contributing guidelines: https://github.com/github/explore/blob/main/CONTRIBUTING.md.
[ ] I am not the sole author or employee of a company who created the topic or collection I'm changing.

Which change are you proposing?

[ ] Suggesting edits to an existing topic or collection
[x] Curating a new topic or collection
[ ] Something that does not neatly fit into the binary options above

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[ ] Image (and my file is *.png, square, dimensions 288x288, size <= 75 kB)
[x] Content (and my changes are in index.md)

Just realised that the path was wrong, renamed it from lamp.md to lamp/index.md so GitHub processes it.

Curating a new topic or collection

[ ] I've formatted my changes as a new folder directory, named for the topic or collection as it appears in the URL on GitHub (e.g. https://github.com/topics/[NAME] or https://github.com/collections/[NAME])
[ ] My folder contains a *.png image (if applicable) and index.md
[ ] All required fields in my index.md conform to the Style Guide and API docs: https://github.com/github/explore/tree/main/docs

Please replace this line with an explanation of why you think this topic or collection should be curated.

Something that does not neatly fit into the binary options above

[ ] My suggested edits are not about an existing topic or collection, or at least not a single one
[ ] My suggested edits are not about curating a new topic or collection, or at least not a single one
[ ] My suggested edits conform to the Style Guide and API docs: https://github.com/github/explore/tree/main/docs

Please replace this line with an explanation of your proposed changes.

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

@github/communities-oss-reviewers


Workaround for #1003

By disabling the QT installers internet access login details are no longer required.
To achieve this I have had to split the build process up slightly as shown by the changes to the travis file.
Fixes #1003

From a technical side, I think this is going to break https://hub.docker.com/ builds (well, at least not fix them).

I wonder if we can disable network from within the Dockerfile, just for the Qt installer, some other way (e.g. https://stackoverflow.com/q/50907073/939364)

An option would be to manually build an image up to the Qt-being-installed point, create a new Docker repository for that image, and push tags of that image manually from local builds, and have the automated Splash build based on tags of that image.
Although it seems rather complicated, decreasing the level of automation we have for images.

I wonder if we can disable network from within the Dockerfile, just for the Qt installer, some other way (e.g. https://stackoverflow.com/q/50907073/939364)

Leave this idea with me, I might come up with something ;)

A possible way to disable network access when installing qt, is to launch the installer through proxychains with a non-exist proxy. In the slackbot project's integration tests, it need  to verify the bot could successfully reconnect to the slack server after a network disconnect, which is achieved by using this trick.

Interesting idea @lucywang000 will try that locally and change this PR if it works.

@lucywang000 fantastic suggestion and I'm happy to report that locally it looks to have worked nicely. Thankfully, just setting the environment variables to specify a non-existent proxy was enough.
To test this, I ran X11 on my mac with it configured to accept network connections. I set environment variable DISPLAY within the container to host.docker.internal:0 and dropped xvfb-run. The GUI opened up on my mac during docker build and went on unattended.
On removing all this, and just leaving the http_proxy and https_proxy docker build . ran as expected.
@kmike @Gallaecio I hope this is a resolution that works for you both? :)

Thanks @imduffy15, @Gallaecio and @lucywang000!


manifest: psa-arch-tests to commit: ee3233a

New watchdog timer configuration for Nordic
devices.
Signed-off-by: Georgios Vasilakis<EMAIL_ADDRESS>

@Vge0rge Please check the compliance failure.

Please update now that the other PR had been merged. Thanks!

Just rebased my PR and replaced the PR link with the hash :)


Setup linting for packages code

unassigned myself. it's still pure madness to get TypeScript + ESLint + Prettier to work together in 2023.

this was done via #132


Install Fails

I've been trying to get this to install for awhile now and it's just not working. I've installed all the dependencies listed for node-gyp and it's still not working. I'm honestly not sure what the problem is now so posting here out of desperation. I'm on Windows 8.1 x64. Any assistance would be appreciated.
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Users\Nick\Desktop\tagger\node_modules\lwip
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "lwip" "--save"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the lwip package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls lwip
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     c:\Users\Nick\Desktop\tagger\npm-debug.log

me too，is there anybody helps？？？？？

I have the same problem, under the Windows 7, install the CSS-Sprite, lwip rely on, but the lwip installation is not successful.

@NicholasJohn16 - are you sure you have all of the node-gyp requirements properly installed? Try to install another native module (such as bcrypt) and see if it works.
@landy2014 - Your screenshot clearly says what the problem is.

Trying to install bcrypt, but still won't do

Yeah, very odd—I'm on OSX 10.10.5 and I've got all the dependencies installed. Same results on both lwip and bcrypt. I did manage to correct this, however.
I upgraded Xcode and command line tools to Xcode 7; that didn't do it on it's own.
After a bunch of googling I found this comment-issue: (https://github.com/Homebrew/homebrew/issues/40653)
I made the following symlinks:
$ cd /usr/local/lib
$ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib
$ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.4.dylib

and then made sure that /usr/local/lib was in my $PATH, and viola, lwip installed correctly.


[Event Request] Item Tracking Data Collection Codeunit 6501 (Repost)

Hello, I am still having an issue with overriding the behavior of serial number tracking overriding the quantity to 1, as described in issue 11859 here:
https://github.com/microsoft/ALAppExtensions/issues/11859
I am now looking at "Microsoft_Base Application_18.0.23013.25150.app", and the code in AssistEditTrackingNo looks essentially the same...
I don't see a function called CalcNewQtyOnLine in C6501, as shown in the reply to my message.  Can someone point me to where that code is?  I think I still need a new event to be able to override the resetting of the quantity of 1 when serials are used.
Thanks!

For reference, here is the code I see in the AssistEditTrackiongNo function in the current version (or at least 18.0.23013.25150):
            TransferExpDateFromSummary(TempTrackingSpecification, TempGlobalEntrySummary);
            if TempTrackingSpecification.IsReclass or DirectTransfer then
                TempTrackingSpecification.CopyNewTrackingFromTrackingSpec(TempTrackingSpecification);
            OnAssistEditTrackingNoOnAfterCopyNewTrackingFromTrackingSpec(TempTrackingSpecification, DirectTransfer);

            NewQtyOnLine := QtyOnLine + AdjustmentQty + QtyHandledOnLine;
            if TempTrackingSpecification."Serial No." <> '' then
                if Abs(NewQtyOnLine) > 1 then
                    NewQtyOnLine := NewQtyOnLine / Abs(NewQtyOnLine); // Set to a signed value of 1.

            TempTrackingSpecification.Validate("Quantity (Base)", NewQtyOnLine);

You can find this code in application version 18.1. Please create a new request based on new code if you still need it.


Print newline before end tag only if the tag has content or child

For example  should be on online;  should be on one line

When there's content, we actually don't need to print new line. Only when there's child and no content that we need a new ine, for example:
hello don't need a new line;

The outer div needs a new line
I'll open another pull request. Close this one now


dl element

Hi!
Can it working with dl element?

  <input class="search" type="search" />

Term 1

Def 1

Term 2

Def 2

Term 3

Def 3

Something like this?
var list = new List('faq', {valueNames:['term', 'def']});

Hm, no sorry. List.js requires a single item root element :cry:
In a dllist there is two (both a dt and a dd).
I haven´t thought about the dl case actually. But due to core features of List.js this case will not be supported.


chore(package): bump angular and rxjs

Short description of what this resolves:
Upgrades the rxjs dep to 5.5.0. No breaking changes!
Upgrades Angular to the latest release
fix #13266

Hi @danielsogl,
Sorry, I already did this myself.
Thanks,
Dan

@danielsogl,
Thanks!
Thanks,
Dan


wip: Add sharding e2e test to Github Actions

Signed-off-by: Priya Wadhwa<EMAIL_ADDRESS>depends on https://github.com/sigstore/rekor/pull/712 to merge first

Summary

Ticket Link

Fixes
Release Note

Codecov Report

Merging #714 (ecec708) into main (c3a7f89) will increase coverage by 0.07%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #714      +/-   ##
==========================================
+ Coverage   47.53%   47.60%   +0.07%
==========================================
  Files          65       65
  Lines        5669     5669
==========================================
+ Hits         2695     2699       +4
+ Misses       2684     2680       -4
  Partials      290      290

Impacted Files
Coverage Δ

cmd/rekor-cli/app/log_info.go
3.00% <0.00%> (ø)

pkg/types/rekord/v0.0.1/entry.go
51.51% <0.00%> (+0.60%)
:arrow_up:

pkg/types/alpine/v0.0.1/entry.go
62.01% <0.00%> (+0.77%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3a7f89...ecec708. Read the comment docs.


Accept action returned value of type pathlib.*Path as success

It is great, doit allows using pathlib.
Things like these are simple and easy:
import shutil
from pathlib import Path

src = Path("input/file.txt")
out = Path("output/file.txt")

res = shutil.copy(src, out)

The only problem is, that (with python 3.6) the res is of the same value as out and following action fails:
	{
		"actions": [
			(shutil.copy, [src, out]),
		],
	}

because value of type pathlib.PosixPath is not considered a sign of success.
There is a workaround (shutil.copy, [src, str(out)]) but as doit already acounts for use of pathlib, why not accept such values as sign of success.

makes sense. just needs a patch :grin:


Biome updates

Updates Biome and turns on noUnusedImports

I often find Biome rules slows down development given format on save feature doesn't work well with auto fix. hopefully it can be improved over time

This release includes some fixes there, could you check if it improves?


Dashboard bugs

if the token is invalid, it shows a blank page instead of showing an error / redirecting to the auth page

also: logout fully logout. need to log out from hydra in addition to removing the cookie from next-auth

Two UX things to note:

shows Create Next App as the page title:

a 11 sats balance shows in scientific notation:

those issues has been addressed


fix namespace, add create a fork, add forkedfrom field in project ,add tests

Add a method getNamespace
fix URL for Namespace
create a fork
add forkedfrom field in project
add tests
Use url of Group instead of url of Namespace for transfert, and getNamespaceMembers (A better name would be getGroupMembers)

This pull request is now over 3 months old. When will this be merged and released?


Use more modern string formatting

We've been using printf-style formatting (https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting), but python now offers nicer ways to format strings.
Note that we can't use the following, because it's not available in 2:

Changed in version 3.1: The positional argument specifiers can be omitted, so '{} {}' is equivalent to '{0} {1}'

Is this referring to the internals of param? If so, yes, it would be great to update that.


Fixes moving of assets to gh-pages branch

This tween should fix the issue upptime/upptime#256

I have read the CLA Document and I hereby sign the CLA

recheck

@AnandChowdhary can you have a look?
Thanks!

recheck

Thanks!


Graph disconnected Error for multiple inputs layer

I defined a very simple custom layer, which just output the sum of its inputs:
import keras
from keras.layers import Input, Dense, Flatten
from keras import Model

class test_layer(keras.layers.Layer):
    def __init__(self, **kwargs):
        super(test_layer, self).__init__(**kwargs)

    def build(self, input_shape):
        super(test_layer, self).build(input_shape)

    def compute_output_shape(self, input_shape):
        return input_shape[2]

    def call(self, x, **kwargs):
        return x[0]+x[1]+x[2]

A = Input(shape=(100,100))
B = Input(shape=(100,100))
C = Input(shape=(100,100))

y = test_layer()([A, B, C])

model = Model(A,y)

The error occured, when I try to Model its one input to its output.
Traceback (most recent call last):
  File "/home/***/***/***/***.py", line 20, in <module>
    model = Model(A,y)
  File "/home/***/anaconda3/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/home/***/anaconda3/lib/python3.6/site-packages/keras/engine/network.py", line 91, in __init__
    self._init_graph_network(*args, **kwargs)
  File "/home/***/anaconda3/lib/python3.6/site-packages/keras/engine/network.py", line 235, in _init_graph_network
    self.inputs, self.outputs)
  File "/home/***/anaconda3/lib/python3.6/site-packages/keras/engine/network.py", line 1489, in _map_graph_network
    str(layers_with_complete_input))
ValueError: Graph disconnected: cannot obtain value for tensor Tensor("input_2:0", shape=(?, 100, 100), dtype=float32) at layer "input_2". The following previous layers were accessed without issue: ['input_1']

I'm facing the same problem. Any hint?


Add cmoke test case for vTaskResume.

Description

This PR is along with kernel PR 865, see the kernel PR for details.
Test Steps

Checklist:

[ ] I have tested my changes. No regression in existing tests.
[ ] I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Hi @ Moral-Hao , Please fix the Kernel unit tests CI check. Some are failing


Crash in save from DataStoreBaseBehavior

Describe the bug
Hi Team,
Today I got crash while running the ios app.
The crash was in extension class DataStoreBaseBehavior-
func save<M: Model>(_ models: [M], where predicate: QueryPredicate?) async throws -> [M] {
let results = try await withThrowingTaskGroup(of: M.self) { group in
for model in models {
group.addTask {
try await save(model, where: predicate) // Crash line
}
}
        return try await group.reduce(into: []) { array, model in
            array.append(model)
        }
    }

    return results
}

Steps To Reproduce
I got it on app launch.

Crash error -

Thread 94: Fatal error: SWIFT TASK CONTINUATION MISUSE: save(_:modelSchema:where:) tried to resume its continuation more than once, throwing DataStoreError: The operation couldn’t be completed. (SQLite.Result error 0.)
Recovery suggestion: The operation couldn’t be completed. (SQLite.Result error 0.)
Caused by:
cannot rollback - no transaction is active (code: 1)!

Expected behavior
App should not crash in save models
Amplify Framework Version
2.33.6
Amplify Categories
DataStore
Dependency manager
Swift PM
Swift version
5.9.2
CLI version
12.11.1
Xcode version
15.2
Relevant log output
Thread 94: Fatal error: SWIFT TASK CONTINUATION MISUSE: save(_:modelSchema:where:) tried to resume its continuation more than once, throwing DataStoreError: The operation couldn’t be completed. (SQLite.Result error 0.)
Recovery suggestion: The operation couldn’t be completed. (SQLite.Result error 0.)
Caused by:
cannot rollback - no transaction is active (code: 1)!

Is this a regression?
No
Regression additional context
No response
Platforms
iOS
OS Version
iOS 17.5
Device
iPhone 15 Plus
Specific to simulators
No response
Additional context
No response

@amruth-movano Thanks for submitting your issue.  To help reduce produce the issue, can you provide your model/schema and the request parameters that resulted in the crash?

@phantumcode Hi, currently it is not reproducible, so not sure how can I help wth parameters which were resulted in crash

@amruth-movano Are you able to provide your model schema or a example schema or test app that can help reproduce the issue?

@phantumcode
I am not getting it while debugging, its from firebase now. Below is the crash logs -
      Crashed: com.apple.root.user-initiated-qos.cooperative

0  libswiftCore.dylib             0x38870 assertionFailure(::file:line:flags:) + 264
1  libswift_Concurrency.dylib     0x5b80 CheckedContinuation.resume(throwing:) + 472
2  Evie Ring                      0x85ea88 CheckedContinuation.resume(with:) +<PHONE_NUMBER> (:4348406408)
3  Evie Ring                      0x85e7ec closure #1 in closure #1 in AWSDataStorePlugin.save(:modelSchema:where:) + 66 (AWSDataStorePlugin+DataStoreBaseBehavior.swift:66)
4  Evie Ring                      0x85e2dc closure #2 in AWSDataStorePlugin.save(:modelSchema:where:completion:) + 54 (AWSDataStorePlugin+DataStoreBaseBehavior.swift:54)
5  Evie Ring                      0x8b1c28 closure #1 in StorageEngine.syncMutation(of:modelSchema:mutationType:predicate:syncEngine:completion:) + 382 (StorageEngine.swift:382)
6  Evie Ring                      0x8d84b4 closure #1 in AWSMutationDatabaseAdapter.save(mutationEvent:storageAdapter:completionPromise:) + 230 (AWSMutationDatabaseAdapter+MutationEventIngester.swift:230)
7  Evie Ring                      0x8a6dbc SQLiteStorageEngineAdapter.save(:modelSchema:condition:eagerLoad:completion:) + 155 (StorageEngineAdapter+SQLite.swift:155)
8  Evie Ring                      0x8a6cc8 SQLiteStorageEngineAdapter.save(:condition:eagerLoad:completion:) + 139 (StorageEngineAdapter+SQLite.swift:139)
9  Evie Ring                      0x8aac74 protocol witness for ModelStorageBehavior.save(:condition:eagerLoad:completion:) in conformance SQLiteStorageEngineAdapter +<PHONE_NUMBER> (:4348718196)
10 Evie Ring                      0x8d7f90 AWSMutationDatabaseAdapter.save(mutationEvent:storageAdapter:completionPromise:) + 213 (AWSMutationDatabaseAdapter+MutationEventIngester.swift:213)
11 Evie Ring                      0x8d6a78 AWSMutationDatabaseAdapter.resolve(candidate:localEvents:per:storageAdapter:completionPromise:) + 189 (AWSMutationDatabaseAdapter+MutationEventIngester.swift:189)
12 Evie Ring                      0x8d5f40 closure #1 in AWSMutationDatabaseAdapter.resolveConflictsThenSave(mutationEvent:storageAdapter:completion:) + 45 (AWSMutationDatabaseAdapter+MutationEventIngester.swift:45)
13 Evie Ring                      0x92e670 closure #1 in static MutationEvent.pendingMutationEvents(for:storageAdapter:completion:) + 95 (MutationEvent+Query.swift:95)
14 libswift_Concurrency.dylib     0x41c2c swift::runJobInEstablishedExecutorContext(swift::Job*) + 416
15 libswift_Concurrency.dylib     0x42e88 swift_job_runImpl(swift::Job*, swift::ExecutorRef) + 72
16 libdispatch.dylib              0x15be4 _dispatch_root_queue_drain + 392
17 libdispatch.dylib              0x163ec _dispatch_worker_thread2 + 156
18 libsystem_pthread.dylib        0x1928 _pthread_wqthread + 228
19 libsystem_pthread.dylib        0x1a04 start_wqthread + 8


Steps to support UniRx from external plugins

Hello guys,
I'm the creator of RestClient for Unity .
I was wondering if there're some steps to support this library from my own plugin.
Thanks in advance, Nicholls

Hey I love your plugin good work !


Readme revisions

@maratkomarov @rtfee Submitting this for initial review of the README. Not ready to merge. Plan is to merge at the same time as the blog posts go live and the READ requires a link to those posts. Also need to do a separate PR to add more descriptive comments to each policy to aid understanding.

@pgale61 anyone outside of Scalr will not be able to create a branch in our repo. They should fork the project, create their changes in their own repo, and then open a PR from that repo against our master.

LGTM


1.12.58: the broker should pass the archetype to the object template

Currently, the plenary object template generated by the broker doesn't contain anything about the Aquilon archetype used to build the host. This makes impossible for a generic (not archetype-based, e.g. feature or OS templates in the template library) template to include an archetype-specific configuration with something like:
include format('site/%s/feature_config', ARCHETYPE);

It would be good to have the broker adding this information in the generated template, either by defining a (final) variable ARCHETYPE or by adding it to the profile configuration as part of the host data. One advantage for using a variable is that it would be possible to define it before the initial LOADPATH with the following construct that will make the things more readable and avoid any risk of divergence:
final variable ARCHETYPE = 'linux';
variable LOADPATH = list(ARCHETYPE);

This issue is a spin off of the very long #86 discussion...

I would actually be very happy if it just did:
"/system/archetype/name" = "foo";

Our usage of the ARCHETYPE is largely legacy and could be easily replaced with value("/system/archetype/name").

In fact, I just checked and we no longer make use of ARCHETYPE, everything has already switched over.

I'm also happy if the broken assign the config path rather than a variable but I'd suggest my construct to make clear that loadpath is initialized with it


Fix relations named "parent".

The @parent variable defined in Traversable was colliding with the "@#{name}" variables defined by Relations. Added an extra underscore to the name to protect against this.
Fixes #3911

thanks


Fix idempotence plugin

The idempotence plugin was crashing in some cases when the 'changed'
value could not be read from the 'res' dictionary.
Also, the changed task list contained duplicates in some cases. When a task
was executed several time because of a loop (using with_items for
instance), the task was being displayed once per item. Replacing the
list by a set solved this issue.

+1


bug: race condition if workflows completes faster than pr-check created

:tada: This issue has been resolved in version 1.20.7 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Please remove "netbox-plugin" tag

Hello,
Please remove the "netbox-plugin" tag as this is not a netbox plugin (this is instead a standalone app).  You can leave the netbox tag however.

Done

If there is any interest, I could help you convert this to a plugin.


Wizard Focus Does Not Switch To Content After Selecting a Tab

Describe the bug
When selecting a tab on the left side of the wizard, the focus does not jump to that tabs content.  Keyboard only users and screen reader users will find it difficult to access the pop-up as they have to navigate through all the controls in the left navigation to reach the main content.
How to reproduce
https://clarity-light-theme-v2-p315xm.stackblitz.io/
Steps to reproduce the behavior:

Tab to the Open Wizard button.
Press Enter
Tab until the Next button.
Press Enter
Repeat until the last page of the wizard can be accessed.
Tab until any tab has focus.
Press Enter
Notice that the content for that tab does not gain focus.

Expected behavior
When clicking on a wizard tab, focus should move to that tabs content to make the wizard more accessible.
Versions
App

Angular: 8.2.4
Clarity: 2.1.2

Device:

Type: Surface Book
OS: Windows 10
Browser: Chrome
Version: 79.0.3945.117

Clarity cares deeply about accessibility, and we work with our accessibility team to identify and triage issues. We have an internal tracking system to identify and verify accessibility issues, which has captured this already. Some issues with Clarity Angular are difficult to solve without causing side effects or breaking changes, and we have to balance concerns with fixing issues and breaking changes. As we build out Clarity Core, we are able to address these root cause accessibility issues and recommend adopting the Clarity Core implementations as they become available. We are closing this issue as we have the issues tracked internally. Please follow our development and releases to see when we release relevant Clarity Core components to make this possible.

Looking into this as part of VPAT-749 (
It sounds like the a11y requirement is to move focus to the WizardPage after a WizardStepNav item is activated.


include recent changes into CHANGELOG.md

@Upendras, @Assaf-Neufeld, please take a look.

:shipit:


Fixed horizon culling issues with large root tiles

There were some horizon culling bugs with ArcGisTerrainProvider's root tile which cause some child tiles to be culled or the whole screen to go black altogether. The problem is the tile was creating a horizon culling point from a set of points that were on opposite sides of the globe. This has been a bug for a while but was made worse by https://github.com/AnalyticalGraphicsInc/cesium/pull/8475. The fix was to detect these backwards points in EllipsoidalOccluder and throw out the entire occlusion point if one of them is backwards. In practice this only happens for very large tiles with widths greater than half the globe. CesiumWorldTerrain never had this problem because it has two root tiles. ArcGisTerrainProvider only has one root tile so it was affected.
Before sandcastle

After sandcastle (local)

Thanks for the pull request @IanLilleyT!

:heavy_check_mark: Signed CLA found.
:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

Thanks, this fixes the problem we were seeing last night.
I confirmed again that this doesn't change the number of tiles rendered each frame. Sandcastle with all the different terrain providers

@lilleyse I added some new test cases. Ready for review.

Thanks @IanLilleyT


[WIP][vpj][common] Calculate a more accurate rewind time for hybrid repush

Summary

Today for hybrid store repush, we use default 24h as the rewind time. However, sometimes 24h rewind causes lots of duplicate records consumption, or sometimes 24h rewind could lose data. This commit uses the low watermark of latest consumed RT message timestamp across all partitions to calculate rewind time.
How was this PR tested?

Working on adding a new test
Does this PR introduce any user-facing changes?

[x] No. You can skip the rest of this section.
[ ] Yes. Make sure to explain your proposed changes and call out the behavior change.

De-prioritized. Not actively working on this.


build: switch karma.conf to typescript

Switches the karma.conf to TypeScript.

@jelbourn I can't really remember of a strong reason, just that we wanted Karma to start-up faster without using ts-node and that we wanted to support launching Karma  in the specific IDEs.
e.g. Webstorm has a pretty nice run configuration that allows easy-debugging of spec files, but won't be able to read a TS karma config.

Maybe that has changed since the last time this was checked? It seems like Karma itself handles TS properly both through the CLI and the programmatic API.

The only reason it works right now is that we have registered ts-node within the gulpfile.js AFAIK. Karma does not have any known support for TypeScript (except for processors)

I see, I'm not sure why I was under the impression that it was working through the CLI. Do we still want the type safety and sacrifice the Webstorm integration? I can also add a karma.conf.js that just registers the config with ts-node, similarly to the Gulp config.

Not sure if we gain a lot from using TypeScript here. The typings for the Karma config do not really account for the various plugins we use.
I personally don't really think that it would be needed, since plain JavaScript is pretty clean in such cases, but I don't care that much. You decide.

Yeah, I'd agree that the config file is simple enough that there's not a huge benefit. I haven't used the WebStorm integration in a while, but I'd like to think I could get it working again.

Closing to avoid issues with IDEs.


Failed to start error=failed to build kubernetes client config: invalid configuration: no configuration has been provided

I create calico-kube-controller follow this page https://docs.projectcalico.org/v2.6/getting-started/kubernetes/installation/hosted/calico.yaml ，and got this error
2017-10-16 09:55:01.202 [INFO][301] main.go 65: Loaded configuration from environment config=&config.Config{LogLevel:"info", ReconcilerPeriod:"5m", EnabledControllers:"policy,profile,workloadendpoint", WorkloadEndpointWorkers:1, ProfileWorkers:1, PolicyWorkers:1, Kubeconfig:""}
2017-10-16 09:55:01.202 [INFO][301] client.go 202: Loading config from environment
2017-10-16 09:55:01.203 [FATAL][301] main.go 77: Failed to start error=failed to build kubernetes client config: invalid configuration: no configuration has been provided
I don‘t know why even when i start kubelet with --kubeconfig is not help，I add this config

in configmap is not help too

I add kubeconfig in the wrong place，change it and solve the problem (〃ﾉωﾉ)   ⁄(⁄⁄•⁄ω⁄•⁄⁄)⁄


Deadlock reporting

Failed to execute INSERT INTO deck_match (deck_id, match_id, games) VALUES (%s, %s, %s) with ['30437', 52836, '2'] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')

Reported on decksite by esqpoe

            --------------------------------------------------------------------------------

            Request Method: POST

            Path: /report/?

            Cookies: {'__cfduid': 'dea3fe543d7f013acfc21480ea226ea901539612031', 'session': '.eJx9kctuwjAQRf9l1lHlOA8SdrQigCgSUoXoQ1XkxpMQiO3EdloQ6r_XQaIsKnV574zvzByfIW9RCyZRWhhb3aMHjItawrhkjXGKo6iF4jddm0JpntfOgiANoiAJSTQiJErThKTgwT8VmVd93fDrpEZVFfJhA6PkJZHSlHogbKXy3qCWTKALQ9O1Cl2AYr3d0dxYZgef7HExE1oc_cW6MKPo5XEy8bdPrysxX3Jx67fqgO6iM7CiQGOuGr662XS116XVNOzV52G5WT93ZTraZ_MPs3Pv8djWGk3OHBw_CkmcBAFN7uLQpySObvWBV0zChBAPNJbO2v0OyZrtYZpNFmojMKinwaphcfFAGeVFJjs3xPFs3TVvDpz7hbo8Oe-CycC7B5eY3J6GFrhHplHDtwd_mFmmK3Rryr5pvn8AYtyXrQ.DvFY2Q.WK_lXrksYn_g0gHYED17d9WADbE'}

            Endpoint: add_report

            View Args: {}

            Person:<PHONE_NUMBER>00599809

            Referrer: https://pennydreadfulmagic.com/report/

            Request Data: {'entry': '30437', 'opponent': '30440', 'result': '2–0', 'draws': '0'}

Host: pennydreadfulmagic.com

Accept-Encoding: gzip

Cf-Ipcountry: US

X-Forwarded-For: 2601:80:c100:997:2d01:f75c:8ada:6775, <IP_ADDRESS>

Cf-Ray: 4878fd3e297191e2-EWR

X-Forwarded-Proto: https

Cf-Visitor: {"scheme":"https"}

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-US,en;q=0.5

Referer: https://pennydreadfulmagic.com/report/

Content-Type: application/x-www-form-urlencoded

Dnt: 1

Upgrade-Insecure-Requests: 1

Cookie: __cfduid=dea3fe543d7f013acfc21480ea226ea901539612031; session=.eJx9kctuwjAQRf9l1lHlOA8SdrQigCgSUoXoQ1XkxpMQiO3EdloQ6r_XQaIsKnV574zvzByfIW9RCyZRWhhb3aMHjItawrhkjXGKo6iF4jddm0JpntfOgiANoiAJSTQiJErThKTgwT8VmVd93fDrpEZVFfJhA6PkJZHSlHogbKXy3qCWTKALQ9O1Cl2AYr3d0dxYZgef7HExE1oc_cW6MKPo5XEy8bdPrysxX3Jx67fqgO6iM7CiQGOuGr662XS116XVNOzV52G5WT93ZTraZ_MPs3Pv8djWGk3OHBw_CkmcBAFN7uLQpySObvWBV0zChBAPNJbO2v0OyZrtYZpNFmojMKinwaphcfFAGeVFJjs3xPFs3TVvDpz7hbo8Oe-CycC7B5eY3J6GFrhHplHDtwd_mFmmK3Rryr5pvn8AYtyXrQ.DvFY2Q.WK_lXrksYn_g0gHYED17d9WADbE

Cf-Connecting-Ip: 2601:80:c100:997:2d01:f75c:8ada:6775

X-Forwarded-Host: pennydreadfulmagic.com

X-Forwarded-Server: pennydreadfulmagic.com

Connection: Keep-Alive

Content-Length: 53

DatabaseException
Failed to execute INSERT INTO deck_match (deck_id, match_id, games) VALUES (%s, %s, %s) with ['30437', 52836, '2'] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')
Stack Trace:

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__

    return self.wsgi_app(environ, start_response)

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app

    response = self.handle_exception(e)

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app

    response = self.full_dispatch_request()

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request

    rv = self.handle_user_exception(e)

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception

    reraise(exc_type, exc_value, tb)

  File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise

    raise value

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request

    rv = self.dispatch_request()

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request

    return self.view_functions[rule.endpoint](**req.view_args)

  File "./decksite/main.py", line 339, in add_report

    if form.validate() and lg.report(form):

  File "./decksite/league.py", line 244, in report

    match.insert_match(dtutil.now(), form.entry, form.entry_games, form.opponent, form.opponent_games, None, None, mtgo_match_id)

  File "./decksite/data/match.py", line 32, in insert_match

    db().execute(sql, [left_id, match_id, left_games])

  File "./shared/database.py", line 45, in execute

    [n, _] = self.execute_anything(sql, args, False)

  File "./shared/database.py", line 60, in execute_anything

    raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))

Exception_hash: f145376b73fca01a8ec3fcf31c34033489d3bd48

Closing as a one-off for now.

Failed to execute UPDATE person SET elo = IFNULL(elo, 1500) + %s WHERE id = %s with [6, 2400] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')

Reported on decksite by logged_out

            --------------------------------------------------------------------------------

            Request Method: POST

            Path: /report/?

            Cookies: {}

            Endpoint: add_report

            View Args: {}

            Person: logged_out

            Referrer: None

            Request Data: {'entry': '30968', 'opponent': '30875', 'result': '2–1', 'draws': '0', 'matchID': '213713511'}

Host: pennydreadfulmagic.com

Accept-Encoding: gzip

Cf-Ipcountry: XX

X-Forwarded-For: <IP_ADDRESS>, <IP_ADDRESS>

Cf-Ray: 49462c90adbdb75f-CDG

X-Forwarded-Proto: https

Cf-Visitor: {"scheme":"https"}

Content-Type: application/x-www-form-urlencoded

Cf-Connecting-Ip: <IP_ADDRESS>

X-Forwarded-Host: pennydreadfulmagic.com

X-Forwarded-Server: pennydreadfulmagic.com

Connection: Keep-Alive

Content-Length: 114

DatabaseException
Failed to execute UPDATE person SET elo = IFNULL(elo, 1500) + %s WHERE id = %s with [6, 2400] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')
Stack Trace:

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__

    return self.wsgi_app(environ, start_response)

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app

    response = self.handle_exception(e)

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app

    response = self.full_dispatch_request()

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request

    rv = self.handle_user_exception(e)

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception

    reraise(exc_type, exc_value, tb)

  File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise

    raise value

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request

    rv = self.dispatch_request()

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request

    return self.view_functions[rule.endpoint](**req.view_args)

  File "./decksite/main.py", line 339, in add_report

    if form.validate() and lg.report(form):

  File "./decksite/league.py", line 244, in report

    match.insert_match(dtutil.now(), form.entry, form.entry_games, form.opponent, form.opponent_games, None, None, mtgo_match_id)

  File "./decksite/data/match.py", line 35, in insert_match

    elo.adjust_elo(winner_id, loser_id)

  File "./decksite/data/elo.py", line 28, in adjust_elo

    db().execute(sql, [adj, winner.id])

  File "./shared/database.py", line 45, in execute

    [n, _] = self.execute_anything(sql, args, False)

  File "./shared/database.py", line 60, in execute_anything

    raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))

Exception_hash: f3a28e4d509f4e37132ff029516bbd8e5195cf54


[WIP] Add jenkins job to build & deploy fabric8-ui

Waiting for fabric8-ui tests to pass so we can merge this cleanly

@jfchevrette Could you please tell me what's remaining in this PR?

We will get this done asap. The main part missing was that everyones been away for the break .

Thanks @kbsingh

@sbose78 @joshuawilson if we can get https://github.com/fabric8io/fabric8-ui/pull/37 merged in, I can then test and merge this request in as well.

Thanks @kbsingh  - will do that.

https://github.com/fabric8io/fabric8-ui/pull/37 is merged.

this PR is now superseeded by https://github.com/almighty/almighty-jobs/pull/42


Update manifests/c/clsid2/mpc-hc/1.9.17/clsid2.mpc-hc.locale.en-US.yaml

Fixes an issue where this package has multiple different monikers
Microsoft Reviewers: Open in CodeFlow

[Policy] Reset Labels


Decryption on AIX with bouncycastle 1.54 is 2 times slower than decryption in 1.46, used with Java

For encryption and decryptoion is used SHA256 with 2048 key length certificate. Encyption speed is the same, while decryption is 2 times slower. Issue in not observed on Linux.

I suspect part of the difference will be that 1.54 includes mitigation against Lenstra's CRT attack. This adds an extra modPow() I would have expected to see some slowdown on Linux as well though. The other difference will be that from their Java 1.7 JVM IBM moved to using Random.nextInt() to creating big integers from Random, not sure why, but it also happens to be the most expensive and least efficient way of using a SecureRandom. That may account for some of the difference as well as the mitigation includes creating a random value.

We see you have closed the previous ticket https://github.com/bcgit/bc-java/issues/220. Is there a workaround? Are you planning to fix the performance or implement an option to disable this additional check for Lenstra's CRT attack soon? The performance degradation causes real production problems.


Setting channel is racy

			notify.mu.Lock()
			notify.value = rand.Intn(100)
			notify.mu.Unlock()

			// notify.ch <- struct{}{}
			close(notify.ch)
			notify.ch = make(chan struct{})

notify.ch = make(chan struct{}) is not in a lock, so it could race that someone reads it in the middle of a write.
I think it would be simpler if you had something like:
type broadcaster struct{
  value int
  notifier chan struct{}
}

// in main
for {
  lock.Lock()
  notify = broadcaster { notifier: make(chan struct{}) }
  lock.Unlock()
  time.Sleep()
  notify.value = math.Rand()
  close(notify.notifier)
}

// in the handler
lock.RLock()
localnotify := notify
lock.RUnlock()
<- localnotify.notifier
send(localnotify.value)

Thank you! I was wondering about that - I appreciate the example. I was also debating between using channels and the mutex, but already had the mutex example so went with it. :)

notify.value = math.Rand()

@carlmjohnson What about modifying the value outside of the lock? Or is that not a concern because the close isn't sent until after the value is modified?

My code needs to be changed to a pointer to actually work but the idea is that the channel guards the value and the readers only read it after the channel has closed.


composer require dependency issue

Package
filament/filament
Package Version
v3.0.0-beta4
Laravel Version
v10.15.0
Livewire Version
No response
PHP Version
PHP 8.2.8
Problem description
Unable to install the filament beta package using composer require.
sail@3f0a3968e8a5:/var/www/html$ composer require filament/filament:"^3.0" --dry-run
./composer.json has been updated
Running composer update filament/filament
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires filament/filament ^3.0, found filament/filament[v3.0.0-alpha1, ..., 3.x-dev] but it does not match your minimum-stability.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

sail@3f0a3968e8a5:/var/www/html$ composer require filament/filament:"v3.0.0-beta4" --dry-run
./composer.json has been updated
Running composer update filament/filament
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires filament/filament v3.0.0-beta4 -> satisfiable by filament/filament[v3.0.0-beta4].
    - filament/filament v3.0.0-beta4 requires filament/actions v3.0.0-beta4 -> found filament/actions[v3.0.0-beta4] but it does not match your minimum-stability.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Expected behavior
Should be able to install filament beta package using composer in laravel 10.x
Steps to reproduce
Run
composer require filament/filament:"^3.0"

in the laravel application directory.
Reproduction repository
https://github.com/code-reflex/filamentv3betatest
Relevant log output
No response

@code-reflex Use "dev" as minimum stability instead of stable before installing.

This will fix it. And then run "composer update" after installing as well.

@code-reflex Use "dev" as minimum stability instead of stable before installing.

Thank you. Yes. changed the settings in composer.json after posting this issue.
    "minimum-stability": "dev",
    "prefer-stable": false

Sorted out the remaining dependencies with -W flag.
composer require filament/filament:"^3.0" -W

Will close the issue.

Closing the issue - set stability to "DEV" and run composer update or with -W flag for resolving dependencies.

The error message you provided suggests that you are encountering issues with PHP extensions while trying to install a package using Composer. Specifically, it appears that the ext-intl extension is required but not enabled in your PHP configuration. Here's what you can do to address this issue:
Enable the ext-intl extension: You need to enable the ext-intl extension in your PHP configuration. To do this, you can follow these steps:
a. Open the php.ini file located at C:\xampp\php\php.ini in a text editor.
b. Search for the line that begins with extension=intl (or something similar) and make sure it is not commented out (i.e., it should not have a semicolon ; at the beginning of the line). It should look like this:
makefile
Copy code
extension=intl
c. Save the php.ini file.
Restart your web server: After making changes to the php.ini file, you should restart your web server to apply the changes. This step is essential for the changes to take effect.
Run Composer: Once you have enabled the ext-intl extension and restarted your web server, try running Composer again without the --ignore-platform-req=ext-intl flag:
Copy code
composer install
This should now work without any issues related to the ext-intl extension.
only by removing the ; semicollon in the php.ini file made this error go away and install filament v3.


JSQ can scroll horizontally on first appear(which should not)

New issue checklist

[YES ] I have read all of the [README]
[YES ] I have reviewed the [contributing guidelines]
[YES ] I have searched [existing issues]
this is not a duplicate.

General information

Library version(s): 7.3.3
iOS version(s): 10.0.2
Devices/Simulators affected:
Reproducible in the demo project? (Yes/No): No
Related issues:

What happened?
Hi, I'm building chat app with JSQ, it works well on iPhone6/6P, but when running on a iPhone5/5c devices(smaller screen), the viewController shows peer avatar on view first appeared, the local avatar doesn't shows up until a horizontal scroll to right, then after sending or receiving a message, both avatar appears and horizontal scroll is disabled.

Please refer the gif for details.
Upon view first appeared, view is horizontal scrollable(and local avatar not showing), after sending a message(or collectionView reload), the view fits the screen and both avatar shows up. Please help.

Hi, After more debugging, I solved this problem by kind of hack.
I found that collectionViewLayout:sizeForItemAtIndexPath  will return a width of 367 after viewDidLoad, but return a width of 312 after ViewWillAppear.
(width of 312 fits iPhone 5 screen, 367 makes local avatar outside the screen)
(and that's why sending a message make the view fits again)
So What I did is return Nil messages before ViewWillAppear,
Until ViewWillAppear I will load my messages and call [self.collectionView reloadData]
But I have No idea of why collectionViewLayout would return different cell width before and after ViewWillAppear.

Hi, I guess It's similar to 1257,
But I'm Not 100% sure for that.

@TaoistKing -- Yep sounds related to #1257


Moved blockchain and patricia_tree to rust-memblocks

Moved blockchain and patricia_tree to rust-memblocks

@apoelstra @TheBlueMatt it was quite easy to remove blockchain thanks to Andrew's clean work. This pull simply removes the files which are now in a new project called rust-memblocks


Not working for WPF Core 3.1

I and several colleagues have tried this, but to no avail.  Try creating a brand new WPF Core (.netcore 3.1) application and then follow the instructions in this page to deploy it as a "sideloaded" application to a UNC path.  Lots of errors when trying to publish.  See this StackOverflow post for further details

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

ID: bead27ac-8ed3-9886-26e2-47f49ea1efc0
Version Independent ID: f354c6b6-b2e0-e070-dd0d-c3452a5635fb
Content: Package a desktop app from source code using Visual Studio - MSIX
Content Source: msix-src/desktop/desktop-to-uwp-packaging-dot-net.md
Product: msix
GitHub Login: @Huios
Microsoft Alias: tajimha

@DrGriff Are you still experiencing an issue with this? For future reference, our Tech community is a better place for troubleshooting help https://techcommunity.microsoft.com/t5/msix-packaging-and-tools/bd-p/MSIX-Packaging

If you are still experiencing this problem, please reopen the issue


Added conditional master import

If MASTER_NAME is set but empty it will not import on master.

This change is

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.

Comments from Reviewable


Move project to jazzband?

The project seems rather inactive, so I'd like to suggest moving it to the Jazzband group, where people can collectively help maintain it. I'm in the group as well and would be willing to help out.

Not sure if this it is big enough according to jazzband guidelines.

I don't think that would be a problem, you do have happy users :)

Hey @relekang, @skorokithakis asked me to chime in, the size of a project doesn't really matter as long as it follows the guidelines.
That said, @skorokithakis it seems like there have been constant releases, so I'm not sure if you're correct in saying that it's "rather inactive".
Either way, it's up to the maintainer to move a project to Jazzband and should not be taken lightly. @relekang Please let me know if you have questions about the process or Jazzband in general.

Yeah, I was going by the commit graph when I made that comment, but @relekang proved to be very responsive. Feel free to close this ticket, I'm happy.

@jezdez Nice to hear that this passes the viability section 😅
Anyways, I am a bit reluctant to move it over to jazzband at this moment for mostly for two reasons. The thing that have degraded the most over time is the infrastructure around CI and such things. I don't like the idea of handing over anything without fixing that. Furthermore, there is not much work here in terms of the maintaining. However, I do not spend a lot of time on features now, but PRs are always welcome ✌


Python: Changed handling of large requests to transfer them as leaked pointers

Large protobuf messages are extremely slow to decode/encode, and with large messages (e.g., 512MB), the client becomes unresponsive. We resolve this issue by passing the arguments as a leaked pointer instead of a bytes vector when the message size exceeds the limit.
When we merge in the bytes/string support, we should change these functions to the relevant types. Added TODOs in the code for that matter.

It is not clear enough what are you doing here.
When you say leaked pointers i think about allocated memory that we lost the pointer to, and it is not clear to me how using it solve the issue.
It might be something simple that other will understand more easily but at least for me it wasn't, so i would like to see some doc with deeper explanation of what exactly is happening here.

It is not clear enough what are you doing here. When you say leaked pointers i think about allocated memory that we lost the pointer to, and it is not clear to me how using it solve the issue. It might be something simple that other will understand more easily but at least for me it wasn't, so i would like to see some doc with deeper explanation of what exactly is happening here.

We discussed in the office - this is a part of the client's design. Since large messages are being properly handled with protobuf, we are using an FFI call with the args vec, allocating it on the heap on the rust side and leaking it so it won't be deleted by the GC. Then we pass only the pointer on the protobuf message, sending the protobuf message through the socket, and getting back the leaked memory by the received pointer in the core side.


uv could operate on the venv it's installed in

I wasn't able to find this request except as mentioned in https://github.com/astral-sh/uv/issues/1422#issuecomment-1949877288 — that when uv is installed in a venv, running it should by default operate on the venv it's installed in.
This simplifies bootstrapping a little bit, as I could then simply set UV = $(VENV)/bin/uv in my Makefile. I'm currently using --python, but that's accepted only as a flag to the uv pip XXX subcommand, and not to uv itself, so I have to splice it in everywhere I need it. I could also set VIRTUAL_ENV in my Makefile, but somehow that feels awkward to me.

This makes some sense, but I don't see how setting the uv alias is any easier than setting VIRTUAL_ENV? I think the latter is clearer.

Mostly because setting environment variables in make is a bit of a pain. You can't just set it on one line of a recipe, because it won't carry over to the next. I could set it globally (export VIRTUAL_ENV=...), and I'll probably end up with that, but globals always irritate me. Might not be rational in this case.

In general, I would recommend against installing uv into virtual environments.

Hm. Can you elaborate? I'm doing that because I want to have a specific version of uv (for reproducible builds), and I don't think the install script allows for that. Though of course, the bootstrap uv is still whatever comes from the script. But the right place to ask for that is at cargo-dist, right?
Should uv not publish a Python package at all?

I think changing this behavior as requested would have dangerous implications, e.g. if you pipx install uv it would operate on the pipx environment it was installed in?

Good question. I've no idea–I'm not familiar with pipx.

Hm. Can you elaborate? I'm doing that because I want to have a specific version of uv (for reproducible builds), and I don't think the install script allows for that. Though of course, the bootstrap uv is still whatever comes from the script. But the right place to ask for that is at cargo-dist, right?

You can download specific versions with the install script e.g.
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.1.16/uv-installer.sh | sh

You can see examples of these in the GitHub Releases page. If you need multiple versions to exist on the system, I think we'd need something like https://github.com/astral-sh/uv/issues/2087 or the ability to name the executable.
uv is better off being outside of the environments it's managing, it's a clearer separation since it does not require Python. It also makes it harder to accidentally delete the binary (e.g. #1327).

Should uv not publish a Python package at all?

We considered this. We only publish a Python package for convenience (and it has many downloads) — our users are just accustomed to installing things that way. It's definitely not our preferred method though.
I think my last point around pipx is significant enough that we cannot support this request. Thanks for sharing your perspective and engaging with the project though!

Hm. Can you elaborate? I'm doing that because I want to have a specific version of uv (for reproducible builds), and I don't think the install script allows for that. Though of course, the bootstrap uv is still whatever comes from the script. But the right place to ask for that is at cargo-dist, right?

You can download specific versions with the install script e.g.
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.1.16/uv-installer.sh | sh

Got it. That's a workaround I can probably get behind.

uv is better off being outside of the environments it's managing, it's a clearer separation since it does not require Python. It also makes it harder to accidentally delete the binary (e.g. #1327).

Good point.
Thanks for your time and patience.