Check for accumulative data/messages in the hare protocol

Should make sure no one can DDOS us by spamming in the hare protocol

Preround scenario: malicious sends multiple preround msgs with different set causing the honest participant to store the union of all msgs

See comments on #3287 for network security.
However this will need further safeguards for accumulation of data in memory that either doesn't get put into a message or is spread over many incoming messages.
See #1052 for an example of the latter.

More examples:
https://github.com/spacemeshos/go-spacemesh/issues/1038
https://github.com/spacemeshos/go-spacemesh/issues/563


Added Double ended queue

Hey,
I have added double ended queue using array.
I have readed the contributing.md.
Please review it
Thanks

Hi @UG-SEP,
Thanks for your contributions, and welcome to our team.

The invitation link

@ming-tsai  Thanks a lot you all let me to learn much more than before Thanks

@ming-tsai  Thanks a lot you all let me to learn much more than before Thanks

Thanks to @Arsenic-ATG too

@ming-tsai  Thanks a lot you all let me to learn much more than before Thanks

Thanks to @Arsenic-ATG too

Yes you are right he is really a friendly guy. he like to help people thanks a lot @Arsenic-ATG.


do not populate $response when response code is 204

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
#17180 https://github.com/Codeception/Codeception/issues/5418

Merged. Thank you!


Add /setup change-cookie command

This is linked to #45 where the members list cookie should be able to be changed by command.

All config variables will be able to changed using a consistent setup command group. Therefore this specific issue tracker is not necessary. See #45.


Prophet package in R: Unable to load from library

Can someone help me with "prophet" package addition to library?
I am on Windows and was successful in installing the package on R version 3.3.3 including the dependent files, however when I try using it "library (prophet)" - I get the error posted below. I did look for solutions on the link provided in the error along with various other forums but found no solutions.
Does this package require C++ Compiler to be installed? How do I resolve this issue?
Warning: running command '"C:/Documents/R/R-3.3.3/bin//R" CMD config CXX' had status 1
No C++ compiler found, so the following will probably not work.
See https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Windows#toolchain
Warning: running command 'C:/Documents/R/R-3.3.3/bin/i386/R CMD SHLIB file54474622720.cpp 2> file54474622720.cpp.err.txt' had status 1
Warning message:
running command 'make -f "C:/DOCUME~1/R/R-33~1.3/etc/i386/Makeconf" -f "C:/DOCUME~1/R/R-33~1.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' S

I forgot to mention that Rtools too is installed!

Try the following -  devtools::find_rtools(TRUE)

Restart your system and uninstall devtools, rstan, prophet
Install packages - devtools, prophet
Try loading the package now with library(prophet)
If it still doesn't work, show us the output of - devtools::find_rtools(TRUE) and then do this -
Install C++ compiler from http://landinghub.visualstudio.com/visual-cpp-build-tools

The issue does seem to be with Rtools. Could you re-install Rtools following the link that it printed out (https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Windows#toolchain)? Be sure to check the box to add RTools to the path. Then follow the directions under "verify that Rtools can be used in R" to check that it is working.

I'm hoping this was resolved, if it wasn't then please reopen!


Cloning a json which contain null throws a nullpointerException

Description:
Consider the following code
json x = ();
json y = x.clone();
Trying to execute the above code will throw a NPE.
Affected Versions:
0.983.1-SNAPSHOT

Fixed with #11695


Time conversion error at the start of the universe

Error
During routine tests (using Q1 as a simple id), I got this error, a lot:
wikidata-sdk time conversion error: RangeError: Invalid time value
    at Date.toISOString (<anonymous>)
    at toISOString (/home/larsw/public_html/Citation/node_modules/wikidata-sdk/lib/helpers/helpers.js:28:35)
    at value (/home/larsw/public_html/Citation/node_modules/wikidata-sdk/lib/helpers/helpers.js:19:12)
    at Object.time (/home/larsw/public_html/Citation/node_modules/wikidata-sdk/lib/helpers/parse_claim.js:41:49)
    at module.exports (/home/larsw/public_html/Citation/node_modules/wikidata-sdk/lib/helpers/parse_claim.js:76:32)
    at simplifyClaim (/home/larsw/public_html/Citation/node_modules/wikidata-sdk/lib/helpers/simplify_claims.js:85:17)
    at propClaims.map.claim (/home/larsw/public_html/Citation/node_modules/wikidata-sdk/lib/helpers/simplify_claims.js:33:19)
    at Array.map (<anonymous>)
    at simplifyPropertyClaims (/home/larsw/public_html/Citation/node_modules/wikidata-sdk/lib/helpers/simplify_claims.js:33:6)
    at Object.simplifyClaims (/home/larsw/public_html/Citation/node_modules/wikidata-sdk/lib/helpers/simplify_claims.js:14:24)

Input
To be fair, the time values being parsed are pretty long ago, but I don't think the values themselves are invalid:
{ time: '-13798000000-00-00T00:00:00Z',
  timezone: 0,
  before: 0,
  after: 0,
  precision: 3,
  calendarmodel: 'http://www.wikidata.org/entity/Q1985727' }

Code
Run on RunKit.
const wdk = require("wikidata-sdk")
require('isomorphic-fetch')

const data = await fetch(wdk.getEntities('Q1')).then(response => response.json())

wdk.simplify.entity(data.entities.Q1)

Solution
None, it seems to be a limitation of JavaScript Date:
const d = new Date()
d.setYear(13798000000) // NaN
d // Invalid date

which version of wikidata-sdk are you using?

v5.9.0. In v5.2.2 I didn't get the error, but I don't think the conversions are working either: https://runkit.com/larsgw/5adf8b05d3216e0014bde1f6

I tried a work around 8f68827 (published in v5.9.1), but it doesn't work for all conversion formats: we can't get epoch time for this kind of date. Could you try it to see if it addresses your need?

It works great, thanks!


Handle case of file specified in fixity that is missing

Current code fails on https://github.com/OCFL/fixtures/pull/68
ocfl-validate.py 1.0/bad-objects/E092_E093_content_path_does_not_exist
Traceback (most recent call last):
  File "/Users/simeon/.python_venv/py38/lib/python3.8/site-packages/fs/osfs.py", line 359, in openbin
    binary_file = io.open(
FileNotFoundError: [Errno 2] No such file or directory: b'/Users/simeon/src/ocfl-py/fixtures/1.0/bad-objects/E092_E093_content_path_does_not_exist/v1/content/bonus.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "../ocfl-validate.py", line 46, in <module>
    if obj.validate(path,
  File "/Users/simeon/src/ocfl-py/ocfl/object.py", line 525, in validate
    passed = validator.validate(objdir)
  File "/Users/simeon/src/ocfl-py/ocfl/validator.py", line 108, in validate
    self.validate_content(inventory, all_versions, prior_manifest_digests)
  File "/Users/simeon/src/ocfl-py/ocfl/validator.py", line 306, in validate_content
    content_digest = file_digest(filepath, digest_type=digest_algorithm, pyfs=self.obj_fs)
  File "/Users/simeon/src/ocfl-py/ocfl/digest.py", line 51, in file_digest
    return _file_digest(pyfs, filename, hashlib.md5())
  File "/Users/simeon/src/ocfl-py/ocfl/digest.py", line 27, in _file_digest
    _fs_digest(pyfs, filename, digester)
  File "/Users/simeon/src/ocfl-py/ocfl/digest.py", line 11, in _fs_digest
    with pyfs.openbin(filename, 'r') as fh:
  File "/Users/simeon/.python_venv/py38/lib/python3.8/site-packages/fs/osfs.py", line 359, in openbin
    binary_file = io.open(
  File "/Users/simeon/.python_venv/py38/lib/python3.8/site-packages/fs/error_tools.py", line 90, in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
  File "/Users/simeon/.python_venv/py38/lib/python3.8/site-packages/six.py", line 702, in reraise
    raise value.with_traceback(tb)
  File "/Users/simeon/.python_venv/py38/lib/python3.8/site-packages/fs/osfs.py", line 359, in openbin
    binary_file = io.open(
fs.errors.ResourceNotFound: resource 'v1/content/bonus.txt' not found

Fixed in 1.2.2


Custom Breakpoints

Hi,
Firstly, thank you for providing this, it works great! This really isn't an "issue", more of my not being familiar with using plugins with AngularJS. When using angular-footable how would I specify custom breakpoints within the directive?
example:
breakpoints: {medium: 1160}
Thanks in advance.
Ken

Hi @KenPixelMii
Thanks for your advice, that is a good feature, but customize the breakpoints name is not supported by the footable itself, users only can customize the width of the breakpoints, please refer to the example page.

Hi,
Actually with FooTable you can create your own breakpoint names, see the getting started demo/docs http://fooplugins.com/footable-demos/
This code is from the docs:
$('.footable').footable({
breakpoints: {
tiny: 100,
medium: 555,
big: 2048
}
});
I have implemented this and it works fine but I have to put it in all of my Angular templates where I have tables. Is there a way I can set this in a directive?
I appreciate your help.
Ken

@KenPixelMii - Have you had any luck with this?  I dug in to the js a little bit, and thought that I could use table-opts="ngObject", but that hasn't seemed to get it for me.
Any word from @ziscloud?

Not sure if this is right but I added this line to my app.js in module/app:
function applicationStartup($window) {
    $window.footable.options.breakpoints.tablet = 939;
}

Note: this will set the breakpoint for your app globally. You will have to do something different if you want to set it on a per page basis but this seems to be what everyone is asking.


How to fine-tune to suit one's own scenario or improve  Inference speed ?

At present, the reasoning speed is a bit slow，groundingdino_swint_ogc.pth in RTX3080TI，It use 4 seconds

同样很慢，您有找到什么解决方法吗？


[MIGraphX EP] enable compilation and execution on Windows (#36)

Description

Backport of Windows build changes for Onnxrt MIGraphX EP
Motivation and Context

Not needed for 6.1. There won't be a 6.1.x


Signup procedure review

Hi @OSATOM,
Can you and your team provide us with the Dutch and English texts that need to be shown during the different steps in the signup procedure.
After step 5 an e-mail will be sent to the user. Please provide the content for this email as well.

In step 3 and 4, "Street" should be renamed to "Address", because the user needs to provide street + number.

translation done


Can amplify support HTTP Api

Note: If your feature-request is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
    I want to use HTTP api in amplify;
    Is there any way to use HTTP api, such as manually modifying the template file;

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Closing in favor of https://github.com/aws-amplify/amplify-cli/issues/6024


Use nbsp on main page, to properly right align

U+00A0 is the unicode hex value of the character No-Break Space (NBSP).

didn't work as last character in span inside label, which was right justified.


Powershell or Graph API

Can we activate the SMS sign in with PowerShell or GrapAPI when users already registered their phone number?

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

ID: b7e90747-a144-01b7-8066-31b31e4eb6aa
Version Independent ID: 4855c2d8-d647-1ca0-fe5f-670495df5042
Content: SMS-based user sign in for Azure Active Directory
Content Source: articles/active-directory/authentication/howto-authentication-sms-signin.md
Service: active-directory
Sub-service: authentication
GitHub Login: @iainfoulds
Microsoft Alias: iainfou

@BakkerJan
Thanks for your feedback! We will investigate and update as appropriate.

@BakkerJan, Powershell and Microsoft Graph cannot be used to activate SMS signin. You can check for the available api methods here:
https://docs.microsoft.com/en-us/graph/api/resources/phoneauthenticationmethod?view=graph-rest-beta#methods
Hope this helps.


ERROR: error executing step command 'provision': failed running post hooks: 'postprovision' hook failed with exit code: '1'

Please provide us with the following information:

This issue is for a: (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

normally going through the setup procedure, select location as westus, allowedIpAddresses empty, authMode identity, deploySearch true, enableAuthentication false, implementation assistant, model gpt4o 2024-05-13, modelCapacity 50, myPrincipaltype user, publicNetworkAccess disabled, stack Python3.10

Any log messages given by the failure

ERROR: error executing step command 'provision': failed running post hooks: 'postprovision' hook failed with exit code: '1', Path: 'C:\Users\CHENFA~1\AppData\Local\Temp\azd-postprovision-3403096840.ps1'. : exit code: 1, stdout: , stderr: 'pwsh' is not recognized as an internal or external command,
operable program or batch file

Expected/desired behavior

Successfully deployed the solution to my Azure environment

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 11 Enterprise Version	10.0.22631 Build 22631

azd version?

run azd version and copy paste here.
azd version 1.10.3 (commit 0595f33fe948ee6df3da492567e3e7943cb9a733)

Versions

Mention any other details that might be useful
In the azure.yaml the following code is selected for use:
genai-bot-app-backend:
project: src/python
host: appservice
language: python

Thanks! We'll be in touch soon.

If you are using a local environment, you must set up pwsh. See prerequisites here:
https://github.com/Azure-Samples/azure-search-openai-demo?tab=readme-ov-file#local-environment


Error building app in Release

I have completely migrated my project manually to AndroidX and followed all the steps provided in https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility
But still when I try to run  flutter run --release , it gives me this error
`FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:lintVitalRelease'.

Could not resolve all artifacts for configuration ':app:debugAndroidTestRuntimeClasspath'.
Could not find androidx.test.runner:1.1.1:.
Required by:
project :app

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org    `

I have this problem too. Refactor > Migrate to AndroidX didn't work so I also had to update manually.
I have been able to compile a release version by reverting to:
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
//testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
and:
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
//androidTestImplementation 'androidx.test.runner:1.1.0'
//androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
but I'm concerned that this might cause problems in the release build.

I have this problem too. Refactor > Migrate to AndroidX didn't work so I also had to update manually.
I have been able to compile a release version by reverting to:
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        //testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

and:
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    //androidTestImplementation 'androidx.test.runner:1.1.0'
    //androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'

but I'm concerned that this might cause problems in the release build.
Edit: So I forgot I'd reverted back to com.android.tools.build:gradle:3.2.1 from com.android.tools.build:gradle:3.3.0 because cloud_firestore has a dependency that isn't compatible with AndroidX. Going back to gradle:3.3.0 fixes the above problem, but restores the firestore problem.

Yeah I did the same to overcome this problem

So it wasn't a firestore problem, but I hadn't updated the kotlin version at the top of the file from 1.2.7 to 1.3.0. Since then I've been getting inconsistent results. One time it identified 2 plugins that weren't AndroidX compatible yet, but in the process of sorting that out it's now lost androidx.test.runner:1.1.0 again.
If I comment out the those two lines it will compile, but I still have the 2 incompatible plugins in there. I don't know if that will cause problems or not. Everything I've read says it will, but it seems happy to compile so...

i am also getting exactly the same problem i updated manually the file mentioned in https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility#not-recommended-manually-migrate-your-app and also i used the plugins in pubspec.yaml which are AndroidX compatible
Do we need to add the kotlin version code in the build.gradle files ?

My /android/build.gradle has it at the top of the file:
buildscript {
    ext.kotlin_version = '1.3.0'


ML Vision dependencies

Hey, thanks for the plugin 🙌
I have a question regarding the Android & iOS dependencies, in the firebase_ml_vision plugin we had to manually specify whatever we want to use in either build.gradle or Podfile.
Here, I see these dependencies specified inside android/build.gradle:
implementation 'com.google.mlkit:face-detection:16.0.6'
implementation 'com.google.mlkit:barcode-scanning:16.1.1'
implementation 'com.google.mlkit:image-labeling:17.0.3'
implementation 'com.google.mlkit:object-detection:16.2.3'
implementation 'com.google.android.gms:play-services-mlkit-text-recognition:16.1.3'
implementation 'com.google.mlkit:language-id:16.1.1'

And these inside ios/google_ml_vision.podspec:
s.dependency 'GoogleMLKit/BarcodeScanning'
s.dependency 'GoogleMLKit/FaceDetection'
s.dependency 'GoogleMLKit/ImageLabeling'
s.dependency 'GoogleMLKit/TextRecognition'

Does it mean all these binaries are being packaged inside iOS/Android apps, even if I just want to use only Barcode scanning?

Yes that is correct. I can remove those dependencies to allow you to only use the features you need.

I think it's a way to go, let me know if you need any help with the changes.

Yes, we also would only need TextDetection.

@shliama did you find a way to only compile the libs you actually need?

Not really. I haven't had time to research this yet, but most probably we should look at how it was done with the firebase_ml_vision plugin.

@brianmtully we would highly appreciate a timeline. Thanks

Hi, @brianmtully is spent yesterday sketching and implement a possible solution for this problem. The changes are going to be big and I do not know if it allies with your vision of this plugin.
The idea behind it is to split the plugin into multiple packages like the Firebase packages.
What do you think?

I am only using face detection splitting it would be good for app size since it is now around 70m with only the detection being used !


suggestion - Hypixel Ban checker.

can you add a hypixel ban check? or if hypixelHighlevel.txt is unbanned or not?

HypixelHigh level doesn't check if its banned or not, but it will tell you if the account never been to hypixel (Nohypixel login)
I won't add ban checker since OxygenX isn't updating

HypixelHigh level doesn't check if its banned or not, but it will tell you if the account never been to hypixel (Nohypixel login)
I won't add ban checker since OxygenX isn't updating


Strategy - Add 'Avoid Low level'

One strategy option that would be useful to add is 'Avoid low level', to highlight all potions except those with the lowest xp/point offering.
Alco-AugmentAtor, Mammoth Might Mix, and LipLack Liquor would be the only potions not highlighted with this option, since they only provide 20 points total, in contrast with the other potions that offer 30 or 60 points.

yes please(:

It is the meta to skip AAA, MMM, LLL and only do those if your only options available are to do those to get to the next order.
This setting doesn't need to exist.

Im confused as to why this doesn't need a setting if it's meta
On Mon, 7 Oct 2024, 22:12 JZomDev, @.***> wrote:

It is the meta to skip AAA, MMM, LLL and only do those if your only
options available are to do those to get to the next order.
This setting doesn't need to exist.
—
Reply to this email directly, view it on GitHub
https://github.com/hex-agon/mastering-mixology/issues/52#issuecomment-2397905745,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASWRHOJ3GOPP4J442FPGOHLZ2L2L7AVCNFSM6AAAAABPNWPX66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJXHEYDKNZUGU
.
You are receiving this because you commented.Message ID:
@.***>

You do not need to make the potions, you can just skip them and create them if you want. The plugin is there to help you make the correct recipes. You need to make a MMM LLL or AAA potion eventually (for rewards), so avoid option is not an option in that case.
I think this is a silly ask and is maybe overreaching. You don't see the GOTR plugin reminding you how to do a trip or the tempoross plugins telling you to fish 7 fish, cook them then go to the double spawn etc etc.

The strategy was originally added because on initial release you couldn't do more than one potion at a time. It would make more sense to remove the option entirely.
The update today (9OCT2024) has made the strategy approach even more dumb.

Strategy has been removed


[ITensors] [BUG] Custom Spin SiteType with arbitrary spin value

Description of bug
Hi,
maybe this is not a bug but a pull request but anyways I want to calculate a system with a single spin (with different spin-values) and therefore I have to define my custom hilbert space as described here.
If I use the code from the example this works fine.
If I now take the first step to extend this to arbitrary spin-values and insert the definitions for higher spin-matrices (as described here) this still works
Minimal code demonstrating the bug or unexpected behavior

hilbert_size = 4

ITensors.space(::SiteType"S=3/2") = hilbert_size
spin = 3/2

ITensors.op(::OpName"Sx",::SiteType"S=3/2") =
  1/2 .* [(Int(i == j+1) + Int(i+1 == j)) * sqrt((spin+1)*(i+j-1) - i*j)   for i in 1:hilbert_size, j in 1:hilbert_size]

N = 100
sites = ITensors.siteinds("S=3/2",N)
s = 1
test = op("Sx", sites[s])

The next extension I wanted to do was to change the spin-value globally by a variable "spin_value" as you can see in the following piece of code:

spin_value = 3/2
spin_string = string(spin_value)

hilbert_size = Int(2*spin_value + 1)

ITensors.space(::SiteType"S=$spin_string") = hilbert_size

ITensors.op(::OpName"Sx",::SiteType"S=$spin_string") =
    1/2 .* [(Int(i == j+1) + Int(i+1 == j)) * sqrt((spin_value+1)*(i+j-1) - i*j)   for i in 1:hilbert_size, j in 1:hilbert_size]

N = 100
sites = ITensors.siteinds("S=$spin_string",N)
s = 1
test = op("Sx", sites[s])

Expected output or behavior
I would expect to be able to just change the variable "spin_value" to whatever value I want it to have and my SiteType "S=spin_value" is assigned.
Actual output or behavior
Somehow the overload of some funktions doesn't seem to behave as it should and I'm not able to build my "sites"-object with the "siteinds"-function.
Output of minimal runnable code
Overload of "space","siteind", or "siteinds" functions not found for Index tag: S=1.5

Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] siteind(st::SiteType{S=1.5}, n::Int64; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ ITensors ~/.julia/packages/ITensors/WMeVS/src/physics/sitetype.jl:723
 [3] siteind(st::SiteType{S=1.5}, n::Int64)
   @ ITensors ~/.julia/packages/ITensors/WMeVS/src/physics/sitetype.jl:719
 [4] (::ITensors.var"#1127#1128"{Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SiteType{S=1.5}})(j::Int64)
   @ ITensors ./none:0
 [5] iterate
   @ ./generator.jl:47 [inlined]
 [6] collect(itr::Base.Generator{UnitRange{Int64}, ITensors.var"#1127#1128"{Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SiteType{S=1.5}}})
   @ Base ./array.jl:782
 [7] siteinds(tag::String, N::Int64; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ ITensors ~/.julia/packages/ITensors/WMeVS/src/physics/sitetype.jl:769
 [8] siteinds(tag::String, N::Int64)
   @ ITensors ~/.julia/packages/ITensors/WMeVS/src/physics/sitetype.jl:761
 [9] top-level scope
   @ In[5]:24

Version information

Output from versioninfo():

julia> versioninfo()
Julia Version 1.9.2
Commit e4ee485e909 (2023-07-05 09:39 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 20 × 12th Gen Intel(R) Core(TM) i7-12700
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, alderlake)
  Threads: 2 on 20 virtual cores

Output from using Pkg; Pkg.status("ITensors"):

julia> using Pkg; Pkg.status("ITensors")
Status `/amd/home/agfleischhauer/jbohm/.julia/environments/v1.9/Project.toml`
  [9136182c] ITensors v0.3.57

I'm not sure if this is the primary issue, but maybe you want to use spin_value = "3/2" instead of spin_value = 3/2 so that it gets interpolated into SiteType as 3/2 instead of 1.5.

Actually I tried your first suggestion as well to directly enter the spin_string as a string but that didn't work out as well.
I'm confused you were not able to interpolate into SiteType. I just executed this piece of code:
spin_value = 5/2
spin_string = string(spin_value)
SiteType("x=$spin_string")

and the output has been as expected
SiteType{x=2.5}()
or wouldn't I expect that to happen?

That is expected behavior.
Is there still an issue to address here?

Maybe I was able to specify this problem a bit. I think it's a problem with the overloading of the functions. Maybe this is more a general julia thing than it's a problem of ITensors. Anyways here's what I found:
This piece of code here works just fine, defining the Index by hand (but with the "$spin_string" variable):
spin_value = 3/2
spin_string = string(spin_value)
hilbert_size = Int(2*spin_value) + 1
ITensors.space(::SiteType"S=$spin_string") = hilbert_size

s = Index(hilbert_size, "Site,S=$spin_string")

ITensors.op(::OpName"Sx",::SiteType"S=1.5") = 1/2 .* [(Int(i == j+1) + Int(i+1 == j)) * sqrt((spin_value+1)*(i+j-1) - i*j)   for i in 1:hilbert_size, j in 1:hilbert_size]

println(op("Sx", s))

If you execute this code it'll print out the Sx-matrix I'd expect for a spin 3/2.
But if I replace the ITensors.op(::OpName"Sx",::SiteType"S=1.5") with ITensors.op(::OpName"Sx",::SiteType"S=$spin_string") I get again the error that the Overload of "op" functions couldn't be found.
The function siteind("S=$spin_string") returns "nothing" no matter if I use "$spin_string" or "1.5".

One issue I see is that the line:
ITensors.space(::SiteType"S=$spin_string") = hilbert_size

will not interpolate spin_string into the type, for example try running this in your REPL:
julia> using ITensors

julia> spin_value = 3/2
1.5

julia> spin_string = string(spin_value)
"1.5"

julia> SiteType"S=$spin_string"
SiteType{S=$spin_string}

julia> SiteType("S=$spin_string")
SiteType{S=1.5}()

SiteType"S=$spin_string" and SiteType("S=$spin_string") act differently in terms of interpolation. You should be able to use:
ITensors.space(::typeof(SiteType("S=$spin_string"))) = hilbert_size

instead.

Thanks for the help, this did work out fine for now.
Just for completeness here's the working example of the code:
spin_value = 3/2
spin_string = string(spin_value)
hilbert_size = Int(2*spin_value) + 1
#ITensors.space(::SiteType"S=$spin_string") = hilbert_size
ITensors.space(::typeof(SiteType("S=$spin_string"))) = hilbert_size

s = siteinds("S=$spin_string", 10)

ITensors.op(::OpName"Sx",::typeof(SiteType("S=$spin_string"))) = 1/2 .* [(Int(i == j+1) + Int(i+1 == j)) * sqrt((spin_value+1)*(i+j-1) - i*j)   for i in 1:hilbert_size, j in 1:hilbert_size]

println(op("Sx", s[4]))


bump/1.163.0

Release 1.163.0

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v1
Commit ID: c9e002a5468425944fe9e0006b58904bf08a9225
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Add the ability to start GPMDP with a hotkey, specifically a keyboard media key (like the "music note" key on my keyboard)

OS: Windows 10 Home, build 1607
Please note: this is an Enhancement
There should be an option in Hotkeys to make the program open with a keyboard key.
For example-- I have media keys and want to bind GPMDP to the Music note key.
*I understand that the media keys are not keyboard keys, but I'm sure there's an exploit somewhere to allow users to bind a media key to opening a program in Windows, as media keys aren't normally seen as hkeys.)
I mean actually starting the program, not listening for the key press while running.

This is not technically possible, in order to listen for key events the program has to be open and if it is open the hotkey to "launch" it is pointless.   You should look into something like Auto Hot Key to get a global hotkey to launch another application


Connect Area Management to backend

When clicking the "create area" button on the area management page, submit a request to the backend to add that area.
The page should a request to the backend to fetch the Area data and populate the area dropdowns.

Resources:
https://reactjs.org/docs/faq-ajax.html

/cib connect-area-management-to-backend

Branch 46-connect-area-management-to-backend created!


hal_espressif: update to include bugfixes

Added longjmp patch.
Fixes build warning in phy driver
Fixes runtime missing rom function.
Fixes missing mcuboot assertion implementation (https://github.com/zephyrproject-rtos/hal_espressif/issues/239)
Fixes #69179

Folks, PTAL.


Wont go past 10 Viewers?

I have Generated my own API
Used 2 Accounts to Generate Different API linked to different Twitch Accounts
Used 2 Commands with differnet API using 10  Different Verified Proxies in each script
Used 1 Command on Second PC and VPN and Used other command on First PC on normal IP address
Wont go Past 10 Viewers? Any fix for this?

Same problem, maybe it's because of twitch or the channel

Yeah same for me, anyone found a solution for that?

I'm closing this issue because the project is currently not maintained and it will unlikely to be resolved.
For more, please read this: https://github.com/ohyou/twitch-viewer/blob/master/README.md#project-state


Uninstallation process

Please provide information about how to uninstall particular SDK on Particular OS?

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

ID: 47d5789d-4edb-3d22-9a8a-fdad704b8384
Version Independent ID: c92f0188-38cb-c658-5f1b-e2a3ce2d34e9
Content: .NET Core SDK Overview
Content Source: docs/core/sdk.md
Service: dotnet-core
GitHub Login: @blackdwarf
Microsoft Alias: mairaw

I thought we already had an issue for tracking this work, but I couldn't find it. #4241 is related to this.
You're right @snehalsilicus, we should cover this in our docs.
/cc @KathleenDollard

I'll work on this one.
My Mac has so many versions on it, I need to clean it up. Lots to practice with. So much 🚮


feat: account balance quote estimates for bot's currently handling assets

Description
Shows up detailed assets value as quote current value.
See screenshot attached.
It supports multiple quote asset at the same time, e.g. ETHUSDT and DOGEBTC and AVAXBUSD, showing data properly.
Related Issue
It also fixes testing on #347, which currently fails tests due to missing test file implementation.
Motivation and Context
Having this info grouped up on the top panel is better than scrolling for all coins, and that gives you a quick look at your asset portfolio and how much is invested in quote amount for each asset.
How Has This Been Tested?
Tested on testnet, should be good also for live mode for sure.
Screenshots (if appropriate):

Thanks for PR @ilbuonmarcio
I will take a look later!


Filtering by tags

I think wandb needs a better way to use Tags.
The common use case could be this -- you have many bad runs, and a few good ones you want to compare against, so you want an easy way to label them/retrieve tagged runs.

Add ability to filter by Tag in the filter menu. Currently it's missing.

Add selector with popular tags at the top of runs overview. Clicking on a tag would work as a shortcut to filtering by that tag.

I think you can now filter by a specific tag, but it would be great to be able to filter by tagged (any tag) or the inverse, not tagged.

Hey @itssimon @yaroslavvb
I think wandb has imbibed this feature in the UI.

Here I have created the tag good and can filter the runs along with tags.
I hope we can close this feature request :smile:
CC: @cvphelps


Update to Typescript 5.1, drop Node 18

Fixes #37
Fixes #39

Will stay in draft until typescript-eslint gets update to remove this error:
=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <5.1.0

YOUR TYPESCRIPT VERSION: 5.1.3

Please only submit bug reports when using the officially supported version.

=============

Fortunately no major syntax changes, so prettier/IDE/etc support should be fine.

waiting on https://github.com/typescript-eslint/typescript-eslint/issues/6934

note: there is a bug in typescript 5.1.3 causing an OOM for typescript-eslint tests.  Will be fixed in Typescript 5.1.4, after which whenever a new typescript-eslint is released we'll be good-to-go.

Updated to Typescript 5.1.6 and the latest typescript-eslint, warning is now gone.


mgmt azure-json, migrate azure-resourcemanager-cosmos

Description
generated using the commit before their breaking change
manual code only for module-info.java: https://github.com/Azure/azure-sdk-for-java/commit/df0be041f8947753b9885f3937d32f1b3e827407
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


Left side is offset and right side is cut off

I forked sample sandbox given in the readme and generated pdf. But, texts got cut off and its was off the alignment.
I referred and added CSS properties to match a4 paper size and it rendered pdf. But, still there is a offset in the left side with white space and right side is cut off.

How could this be rectified so that the content is not lost.
Forked and edited sandbox Link
Forked URL

Sorry for the delay in the response, if that still matters at the moment, check with the newest releases (v1 for example) if the problem persists. Closing this but feel free to open another issue.


Adding client-attacker-full trace to the corpus of traces for tls13

Adding client-attacker-full trace to the corpus of traces for tls13

Will merge, adding this trace could lead to finding new interesting test cases


Rewrite

This is an almost complete rewrite of typst-test which aims to:

fix most of the current bugs
improve performance by reducing IO
allow doing things which were previously infeasible

TODO
Currently, most of the core implementation exists as disjunct components in the library crate, which need to be wired back together to reach feature parity with the original binary crate. There are a few things that I want to outline here to make sure they are implemented before I am done.

LIB

[x] running custom user hooks defined in the test configuration
[x] configuration reading
[x] default library augmentation (adding an error catching function for library authors)
[ ] collecting tests in parallel
I'm unsure whether ignore::walkdir works well in the presence of other parallel stuff like rayon, or if this could cause the actual library consumer to spawn a hilarious number of threads.

CLI

[ ] font loading
[ ] package downloads
[ ] environment control similar to typst#4227
[ ] fine-grained control over type of comparison
[ ] better diff image generation
[ ] intuitive interface for filtering tests

Issues

[x] resolves #12 by using typst directly as a crate
[x] resolves #14 by considering tests without references to be compile-only tests
[ ] resolves #16 by doing package downloads ourselves
[x] resolves #17
[x] resolves #20 by adding more granular control over comparison

The CLI is now implemented in terms of the new lib crate, compiles and successfully runs all tests for cetz.
It's currently reusing the lib crate's internal dev World impl, which is the next thing that has to be ported to the binary crate.

This is currently blocked on typst#4452, I want to avoid copying a bunch of code when it'll likely be available as a crate soon. This includes the recently copied font loading in ea3e19be1909035c217781bc2a13966b69640037.

This branch has no reached feature parity with the typst cli, i.e. font searching and package downloads.
There are a few issues that remain:

reporting is sprinkled all over the code base in a way I don't particularly like
project I/O operations are not yet locked, running typst-test in parallel means we can get incoherent states on disk and there are no commands that fix incomplete tests this at the moment
some things were copied verbatim from the typst cli, it remains to be seen if this is a problem, but it could help to identify where typst#4452 needs to be generic
testset expressions are undocumented
error reporting of testset expressions is not very good, this is likely a by product of how I defined the grammar
there are lots of breaking changes that will have to be documented


[CardActionArea] Fix overflow issue

Closes #13178
set 100% width in Card Action Area Component

@oliviertassinari Thanks . That's my first pull request. I am planning to contribute more as well till the end of the month, feel free to tag me :)


Add more templates for generating pdf

New templates for generating bank report and renting apartment contract are added.


fix: Increase one-column artwork grid item spacing

This PR resolves ONYX-875
Description
Increase one-column artwork grid item spacing.
PR Checklist

[ ] I have tested my changes on iOS and Android.
[ ] I hid my changes behind a feature flag, or they don't need one.
[ ] I have included screenshots or videos, or I have not changed the UI.
[ ] I have added tests, or my changes don't require any.
[ ] I added an app state migration, or my changes do not require one.
[ ] I have documented any follow-up work that this PR will require, or it does not require any.
[ ] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

Warnings

:warning:

❌ An error occurred while validating your changelog, please make sure you provided a valid changelog.

  Generated by :no_entry_sign: dangerJS against 169551e8dcc9f4857af0c398edbcca014e2857d7


On/off toggle in lists for switches and lights

To me switching many lights/switches on or off felt quite tedious: Going to a list, pressing the entity to go to its page, pressing the toggle button there, then navigating back to the list to go the next entity. I added the toggle buttons directly to the entries in the lists by creating new type-specific list views.
I still see two problems with the changes proposed here and like to hear your opinion:

There is much code duplication. It would be nice if commonly used QML parts could be refactored into a common list view. I have nearly no experience with QML and would like to hear suggestions on how to achieve that.
The vertical placement of the new list entries looks a little bit off, especially in direct comparison with the old ones. Maybe the height of the TextSwitch could be decreased somehow.

Lights list, German locale, before and after this PR:

Switches list, German locale, before and after this PR:

In 0.3.0 release you can toggle switch or light in list view by pressing the icon.
Hope this is what you want.
I will close this pull request.


add job logs for CI

Coverage increased (+0.008%) to 54.837% when pulling e4b2ecb40998384e25fbc2a84a8bdb1dbdfb9491 on wy65701436:update-drone into 1a71b13591d33701b2b6bf1c78fde48c4e6be7f6 on vmware:master.


Fix interface targets that do not have libraries

This is to address issue #1006

It looks travis passed on 2.7 but for 3.4 it was unable to download something it required.

@Levi-Armstrong Please rebase your branch against the latest state of the target branch in order to pass CI.

@dirk-thomas I just rebased the branch.

Thanks for the patch.
Please use the following phrase in the future when referencing the issue a PR addresses since it will make sure the ticket gets closed automatically when the PR is merged:

Fixes #1006


Bulletproofs

On October 18th, Monero will hard-fork to support bulletproofs. Similar to the previous ringCT hardfork, transaction libraries like xmr-core will need to be updated to support the new transaction format introduced.
Countdown to hardfork for reference: http://xmr.noctism.com/

I could implement Bulletproofs, ut it would be great to have sc_inv() implemented meanwhile, i.e. scalar modular inversion (mod curve order).

Why don't you use mymonero-core-js? We already transpile the bulletproofs code.

@paulshapiro I was looking for BP support in the repo but I only found https://github.com/mymonero/mymonero-core-js/blob/37c86c23e09f11742108e7f246fe8992082f18e0/cryptonote_utils/cryptonote_utils.js#L1894
I was wondering how emscriptem generated files were generated. Is there any info about it? Where is the source and command line to do it? I would either add sc_mul, sc_inv primitives to the emscriptem generated files and implement BP in the JS (as are Borromean range proofs right now) or transpile it as a whole. Thanks

@ph4r05 that's verRct written in JS from the old mymonero-core-js, not the create tx function in the Monero C++ which then gets transpiled to wasm in the new mymonero-core-js. Check https://github.com/mymonero/monero-core-custom/blob/e089dec813e7c9b51b8ded08bf8017e0395c4155/cryptonote_core/cryptonote_tx_utils.cpp#L604
We then merely need to re-enable the boolean flag to turn it on or off from the client-side, or, probably better, we just update the fork rules to turn it on.
The source and command to do it? I haven't merged develop into master yet so it's on mymonero-core-js:develop. Here was the PR for who missed it. Emscripten works through cmake so check the CMakeLists.txt and bin/archive-emcpp.sh. You also need to build boost yourself, for which instructions exist in the mymonero-core-js develop branch readme. You don't need OpenSSL because we (i.e. Monero project) replaced the sc_inv with a manual implementation.
However the mainline bulletproofs code has received some minor changes so I will merge those soon.
All of this work is just to get building in your dev env, but the work that xmr-core would need in order to have bulletproofs support ledger is as I've described briefly in this reddit post: https://www.reddit.com/r/Monero/comments/9hqmm4/i_love_xmr_but_storing_it_is_a_btch/e6e0v3j/
i.e. even though Monero mainline has Ledger (hwdevice) support, as thus does this transpiled code, the transport etc code still exists in JS, so we need to hook into it from a new hwdevice.
I don't want to say it might be best for me to spearhead this but that may be most efficient. In any case we can freely collaborate on github or if you would like to drop into #mymonero on freenode IRC I think it would be beneficial for the other people who have been following developments as well.

By the way here's the bridge for calling create transaction from JS/emscripten (or whichever other binding you would like) https://github.com/mymonero/mymonero-core-cpp/blob/master/src/serial_bridge_index.cpp#L501
You can ignore the comment about taking the tx sec key as an arg - that was prior to ensuring proper rand gen via an emscripten PR.

All this stuff gets tested as well, e.g. https://github.com/mymonero/mymonero-core-cpp/blob/master/test/test_all.cpp#L323 , which you can run like this if you'd like https://github.com/mymonero/mymonero-core-cpp/blob/master/bin/buildAndRun_tests
That way we can ensure the C++ works first and simplify JS testing

@paulshapiro wow, thanks for the valuable information! I will go through it and get back later.
So I leave Bulletproofs and focus on my primary interest now - Trezor integration.

@ph4r05 Cool - Trezor integration would be sweet too, especially since they seem to be close to release.
Are you planning on integrating Trezor into mymonero-core then? If so, it would be worthwhile to hit Ledger as well, since their device is already working with Monero today.
I still think there are some advantages to porting bulletproofs to xmr-core, since you get the benefits of type safety via typescript, as well as a working ledger implementation already.
Really cool to see more contributors on this!

@dternyak regarding the Bulletproofs after giving it a second thought I think it is better to have it implemented in web assembly as it will be significantly faster rather than having it implemented in JS. JS implementation could be nice for educational purposes but for practical use wasm implementation is better.

I believe this repo should be kept going since it contains a better-organized codebase and has the main features implemented in JavaScript. Having implementations in JS will open up Monero to more JS developers rather than asking them to work with a C++ transpiled codebase. The wasm approach of MyMonero is great for short term productivity but not good for community growth IMHO

I like this repo and the JS Monero codebase too. But it needs someone taking care of this for a long time. Because of this I personally think the wasm approach is more sustainable as Monero C++ codebase is in a long-term active development and maintenance costs for wasm port are lower.
Anyway, I have already ported Bulletproofs to Python in https://github.com/ph4r05/monero-agent/blob/master/monero_glue/xmr/bulletproof.py
If somebody manages to make sc_mul, sc_muladd available I could at some point port Bulletproofs to JS as well. It is useful at least for educational purposes.

@ph4r05 I think it's also useful for the immediate availability of Ledger web wallet support, but I do see your point about piggybacking on the development of the C++ codebase.

@ph4r05 Current crypto ops at the moment are not implemented in pure JavaScript and are being called from this emscripten file. I was thinking maybe with having a well tested int64_t and uint64_t data types implemented here we can re-implement most of the crypto ops functions including sc_mul and sc_mul_add in pure JS. I can help with the heavy lifting of doing same operations in JS but I need help with testing since my foundations are weak and don't really understand all these numbers in the original monero implementation 😩

@p0o the crypto operations could be also implemented using just 32bit numbers but I think this pure JS crypto backend would make implementation unusable due to performance penalty.
I like the emscriptem / wasm approach with the low-level crypto stuff. I don't know how was the file generated and how to re-generate it so it includes Bulletproof needed operations.

@ph4r05 do you have any benchmark or estimation that how bad the JS implementation could be? AFAIK the emscripten approach with compressed/uglified code can have CSP implications for more restrict environments like chrome extensions.

@p0o A few things to clarify..

I dont know running wasm in chrome extensions myself but the CSP requirements for loading wasm (unsafe eval) are something that Chrome, Mozilla, et al have been working on (there are a number of articles and github threads about it) and which the entire ecosystem is subject to. There are plans for how to address it, e.g. unsafe-wasm rather than full eval.

The emscripten approach is not to "compress/uglify". The emscripten JS module code just some basic JS for wrapping devices etc. I would recommend reading up a bit on how emscripten and binaryen work as they're not compressing/uglifying but compiling C/C++/Rust etc using an llvm front end which the browser directly executes. No one reads compiled wasm.

Benchmarking the JS implementation sort of misses the point. Wasm is bound to be faster with really optimized code anyway. You would have to handwrite bulletproofs in JS in such a way not only to support all the multiexp etc other modifications that are being done to it, but you would have to fine-tune it to meet similar optimizations done in the Monero src, llvm, and browsers.

@paulshapiro just one thought on point 3 - you don't actually need Straus / Pippenger multiexp optimizations on the user wallet side. On Trezor we dropped it as it does not bring that significant speedup considering the RAM overhead. User wallet does not need to perform blockchain bulletproof verification so the implementation similar to what I did in Python would work.

Just for the record I myself don't actually think bulletproofs construction is really that performance sensitive here anyway. It could take 300ms and the user would barely notice.

@ph4r05 gotcha

@paulshapiro my bad for using the word uglified but based on a recent blog post from Google as far as I understood a file like this would face auditing problems for chrome web store. Also, the trust factor plays a role here since no one really knows what's happening in that kind of code. WASM tho should be fine.
I get the point about challenges for JS implementations but as a person with more app development experience than Crypto experience, I think we can't see Monero adaption through apps if we don't have a fully working implementation with JS. Developers need to read the code to know what they can do with it.

the trust factor plays a role here since no one really knows what's happening in that kind of code. WASM tho should be fine

There's the potential for reproducible builds and signing, and the browser runtime literally steps through the instructions... that's basically like saying that we don't know what's happening in compiled code... hm, did you read how emscripten works?

as a person with more app development experience than Crypto experience

Same boat!

I think we can't see Monero adaption through apps if we don't have a fully working implementation with JS. Developers need to read the code to know what they can do with it.

I don't see how that follows or how the premise that devs can't see the code is accurate. All the code is laid out in JS and C++. The bridge code is extremely simple and quite sufficiently performant. And we also have source mapping analogues on wasm. I myself have obviously made considerable inroads into it (and might I add, development didn't take place through the emscripten build process? there are boost tests for these things), so the conclusion that devs can't know what they can do with it frankly doesn't seem to follow, to me.
Besides, it's not obvious that it's actually sustainable for app developers to have to reimplement their own cryptographic schemes in isolation rather than attempting to use standards and existing battle tested implementations (a big no-no in security software). A quick survey of Monero app devs will quickly turn that up. This not simply a matter of whether to implement a singular new scheme (bulletproofs). It's a matter of whether to build all of the crypto yourself and who is going to actually keep up with the updates and audit it.
Anyway, I don't see a reason why I should have to discourage anyone from implementing bulletproofs in their language of choice, so please feel free, it's not like I could ask you to spend your time on hooking up existing hw device support in mymonero-core-js instead! Let me know if you find out someone ends up writing it, hey? I'd be interested in looking at it.
By the way @p0o what plugin are you working on?


Move all the stream classes out of scramjet-core

The stream classes are currently extended in scramjet and the base resides in scramjet-core. This situation is quite bad for any new release which rarely changes the actual core class PromiseTransformStream.
This issue is to move all the stream base classes to scramjet repo and leave only PromiseTransformStream and utility classes in scramjet-core.

Still in progress...


Added icon for dev environment

Resolved / Related Issues
Items resolved / related issues by this PR.

For #6933
Related #issue...

Details of Changes
Add details of changes here.

Added...
Fixed...

Validation
How did you test these changes?

[x] Built and ran the app
[x] Tested the changes for accessibility

Screenshots (optional)
Add screenshots here.

/azp run

@BanCrash this is ready now

@yaichenbaum did it work the powershell script for you? I have to use this modified line in order to replace the Assets:
(Get-Content $_ -Raw | ForEach -Process {$_ -replace "Assets\\AppTilesDev", "Assets\AppTiles"}) | Set-Content $_ -NoNewline
(The change is that I've added an extra backslash on Assets\AppTilesDev because without that it wasn't working for me)
Also, is there any way to test within the pipeline? I manually tested using the powershell script modifying the $(Build.SourcesDirectory)\src part in order to get it to work in my local machine but I don't know if there is any way to test it directly from the pipeline.

@yaichenbaum did it work the powershell script for you? I have to use this modified line in order to replace the Assets: (Get-Content $_ -Raw | ForEach -Process {$_ -replace "Assets\\AppTilesDev", "Assets\AppTiles"}) | Set-Content $_ -NoNewline (The change is that I've added an extra backslash on Assets\AppTilesDev because without that it wasn't working for me)
Also, is there any way to test within the pipeline? I manually tested using the powershell script modifying the $(Build.SourcesDirectory)\src part in order to get it to work in my local machine but I don't know if there is any way to test it directly from the pipeline.

@BanCrash the easiest way to test is to download the artifact from the pipeline and extract the pacakge to inspect the assets.


Provide a way for plugins to know if they're being run for the first time

It would be useful in many cases for plugins to know

If they're being run for the first time after being installed (so they can do things like create folders, set up files, check dependencies, etc).
If they're being run for the first time during the current session (so they can avoid triggering periodic effects before the user expects them, and to let the plugin know it should reset any state variables that it might be keeping on disk)

you can create some hidden file to determine if you run for first time (non exist -> first time)
what you mean by "current session"?

Yes, that's true about the first run ever part.
By "first time during the current session" I mean the first time BitBar runs each script after being started up.

@shepazon interesting idea. Can you explain a little bit about why this would be useful in your case?

In my specific case, I'm creating a plugin that's part of a multi-script bundle of code to manage corporate network VPN connections. The BitBar plugin's purpose is to show the current up/down state of the VPN, provide statistics about the connection in grey items in the menu (connection duration, how long until you get automatically cut off, etc), and Connect/Disconnect options.
The "First time ever" scenario would be useful because I could use that to automatically install all the scripts, binaries, packages, and LaunchAgent plist files needed to support things. That would let the BitBar plugin basically handle it all, instead of needing a custom installer like I have now that installs the BitBar plugin, creates the directory the binaries go into, downloads needed packages, etc.
Having a "First time for this version of the plugin" event/notification/signal would let me check to see if the tools are up to date, but only if necessary, saving some time during startup. It would also let me do things like update the format of configuration data as needed, and that kind of thing, if necessary (there's no need for it as things stand but I could see it in the future).
Both of those would also let me do things like handle any needed LaunchAgent setup that needs doing.
Having a "First time since BitBar started up" would let me do things like launch needed background tasks, and that kind of thing. I don't have to launch them on subsequent runs of my script, since those tasks are already running after the first pass.
Yeah, there are ways around some these, either by simulating these events using things like a marker file that I can create/delete to indicate first-run scenarios, but that can be pretty fragile. Having a proper mechanism to make my script aware of which scenario is the case would be very useful.
I can think of many other ways they would be handy, but you asked for my specific case. :)

Having a "First time since BitBar started up" would let me do things like launch needed background tasks, and that kind of thing. I don't have to launch them on subsequent runs of my script, since those tasks are already running after the first pass.

I think in this case it will not help you. I can quit bitbar and run it again and your services and tasks will be already running. Try determine if your tasks are running in different way. I think it is better and safer way.
And first time for this version of the plugin. I think Bitbar doesn't known version of the plugin (yes it does when you provide it, but it is not mandatory) better is write down version to hidden file/user defaults, and compare when your script is called by bitbar and do migration if you need.
I am not developer of bitbar only i do some plugin where i solve similar problems so this is my point of view.

I am going to chime in here and see if anyone has a way to do this yet. In my case I've developed a plugin that detects if the macbook is docked or not based on the presence of an external monitor. If I find the monitor then I run 1 set of commands but if I don't find it I do a different set of commands.  But I don't need to run either set of commands but 1 time after switching from docked to undocked or vice verse.
I would like to initialize the icon with details and populate my status text file on the initial loading of the plugin. Then subsequent refreshes could detect if the current docking status is the same as the previous status there is no need to rebuild the menu nor execute any actions.
If I have undocked the macbook then the next script execution should detect that and run my commands and reset the status as "undocked". Subsequent refreshes after that do not need to do anything until the status changes to "docked" again.
Is there anyway to do this through variables perhaps?


Change homepage image

Use an image and a couple gradients instead of freezing the whole animation thing.

@nl32 @KennethImphean what do y'all think?

I really like the more saturated colors on the gradient.


Fix documentation about "Multiple registries"

I added the ability to publish to multiple registries (#303), but unfortunately I made a mistake in the documentation :confused:.
I tested pipeline with an image thegeeklab/drone-docker-buildx@sha256:4ae2aa1ebd0150e6c32533238c304221ca0dcc2c02710b12f9facd565d439364 and released that the settings section as a environment section "cannot expand environment variables or evaluate shell expressions".
So I propose two ways to use the "registries" option with secrets:

using "export PLUGIN_REGISTRIES..." in the commands section with the option to separate the credentials in different secrets (now i use like this);
storing all data in one secret in the required format;

I have described examples of configurations, but perhaps more text description is required.

In that case, I'm going to revert the PR. Drone does not support nested plugin settings very well. There is already a way to use multiple registries at once by passing a custom docker config  that can contain login information for multiple registries. However, I've already started to migrate to Woodpecker CI. As I will not use Drone in the future anymore I will also archive the Drone plugins.


Safely dereference Ptr<_> in Rust

It is due to the fact that PtrOf* cannot be de-referenced in rust as Ptr<_>::get()  in C++. This patch adds deref_mut(&mut self) methods to PtrOf* types to allow users to obtain the ref to inner value. It applies guard pattern to guarantee that the de-referenced value never outlives PtrOf* itself.
Due to the assumption that all OpenCV derived structs are of form ClassName { ptr }, it uses guard pattern instead of direct implementation of DerefMut on PtrOf* types.

In combination with #85, the follow snippet compiles.
let mut parameters = DetectorParameters::create()?;
parameters.deref_mut().set_marker_border_bits(2)?;

This should eventually make #84 work.

Thanks a lot, I missed this part when I was improving trait model. Code looks good, but the following test fails for me:
	let mut det = DetectorParameters::create()?;
	assert_eq!(0., det.get_mut().adaptive_thresh_constant()?);
	det.get_mut().set_adaptive_thresh_constant(7.)?;
	assert_eq!(7., det.get_mut().adaptive_thresh_constant()?);

The last property read returns 0. instead of 7.. I'm investigating it, but maybe you could take a look at it too.

I deleted my comment, these tests failing because they were trying to read uninitialized memory.

Just add the test. The default values of DetectorParameters is stable on my laptop. I checked the source code and is sure that DetectorParameters::create() did initialize the values. So @twistedfall you might encounter another issue.
A little glitch is that the default of DetectorParameters.perspectiveRemovePixelPerCel is inconsistent with doc. I filed an issue on stream.

Thanks for your work! Merged and published 0.29.2

Unfortunately, this implementation is not sound. ManuallyDrop implements DerefMut which allows to mem::replace the value out which leads to double-free. Example code:
let mut a = DetectorParameters::create()?;
let mut ptr = a.get_mut();
let b = DetectorParameters::default()?;
let c = std::mem::replace(&mut *ptr, b);

After that both a and c will be pointing to the same object and they will be both dropped (and will free the internal pointer) at the end of the scope. I can't think of an easy fix for that. So for now let's leave the current implementation. And in the new bindings generator I'll rework the way classes are generated (more trait-heavy) and that will allow to call setters and getters directly on PtrOfDetectorParams.

The issue is to prevent the pointer from being moved or replaced. May the std::pin::Pin be what we're looking for.


[SPARK-33908][CORE] Refactor SparkSubmitUtils.resolveMavenCoordinates() 's return parameter

What changes were proposed in this pull request?
Per discuss in  https://github.com/apache/spark/pull/29966#discussion_r531917374
We'd better change SparkSubmitUtils.resolveMavenCoordinates() 's return value as Seq[String]
Why are the changes needed?
refactor code
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existed UT

FYI @xkrogen @maropu @dongjoon-hyun

Test build #133364 has started for PR 30922 at commit c93f585.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37955/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37955/

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

Looks fine otherwise if the tests pass.

Test build #133378 has started for PR 30922 at commit 4d88496.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37969/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37969/

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

Test build #133378 has finished for PR 30922 at commit 4d88496.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

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

Test build #133364 has finished for PR 30922 at commit c93f585.

This patch fails from timeout after a configured wait of 500m.
This patch merges cleanly.
This patch adds no public classes.

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

retest this please

Test build #133384 has started for PR 30922 at commit 4d88496.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37976/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37976/

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

Test build #133384 has finished for PR 30922 at commit 4d88496.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds no public classes.

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

retest this please

Test build #133390 has started for PR 30922 at commit 4d88496.

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

Test build #133390 has finished for PR 30922 at commit 4d88496.

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

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

Gentle ping @maropu

Merged to master.


Adding a CloudScript test to WindowsSDK.

This test discovers that CloudScript calls are incomplete in the last decode step.
This bug has been filed for a future date: PFICEBOX-566.

See Melissa's comments in:
https://github.com/PlayFab/SDKGenerator/pull/39


[New port request] [Netscape Portable Runtime] NSPR

Netscape Portable Runtime (NSPR) provides a platform-neutral API for system level and libc-like functions. The API is used in the Mozilla clients, many of Red Hat's and Oracle's server applications, and other software offerings.
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR/NSPR_build_instructions
Windows deps:
MOZILLABUILD \ MOZTOOLS
https://ftp.mozilla.org/pub/mozilla/libraries/win32/

If you wish to add this port in the future, you can reopen this issue, but we're closing it for now.


Option to downscale?

Realized its not working. Settings the custom resolution to something greater than your monitor size and settings the screen to borderless makes the screen only fill for the resolution of the screen while everything else gets out of bound of the resolution eg. only 1/4 of the game is shown if you set the custom resolution to 4K but have a 1080p screen.
Any way to make it possible output 4k in a 1080p screen size?

The downsampling works in my PC while using exclusive fullscreen. Using borderless fullscreen makes the image appear cropped.

This is correct, you'll have to use fullscreen mode for downsampling with DSR/VSR or a higher than native resolution.


libx11-dev installed but missing ?

Hi, I am working on a Mac OS X 10.12.6 machine. I managed to install XQuartz from the official website. However post installing dlib (using Homebrew) and trying to run the new MMOD CNN Face Detection (using g++ and c++-11 support), I get the following error.
/usr/local/include/dlib/gui_core/gui_core_kernel_2.h:11:2: error: "DLIB_NO_GUI_SUPPORT is defined so you can't use the GUI code. Turn
      DLIB_NO_GUI_SUPPORT off if you want to use it."
#error "DLIB_NO_GUI_SUPPORT is defined so you can't use the GUI code.  Turn DLIB_NO_GUI_SUPPORT off if you want to use it."
 ^
/usr/local/include/dlib/gui_core/gui_core_kernel_2.h:12:2: error: "Also make sure you have libx11-dev installed on your system"
#error "Also make sure you have libx11-dev installed on your system"
 ^
2 errors generated.

I managed to go through all the links on the first page of Google search results but found no answers that work. Most of them suggest installing XQuartz and Dlib from scratch, which I did multiple times with no success. Can someone share some insight as to what what is happening ? Is my dlib installation unable to find libx11-dev ? If so, how do I correct it ?
Thanks in advance.

Don't use homebrew.  Whatever copy of dlib is in homebrew is configured to
not use X11.

Thanks. Downloading and following the instructions in the README worked.

Thanks. Downloading and following the instructions in the README worked.

Could you tell me how did you add the libraries in Xcode if you didn't use the ones from Cellar/Homebrew?
Thanks!


Improve containerized-build

Download dependencies in container to avoid glide installation
on host machine.

this change is almost twice as long, 20 min master, 39 min current branch

why do you want to remove glide from host system?

There was a mistake in Makefile. We don't actually want to remove glide from host system. We just want to make an option to build binaries in docker container with minimal dependencies on the host system.


DevOps Dojo: ROS Node Launch (Phase 1)

Checklist

[X] I've read the contribution guidelines.
[X] I've searched other issues and no duplicate issues were found.
[X] I've agreed with the maintainers that I can plan this task.

Description
DevOps: ROS Node Launch will address the topic of how ROS nodes are launched. Guidelines, documentation and changes to configuration files will be made, based on best-practices from cloud-native and software defined development methodologies.
Phase 1 - Motivation

Add link

Phase 2 - Definition

Add link

Phase 3 - Execution

Add link

Phase 4 - Integration

Add link

Purpose
Phase 1 - Motivation:

clear purpose

...

outline proposed work item

...

identify beneficiaries, stakeholders and shareholders

Autoware developers

consistent and rigid launch files

Users who deploy Autoware

ease of changing the launch pipeline to suit user's need

Possible approaches
Involve the Autoware community to understand current deficiencies.
Definition of done
Phase 1 is considered complete once satisfactory motivation has been outlined.

Find discussion here: https://github.com/orgs/autowarefoundation/discussions/3425

Fatih is working on a launch unifier:

https://github.com/orgs/autowarefoundation/discussions/3881


Code Questions

Hello, I have a few questions about the code, and I hope to receive your answer. First, I didn't understand where the SDGA code started.

Secondly, from models import meshnet, posenet, I didn't see these two modules in models. Looking forward to your reply, thank you.

@kasvii

Thank you for pointing out this. The old code was incomplete. We have collated and reuploaded the full code.

SDGA is here
The 'meshnet' and 'posenet' were the old names of MDR and GAT, respectively. And we have corrected them.

Thank you for your reply.

Hello, what do these two sentences of code mean?
shortest_path_result = np.load('./data/base_data/shortest_path_h36m.npy')
path = np.load('./data/base_data/path_h36m.npy')
The dataset does not contain a shortest_ path_ H36m. npy and path_ h36m.npy

@kasvii

The 'shortest path results' denotes the hop distances between joints. And the 'path' records the path information from one joint to another. Here shows the illustration. They are pre-processed from the skeletons, which are used to calculate the hop and path encodings. You can get them from the uploaded base_data.

Thank you for your reply.

Hello, I have a few questions about the code and hope to receive your response. First, shortest_ path_ result = np.load('./data/base_data/shortest_path_3dpw.npy')
path = np.load('./data/base_data/path_3dpw.npy')。 base_ Two data files not mentioned in data, such as shortest_ path_ 3dpw.npy and path_ 3dpw.npy。 Do I have to handle this myself? Second, calculate edge_ Input mentions edg_ Adj, but calculate edg_ Adj requires a template_ joint，J_ regressor，init_ vertices，SMPL_ MEAN_ vertices。
J_ What does a register mean and how to obtain it.
Why use smpl_ mean_ Vertices.npy Calculate init_ vertices 。
I hope to receive your reply.

Hello, introduce graph structure information into the attention mechanism. Will adding structural information to the attention score make the model unable to train? I found that as long as the attention score model is modified, it cannot be trained. May I ask what is going on? Looking forward to your reply, thank you.

Our model has added two kinds of structural information, i.e., hop and path. And it can be trained.

Thank you for your reply.


libmwaw: enableParallelBuilding

Motivation for this change
It compiles sooo slowly.
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Has anyone checked LibreOffice compilation afterwards just in case?

LibreOffice builds and runs.


"Registrieren" (german) button text is not fitting in one line in Login/Register

Fixed with pr #121

fixed


Chart Responsiveness

Version
4.4.0
Steps to reproduce
My chart is not reponsive when i zoom the page in browser by using the short cut ctrl   scroll. Please help
What is expected?
Should be responsise
What is actually happening?
Not responsive

Please call chart.resize when the size of the DOM container is changed.


refactor plotting programs

Goals:

Each plotting program must work on the command line, in a notebook, and in tests.
Each command line program should have main() function that is only for the command line logic, and calls an ipmag function that does the calculation.
Each program should return a list of saved files.
Each program should be able to take a contribution/pandas dataframe argument instead of reading in a data file.

Note to self:  I will need to go back and fix PmagPy-cli.ipynb when this is done, but I don't want to do it in a branch as that will just lead to chaos and pain.

These programs should all have an option to only plot the first n plots....

Next task:  go through alphabetically using PmagPy-cli and make sure that each plotting routine works in all 3 desired ways (command line interactive, save plots, and in notebooks).

ani_depthplot -- DONE
aniso_magic -- probably can just refactor to use aniso_magic_nb

can we recombine aniso_magic to use aniso_magic_nb?  and then get rid of aniso_magic_nb?
lisa

On Mar 1, 2019, at 3:23 PM, Lori J<EMAIL_ADDRESS>wrote:
ani_depthplot -- DONE
aniso_magic -- probably can just refactor to use aniso_magic_nb
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/PmagPy/PmagPy/issues/424#issuecomment-468845952, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKrDT2RmAPh6yd_BzmT6RWkE6tDi3YNks5vSbZzgaJpZM4WCSgC.

@ltauxe -- yes, I'm going to try to do that on Monday :)

@ltauxe, I know you have a few things on your plate, but could you check out my implementation of aniso_magic_nb into aniso_magic.py?  You will need to call it with the -new flag.  Let me know what, if any, changes are needed.

Goals:

Each plotting program must work on the command line, in a notebook, and in tests.
Each program should return a list of saved files.
Each program should be able to take a contribution/pandas dataframe argument instead of reading in a data file.

Plots:

ani_depthplot : DONE (except for item 3)
aniso_magic : DONE (but have not yet removed -new flag or renamed to ipmag.aniso_magic, pending @ltauxe's check, and item 3)
biplot_magic : plots different columns against each other in MagIC formatted data files
chi_magic : plots magnetic susceptibility data in MagIC format as function of field, frequency or temperature
common_mean : graphical approach to testing two sets of directions for common mean using bootstrap
core_depthplot : plots MagIC formatted data
curie : makes plots of Curie Temperature data and provides estimates for Tc
dayplot_magic : makes Day et al. (1977) and other plots with hysteresis statistics
dmag_magic : plots remanence against demagnetization step for MagIC formatted files
eqarea and eqarea_magic : makes equal area projections for directions
eqarea_ell : makes equal area projections for directions with specified confidence ellipses
find_ei : finds the inclination unflattening factor that unsquishes directions to match TK03 distribution
fishqq: makes a Quantile-Quantile plot for directions against uniform and exponential distributions
foldtest & foldtest_magic : finds  tilt correction that maximizes concentration of directions, with bootstrap confidence bounds.
forc_diagram: plots FORC diagrams for both conventional and irregular FORCs
hysteresis_magic : makes plots of hysteresis data (not FORCs).
irm_unmix : analyzes IRM acquisition data in terms of coercivity distributions
irmaq_magic : plots IRM acquistion data
lnp_magic : plots lines and planes for site level data and calculates best fit mean and alpha_95
lowes : makes a plot of the Lowe's spectrum for a geomagnetic field model
lowrie and lowrie_magic : makes plots of Lowrie's (1990) 3D-IRM demagnetization experiments
plot_cdf and plot_2cdfs : makes a cumulative distribution plot of data
plotdi_a : makes equal are plots of directions and their $\alpha_{95}$s
plot_geomagia : makes plots from files downloaded from the  geomagia website
plot_magic_keys : plots data from MagIC formatted data files
qqplot : makes a Quantile-Quantile plot for data against a normal distribution
qqunf : makes a Quantile-Quantile plot for data against a uniform distribution
revtest & revtest_magic : performs a bootstrap reversals test
thellier_magic : makes plots of thellier-thellier data.
watsons_v : makes a graph for Watson's V test for common mean
zeq and zeq_magic : makes quicky zijderveld plots for measurement data

Maps:

cont_rot : makes plots of continents after rotation to specified coordinate system
plot_mag_map : makes a color contour plot of geomagnetic field models
plot_map_pts : plots points on maps
polemap_magic : reads in MagIC formatted file with paleomagnetic poles and plots them
vgpmap_magic : reads in MagIC formatted file with virtual geomagnetic poles and plots them

We're done with this for now.


elasticsearch 6.8.3 won't start after OpenJDK update

After the most recent OpenJDK update for RHEL/Rocky the elasticsearch version installed with meza will not start. This issue was discovered when trying a fresh meza install on Rocky 8.7.
Here are the versions in question:
meza commit c47cec from https://github.com/djflux/meza/35.x-rhel8
rocky-release-8.7-1.2.el8.noarch
elasticsearch-6.8.23-1.noarch from https://artifacts.elastic.co/packages/6.x/yum
java-1.8.0-openjdk-<IP_ADDRESS>2.b08-2.el8_7.x86_64
Here are the relevant log messages from /opt/data-meza/elasticsearch/log/meza_cluster1.log
[2023-01-10T15:45:41,598][ERROR][o.e.b.Bootstrap          ] [meza_node_1] Exception
java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.xpack.core.XPackPlugin]
	at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:616) ~[elasticsearch-6.8.23.jar:6.8.23]
...
Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "/etc/pki/java/cacerts" "read")
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[?:1.8.0_352]

Looks like a JDK policy changed the ability to read cacerts.
This elasticsearch discussion thread provides a suggested resolution:
https://discuss.elastic.co/t/elasticsearch-is-incompatible-with-new-versions-of-openjdk-from-redhat/318928/7
ACTION: automate resolution in meza ansible.
The long-term fix is to update meza to MediaWiki 1.39.x and a newer version of elasticsearch. Will open a new issue for this one.

Commit 6d87712 resolves this issue.


Deployment Job

Why do you "we recommend that you put your deployment steps in a deployment job."? Is it because you then can rerelease a release? Or? We need more clarification on this, i think.

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

ID: 7458d5b2-1bb7-7d87-7ce6-2b0c430b0155
Version Independent ID: edf5bbd3-a3f0-5426-e985-31290f8afd05
Content: YAML schema - Azure Pipelines
Content Source: docs/pipelines/yaml-schema.md
Product: devops
Technology: devops-cicd
GitHub Login: @steved0x
Microsoft Alias: sdanie

@mslot Thank you for your feedback. A deployment job is a special type of job that's a collection of steps, which are run sequentially against the environment.
Deployment jobs provide the following benefits:

Deployment history: You get end-to-end deployment history across pipelines, down to a specific resource and status of the deployments for auditing.

Apply deployment strategy: You define how your application is rolled out.

You can find more details about deployment jobs here

@mslot Thank you for your feedback. A deployment job is a special type of job that's a collection of steps, which are run sequentially against the environment.
Deployment jobs provide the following benefits:

Deployment history: You get end-to-end deployment history across pipelines, down to a specific resource and status of the deployments for auditing.
Apply deployment strategy: You define how your application is rolled out.

You can find more details about deployment jobs here

The "rerun" stage is very well hidden in the UI. That was why I couldn't find it:

you need to describe in docs that you have to hover over the right top corner and push this icon


expose YAML parsing information [new feature]

Would be nice if this library could expose intermediate methods for working with the parse tree -- in particular text offsets for model items (including malformed) and comments.
This would allow an API user to edit model content while maintaining a YAML source in synch bidirectionally, with comments and unrelated whitespace preserved.  Also if YAML is malformed in places, the errors could be limited to those sections while nicely handling other sections.  snakeyaml is a nice implementation of this (in Java).
I appreciate that this is a significant addition to the scope of this project but I think this is the most complete JS YAML implementation so I'm interested if it's on the roadmap or all or if not whether there might be appetite for it.

That's impossible with current architecture and is not on roadmap, sorry.

Darn!  :)  Thanks.

@puzrin a state.listener proved a very simple addition sufficient to enable a caller to get the parse tree.  it's low-level but would be really useful for us if you'd consider it!
PR'd in #249.
Just 3 lines of actual code, plus several tests.

I tend to accept it, see comments in PR - some polish needed.
Note, that current architecture was optimized for speed - that's why it may look strange (compared to official yaml parser approach). I think, it can be improved, but experiments require too much of time.


Openapi.json does not support pydantic v1 and pydantic v2 at the same time

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
I am using FastAPI 0.110.3 and pydantic v2.7.1. Previously I used pydantic v1 and am planning to migrate to pydantic v2. But I have a problem that FastAPI cannot declare 2 api at the same time using BaseModel of pydantic v1 and pydantic v2.
I did some research and found out that pydantic v1 uses openapi.json 3.0 and pydantic v2 uses openapi.json 3.1, so I think the two versions of openapi.json conflict with each other.
I can't migrate the entire pydantic v1 code to v2 at once because it would take a lot of time and I can't release new features of the project, so I want to use pydantic v1 and v2 in parallel, and migrate slowly. pydantic code v1 to v2.
Error received
raise PydanticInvalidForJsonSchema(f'Cannot generate a JsonSchema for {error_info}')
pydantic.errors.PydanticInvalidForJsonSchema: Cannot generate a JsonSchema for core_schema.PlainValidatorFunctionSchema ({'type': 'with-info', 'function': <bound method BaseModel.validate of <class 'main.Foo'>>})

Example Code
from typing import Union
from fastapi import FastAPI
from pydantic import v1 as pydantic_v1
from pydantic import BaseModel

app = FastAPI()

class Foo(pydantic_v1.BaseModel):
    message: str

class Bar(BaseModel):
    message: str

@app.post("/foo")
def read_item(data: Foo):
    data = data.dict()
    return {"message": data['message']}

@app.post("/bar")
def read_item(data: Bar):
    data = data.dict()
    return {"message": data['message']}

# Run the server with: uvicorn main:app --reload

Python, Pydantic & OS Version
pydantic version: 2.7.1
pydantic-core version: 2.18.2
pydantic-core build: profile=release pgo=true
install path: /home/kietpham/python/pydantic/venv/lib/python3.10/site-packages/pydantic
python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
platform: Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.35
related packages: fastapi-0.110.3 typing_extensions-4.11.0
commit: unknown

Library version from pip freeze:
annotated-types==0.6.0
anyio==4.3.0
click==8.1.7
exceptiongroup==1.2.1
fastapi==0.110.3
h11==0.14.0
httptools==0.6.1
idna==3.7
pydantic==2.7.1
pydantic_core==2.18.2
python-dotenv==1.0.1
PyYAML==6.0.1
sniffio==1.3.1
starlette==0.37.2
typing_extensions==4.11.0
uvicorn==0.29.0
uvloop==0.19.0
watchfiles==0.21.0
websockets==12.0

Hi @ellyx13,
Sorry that you're experiencing this issue. I think this also relates to the issue re the fact that v1 and v2 models can't mix (ex - you can't have a nested v1 model within a v2 model).
Looks like this issue specifically is arising in the context of FastAPI usage with both versions, which isn't supported. I'd recommend opening a similar issue on that side of things to see if v1/v2 cross compatibility could potentially be reintroduced.
Closing as not planned on pydantic for now.


EvaluateAllPieces() Identifies one teams Knight as None

I wrote a very simple Minimax Algorythm, but no whether what I tried, My bot just seemed to keep giving away pieces for free, while it should obviously see that it throws away a knight/bishop/queen. Especially knights at the start were just thrown away, sacrificing it for a pawn. After scratching my head for hours, it seems like the EvaluateAllPieces() function incorrectly identifies one of the knights as None, giving the impression that one person is "6 pawns" ahead. Is this fixed with the Version 1.1 bug? The script below is my evaluation script which says there are 2 None pieces between the pawns and bishops.
float Evaluation(Board board){
    float boardScore = 0.0F;

    PieceList[] Pieces = board.GetAllPieceLists();

    foreach(PieceList Piece in Pieces){
        boardScore += Piece.Count * EvaluatePiece(Piece[0].PieceType) * (Piece[0].IsWhite ? 1.0f: -1.0f);
    }

    boardScore = boardScore * (board.IsWhiteToMove ? 1.0f: -1.0f);

    if (boardScore != 0){
        foreach(PieceList Piece in Pieces){
            Debug.Write(Piece[0].PieceType);
            Debug.Write(Piece.Count);
            Debug.Write("  ");
        }
    }

    return boardScore;
}

int EvaluatePiece(PieceType piece){
    int[] PieceWeights = { 0, 100, 300, 325, 500, 900, 10000 };

    return PieceWeights[(int)piece];
}

Sometimes (not always) it returns this to the console:
Pawn8  Knight2  Bishop2  Rook2  Queen1  King1  Pawn8  None2  Bishop2  Rook2  Queen1  King1
Edit: I am using version 1.0, I know there was one bug with GetPiece functions, is that the same bug that creates this behaviour?

This sometimes is the output of the console:
Pawn8  Knight2  Bishop2  Rook2  Queen1  King1  Pawn8  None2  Bishop2  Rook2  Queen1  King1

Yeah i doubt its not working for anyone else, i agree with Joelvd. Maybe try print the fen string???

I think this is related to the GetPiece bug, would you mind upgrading and seeing if the issue goes away? I haven't been able to reproduce on 1.1
Please note also that minimax alone will often make blunders due to horizon effect, so you might want to look into something like this: https://www.chessprogramming.org/Quiescence_Search


Modify doc NewCloudEventFromHTTPRequest -> NewEventFromHTTPRequest

#835
This pull request has a difference between the document and the implementation.
The document defines it as NewCloudEventFromHTTPRequest, but it is actually NewEventFromHTTPRequet.

I can't figure out how to get github to rerun the tests - sigh.
Given this is just a docs change I'm going to merge it.
/LGTM


Cold/Flu: Grace period June 30- July 14

User Story
“As a cold and flu worksite clinic registrant, I want a grace period so I can register for a clinic after the deadline if I happen to miss the deadline
Tasks
Grace period: June 30- July 14 time for stragglers

[x] link is removed from Career & MyHR website on June 30th
[x] Cold and flu form is available inside Digital Journey for all users

ticket #1093 describes the complete process of when what access to the form is available to which users groups

Bhumin automated this function


@izakp => Fix: CI badges [ci skip]

Note that build is failing. It seems that it's trying to deploy my PR? That shouldn't happen I imagine :)

@dblock it's trying to update the image on ECR, it should only do this once it's merged to master, I'll take a look.

I was wrong, it's actually not on updating the image on ECR, it's on creating docker image step. I think we still want to do that for PRs to make sure container an still be built. I think current ci setup is missing AWS_ACCOUNT_ID I'll add that.

@ashkan18 It's green! I'll merge.


R39: Search Window: The Tabular view shall display search results in a scrollable table

Tools: D3

Tools update: now uses bootstrap.js for baseball card and the expansion view.

Completed.
SQA


Rename PollableSupplier to PollableBean in doc

Since @PollableSupplier was renamed to @Pollable and then @PollableBean, let's update the doc accordingly.

https://github.com/spring-cloud/spring-cloud-function/commit/7e3681dafe92f5c4918d9619976b8e36cc0d9de5

@asinbow Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


General purpose API

(Moved from https://github.com/AcChosen/VRSL-AudioDMX/issues/1)
Hey! Any chance we can get a general purpose API to get the value of a pixel given the current setting of extended vs not + a getter for a specific pixel (rather than raw array access)?

Re DMs: We need better docs :)
Already supported built in, closing.


Convert webp images to avif

Currently, the static/pix folder is 15M big. Converting WEBP images into the AVIF format reduces its size to 8.1M (46% decrease), saving bandwidth and sever storage while not worsening the image quality:

The AVIF image format is supported by most modern web browsers, excluding Safari. I don't think that it's an issue, since there probably aren't many Safari users using the website. If I'm wrong, there's always a possibility of using the picture tag to provide a fallback image (that would meany only saving on bandwidth)

Uhmm... the avif image of the pizza is 151K, and the webm is 107K.
Am i missing something?

@tragdate not all AVIF files are necessary smaller but overall, the statc/pix directory size is smaller. I guess me picking the pizza image was an oversight on my side, sorry! I changed the image to one that's actually smaller.

These are the images that are more efficiently stored in WebP:

filename
webp_size (K)
avif_size (K)

baked-pasta-with-broccoli
96
128

beef-kidney
44
52

cacio-e-pepe
68
80

danish-pancake
120
128

easy-pizza-sauce
104
128

mayonnaise-or-aioli
108
112

pan-pizza
160
236

pho-soup
44
52

quarkbaellchen
96
104

stuffed-round-squash-01
140
144

tahini-short-bread
96
116

torrijas
84
108

wholemeal-pizza
108
152

And these are the ones better stored in AVIF:

filename
webp_size (K)
avif_size (K)

aelplermagronen
104
48

apple_chicken
452
204

apple-pie
88
52

apple-strudel-1
56
28

apple-strudel-2
44
20

ardei_umpluti
548
192

arroz-chaufa-1
104
60

arroz-chaufa-2
100
68

asian-style-chicken-sticky-sauce
80
28

assam-tea
12
8

baked-mostaccioli-00
208
56

baked-mostaccioli-01
296
84

banana-muffins
88
40

beef-goulash
160
76

bolognese-sauce-1
84
44

borscht
88
16

bread
116
76

brigadeiro
48
24

burger-dressing
108
100

carbonara
260
60

cheesy-meatballs
80
32

chicken-pasta-casserole
100
40

chocolate-chip-cookies
148
28

cinque-pi
120
52

collard-greens-with-smoked-duck-and-parsnips
100
76

country-crisp-cereals
40
12

country-skillet
120
48

couscous
112
60

crab-salad
68
32

creamy-mashed-potatoes
48
16

croque-monsieur
72
28

croutons
92
44

csalad
136
80

diannes-cornbread-salad
40
36

dou-sha-bao
96
88

farci_tomatoes
316
132

fennel-bean-kale-soup-1
256
64

fennel-bean-kale-soup-2
304
92

fennel-bean-kale-soup-3
208
52

fennel-bean-kale-soup-4
256
68

french-toast
92
36

fried-anglerfish-fillet-00
68
48

fried-anglerfish-fillet-01
104
68

glutenfree-pfannkuchen
68
64

grands-peres
32
16

guacamole
144
52

hearty-breakfast-oatmeal-00
76
44

hearty-breakfast-oatmeal-01
80
60

hoisin-pork-belly
112
32

honey-sriracha-chicken-thighs
148
100

hummus
100
84

italian-mulled-wine
132
112

japanese-noodle-soup
16
12

kettlecorn
116
20

korv-stroganoff
100
88

lamb-biriyani
24
16

lasagna
48
36

lavacake
180
92

lemon-and-oregano-chicken-traybake
144
88

lentejas
44
32

lenten-chili
44
28

lenten-lentil-curry
28
8

limoncello
140
72

mapo-tofu-01
76
56

mapo-tofu-02
104
68

meatloaf
116
56

medieval-beef-soup
592
124

merchants-buckwheat
136
56

mortar-and-pestle
56
24

no-knead-bread-1
120
60

no-knead-bread-2
72
28

oatmeal-pancakes
32
12

pancake
124
72

paneer-tikka-masala-00
108
88

paneer-tikka-masala-01
56
32

paneer-tikka-masala-02
60
32

pan-seared-chicken
128
56

parmesan-potatoes
92
36

pasta-arrabbiata
152
104

pasta-navy-style
220
92

pate-chinois
28
12

pickled-onions
140
76

pulpo-gallega
28
12

quesadilla
188
64

ragu-napoletano-01
144
48

ragu-napoletano-02
96
32

ragu-napoletano-03
132
68

ravioli-01
64
48

ravioli-02
100
76

ravioli-03
60
48

ravioli-04
72
48

refried-beans
64
20

roesti
76
60

sauerkraut
116
40

schnitzel
144
104

shakshouka-01
92
76

shakshouka-02
80
72

slow-cooked-lamb-with-lemon
92
56

soleier
28
8

sourdough-bread-with-seeds-and-grains
92
88

sourdough-loaf
76
40

sourdough-potato-bread
96
76

spaghetti-all-amatriciana
136
28

spanish-tortilla
60
28

spicy-sausage-pasta
56
36

stuffed-round-squash-00
132
120

sunday-milkshake
56
16

swedish-pancakes-00
32
12

swedish-pancakes-01
40
8

sweet-potato-fries
52
32

tanzania-tea-with-milk-01
96
36

tanzania-tea-with-milk-02
40
36

tarta-de-santiago
72
52

tomato-flavored-hamburger-macaroni
76
40

tuna-salad
140
20

turkey-smoked-1
96
40

tuscan-style-pork-roast
204
40

wholemeal-wheat-flour-pizza-dough
96
56

yorkshire-puddings
32
12

That's impressive, everything to keep it debloated and blazingly fast 🚀
I hope it gets accepted


Discussions Trial

Trying out discussions

For the time being, I am going to keep discussions for anyone that isn't in the Discord.