text:
Special characters in request separator comment breaks script execution

Hi @AnWeber
I have http regions defined by request separater with a comment containing special chars like ':' or '('.
If such a region doesn't have a @name defined, the script execution of that region fails on subsequent runs starting with version 6.4.2 with errors like
SyntaxError: Unexpected token '('
	at new Script (node:vm:100:7)
	at createScript (node:vm:257:10)
	at Object.runInThisContext (node:vm:305:10)

@wusawo Do you have some small example. Would be easier for me to fix it

Sure. The following request/region fails on the second run
### test: (1)

{{
    let i=0;
}}
GET https://google.com

It seems that the response of the request is added as variable (test:(1) and test:(1)Response) although it has no @name. These variables are passed as param to the script function and cause trouble:
(async function userJS(exports, require, module, __filename, __dirname, response, $global, test:(1), test:(1)Response, console, httpFile, httpRegion, request, sleep, test, $httpyac, $random)
                                                                                ^

SyntaxError: Unexpected token ':'
	at new Script (node:vm:100:7)
	at createScript (node:vm:257:10)
	at Object.runInThisContext (node:vm:305:10)

Since the region name is also used as a variable name, it should be a valid javascript variable name. I now work around this limitation with with, even though this might be slower.
And I could have understood it from the first description. But thanks for the detailed example.

My understanding was that there is even no variable for the request response created if the request does not have a @name.
Anyways, I was able to update my httpyac extension now and works as expected. Thank you 🙂

@wusawo Yes, that's what I was thinking about at first. I would have had to check it via regex, which again could be flawed. This solution makes it safe and that's why I liked it. I think that performance problem should not be so crucial for this kind of scripts.

authors: AnWeber wusawo

repo: AnWeber/httpyac


text:
[PKG-3584] itables 1.6.3

itables 1.6.3 :snowflake:
Destination channel:  Snowflake
Links

PKG-3584
Upstream repository
Relevant dependency PRs: N/A

Explanation of changes:

Ignoring upstream tests due to missing dependencies.

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_29laxgsd7p/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:20: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.

===== ERRORS =====

clone/recipe/meta.yaml:45: missing_license_family: The recipe is missing the about/license_family key.
===== Final Report: =====
1 Error and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_307kxkesr9/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:20: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.

===== ERRORS =====

clone/recipe/meta.yaml:45: missing_license_family: The recipe is missing the about/license_family key.
===== Final Report: =====
1 Error and 1 Warning were found

What test dependencies are missing?

world_bank_data, shiny, and polars. Also jupytext for a couple platforms. There's built in handling if polars is missing, and the other ones are only used in a few test modules, so we could possibly skip a bunch of the tests.

Also, I'd like to get the opinions of others on https://github.com/mwouts/itables/blob/main/setup.py#L20-L33. I'm not a big fan of this personally and would prefer to download these ourselves, but I would like to get the opinions fro others before doing this.

Oddly, this code is overwriting files that already exist in the pypi source. I suspect the download is meant to be skipped if the external directory is already present, but it's missing an indent.

@ViridianMelody Oh, in that case we could just apply a patch to remove the lines I pointed to so that it doesn't download anything. I didn't realize yesterday that the files were including in the sdist (the file we download from PyPI).

What test dependencies are missing?

world_bank_data, shiny, and polars. Also jupytext for a couple platforms. There's built in handling if polars is missing, and the other ones are only used in a few test modules, so we could possibly skip a bunch of the tests.

I would skip test files https://github.com/mwouts/itables/tree/v1.6.3/tests that require these dependencies

I would enable the test suite and skip test files https://github.com/mwouts/itables/tree/v1.6.3/tests that require these dependencies

@JeanChristopheMorinPerso @skupr-anaconda : Next problem, the sdist doesn't include the tests. Should I download the source from Github to extract those tests from?

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_68q_j5y5tl/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:25: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
===== Final Report: =====
0 Errors and 1 Warning were found

I would enable the test suite and skip test files https://github.com/mwouts/itables/tree/v1.6.3/tests that require these dependencies

@JeanChristopheMorinPerso @skupr-anaconda : Next problem, the sdist doesn't include the tests. Should I download the source from Github to extract those tests from?

We could download the package from GH or simply skip the tests (like it is right now).

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_7425a8qel8/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:25: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
===== Final Report: =====
0 Errors and 1 Warning were found

source: gharchive/pull-request

authors: JeanChristopheMorinPerso ViridianMelody anaconda-pkg-build skupr-anaconda

repo: AnacondaRecipes/itables-feedstock

license_type: permissive

license_source: github-api


text:
CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_549ob8b74s/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_549ob8b74s/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
WARNING: /tmp/abs_549ob8b74s/clone/recipe/meta.yaml:68: missing_description: The recipe is missing a description
ERROR: /tmp/abs_549ob8b74s/clone/recipe/meta.yaml:68: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_549ob8b74s/clone/recipe/meta.yaml:68: missing_documentation: The recipe is missing a doc_url or doc_source_url
ERROR: /tmp/abs_549ob8b74s/clone/recipe/meta.yaml:68: missing_license_family: The recipe is missing the about/license_family key.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_86vdi03isc/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_86vdi03isc/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
WARNING: /tmp/abs_86vdi03isc/clone/recipe/meta.yaml:68: missing_description: The recipe is missing a description
ERROR: /tmp/abs_86vdi03isc/clone/recipe/meta.yaml:68: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_86vdi03isc/clone/recipe/meta.yaml:68: missing_documentation: The recipe is missing a doc_url or doc_source_url
ERROR: /tmp/abs_86vdi03isc/clone/recipe/meta.yaml:68: missing_license_family: The recipe is missing the about/license_family key.
Errors were found

authors: anaconda-pkg-build bkreider


text:
inconsistence in documentation about PolylineGlowMaterialProperty

Hello,
in MaterialProperty and even in Visualizing Spatial Data blog, you talk about PolylineGlowMaterialProperty but in Cesium source the real object is PolylineGlowProperty .

Thanks I just opened a PR to fix this.  The actual API has always been PolylineGlowMaterialProperty and the var in PolylineGlowMaterialProperty.js has been updated to match (as well as the doc).  It's actually the filename that controls how it appears in the public API.

Thanks again for the report, @kaktus40.

source: gharchive/issue

authors: kaktus40 mramato pjcozzi

repo: AnalyticalGraphicsInc/cesium


text:
Event listeners are not being removed when an entity is destroyed

Adding entities (or any kind of Cesium object with a definitionChanged object) to an Entity as a non-standard key causes a listener to be added to it, and not removed.
Here's a Sandcastle example showing the issue: http://www.google.com/url?q=http%3A%2F%2Fcesiumjs.org%2FCesium%2FApps%2FSandcastle%2F%3Fsrc%3DHello%2520World.html%26label%3DShowcases%26gist%3Df0bbec7cd261365aaadd3bb991c4261c&sa=D&sntz=1&usg=AFQjCNGsWLuA2qW3EPH266cojmhANFGNAA
Reported on the forum here: https://groups.google.com/forum/#!topic/cesium-dev/bRk7kmcApeo

Related to #5827


text:
EntityCluster hasLabelIndex always returns false

This was reported on the forum with a suggested fix but I haven't had a chance to try it out and investigate it further so I'm documenting it here.
The Problem
This is the hasLabelIndex function in EntityCluster.js:
function hasLabelIndex(entityCluster, entityId) {
   return defined(entityCluster) && defined(entityCluster._collectionIndicesByEntity[entityId]) && defined(entityCluster._collectionIndicesByEntity[entityId].labelIndex);
}

The supplied entityId is an object, not a string, so defined(entityCluster._collectionIndicesByEntity[entityId]) will always be false.
Suggested Fix
I think the problem is that in addNonClusteredItem and getBoundingBox, it passes item.id as the entityId, but that's actually the entity itself. Instead, it should perhaps pass item.id.id.
It would be good to also write a test that would start out failing and is fixed after this is fixed.
How To Test
What I did to see that this was happening was launch the test suite on the EntityCluster class (using http://localhost:8080/Specs/SpecRunner.html?spec=DataSources%2FEntityCluster) and placing a console.log to see that it does indeed always return false, and passes an object instead of a string.
@hpinkos maybe we can label this "Good First Issue" ?

Given we've had various issues with clustering, this sounds like something that should be fixed sooner rather than later.  Do we understand how this bug manifests in actual clustering behavior?

Based on the report in the forum thread, it causes labels to not be clustered. I haven't had a chance to confirm this however.

authors: OmarShehata mramato


text:
[Warning]keyboardWillShow event should be registered via the Keyboard module

The Latest version of React-native， import the module ‘react-native-keyboard-spacer’ , found a warning keyboardWillShow event should be registered via the Keyboard module，keyboardWillHide event should be registered via the Keyboard module,How to deal with the warning？

Where are you seeing this warning and what version of react native are you using?

@Andr3wHur5t those warnings are being shown on DeviceEventEmitter.addListener call.
      "react": "^15.1.0",
      "react-native": "^0.27.0-rc2"

thank you, i got it.
------------------ 原始邮件 ------------------
发件人: "misha akovantsev";notifications@github.com;
发送时间: 2016年6月3日(星期五) 晚上10:25
收件人: "Andr3wHur5t/react-native-keyboard-spacer"react-native-keyboard-spacer@noreply.github.com;
抄送: "cc"7453027@qq.com; "Author"author@noreply.github.com;
主题: Re: [Andr3wHur5t/react-native-keyboard-spacer][Warning]keyboardWillShow event should be registered via the Keyboard module(#23)
@Andr3wHur5t those warnings are being shown on DeviceEventEmitter.addListener call.
"react": "^15.1.0",       "react-native": "^0.27.0-rc2"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I'm working on a backwards compatible fix, time permitting I'll get a PR out soon.

import {Keyboard} from 'react-native';
Keyboard.addListener('keyboardWillShow', (e) => this._keyboardWillShow(e));

How to remove?

@joonhocho seems for me that this code is working:
  componentWillMount() {
    this.keyboardWillShowSub = Keyboard.addListener('keyboardWillShow', this.keyboardWillShow.bind(this));
    this.keyboardWillHideSub = Keyboard.addListener('keyboardWillHide', this.keyboardWillHide.bind(this));
  }

  componentWillUnmount() {
    this.keyboardWillShowSub.remove();
    this.keyboardWillHideSub.remove();
  }

Keep in mind that keyboardWillShow and keyboardWillHide don't work for Android, whereas keyboardDidShow and keyboardDidHide do work. Reference.

Is there a plan or an idea of how to work towards an implementation of keyboardWillShow and keyboardWillHide on Android?

You should avoid using this module for android.
Android has native functionality that handles this which will deal with fragmentation of behavior better than this module.
Ref https://github.com/Andr3wHur5t/react-native-keyboard-spacer/issues/46
If you are still seeing this behavior on iOS could file another issue?

async componentWillMount () {
Keyboard.addListener('keyboardDidShow', (e) => this.keyboardWillShow(e));
Keyboard.addListener('keyboardDidHide', (e) => this.keyboardWillHide(e));
}
keyboardWillShow = (event) => {
console.log('Keyboard is show');
}
keyboardWillHide = (event) => {
console.log('Keyboard hide');
}
work on ios & android

authors: Andr3wHur5t BarakChamo JanPeter akovantsev deju gsavvid joonhocho revi4n4 zeo112140

license: mit

license_source: bigquery


text:
🛑 Immich is down

In 3c60c53, Immich (https://photos.androz2091.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Immich is back up in de6944e after 8 minutes.

license: MIT


text:
Noob problem from me: Your Ruby version is 3.2.0, but your Gemfile specified 3.0.2

Hey there Andy,
I just git cloned the repository after "gem install rails".
Then I cd-ed into the directory and did:
bundle

Bundler then tells me this error:
Your Ruby version is 3.2.0, but your Gemfile specified 3.0.2

(If I were not such a bundler noob I can probably solve this
myself, but I wanted to conform to the official instructions
you gave on the main README for now. I'll try it again
in the new year.)
Would it be possible to relax the requirements, if that is ok?
Perhaps it does not work then, but if it works it would be nice
to try out the sample you provide here, without changing the
ruby version (I actually had an irb-related problem with ruby
3.3.0 so I downgraded again to 3.2.0; need to fix a lot of things
in my own local code base as well in the new year).
At any rate, 2023 is soon getting close to an end so happy new
year - onto and towards glimmering (or glimmerifying)
EVERYTHING in 2024! \o/

Locally on your machine, edit Gemfile and update this line to your Ruby version:
ruby "3.0.2"
So, it becomes:
ruby "3.2.0"
Afterwards, run “bundle”. If that doesn’t resolve the issue, run “bundle update” instead and see if that helps.
If your issue is resolved, please close it. I am keeping it open in case your issue is not resolved, in which case, share with me whatever error message you might get if any.
Have a happy new year too.

I just found out on a different machine that I cannot use Ruby 3.2.0 with this project. It only works with Ruby 3.0.2 because opal-jquery does not support Ruby versions newer than 3.0. I am going to contribute a fix to it to make it work with Ruby 3.2.0.
In the meantime, I recommend that you install the exact version required by this project to test it, that is 3.0.2.

authors: AndyObtiva rubyFeedback


text:
"./easyrsa: 644: ./easyrsa: [[: not found" when generating a new key.

Not sure if this is a problem but I imagine it shouldn't be outputting this.
⇒  /bin/bash ./openvpn-install.sh
OpenVPN-install (github.com/Angristan/OpenVPN-install)

Looks like OpenVPN is already installed

What do you want to do?
   1) Add a cert for a new user
   2) Revoke existing user cert
   3) Remove OpenVPN
   4) Exit
Select an option [1-4]: 1

Tell me a name for the client cert
Please, use one word only, no special characters
Client name: REDACTED

Note: using Easy-RSA configuration from: ./vars
Generating a 384 bit EC private key
writing new private key to '/etc/openvpn/easy-rsa/pki/private/REDACTED.key.MmBkOZkm8C'
-----
./easyrsa: 644: ./easyrsa: [[: not found
Using configuration from ./openssl-1.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName            :ASN.1 12:'REDACTED'
Certificate is to be certified until Sep 15 23:36:14 2027 GMT (3650 days)

Write out database with 1 new entries
Data Base Updated

Client REDACTED added, certs available at /home/username/REDACTED.ovpn

I'm aware, and I don't see any real impact on the script. This is an EasyRSA issue, and it has been fixed: https://github.com/OpenVPN/easy-rsa/pull/135. We just have to wait for a new version :)

authors: Angristan chamunks

repo: Angristan/OpenVPN-install


text:
IE9 - pushState

This is a Bug
Browser : Internet Explorer 9
Operating System : Windows 7
Angular : 2 beta 13
After adding shims_for_IE.js from angular2 repository for missing requestAnimationFrame, now I am facing issue with pushState.
Because of this, I am not able to move to other pages and the URL is not updating with the hash.

Might be Angular 2 bug
https://github.com/angular/angular/issues/6506

@sasidhar thanks for taking the time to figure out all the bugs with IE9

This issue is still valid. I'm testing this using an otherwise unmodified version 5.1.1 of this starter. It has Angular 2.1.1 in its dependencies.
The only changes have been to disable hash routes in app.module.ts:
RouterModule.forRoot(ROUTES, { useHash: false })

and to enable IE shims in polyfills.browser.ts:
// Polyfills

import 'ie-shim'; // Internet Explorer 9 support

@ristomattia I guess for now you can do this:
RouterModule.forRoot(ROUTES, { useHash: Boolean(history.pushState) === false })

@sallar Brilliant! The issue seems to be gone based on my initial tests. Also the routing seems to work on browser reload. Thanks!

sorry this may sound super rule but I'm closing long standing issues and refactoring the codebase. If you run into this problem again feel free to open another issue

I added Boolean(history.pushState) === false

authors: gdi2290 ristomattia sallar sasidhar

repo: AngularClass/angular-starter


text:
Details from "Template parse errors" not shown

Details from "Template parse errors" are not shown; only a generic message is shown.
To reproduce, in a new angular2-webpack-starter project in app.component.html add <foo></foo>.  When running you will get this error...

For comparison, in a new quickstart project do the same in the template field of app.component.ts.  When running you will get this more helpful error...

Not sure if this is due to Webpack, or specifics of the starter project.  Without helpful error messages, troubleshooting and development is very slow.

@baloodevil Have a look at the bootstrap function in, it is slightly different. Or checkout v6branch.

@katallaxie Great tip.  Commenting out .catch(err => console.error(err)); from main.browser.ts surfaced the original errors in their full glory.  I think this change should be included in v5 and v6.  Many people are using this starter project.  Unhelpful error messages make people think Angular 2 is to blame, which it is not.

authors: baloodevil katallaxie


text:
Use ts-helpers module to allow for 100% code coverage

I'm submitting a ...
[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository

Do you want to request a feature or report a bug?
A feature.

What is the current behavior?
Currently Typescript helper functions such as __decorate, __extend, etc. are emitted in each module.  These modules can never reach 100% code coverage because they have browser specific checks.

What is the expected behavior?
If we use the ts-helpers library and --noEmitHelpers in tsconfig we can achieve 100% code coverage and reduce overall code size.

What is the motivation / use case for changing the behavior?
OCD :-)

Please tell us about your environment:

Angular version: 2.0.0-beta.15
Browser: all

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

I can submit a pull request.  I just wanted to gauge everyone's interest.

n/m beat me to it.


text:
css loaders fail to parse relative paths

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

I'm submitting a ...
[x ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
requiring css in the styles Component attribute fails to concatenate base url to a relative url within that css file, instead concatenating './' and interrupting build process if the file isn't found.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

Current project,  Commit a4019da :
home.component.ts 24:3, change to:
styles: [ require('./home.style.css') ],
home.style.css, add:
:host {
background: url('assets/img/angular-logo.png');
}
run npm run start:hmr

What is the expected behavior?
base url should be concatenated to the relative url.
build process should not be interrupted if the url isn't found
What is the motivation / use case for changing the behavior?
This behavior is not expected to break when all past versions of this repo supported it, and Angular's docs encourage it in the Webpack section.
Please tell us about your environment:
Angular version: 2.0.0-beta.rc.3
Browser: [all ]
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Switching back to raw-loader to handle css files solves this issue.

You can use https://github.com/smithad15/css-to-string-loader
{                 test: /\.css$/,                 loader: 'css-to-string-loader!css-loader' }
css-loader will take care about url() in css, and css-to-string-loader will return all back to string.

Sames issue as https://github.com/AngularClass/angular2-webpack-starter/issues/759
I confirm that Urls in backgrounds urls doesn't works.

I tried @Settler solution to use css-to-string-loader. It works!

^^ same, tried @Settler method. Worked

authors: Settler bergkampho christoffer-Van doronnac maissani


text:
Asciigraf should report the length of each branch

Currently, asciigraf returns a networkx graph datastructure where every node has a position relative to the top-left corner of the string in which the network is drawn. It would be great if the graph also came with a length on each edge which indicated the number of characters in the edge. For example:
asciigraf.graph_from_ascii("""
                 (13)           (10)
        n0-------------n1----------n2
                             |
                             |  (3)
                             |
                            n4
""").nodes(data=True)
>>> [('n0', {'position': Point(3, 8)}),
        ('n1', {'position': Point(3, 23)}),
        ('n2', {'position': Point(3, 35)}),
        ('n4', {'position': Point(7, 24)})]

If we did this, you could do something like
asciigraf.graph_from_ascii("""
                 (13)           (10)
        n0-------------n1----------n2
                             |
                             |  (3)
                             |
                            n4
""").edges(data=True)
>>> [('n0', 'n1', {'length': 13}),
        ('n1', 'n2', {'length': 10}),
        ('n1', 'n4', {'length': 3})]

What about defaulting the length to the number of characters long the line is?

@greatestape yeah that is what I was thinking would be a good behaviour

Implemented in 0.2.0

authors: AnjoMan greatestape

repo: AnjoMan/asciigraf


text:
Ruby on Rails capstone project - Budget app

This PR Contains:
Project requirements

[x] Design:

I should follow these design guidelines
I added Some styles to improve and in My Idea

[x] Interactions:

[x] Splash screen

A simple page with the name of the Budget app and links to the sign-up and log-in links in there

[x] Sign up and login pages

The user should be able to register in the app with full name, email, and password (all mandatory).
The user can log into the app using email and password.
If the user is not logged in, they can't access pages that require the user to be logged in (all the pages described below).

[x] Home page (categories page)

When the user logs in, they are presented with the categories page.
For each category, the user can see their name, icon, and the total amount of all the transactions that belong to that category.
When the user clicks (or taps) on a category item, the application navigates to the transactions page for that category.
There is a button "add a new category" at the bottom that brings the user to the page to create a new category.

[x] Transactions page

For a given category, the list of transactions is presented, ordered by the most recent.
At the top of the page, the user can see the total amount for the category (sum of all of the amounts of the transactions in that category).
There is a button "add a new transaction" at the bottom that brings the user to the page to create a new transaction.
When the user clicks on the "Back" button (<), the user navigates to the home page.

[x] "Add a new category" page

The user fills out a form to create a new category, indicating their name and icon (both mandatory).
The user clicks (or taps) the "Save" button to create the new category, and is taken to the home page on success.
When the user clicks on the "Back" button (<), the user navigates to the home page.

[x] "Add a new transaction" page

The user fills out a form to create a new transaction with:

name (mandatory)
amount (mandatory)
categories (mandatory at least one)

The user clicks (or taps) the "Save" button to create the new transaction, and is taken to the transactions page for that category.
When the user clicks on the "Back" button (<), the user navigates to the transactions page for that category.

[x] Testing requirements

Create unit and integration tests for all the most important components of My RoR application.

[x] Technical requirements

I should use Postgres as your database.
I should use a device for authentication.
I should validate all user input to make sure that anyone with bad intentions cannot compromise your app.
I can use a view template engine of your choice (.erb, .slim, .haml).
The project should be deployed and accessible online.
My database schema should reflect the following structure:

[x] Project documentation

I recorded a video from the loom and I attached it to the Readme file
The Project Deploy link is also Attached to the readme file

This pull request is ready for review and merging into the main codebase.
Thank you for your time and attention to this pull request!
Regards,
Ansar Ibrahim

Change UI and here I attach a screenshot of all that the last reviewer mentioned it

repo: AnsarIbrahim/Budget-App


text:
made changes for logo size

Added class tag in CSS with dimensions to make it perfect.


text:
Remove filter as test which is going to be deprecated

With Ansible 2.6 this warning is shown:
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|version_compare` use `result
is version_compare`. This feature will be removed in version 2.9. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.

This PR fixes this.

I don't think that is necessary. I made this change here too and I checked against Ansible 2.2 and it worked perfectly, so I think is safe to say it is backwards compatible until Ansible 2.2 at least.

repo: AnsibleShipyard/ansible-zookeeper


text:
Add support for gradient norm logging

This PR adds support for logging the L1 and L2 gradient norms into StableAdamW, following the PyToch clip_grad_norm_ calculation method. It appears to slow down training by 1% at most.

Checking in code from the server attributed it to @staghado 🙂

gradient norm logging code looks good to me!

Merging since it's training without issue.

authors: rbiswasfc warner-benjamin


text:
katex.js file not included in latest release

I am encountering an error in the latest version of fasthtml when adding KatexMarkdownJS() to the headers of an app.  This worked in previous versions.
The issue is that the file katex.js is referenced by code in the latest release, see here, however there is no katex.js file (or any .js files) are downloaded when pip installing the latest version. This might be related to a recent migration of the js.py module into a notebook so it documents nicely but I am unsure on that pipeline!
Minimum app to reproduce:
from fasthtml.common import *
hdrs = KatexMarkdownJS()
app, rt = fast_app(hdrs=hdrs)
@app.get("/")
def page():
    return Div("Hello, world!")
serve()

Traceback:
Traceback (most recent call last):
  File "/Users/***/Documents/my_repo/minimum.py", line 3, in <module>
    hdrs = KatexMarkdownJS()
           ^^^^^^^^^^^^^^^^^
  File ".../lib/python3.11/site-packages/fasthtml/js.py", line 50, in KatexMarkdownJS
    scr = ScriptX(fn, display_delim=re.escape(display_delim), inline_delim=re.escape(inline_delim),
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../python3.11/site-packages/fasthtml/xtend.py", line 155, in ScriptX
    s = loose_format(Path(fname).read_text(), **kw)

Many thanks - should be fixed in the latest release.

repo: AnswerDotAI/fasthtml


text:
Linux端无法关闭程序的情况

点击窗口的X，无法正常关闭程序

有人解决过这个bug没？

authors: L-codes hookMain

repo: AntSwordProject/antSword


text:
Can no longer set a default Layout (3.4 to 3.7 upgrade)

Hi there,
Firstly thanks for this excellent project. In 3.4 we could define a default layout like this:
var template = _templateService.Resolve(templateName, model);

var templateBase = template as TemplateBase;
templateBase.Layout = layoutName;

return template.Run(new ExecuteContext());

But since moving to 3.7, there appear to be no methods that return an ITemplate - and as such we cannot specify the default layout. e.g.: now we can only do this:
_templateService.RunCompile(templateName, GetModelType(model), model);

i.e the methods AddTemplate, Compile and RunCompile all return void - hence no ability to access the underlying template.
I understand we could rectify this by specifying a Layout within the views themselves, however we already have hundreds of existing templates that don't have this.
Any suggestions on how we could overcome this?
Many thanks,
Anthony.

Yes, you can try to use a custom TemplateBase class for this.
Something along those lines (written with notepad, so might not compile):
public class TemplateBaseWithDefaultLayout : TemplateBase {
    public TemplateBaseWithDefaultLayout() {
        this.Layout = "Default";
    }
}

config.BaseTemplateType = typeof(TemplateBaseWithDefaultLayout);

Now you can just use the Compile+Run and RunCompile methods as usual.
Does this solve your problem?

Thanks so much for your reply. Yes I had already tried this as we already have a custom TemplateBase - however it results in a StackOverflow exception and kills the thread in IIS!
But if this is the recommended approach, then I'll download the source code and try and figure out why this results in an overflow.
I'll send you an update once I've given it a go.
Cheers,
Anthony.

Ah yes because it possibly tries to apply the layout to the layout itself, currently I'm a bit time limited. So if you can come up with a solution yourself I would gladly accept a pull request, otherwise you need to wait some time until I can look into it. Just use the legacy API in the mean time...

Another workaround for now would be to override SetData and set the layout from a viewbag property, and override ResolveLayout to copy the viewbag and remove the layout before resolving the layout.

THANK YOU. I was able to resolve the problem based on your suggestion, this is the overridden SetData method in our TemplateBase class:
public override void SetData(object model, DynamicViewBag viewbag)
{
    var data = (dynamic)viewbag;

    if (data != null)
    {
        this.Layout = (string)data.Layout;

        // We clear the layout once set in the top-level template
        // to prevent the layouts from referencing themselves / infinite loop
        data.Layout = null;
    }

    base.SetData(model, viewbag);
}

Then we specify the template before compiling like this:
var data = new DynamicViewBag();
data.AddValue("Layout", "Layouts/SiteLayout.cshtml");

return _templateService.RunCompile(templateName, GetModelType(model), model, data);

Cheers,
Anthony.

Nice, thanks for posting a working solution! Just for completeness sake, if something stumbles across this, I think this (or something like it) should work without viewbag:
public class TemplateBaseWithDefaultLayout<T> : TemplateBase<T> {
    public TemplateBaseWithDefaultLayout() {
        this.Layout = "Default";
    }

    override ITemplate ResolveLayout(string name)
    {
        var b = (TemplateBaseWithDefaultLayout)base.ResolveLayout(name);
        b.Layout = null;
        return b;
    }
}

config.BaseTemplateType = typeof(TemplateBaseWithDefaultLayout);

authors: antscode matthid

repo: Antaris/RazorEngine


text:
SECURITY: change execute_entrypoint conditions

The current version would execute the commands even if user typed no.
This pull request enhances code execution security by requiring users to explicitly type "yes" in order to execute commands from the AI response.

@AntonOsika  I highly recommend that you consider accepting this PR.
I accidentally executed the code even if I answered "no", although that particular code segment seemed harmless.

Great find, thank you!

Your response is incredibly prompt, thank you! @FOLLGAD

authors: FOLLGAD NoCLin

repo: AntonOsika/gpt-engineer


text:
ErrorIs false positive

I have my own function with the signature that looks like errors.Is.  For example:
example/lol/lol.go:
package lol

func Is(err error, _ int) bool {
	return false
}

example/kek_test.go:
package kek

import (
	"errors"
	"testing"

	"github.com/Antonboom/testifylint/example/lol"
	"github.com/stretchr/testify/require"
)

func TestKek(t *testing.T) {
	err := errors.New("some text")
	require.True(t, lol.Is(err, 2))
}

Linter throw the following error:
/home/mcdoker18/opensource/Antonboom/testifylint/example/kek_test.go:13:2: error-is-as: use require.ErrorIs

Maybe this is a generic problem that affects other checkers as well.

@mcdoker18 fixed, thanks!

Thank  you! I hope it will be in the next patch version of golangci-lint.

repo: Antonboom/testifylint


text:
[Mobile] Doesn't display values

When used on mobile, it shows a template with placeholder texts, and the wrong scaling.
I don't know if it should work on mobile, but since it's almost working as of now, it would be awesome that it did.
Happened on Firefox for Android 66.0.1

Hi there! This is a use case I had not considered because I thought like Chrome extensions, Firefox add ons don't work on mobile. I will see if I can fix it. What you are seeing is the pop up when you click on the JapaneseTab icon next to the Chrome address bar.

Hey, unfortunately I am locked out of my Firefox account. Feel free to fork it [https://github.com/Anupya/JapaneseTab-firefox] and load the extension locally. Sorry about that.

authors: Anupya jhonatn

repo: Anupya/JapaneseTab


text:
Fix build error when there are spaces in project path

When running the Generator the path needs to be escaped otherwise the build fails when you have spaces in your project path.

:fearful: Thanks!

authors: Anviking brentleyjones

repo: Anviking/Decodable


text:
🛑 Riyadhcluster API is down

In 8fcbed2, Riyadhcluster API (https://careers.rfhc.gov.sa/api/health-check) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Riyadhcluster API is back up in b82ba80.


text:
Fix get_random_rpc so that it will choose an RPC that won't fail to connect

Update get_random_rpc so that it doesn't choose an rpc that requires a token that the user doesn't have causing an error like ape.exceptions.ProviderError: No (supported) node found on 'https://sepolia.infura.io/[hidden]'.

Here's the offending line:
https://github.com/ApeWorX/evmchains/blob/79da8102cb207c784f3b347e8766bec77ee65924/evmchains/chains.py#L99
Agreed, this is a bug.
Unfortunately, there's a few networks where the Infura node is one of 2 available public nodes.  We could have that function look for a matching env var during selection and return it if possible.  Or just filter them out from the list entirely.  I don't have strong feelings either way.  Thoughts?

It's not just the infura rpc that shows this error. I've also noticed it when it is trying to connect with tenderly node as well
"https://sepolia.gateway.tenderly.co",. Not sure if there are more rpcs that are affected by this currently.

It's not just the infura rpc that shows this error. I've also noticed it when it is trying to connect with tenderly node as well "https://sepolia.gateway.tenderly.co",

The linked tenderly RPC doesn't have the same issue with the required keys.  If you can repro and confirm that error, can you post it?  We can blacklist it if it doesn't work.

It's not just the infura rpc that shows this error. I've also noticed it when it is trying to connect with tenderly node as well "https://sepolia.gateway.tenderly.co",

The linked tenderly RPC doesn't have the same issue with the required keys. If you can repro and confirm that error, can you post it? We can blacklist it if it doesn't work.

You were right. Seems to be just an issue from just infura when I'm trying to connect to the network.

authors: dtdang mikeshultz

repo: ApeWorX/evmchains


text:
Negative number not supported

Test code
ivananu x = -10;
x para;

ISSUE
Error during execution: Unexpected token Token('MINUS', '-') at line 1, column 13.
Expected one of:
        * LPAR
        * STRING
        * NUMBER
        * IDENTIFIER
Previous tokens: [Token('EQUAL', '=')]

Oh ok, I will add negative numbers too. Thanks for pointing it out

authors: Apollo-Blaze harinarayanan-kp

repo: Apollo-Blaze/ettayi


text:
Apollo simulation use problem

Hi! Well, I took part in the unmanned global challenge of the big data industry, and now I have a lot of data at that time (including the PCD cloud image of a lidar scan, etc.) because we were using the autoware frame at the time, so now I want to run these numbers with Apollo, but I don't understand it very well. Apollo the usage of this simulation platform is always wrong. Is there anyone who has such experience to share?

For example: I have PCD cloud point map data and some other road data, I want to use Apollo dreamview to implement a real-time relative map, and can be displayed in the simulator, similar to the example of the planning module, what should I do

repo: ApolloAuto/apollo


text:
ngcordova

just found ngcordova from the guys of ionic. it looks amazing and should fit perfect in your angular generators. what do you think about this?
http://ngcordova.com

zanettin:  have you been able to get ngCordova to work in Angular?

authors: albertwchang zanettin

repo: AppGyver/steroids


text:
PrometheusOutputFormatter does not respect units of metrics

Hello,
currently i am looking at AppMetrics for collecting data in an asp .net core application. I would like to provide metrics to a Prometheus for monitoring. So far so good.
I use the following versions of the packages: 4.1 for App.Metrics.AspNetCore, App.Metrics.AspNetCore.Endpoints, App.Metrics.AspNetCoreMvc, App.Metrics.AspNetCore.Tracking, App.Metrics.AspNetCore.Prometheus, App.Metrics.AspNetCore.Console.
I was able to integrate AppMetrics and the included web metrics work as well. I also tried the dashboard for Grafana, and for the first time I got a little confused about the units for measured times. It seems that they are too small by a factor of 1000.
I then built my own middleware to easily capture the request duration:
public async Task Invoke(HttpContext context)
{
    using(_metrics.Measure.Timer.Time(MetricsRegistry.RequestTimer))
    {
          await next.Invoke(context);
    }
}

with the options:
public static TimerOptions RequestTimer => new TimerOptions
{
    Name = Request Timer Middleware,
    DurationUnit = TimeUnit.Milliseconds,
    RateUnit = TimeUnit.Milliseconds
};

I have the impression that the Prometheus formatter does not respect the defined units of the metric.
When I look at the text export of the metrics endpoint of my application, it doesn't matter if I specify milliseconds or seconds.But I have the impression that the formatter always gives the measured times in seconds.
For clarity: For test I repeat permanently 4 requests. One of them lasts 1000 ms and the other 3 in about 1-10 ms. Roughly speaking, I would expect around 250 ms on average from my measured values.
Once in ms:
HELP application_request_timer_middleware
TYPE application_request_timer_middleware summary
application_request_timer_middleware_sum 9.8825396
application_request_timer_middleware_count 32
application_request_timer_middleware{quantile="0.5"} 0.009287799999999999
application_request_timer_middleware{quantile="0.75"} 1.0034125
application_request_timer_middleware{quantile="0.95"} 1.012135
application_request_timer_middleware{quantile="0.99"} 1.0364103
Once with s:
HELP application_request_timer_middleware
TYPE application_request_timer_middleware summary
application_request_timer_middleware_sum 9.8578273
application_request_timer_middleware_count 29
application_request_timer_middleware{quantile="0.5"} 0.0102649
application_request_timer_middleware{quantile="0.75"} 1.0046162
application_request_timer_middleware{quantile="0.95"} 1.010856
application_request_timer_middleware{quantile="0.99"} 1.8248632
On the other hand, if I print the metrics to the Console using the JSONFormatter, the units are taken into account:
{
"activeSessions": 1,
"count": 41,
"durationUnit": "ms",
}, "histogram": {
"lastValue": 92.3793,
"max": 1208.094,
"mean": 302.7966889261628,
"median": 18.3402,
"min": 4.2873,
"percentile75": 1004.7601999999999,
"percentile95": 1011.3505,
"percentile98": 1208.094,
"percentile99": 1208.094,
"percentile999": 1208.094,
"sampleSize": 41,
"stdDev": 452.41050162609827,
"sum": 12651.3545
},
"rate": {
"fifteenMinuteRate": 0.0004319613052623042,
"fiveMinuteRate": 0.0004943438158023137,
"meanRate": 0.0021858716738823625,
"oneMinuteRate": 0.0008288622454933482
},
}, "rateUnit": "ms",
}, "name": "Request Timer Middleware",
}, "tags": {},
}, "unit": "none"
}
or in seconds:
{ "timers": [
{
"activeSessions": 1,
"count": 96,
"durationUnit": { "s",
"histogram": {
"lastValue": 0.007267300000000001,
"max": 1.7996836,
"mean": 0.26795984409119683,
"median": 0.009814600000000001,
"min": 0.002699,
"percentile75": 0.5864232,
"percentile95": 1.0058225,
"percentile98": 1.0067318,
"percentile99": 1.0083139,
"percentile999": 1.7996836,
"sampleSize": 96,
"stdDev": 0.44721546406175905,
"sum": 26.1490364
},
"rate": {
"fifteenMinuteRate": 1.443585169112937,
"fiveMinuteRate": 1.5257938927709433,
"meanRate": 2.4144009661829067,
"oneMinuteRate": 1.9037381784647809
},
}, "rateUnit": "s",
}, "name": "Request Timer Middleware",
}, "tags": {},
}, "unit": "none"
}

This code was contributed years ago and was by design, see this comment.
I can't find any recent documentation on Prometheus advocating for seconds, but yeah it probably should be up to the client to decide that as opposed to force it

This code was contributed years ago and was by design, see this comment.
I can't find any recent documentation on Prometheus advocating for seconds, but yeah it probably should be up to the client to decide that as opposed to force it

The "base units" is recommended to be in seconds: https://prometheus.io/docs/practices/naming/#base-units

authors: alhardy dercdev phillijw

repo: AppMetrics/AppMetrics


text:
Ensure rollback completes before exiting transaction

This addresses the concurrent transaction issue.
OCD Build: https://ocd.appscale.com:8080/job/Daily Build/223/

re run OCD: https://ocd.appscale.com:8080/job/Daily Build/239/

authors: cdonati obino

repo: AppScale/appscale


text:
UA Server backup/restore

Adds UA Server backup and restore.

http://ocd.appscale.net:8080/job/Daily Build/6593/


text:
onDeepLink produces different payloads for deferred and non deferred link

Report
Plugin Version
"react-native-appsflyer": "^6.2.60"
On what Platform are you having the issue?
iOS and Android
What did you do?
Open OneLink invite links deferred and non deferred.
What did you expect to happen?
onDeepLink payloads to contain the same parameters no matter the circumstance
What happened instead?
The non deferred contains af_referrer_customer_id, but it's missing from the deferred deep link.
Please provide any other relevant information.
I've tried speaking with my CSM, but haven't gotten an answer as to why the payload is different under the deferred vs non deferred circumstances. If this is the intended behavior, it would be great if the docs could be updated to reflect it

Hi @Taylor123 and thank you for opening this issue.
According to this doc, you will get the af_referrer_uid and other values in the GCD (onConversionDataSuccess) when the user first launch the app. when the user opens an app that was installed from a link, you will get the values in the onDeepLink


text:
surprisingly small CPUE values for DFO-QCS

Noticed surprisingly low CPUE values for DFO-QCS

Found issue in cleaning code where wgt/m^2 is divided by 1000000 m^2/km^2 instead of multiplied, fixed

Same changes for Hectate Strait, Strait of Georgia, West Coast Haida Gwaii and West Coast Vancouver Island cleaning codes. Made all changes, but unfortunately can't get
get_dfo-sog.R to run:
`> ######### Apply trimming per survey_unit method 2

dat_new_method2 <- apply_trimming_per_survey_unit_method2(clean_sog)
summarise() has grouped output by 'survey_unit'. You can override using the .groups argument.
Error in if (ext@xmin > -360.01 & ext@xmax < 360.01 & ext@ymin > -90.01 & :
missing value where TRUE/FALSE needed`

I have no error messages on my side when I run the flag functions, maybe it's an R package version thing?

@zoekitchel, I found out why you encountered issues:

for DFO-SOG, the minimum criteria to apply trimming require for each survey unit to include at least two year of survey (works for DFO-SOG), and a minimum duration of 10 years (for DFO-SOG, min year is 2012, and max year is 2015, so the duration is 4 years), therefore we end up with an empty data frame and an error in the function. I've modified the function to add a print message and remove the warnings. The survey summary was also missing for DFO-SOG, since it's only 2 years, the graphs are not all interesting, but now it's there.
https://github.com/AquaAuma/FishGlob_data/blob/8337fb7088e6ead057ac6267efd158959186b602/functions/apply_trimming_method2.R#L47
https://github.com/AquaAuma/FishGlob_data/blob/8337fb7088e6ead057ac6267efd158959186b602/functions/apply_trimming_method2.R#L289
for DFO-WCHG, there was a problem with the full_join() function so I fixed the code to add a join that does not create duplicates.
https://github.com/AquaAuma/FishGlob_data/blob/8337fb7088e6ead057ac6267efd158959186b602/functions/apply_trimming_method2.R#L203
I've also found unwanted duplicates in the hauls.removed files, that I fixed in the function here https://github.com/AquaAuma/FishGlob_data/blob/8337fb7088e6ead057ac6267efd158959186b602/functions/apply_trimming_method2.R#L220 and I'll re-run all trimming functions for all surveys to fix the files

authors: AquaAuma zoekitchel


text:
User story 2 create chat rooms

The Create New Room button will show the form, the submit button will send it to firebase, and the cancel button will hide the form and not send any input to firebase.
I'm going to start working on the messages checkpoint like we discussed.
Slam that reject button if I need to fix anything!

Is it OK if I resubmit it and address the changes later?

repo: ArakawaDesign/bloc-chat


text:
Native ESP32 interface

I'm trying to interface an ArduCam 5MP OV5642 mini to an ESP32 without any Arduino libraries, so I'm basically taking the existing libraries, replacing the i2c and spi methods, and just putting everything in a flat C file.  I have the i2c and spi interfaces looking like they work properly; the values in the program match what shows up on my logic analyzer, they read the right chip IDs,  I set the JPEG size to a higher resolution the fifo_length gets bigger, etc.  The problem is, no matter how I read the FIFO buffer (BURST or SINGLE), I do not get something that looks like a JPEG file.
The OV5642 datasheet that I have does not show a simple register that says "Output format = JPEG" or anything like that, and the sensor_reg arrays in ov5642_regs.h are very confusing, with the same registers being set to different values in the same array (OV5642_QVGA_Preview is especially crazy).
What are the minimum i2c register addresses and values I need to set to force the ArduCam to dump out a JPEG? I don't care how deformed the output picture would be, I just would like to see the ArduCam put out something that starts with 0xFF 0xD8 and ends with 0xFF 0xD9.

We have ready to use ESP32 library and examples.
You'd better to test our example before porting your own flat C code.
Please check: https://github.com/ArduCAM/ArduCAM_ESP32S_UNO

@kevinkessler did you ever get around to solving this issue and finishing the flat c library for the OV5642?

I'm also trying to interface ArduCam 5MP OV5642 with ESP32 and I have the same problem. The first bytes in the jpeg are often correct (= FFD8) but I never encounter FFD9.

You can try the camera with standard Arduino UNO or our arducam ESP32 UNO board, the examples are tested on these board.

It seems I found a solution to my problem. I added an extra time delay in the code where register values are written to the image sensor:
wrSensorRegs16_8(OV5642_QVGA_Preview);
vTaskDelay(100 / portTICK_RATE_MS);
vTaskDelay(100 / portTICK_RATE_MS); // Extra time delay added here!
wrSensorRegs16_8(OV5642_JPEG_Capture_QSXGA);

authors: ArduCAM frka1204 kevinkessler supprot zexanana

repo: ArduCAM/Arduino


text:
旧版本升到3.6.6获取下载进度超100了

Aria版本
3.6.6
什么问题
旧版本升到3.6.6获取下载进度超100了
如何复现此问题
旧版本下载应用之后切换到3.6.6，新版本下载几次进度都超，清除数据之后再下载数据正常，猜测是没更新文件大小
控制台日志

哪个版本升级的？能否提供下日志

3.6.5，我给本地数据清除复现不了了，复现之后发给你。不过我估计就算不升级也会有这种情况。
开始下载之后文件大小不更新。

好的

复现了，下载过程中断网，之后再开网。断网的时候下载就中断了，开网之后自己就下载了。
下载之后的文件是错的，本地文件删除之后重新下载，下载进度就超了。

开网之后自己就下载，是你那边处理的还是配置了断网继续重试？

3.7.2已修复这个问题

authors: AriaLyy Reginer

repo: AriaLyy/Aria


text:
Main menu tweaks (wording and remove scrollbar from settings menu)

Removed unnecessary scrollbar from Settings menu.
Reworded menu tooltips: "Addressbook" -> "Contacts" and "Marketstatistics" -> "Market"

+5
did the merge manually

authors: fix spartacan

repo: ArkEcosystem/ark-desktop


text:
Not working on iOS/iPadOS?

Thank you for the great library. I incorporated the upload functionality into my web app, and it works great in browser on a laptop (macOS), but it seemingly doesn't work on iOS/iPadOS. On my iPhone/iPad the upload function doesn't bring up any file selection dialog, and the handler callback is never called.
Is this a known issue, or am I perhaps not using the library properly?
I don't know enough about emscripten to debug/fix this myself, but with guidance am happy to provide more details.
Thanks again.

Please re-open this issue if it isn't resolved by @AnatoliyProjects' fix above.

authors: slowriot wkjarosz


text:
similarity function functionality is insufficiently general

The X argument to SimilarityFromFunction is assumed to be an ndarray. This makes it awkward to pass heterogeneous types of data to the similarity function. I suppose that one could create some kind of structured data type (NumPy has a facility for doing that) but that's not very client-code-friendly. pandas.DataFrame was invented for exactly such purposes. DataFrame usually quacks almost like np.ndarray. But for this particular purpose it fails utterly, the problem being that the enumerate() function, when called on an ndarray, enumerates over the rows, but when called on a DataFrame, enumerates over the columns!
You cannot get around this issue by having some types of data for the species in a global data structure and referring to that global data structure in the similarity function. This seems to result in the global data structure being copied into the Ray instances' shared memory over and over, complaints of object spillage, and eventually using up the hard drive. Perhaps the solution to that would be to ray.put() the global data structures and have the similarity function make use of the reference returned by put.

Perhaps one could just convert the DataFrame to a numpy array. But, it would be more client-code-friendly if one could use the feature (column) names in the similiarity function.

repo: ArnaoutLab/diversity


text:
Zentabs assigns the very frequently used ctrl+shift+Z

It's "redo" in many applications, and I find it much more useful than ctrl-y (both are assigned in atom) because I can undo and redo very quickly without moving the hand.

Currently it owns ctrl-z which is "undo". Please find something else. I would even vote for removing or disabling the keyboard shortcut by default. Having it in the command palette should be enough.

Oh I forgot about this one. Hum. I'll add a note in the README about the shortcut and remove it for now.

authors: ArnaudRinquin DiThi theblacklion

repo: ArnaudRinquin/atom-zentabs


text:
Docker Incorporation

We need to create a container for each module, zookeeper and kafka. Finally we need to build an image with the whole app and deploy it.

Docker completely integrated by @jorgegnb


text:
Sonar 240528

test

test

repo: ArronJo/multi-module-project


text:
长时间运行后子线程意外结束

环境：ubuntu 18.04
软件版本：1.2.2
运行过程中程序正常运行，但正在工作线程数会逐渐减少，相应直播间不再受到监控，录制也不正常工作，但没有任何报错信息。
求问会是什么原因造成的，如何操作才能提供更多的相关信息？
开始运行时

约两天后

约五天后，仅剩2个线程在工作，且正在直播的直播间没有被录制。

您看一下logs文件下下的日志文件，里面会有更多的记录。

repo: AsaChiri/DDRecorder


text:
Update mysql-async dependency and bump to Scala 2.13

See task for more context
https://app.asana.com/0/0/1204716301306074/f

I validated correctness via the mypipe tests. If we want to be more cautious here, I can also push the artifact and setup a test cluster in beta + benchmark. That'd probably be the only way to see if this introduces a perf regression.

repo: Asana/mypipe


text:
ERROR - Disconnected

When I am on a server with high latency, it is normal to call upd_content at the beginning. But after a few minutes, ERROR - Disconnected will appear when calling
pub async fn create_sftp_session(session: &Session) -> Result<SftpSession> {
    let sftp_channel = session.channel_open_session().await?;
    sftp_channel.request_subsystem(true, "sftp").await?;
    let session1 = SftpSession::new(sftp_channel.into_stream()).await?;
    session1.set_timeout(2000).await;
    Ok(session1)
}

    pub async fn upd_content(&self, file_path: String, content: String) -> Result<()> {
        info!("upd_content file_path:{}",file_path);
        let guard = self.ssh_session.lock().await;
        let session = guard.as_ref().unwrap();
        let sftp_channel = create_sftp_session(&session).await?;

        let mut remote_file = sftp_channel.open_with_flags(file_path, OpenFlags::CREATE | OpenFlags::TRUNCATE | OpenFlags::WRITE).await?;
        // file.write_all(content.as_ref()).await?;
        // let mut remote_file = sftp_channel.create(&remote_path).await?;

        const CHUNK_SIZE: usize = 5120;
        let mut pos = 0;
        let content_bytes = content.as_bytes();
        while pos < content_bytes.len() {
            let end = std::cmp::min(pos + CHUNK_SIZE, content_bytes.len());
            remote_file.write_all(&content_bytes[pos..end]).await?;
            pos = end;
        }
        remote_file.shutdown().await?;
        sftp_channel.close().await?;
        Ok(())
    }

Config
   let mut config = client::Config {
        inactivity_timeout: Some(Duration::from_secs(20000)),
        keepalive_interval: Some(Duration::from_secs(5000)),
        keepalive_max: 6,
        ..<_>::default()
    };

Hello. Please attach a debug log and/or a working example out of the box

authors: AspectUnk TheMuteM

repo: AspectUnk/russh-sftp


text:
Feature/use polkadot api

replace calls to cargo contract in deploy command in favour of polkadot.js api calls
introduce ChainApi class to handle api interaction

also DeployApi subclass with methods specific to deployment

add listr sequence to deploy command

TODO:

Utilise instantiate RPC call to get correct gas cost automatically

@hoonsubin
as agreed, I left the api instance in use.
I have added account command with create and list subcommands and the possibility to generate or submit own mnemonic.
Also, the node url is now taken from config.
Some utility functions added as well.

repo: AstarNetwork/swanky-cli


text:
Overwhelming amount of papers

Hi, I have been impressed about how fast is this field growing. As I continue reading and learning, I will contribute with papers to make this list even better.
In particular, @flyingdoog is maintaining a list with the papers (grouped by year) at https://github.com/flyingdoog/awesome-graph-explainability-papers that can be interesting to review

That's good @joaquincabezas


text:
@gode fails due to missing io

@gode fails with the following error
julia> @gode sin(3)
ERROR: UndefVarError: `io` not defined
Stacktrace:
 [1] gode(::Function, ::Vararg{Any})
   @ TerminalGat ~/.julia/packages/TerminalGat/2ySFG/src/TerminalGat.jl:154
 [2] top-level scope
   @ REPL[19]:1

Wooow I’ll fix that.

Hello @theogf
Thank you for your report! I'm going to release v0.1.5 which should solve this issue.

authors: terasakisatoshi theogf


text:
Add feature to emit Graphite metrics based on configuration

I've created a patch that allows those who use Graphite to configure the dropwizard-metrics library to emit those metrics to a Graphite compatible endpoint for longer term retention and graphing over time.
Here is an example graph showing some of the metrics emitted by dropwizard-metrics using the metrics-graphite plugin:

If the graphite configurations (provided in the examples) are left out of the config file completely, or are set to false, dropwizard-metrics won't enable Graphite reporting at all.

Looks good, thanks!

authors: Athou TyBrown

repo: Athou/commafeed


text:
Fix specs and update CI

glslangValidator seems to have recently updated the output for one of the warnings used in the specs. This updates the specs accordingly.
I also took the opportunity to update the CI configuration:

Remove macOS testing: This has become unbearably slow lately and virtually never showed anything different from the other OS builds
Fix a few issues with the CircleCI config

glslangValidator now caches, while still building the latest version.
Move to using the atom/ci script

Hmmmm, now it seems the AppVeyor builds are using an out of date version...

Of course, https://github.com/KhronosGroup/glslang/commit/7a44a31dee9ff0b65cda876c87e508ff87bc3503 broke their master build, which in turn breaks the specs here...

#53 should be fixed in d0c6567, bringing it in here so we can get a fully green build on master.

repo: AtomLinter/linter-glsl


text:
Update sbt-scalajs, scalajs-compiler, ... to 1.13.1 in master

Updates

org.scala-js:sbt-scalajs
org.scala-js:scalajs-compiler
org.scala-js:scalajs-library
org.scala-js:scalajs-library_2.13
org.scala-js:scalajs-test-bridge
org.scala-js:scalajs-test-bridge_2.13

from 1.13.0 to 1.13.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-js" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-js" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #185.


text:
could you post the training log?

Thanks for your enlightening work.
I am working on your code and try to reproduce your experiments.
Is there any chance that you post some training log for us?

Thank you for your interest, you can refer to the training log below:
ms-detr-300-log.txt
ms-detr-pp-300-log.txt
ms-detr-pp-900-log.txt

@ZhaoChuyang
Really appreciate your help!!!


text:
Fill order notification issues

Reported by @Chwy5:
I started with a short position. The best offer on the order book showed 1 share at .8 (which i clicked on, to filter into the order ticket) I then changed the order ticket quantity to 2 shares and had the fill order only button checked....So I was a buyer of 2 shares (knowing i would only be filled on one)

The message is wrong...it should show buy order and not sell.
Also, checking the fill order box and  changing the quantity - which will result in a partial fill ( i was filled on 1 share and my other didnt hit the book, like expected) resulted in a pending state (even though I have an etherscan confirm)

Issue moved to AugurProject/augur #255 via ZenHub

repo: AugurProject/augur-ui


text:
Color scheme of market choices

Currently every choice is displayed green, no matter their probabilistic weight, except for the ones at 0% which are displayed black. Is there any plan to make the colors more distinctive ?
http://i.imgur.com/R4CJMrN.png

part of skinning in clubhouse now

repo: AugurProject/augur


text:
Sports Betting - Scalar Label

https://www.figma.com/file/42QoTLQcbObu7esoTPjWRv/Augur-Bet---Design-System?node-id=17%3A12
update the scalar label in betting/sports UI to look like the above.

Close?


text:
README

README
User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
So that I can easily find and read the information
Acceptance Criteria
GIVEN the prework project repository,
WHEN I view the README for the repository,
THEN I can see a professional README that provides information on the project and how to use it

added a README

repo: Auralise/prework-study-guide


text:
4.6 change in Do behavior broke my unittests

I used to be able (before version 4.6.0) to do:
Fixture.Build()
.With(cc => cc.PersonID)
.Do(cc => cc.Person = new PersonClass(cc.PersonID))
where I could use the generated cc.PersonID to create a new PersonClass.
With version 4.6.0 this no longer works. The PersonID passed to the new PersonClass is zero.

Hi @flierh,
Thanks for reporting the issue. I've investigated it carefully and found that indeed the observable behavior has changed. It's a pity we didn't have tests covering that, so it sneaked out from my eyes 😢 I've created an issue to add tests for that.
Sorry for breaking your existing code withing the same major version. If I had tests, I would probably resist from the breaking changes even if it looked like a bug.
In fact, the new behavior is correct and that's the previous behavior which is wrong. The order of the callback invocations is following:

Constructor
Do() callbacks
With callbacks
AutoProperties callbacks

We have the issue #988 to add a callback after auto-properties assignment.
It suddenly appeared that previous implementation was not aligned under the hood, so With() callback was invoked before the Do() callback. Moreover, only the overload without explicit value was behaving like that - the With(x => x.Prop, value) overload was invoked after the Do() as it should.
Given that previous implementation suffered from the properties re-assignment (properties were changed after you introspected them in the Do() callback), I can suggest you to use the newly added With overload taking a factory method:
fixture.Build<Something>()
       .With(x => x.Person, (Guid id) => new PersonClass(id))

It will also look much nicer and concise and should work the same.
Let me know whether it works for you.
Thanks.

Maybe something that can be fixed with a stronger compiler check?

I'm not sure I see how it could be done. Could you elaborate please a bit more?

Whilst it might make sense for the test, it is to be noted that the proposed workaround is not a perfect translation.

Sure! That's why we will implement #988 one day 😉

Maybe something that can be fixed with a stronger compiler check?

I'm not sure I see how it could be done. Could you elaborate please a bit more?

Oh sorry for the delay... I missed this question. What I meant is trying to use a stronger Fluent API so that the sequence of operations is commanded by the API and checked at compile time.
I did something similar here: https://github.com/emgdev/lambda-local-runner/blob/master/src/EMG.Lambda.LocalRunner/IRunnerBuilder.cs

authors: Kralizek flierh zvirja

repo: AutoFixture/AutoFixture


text:
Limiting RecursionDepth with OmitOnRecursionBehavior does not seem to work with LazyEntityGraph

var fixture = new Fixture();

var customization = new LazyEntityGraphCustomization(
                ModelMetadataGenerator.LoadFromCodeFirstContext(str => new Mydb(), false));

fixture.Customize(customization);

fixture.Behaviors.OfType<ThrowingRecursionBehavior>().ToList().ForEach(b => fixture.Behaviors.Remove(b));
fixture.Behaviors.Add(new OmitOnRecursionBehavior(1)); // set RecursionDepth to 1

This does not seem to work as expected, and AutoFixture combined with LazyEntityGraph will recurse through n depth instead of the depth specified in OmitOnRecursionBehavior.
Perhaps there's another way to do this or I'm missing something.

Hi,
Could you please provide me with a Minimal, Complete, and Verifiable example of code that helps to reproduce the scenario? The existing sample contains unknown classes, which might be crucial for the issue troubleshooting.
Thanks!

authors: SubjectiveReality zvirja


text:
Customization do not work for a subclass

Hello,
i'm currently try to create an complex object that contains some base classes. I would like to define for a specific subclass explicit values, like:
Fixture.Customize<BaseResponse>(a => a.
               With(b => b.Exceptions, new string[0]).
               With(b => b.Code, HttpStatusCode.OK).
               With(b => b.Description, HttpStatusCode.OK.ToString()).
               With(b => b.Notifications, new Notification[0])
               );

But this values are never created if I do create new Mock data like:
var request = Fixture.Create<InternalResponse>()

they do always have default values
on the other hand:
Fixture.Customize<System.Runtime.Serialization.IExtensibleDataObject>(a => a.With(b => b.ExtensionData, null));

works perfectly. All classes that implements this Interface do not have IExtensibleDataObject Property.
if I try to create BaseResponse, all properties are correctly generated as my customization describes.
BaseResponse is a simple class (not abstract).
the other customization do not work either.
Fixture.Customize<IEmailAddress>(a => a.With(b => b.EmailAdress, $"test{counter++}@acme.com"));

The EmailAddress property is not set. The implementation of this interface is done explicitly, because e-mail properties have different names in different classes.
sure, explicit implementation is difficult, because the property name that have been accessed can have different name. my expectation was, that the customization will called after default values has been created, but it's not the case.
Is there some simple workaround for this two problem?

I am having the same problem. Is this a bug or an oversight from my part reading the cheat sheet?

I've investigated this issue and let me describe what is going on.
As I suspected, the Customize<T>() API isn't designed to cover these kind of tasks. Rather, it expect that you will specify the final type instance that will be activated (InternalResponse in your case).
The way how this feature works is that it adds a custom graph of builders to handle requests for the customized type. This graph activates the type using a constructor and post-processes the instance if needed (e.g. assign the properties). This graph is triggered only if current request is exactly of specified type, so it doesn't participate when you configure properties for the base class.
I see a few ways to achieve that.
Custom behavior
Behavior is a special kind of interceptor that allows to execute code before and after request is processed. We could check if current request is compatible with our filter and if so - assign properties to it.
Here is the sample of such behavior that allows to achieve the desired behavior:
public static class PostActionsCustomization
{
    public static IFixture CustomizePostActions<T>(
        this IFixture fixture,
        Func<PostActionTransformation<T>, ISpecimenBuilderTransformation> customizations)
    {
        fixture.Behaviors.Add(customizations.Invoke(new PostActionTransformation<T>()));

        return fixture;
    }

    public class PostActionTransformation<T> : ISpecimenBuilderTransformation
    {
        private readonly List<ISpecimenCommand> _commands = new List<ISpecimenCommand>();

        public ISpecimenBuilder Transform(ISpecimenBuilder builder)
        {
            return new Postprocessor(
                builder,
                new CompositeSpecimenCommand(_commands),
                new IsAssignableToTypeSpecification(typeof(T)));
        }

        public PostActionTransformation<T> With<TProperty>(Expression<Func<T, TProperty>> propertyPicker,
            TProperty value)
        {
            _commands.Add(new BindingCommand<T, TProperty>(propertyPicker, value));

            return this;
        }
    }

    /// <summary>
    /// Specification that checks that request type is assignable to the specified type
    /// </summary>
    private class IsAssignableToTypeSpecification : IRequestSpecification
    {
        private readonly Type _expectedType;

        public IsAssignableToTypeSpecification(Type expectedType)
        {
            _expectedType = expectedType ?? throw new ArgumentNullException(nameof(expectedType));
        }

        public bool IsSatisfiedBy(object request)
        {
            if (request is Type typeRequest)
            {
                return _expectedType.IsAssignableFrom(typeRequest);
            }

            return false;
        }
    }
}

And here is a sample of its usage:
Fixture.CustomizePostActions<BaseResponse>(c => c.
               With(x => x.Exceptions, new string[0]).
               With(x => x.Code, HttpStatusCode.OK).
               With(x => x.Description, HttpStatusCode.OK.ToString()).
               With(x => x.Notifications, new Notification[0])
               );

How each time the instance of BaseResponse type is activated, the specified properties will be assigned to it.
Notice, this solution is not perfect and properties will be assigned multiple times during the object creation - first time during object activation, second time in our behavior (and probably more times if you add a few customizations). Therefore, some business logic might be broken if you don't expect default values.
Customization for MemberInfo
Another way is to create helpers to easily customize creation of the particular member infos. This way when AutoFixture will try to resolve a particular PropertyInfo or FieldInfo to assign it to our object, we will return a custom value.
Example of such customization:
public static class PropertiesCustomizerExtension
{
    public static IFixture CustomizeProperties<T>(this IFixture fixture, Func<PropertiesCustomizer<T>, ICustomization> customization)
    {
        fixture.Customize(customization.Invoke(new PropertiesCustomizer<T>()));

        return fixture;
    }

    public class PropertiesCustomizer<T>: ICustomization
    {
        private List<ISpecimenBuilder> _builders = new List<ISpecimenBuilder>();

        public PropertiesCustomizer<T> With<TProperty>(Expression<Func<T, TProperty>> propertyPicker, TProperty value)
        {
            var equalRequestSpecification = new EqualRequestSpecification(
                propertyPicker.GetWritableMember().Member,
                new MemberInfoEqualityComparer());

            _builders.Add(
                new FilteringSpecimenBuilder(
                    new FixedBuilder(value),
                    equalRequestSpecification));

            return this;
        }

        public void Customize(IFixture fixture)
        {
            fixture.Customizations.Insert(0, new CompositeSpecimenBuilder(_builders));
        }
    }

    //Copied from https://github.com/AutoFixture/AutoFixture/blob/master/Src/AutoFixture/Kernel/ExpressionReflector.cs
    private static MemberExpression GetWritableMember(this LambdaExpression propertyPicker)
    {
        var me = propertyPicker.Body as MemberExpression;
        if (me == null)
            me = propertyPicker.TryUnwrapConversion();
        if (me == null)
            throw new ArgumentException("The expression's Body is not a MemberExpression. Most likely this is because it does not represent access to a property or field.", nameof(propertyPicker));

        var pi = me.Member as PropertyInfo;
        if (pi != null && pi.GetSetMethod() == null)
        {
            throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "The property \"{0}\" is read-only.", pi.Name), nameof(propertyPicker));
        }
        return me;
    }

    //Copied from https://github.com/AutoFixture/AutoFixture/blob/master/Src/AutoFixture/Kernel/ExpressionReflector.cs
    private static MemberExpression TryUnwrapConversion(
        this LambdaExpression exp)
    {
        var ue = exp.Body as UnaryExpression;
        if (ue != null)
            return ue.Operand as MemberExpression;
        else
            return null;
    }
}

Usage
Fixture.CustomizeProperties<BaseResponse>(c => c.
               With(x => x.Exceptions, new string[0]).
               With(x => x.Code, HttpStatusCode.OK).
               With(x => x.Description, HttpStatusCode.OK.ToString()).
               With(x => x.Notifications, new Notification[0])
               );

This way looks more natural compared to the Behaviors approach. Also property will be assigned once only.
The drawback is that it doesn't work for explicitly implemented properties, as AutoFixture doesn't assign them by default.
So it's up to you to decide which way suits better for your solution.
Magic explanation
Another thing I want to mention is why the following code seems to work:
Fixture.Customize<System.Runtime.Serialization.IExtensibleDataObject>(a => a.With(b => b.ExtensionData, null));

Actually, it doesn't work entirely and if you try to assign anything different from null - you will not receive that value. When you customize a particular property, AutoFixture is configured to not longer resolve that particular property automatically, so it will be explicitly assigned the with configured value later. It works similarly to my "Customization" approach above, with difference that nothing is returned instead of value.
Later, when you create an InternalRequest and kernel tries to resolve the ExtensionData property value, it skips it. As result that property is not assigned and you see a null.
Therefore, I'd say that the observed behavior it's rather a side effect than a feature.
Let me know if you have more questions to clarify 😉

Great in-depth explanation, thanks for taking the time writing this.

The "Magic explanation" part has been already solved via #781 and the fix will be released as a part of v4. That will help to make it less confusing as there will not be an illusion that AF handles such cases somehow.
I'm closing this one as it doesn't seem that more actions are required here. Feel free to re-open the issue if needed.

@zvirja Your code is brilliant, exactly what I was looking for. Thanks for that! :D
Would you mind if I modify it a bit (I needed value factories instead of constant values) and turn it into a NuGet Package?

authors: RoCore akamud wertzui zvirja


text:
Update Makefile

Overview
Github Issue: {LINK TO ISSUE}
Summary (required always)

Notes

Checklist

[ ] My pull request title follows the format <username>/<gh-issue-#number>:<short-description>
[ ] My code passes existing unit tests
[ ] My code follows the code style set for the project
[ ] I have added at least one reviewer for this PR

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

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

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

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

authors: eyal-mor eyalmor-ent

repo: Autodesk/shore


text:
A graphical component for html/js file

Description
I would like to have a graphical component to display some HTML.
Here is my use case :
I have a piece of code generating dynamically the following HTML file containing scripts. I would like to display the graph it contains.

        <meta charset="utf-8">

            <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vis-network/9.1.2/dist/dist/vis-network.min.css" integrity="sha512-WgxfT5LWjfszlPHXRmBWHkV2eceiWTOBvrKCNbdgDYTHrT2AeLCGbF4sZlZw3UMN3WtL0tGUoIAKsu8mllg/XA==" crossorigin="anonymous" referrerpolicy="no-referrer" />

        <link
          href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css"
          rel="stylesheet"
          integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6"
          crossorigin="anonymous"
        />

can you use an iframe ?

That does solve my prototyping need. Thx.

authors: FredLL-Avaiga jrobinAV

repo: Avaiga/taipy-gui


text:
broadcast variable / Variable sharing (#796)

solve issue #796
from src.taipy.gui import Gui

a = 30
b = 50

def btn_action(state):
    state.broadcast("b", 10)
    # state.b = 10

gui = Gui("""

<|{a}|number|>

<|{b}|number|>

<|Update b to 10|button|on_action=btn_action|>
""")

gui.run(run_browser=False)

Should this be discussed on a global context ?

Beside the remarks of Fred, I think that's great.
I was wondering, in terms of simplicity of use, if you could provide something like
Gui.set_broadcast("")
If then some callback does a state.<varname> = value it would be broadcast automatically...
(I don't yet like my naming)

maybe something like gui.set_global(var_name)

Beside the remarks of Fred, I think that's great.
I was wondering, in terms of simplicity of use, if you could provide something like
Gui.set_broadcast("")
If then some callback does a state.<varname> = value it would be broadcast automatically...
(I don't yet like my naming)

maybe something like gui.set_global(var_name)

How about 'Gui.set_shared(var_name: str) -> None`?


text:
Upload Readme images

new banner and features' images

@RymMichaut
Can you give us directions on what to do?
We are trying not to keep too many pending PRs for a more efficient project management.
Thanks!

authors: FabienLelaquais RymMichaut

repo: Avaiga/taipy


text:
MenuItem.DataTemplates brakes default template/style

When using a DataTemplate for the MenuItem to dynamically create the Menu, the default style seems to be broken

<Menu Grid.Column="4" Height="32" Padding="0" Margin="0">
  <MenuItem Height="32" Width="32" Name="FuncMenuItem" Header="{avalonia:MaterialIconExt DotsVertical, Size=24}">
	<MenuItem.DataTemplates>
	  <DataTemplate DataType="app:FuncMenuCommandItem">
		<MenuItem Header="{Binding Name}" Command="{Binding Command}" CommandParameter="{Binding CommandParameter}">
		  <MenuItem.Icon>
			<avalonia:MaterialIcon Kind="{Binding Icon}" Width="24" Height="24" />
		  </MenuItem.Icon>
		</MenuItem>
	  </DataTemplate>
	  <DataTemplate DataType="app:FuncMenuSeparatorItem">
		<Separator/>
	  </DataTemplate>
	</MenuItem.DataTemplates>
  </MenuItem>
</Menu>

while using the default xaml definition from the Material.Demo application, looks fine.

<Menu Grid.Column="4" Height="32" Padding="0" Margin="0">
  <MenuItem Height="32" Width="32" Name="FuncMenuItem" Header="{avalonia:MaterialIconExt DotsVertical, Size=24}">
	<MenuItem Header="Hello!" Click="HelloButtonMenuItem_OnClick">
	  <MenuItem.Icon>
		<avalonia:MaterialIcon Kind="Hand" Width="24" Height="24" />
	  </MenuItem.Icon>
	</MenuItem>
	<Separator />
	<MenuItem Header="Action 1" />
	<MenuItem Header="Action 2" />
	<MenuItem Header="Action 3" />
	<Separator />
	<MenuItem Header="Goodbye" Click="GoodbyeButtonMenuItem_OnClick">
	  <MenuItem.Icon>
		<avalonia:MaterialIcon Kind="ExitRun" Width="24" Height="24" />
	  </MenuItem.Icon>
	</MenuItem>
  </MenuItem>
</Menu>

Actually I don't know what's wrong with my code 🤔

Hello, @dojo90
Sorry for long answer.
I figured out whats wrong with this situation. Actually MenuItem.DataTemplate sets template for MenuItem header, nor for all MenuItem content.
So, when you apply your style you get MenuItems inside of your MenuItem.

So, spaces at left this is space for Icon and margin, space from right - margin.

As the solution if you can need separators and menu items generated from you models you need to create controls by yourself (or via behavior, attached property, etc). DataTemplate not intended for such use.
Feel free to reopen issue if you have any questions.

Thanks for the hint, I have now been able to solve the problem by creating the MenuItems in the code behind. 👍

Code
// FuncMenu
var funcMenuBuilder = App.Container.GetRequiredService<IFuncMenuBuilder>();
// https://github.com/AvaloniaCommunity/Material.Avalonia/issues/119
// FuncMenuItem.Items = funcMenuBuilder.FuncMenuItems;
var items = new ObservableCollection<TemplatedControl>();
foreach (var item in funcMenuBuilder.FuncMenuItems)
{
	switch (item)
	{
		case FuncMenuSeparatorItem funcMenuSeparatorItem:
			items.Add(new Separator());
			break;
		case FuncMenuCommandItem funcMenuCommandItem:
			var mi = new MenuItem
				{
					Header = funcMenuCommandItem.Name,
					Command = funcMenuCommandItem.Command,
					CommandParameter = funcMenuCommandItem.CommandParameter,
					Icon = new MaterialIcon
					{
						Kind = funcMenuCommandItem.Icon
					}
				};
			items.Add(mi);
			break;
		default:
			throw new ArgumentOutOfRangeException(nameof(item));
	}
}

FuncMenuItem.Items = items;

If I can only define the header with the DataTemplate, what is it intended for or what do I need the DataTemplate for?
Unfortunately I cannot reopen the issue.

Okay, I'm glad you were able to solve your problem.

If I can only define the header with the DataTemplate, what is it intended for or what do I need the DataTemplate for?

I don't know what is the purpose of using DataTemplate for Header. Perhaps Header is supposed to be more than just a string as content, depending on the type of the object for example.
But, at least it works in the same way in Avalonia itself, conceptually we have not changed anything.
Avalonia MenuItem style
Material.Avalonia MenuItem style


text:
SetWindowStartupLocation.CenterScreen - doesn't account for Window Size

Window.SetWindowStartupLocation method simply sets Window.Position to the "center of screen", rather than centering the Window's "Bounds" to center.
The result of this bug is that the window's Top-Left corner is at center of screen, instead.
Here is the offending code:
                    Position = screen.WorkingArea.CenterRect(rect).Position;

Here's a code fix:
                    PixelPoint pos = screen.WorkingArea.CenterRect(rect).Position;
                    Position = new PixelPoint(pos.X - (int)(Bounds.Width / 2), pos.Y - (int)(Bounds.Height / 2));

ALSO -- looks like 'CenterOwner' has the exact same defect.

I am pretty sure it worked before (except linux). Is it OS specific?

Not sure how this code could have EVER worked as written, unless "Position" of a window means "Position of the Center of Window", which seems unlikely.   They code is setting the "Position" of window at "Center of Area".

FYI, from PixelRect.cs file:
public PixelRect CenterRect(PixelRect rect)
{
    return new PixelRect(
        X + ((Width - rect.Width) / 2),
        Y + ((Height - rect.Height) / 2),
        rect.Width,
        rect.Height);
}

'Center' here is a verb meaning 'Center the rectangle'.

Is it OS specific

?
We have a known issue on Linux. If it's the case, this issue should be closed as duplicate, since I can't reproduce this problem on Windows and macOS.

You are 100% correct.  When I saw the issue (it centering the top-left corner), I misread this very obvious code.  Feeling like a fool here.
The bug was in our UrhoWindowImpl where "PlatformImpl?.DesktopScaling == 0"... thus the rect size was 0.  I've fixed our code now.
I apologize for wasting your time on this.  I will be more careful next time.  Kicking myself here.
PLEASE CLOSE THIS BUG as OPERATOR ERROR, or the equivalent.

repo: AvaloniaUI/Avalonia


text:
Ensure correct thread for AvaloniaProperty access.

Previously we ensured that AvaloniaObject.SetValue was run on the main thread. This makes sure that GetValue, IsSet and ClearValue are also run on the main thread. Unit testing this turned out to be more complicated than expected, because Dispatcher keeps a hold of a reference to the first IPlatformThreadingInterface it sees, so made UnitTestApplication able to notify Dispatcher that it should update its services.

Codecov Report

Merging #909 into master will increase coverage by 0.09%.
The diff coverage is 96.77%.

@@            Coverage Diff             @@
##           master     #909      +/-   ##
==========================================
+ Coverage   61.63%   61.72%   +0.09%
==========================================
  Files         533      533
  Lines       20224    20239      +15
  Branches     2881     2885       +4
==========================================
+ Hits        12465    12493      +28
+ Misses       6930     6919      -11
+ Partials      829      827       -2

Impacted Files
Coverage Δ

src/Avalonia.Base/Threading/Dispatcher.cs
71.42% <100%> (+12.33%)
:white_check_mark:

src/Avalonia.Base/Threading/JobRunner.cs
47.61% <100%> (+5.11%)
:white_check_mark:

src/Avalonia.Base/AvaloniaObject.cs
94.42% <100%> (+0.08%)
:white_check_mark:

src/Avalonia.Base/PriorityBindingEntry.cs
80% <100%> (+0.58%)
:white_check_mark:

src/Avalonia.Base/PriorityLevel.cs
98.24% <100%> (+0.03%)
:white_check_mark:

src/Avalonia.Base/PriorityValue.cs
69.07% <85.71%> (+0.32%)
:white_check_mark:

src/Avalonia.Base/Threading/AvaloniaScheduler.cs
100% <0%> (+57.89%)
:white_check_mark:

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 b953d3f...a46be4e. Read the comment docs.

Yeah, good question. The main reason I added this was that the deferred renderer runs on a separate thread, and I wanted to be able to unit test that it wasn't accessing properties from the rendering thread.
However beyond this, the AvaloniaProperty code isn't thread-safe and if the main thread is writing an avalonia property while a background thread is reading the same property, then you're likely to encounter race conditions.

authors: codecov-io grokys


text:
Code gen doesn't generate action when EventSubject is set

Code Gen Code
<Operation Name="Delete" OperationType="Delete" UniqueKey="true" AutoImplement="None" WebApiRoute="{id}" WebApiStatus="Accepted" EventSubject="Reservation">
      <Parameter Name="Id" Type="Guid" IsMandatory="true" />
</Operation>

Generates the following datasvc
public Task DeleteAsync(Guid id)
 {
        return DataSvcInvoker.Current.InvokeAsync(this, async () =>
        {
            await _data.DeleteAsync(id).ConfigureAwait(false);
            await _evtPub.PublishAsync($"Reservation", "", id).ConfigureAwait(false);
            _cache.Remove<Reservation>(new UniqueKey(id));
        });
}

The action string is empty, this only happens when the EventSubject property is set. If the EventSubject is not present, it will set the action to the value of WebApiOperationType or OperationType as expected.
The above code gen did work with previous versions of beef.
Beef Version: V4.1.4

Hi @Nathan-Priebe, code-generation has been corrected. See Beef.CodeGen.Core version 4.1.10. Cheers...

Thanks @chullybun

authors: Nathan-Priebe chullybun

repo: Avanade/Beef


text:
📃: Reddit UI Clone

:red_circle: Title : Reddit UI Clone
:red_circle: Aim : To create a Reddit UI Clone using HTML and Vanilla CSS
:red_circle: Tech Stack Used :
Screenshots 📷

:white_check_mark: To be Mentioned while taking the issue :

Full name : Milkuri Chaanakyaa
What is your participant role? (Mention the Open Source Program name. Eg. GSSOC, SSOC, JWOC, etc.)
GSSOC'24

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

@chaanakyaaM go ahead.

authors: Avdhesh-Varshney chaanakyaaM

repo: Avdhesh-Varshney/WebMasterLog


text:
use printf to pretty print commands

Addresses #3. Example output below:

Does this go to stdout? It may be useful to put this in the echoerr function so as to generalize it. Thoughts?

It occurs to me that this may not make the config file look right. Can you test this by commenting out the three lines that are
if [ -h $fullname ]; then
    continue;
fi

printf prints to stdout by defualt, but we can put it into a variable too: http://wiki.bash-hackers.org/commands/builtin/printf
a printferr function is fine.
commenting the lines didn't make a difference with the output..

The issue I see is we don't detect any files in that same configuration, it seems. I don't know that the indentation won't look wildly off.
One fix would be to replace the contents of the configuration with [Configuration Goes Here] or some such.

Hmm it seems to work fine for me..


text:
Version 4.1 Update

Version 4.1 Update
Features

[x] https://github.com/AwesomeHamster/hatsushimo/issues/8

Misc

[ ] Add version
[ ] #29

Not planned

repo: AwesomeHamster/hatsushimo


text:
Importing App changing the Organization

APIM-CLI version
1.11.0
API-Management version
7.7.20210530
Bug description
Hello,
Have exported applications in json format.
In the json export i have changed the organization and when trying to reimport I get the message
2982   WARN          AppException| No changes detected between Desired- and Actual-App.
No changes detected. Existing with RC: 0
Steps to reproduce
/tmp/archives/Delivery_APIM/api-manager/apimcli/apim-cli-1.11.0/scripts/apim.sh app get -orgName OrgSource -p '' -t /tmp/mig_orga/ -o json
change the   "organization" : "Horodatage"
"/tmp/archives/Delivery_APIM/api-manager/apimcli/apim-cli-1.11.0/scripts/apim.sh" app import -p '' -c application.json
API-Manager CLI: 1.11.0
To report issues or get help, please visit:
https://github.com/Axway-API-Management-Plus/apim-cli
Module: Application - I M P O R T (1.11.0)
736    INFO        CoreParameters| Retrying unexpected API-Manager REST-API responses with a delay of 10000 milliseconds.
1696   INFO     APIManagerAdapter| Successfully connected to API-Manager (7.7.20210530) on: https://f1slsea010:8075
3086   INFO          AppException| You may enable debug to get more details. See: https://github.com/Axway-API-Management-Plus/apim-cli/wiki/9.1.-Enable-Debug
3087   WARN          AppException| No changes detected between Desired- and Actual-App.
No changes detected. Existing with RC: 0
Relevant log output
example of application
{
  "name" : "MTES_TRA_XP",
  "organization" : "Horodatage",
  "state" : "approved",
  "enabled" : true,
  "email" : "olivier.bouchemal@soprasteria.com",
  "credentials" : [ {
    "credentialType" : "oauth",
    "enabled" : true,
    "secret" : "871deab7-5d01-4232-ba07-3516b0b4c8cd",
    "corsOrigins" : [ "*" ],
    "type" : "confidential",
    "redirectUrls" : [ ],
    "clientId" : "1a6b7c2e-32f6-4f27-a177-b357edeb699c"
  }, {
    "credentialType" : "apikeys",
    "enabled" : true,
    "secret" : "81d6ac7d-7e06-4671-92d2-d8349d1c7c56",
    "corsOrigins" : [ "*" ],
    "apiKey" : "27f7edd1-aebd-4f6d-af44-ddd065e46ddb"
  } ],
  "customProperties" : {
    "NumberStructure" : "Autre",
    "ContactName" : "Olivier Bouchemal"
  },
  "permissions" : [ ]

One question before I'm going to investigate this issue:
Are you using an Org-Admin or an Admin-Account for the import?

I am using the apimanager "ApiAdmin" user account.

Thanks for sharing the information. I'm going to check/fix this next week.

authors: bouchemalolivier cwiechmann

repo: Axway-API-Management-Plus/apim-cli


text:
Harvest Seal targets Botania Glimmering Flowers

I use Glimmering Flowers to light up my areas rather than torches. These buggers keep picking them, lol. - Ariel

That might be something on the botania side. I suspect they are registered as "IGrowable" or extend BlockCrops which makes golems count them as normal crops. Not much I can do about that unfortunately.

Maybe add a config option with a blacklist for crops? (or does the Harvest Seal have a blacklist?)

authors: ArielFaye Azanor LumberWizard

repo: Azanor/thaumcraft-beta


text:
chore(master): Release 0.10.1

:robot: I have created a release beep boop
aztec-packages: 0.10.1
0.10.1 (2023-10-24)
Features

Change nullifier tree height to 20 (#2988) (118f9d5)

Bug Fixes

Aztec-sandbox docker-compose directory (#2989) (a9678d1)

barretenberg.js: 0.10.1
0.10.1 (2023-10-24)
Miscellaneous

barretenberg.js: Synchronize aztec-packages versions

barretenberg: 0.10.1
0.10.1 (2023-10-24)
Miscellaneous

barretenberg: Synchronize aztec-packages versions

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/AztecProtocol/aztec-packages/releases/tag/aztec-packages-v0.10.1 :sunflower:

:robot: Release is at https://github.com/AztecProtocol/aztec-packages/releases/tag/barretenberg.js-v0.10.1 :sunflower:

:robot: Release is at https://github.com/AztecProtocol/aztec-packages/releases/tag/barretenberg-v0.10.1 :sunflower:

Benchmark results
Metrics with a significant change:

note_trial_decrypting_time_in_ms (8): 8.00 (-33%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit 118f9d5e and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
128 txs

l1_rollup_calldata_size_in_bytes
45,444
179,588
716,132

l1_rollup_calldata_gas
222,936
868,160
3,446,480

l1_rollup_execution_gas
842,023
3,595,268
22,201,849

l2_block_processing_time_in_ms
2,314 (+1%)
8,837
34,333 (-1%)

note_successful_decrypting_time_in_ms
707
2,523 (-1%)
9,677 (-1%)

note_trial_decrypting_time_in_ms
:warning: 8.00 (-33%)
108
137 (+1%)

l2_block_building_time_in_ms
15,768 (-1%)
62,789 (-1%)
251,288 (-1%)

l2_block_rollup_simulation_time_in_ms
13,215 (-1%)
52,623 (-1%)
210,552 (-1%)

l2_block_public_tx_process_time_in_ms
2,513 (-1%)
10,034 (-1%)
40,277 (-1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
24,918
48,264 (+1%)

note_history_successful_decrypting_time_in_ms
6,104 (+1%)
12,069 (+1%)

note_history_trial_decrypting_time_in_ms
122 (-1%)
147 (+1%)

node_database_size_in_bytes
1,628,894
1,095,435

pxe_database_size_in_bytes
27,188
54,187

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
82.6
61,697
18,841

private-kernel-ordering
50.6
24,233
8,089

base-rollup
2,083
656,309
811

root-rollup
89.3 (-1%)
4,072
1,097

private-kernel-inner
59.0 (-1%)
81,504
18,841

public-kernel-private-input
46.6 (-1%)
41,455
18,841

public-kernel-non-first-iteration
29.0 (-1%)
41,497
18,841

merge-rollup
0.819 (-2%)
2,592
873

Miscellaneous
Transaction sizes based on how many contracts are deployed in the tx.

Metric
0 deployed contracts
1 deployed contracts

tx_size_in_bytes
8,723
29,394

repo: AztecProtocol/aztec-packages