Audio and Sprite Editor Interface Revamp

Clean branch of #143
For the audio editor interface (thanks to @ephphatha for help), the changes are including:

Pitch selector, in form of clickable piano-key to select desired pitch value according to musical notes
Better tone generator parameters, by using unit of percentage for duty, and frequency-multiply for pulses
Frequency monitor to inform the pitch of tone pattern that being generated
Adding reverse, invert, and clear buttons for the sake of brevity of pattern creation
Touch swipe support for drawing on the pattern editor, (and the "invert" is handy for undrawing)

For the sprite editor interface, the changes are including:

Sprite horizontal flip, vertical flip, clockwise rotation, and counter-clockwise rotation transformations
Sprite color invert, and sprite bitwise blending, for the sake of brevity
Touch swipe support for drawing on the sprite editor

Let me know if there is something needs to be changed before the approval.
Click here for preview

This is way, way too much for a PR, and I do not agree with the UI changes to the toolbox.
I may incorporate some ideas from these suggestions on an individual basis in the future.

I would never confident about the sprite editor and stuff, but I would like to be responsible with the audio part, as well the small details related to it. There is bit optimizations I'd like to put into the current audio implementation like bufferSize and super-sampling quality, they're currently in a very critical point that would make it not pretty good on some spots.


Contract publisher fix

wip

📝 Changed routes:

/_error

(view full size)

Commit d180537343bc0a4e064b79679fcefcda47030746 (https://thirdweb-qohkrzlt5.thirdweb-preview.com).


Discord Server

Hi! I'm Mustan, I worked on the original PMGH.
I was a little curious about how you made your hacks, but it seems like the invite to your discord server is invalid.
Is there another way to contact you?

he's a skid lmfao
he stole all his code
his discord got termed because he flooded the members

that's crazy... how did the hacks work without modified game files?

that's crazy... how did the hacks work without modified game files?

can you code lol?

I made the original PMGH, which required modified game files to get around some anticheat things prodigy added. I was just wondering how somebody else was able to make hacks without using the same method we used.

I made the original PMGH, which required modified game files to get around some anticheat things prodigy added. I was just wondering how somebody else was able to make hacks without using the same method we used.

I doubt Prodigy has removed AntiCheat features overtime. A better method was likely found.
Anyway, here's the info:
his "invincibility hack":
Boot.prototype.game['_state']['_states'].get('Battle').mods.invincible = true;

his "free membership":
Boot.prototype.game['_state']['_current'].user.source.hasMembership = true;
Boot.prototype.game['_state']['_current'].user.source.appearanceChanged = true;

his "morph forever":
playerTransform = Boot.prototype.game['_state']['_current'].user.source.data.playerTransformation
if (!playerTransform)  alert('You must have a morph enabled to use this hack.');
else {
  playerTransform.maxTime = Infinity;
   playerTransform.timeRemaining = Infinity;
};

now you get an idea
again, these were probably stolen from someone else.


Encourage sane contributions with editorconfig & stylelint

Hey Tom,
Here's the stylelint branch. I ended up using the stylelint-config-standard settings, since I assume most people are familiar with those defaults. Again, each commit is fixing a specific offense, so I can revert any of these that you'd like and make updates to the .stylelintrc.json accordingly.
I also added an .editorconfig to enforce newlines at the end of files, non trailing whitespaces, and indentation style, etc.
I also decided to include gulp to help manage the stylelint dependency. I was also messing around with adding a gulp build command that would run the linters first (and fail if necessary) before minifying the kitchen sink, but I couldn't get gulp-sass to play nice. I can do that in a separate PR anyway, if that sounds useful.
Curt

Hey Tom,
Hoping to get this merged in. Our company just released another major version of our software containing this project and a few of our developers wanted to start contributing. We had a discussion about this PR and it would be helpful for them to get started.
Thanks. I know too well that everyone gets busy. I hope this note finds you well.
Curt

Hi @meowsus. Apologies for the delay on this. This has now been included in the latest release 1.3.0 - https://github.com/colourgarden/avalanche/releases/tag/1.3.0.
Thanks for your hard work on this and I welcome any contributions from your team.
Avalanche needs a little love and I've got some plans to introduce some new features soon.


Sync: TraitObject Properties

Description

Sync the values in the Synced list below.
Create an end to end (E2E) tests for all properties (1 for server changing the value and 1 for client changing the value if applicable)
Create a command to test changing each property in game see similar command

Also see additional information at the bottom for more information and templates

Key
Server side only (only allow the running of the function on the server side)
Client side only (only allow the running of the function on the client side)
Client side sync (request the server to change the value, server then changes the value and replies to the client allowing the change)
Server side sync (only server allows running of the function and send to all clients the value changed and clients update the value/call original function)
Synced

Method/Field Name
Sync Type
Additional Information

TODO
TODO

Deferred

None
Externally Deferred

IsHidden, MaxValue & MinValue are covered by the Lifetime of the object as they are only set on initialize.
Non-Synced

None
Intended Design

You are expected to only sync the property setters.
Try using the new autosync tool
Location

Create a branch based from development
Related Issues

Blocked by:

#950

Requirements

N/A
Additional information

Using the GameInterface Service Tempale create commands to test the synced values.
Definition of Done

[ ] Class level comments exist for all new classes.
[ ] XUnit E2E tests exist for every property on the server (and client if applicable)
[ ] Each property has a command getter and setter

Handled in Lifetime, only set on init


0.7.2 release for OS X unrunnable

$ appr helm upgrade cr.vertiv.life/devops/elasticsearch:beta --namespace logging --tiller-namespace logging -f values.yaml monitoring                                                                      14:00 on Fri Sep 01
Traceback (most recent call last):
  File "PyInstaller/loader/rthooks/pyi_rth_multiprocessing.py", line 9, in <module>
ImportError: No module named spawn
[129] Failed to execute script pyi_rth_multiprocessing

The 0.7.1 release works without issue.

Thanks for report.  0.7.3 should fix this. can you confirm?

Confirmed 0.7.3 fixes this. Thanks


Investigate integration with file format loaders

Loaders (and writers) library: https://loaders.gl/docs
loaders.gl is a suite of loaders for file formats focused on visualization of big data, including point clouds, 3D geometries, images, geospatial formats as well as tabular data.
DracoLoader would be a good candidate to engine example integration: https://loaders.gl/modules/draco/docs/api-reference/draco-loader (see example implementation here: https://github.com/playcanvas/engine/issues/2001)
We could consider implementing engine / editor support to export entity hierarchy into glb format as well.

marking this with good first PR.
The example should be added here and follow two loaders already there
https://github.com/playcanvas/engine/tree/master/examples/loaders


Redirecting constructor with body reported as external constructor

The analyzer reports a misleading warning when a redirecting constructor has a body.
For the code below, it reports: "External constructor may not have a body"
It should have been something like: "Constructor with redirection may not have a function body"
class Foo {
  final x;
  Foo(this.x);
  Foo.bar(x) : this(x) {
    print('Hello');
  }
}

Technical term is "redirecting generative constructor", but I'm not sure that will mean much to users.
We have redirecting factory constructors too, and they also don't have bodies, so just "Redirecting constructor must not have a body".

https://codereview.chromium.org/1709013004/


Create Modal/Window for Import Functionality

User clicks on the 'Import a Monitoring Plan' button
This action opens a modal where users can select the file to be imported
Language to be used on this modal:
Please select a Monitoring Plan for 'Configuration Name' that you wish to import
Once the user has made a selection for the JSON file, they click Import on the Modal
The modal is updated with a spinner (all other fields are hidden) when the Import process is in progress
Once the process completes, the spinner is hidden and the success/error message from the API is displayed in the modal
User can close the modal at any time using X

Success Message:
Your 'file name-.jason' has been successfully imported

User can click on OK to close the Modal

Sample Errors:
Please select a valid file type (.JSON)
The Facility and the Configuration you selected for import do not exist. Please check
You do not have permission to update the selected Facility and Configuration. Please check
Spinner in the EASEY Design System: https://zeroheight.com/37f47ceee/p/8562fc-spinner

Import>model select your JSON file>spinner-file is uploading>modal success "your -file name-.jason has been successfully uploaded - ok button>modal error - shows error message takes the user back to select a file

Import>model select your JSON file>spinner-file is uploading>modal success "your -file name-.jason has been successfully uploaded - ok button>modal error - shows error message takes the user back to select a file

ECMPS Import Monitoring plan pop-up modal WFs
https://xd.adobe.com/view/a6e86bca-668f-4047-b9e6-b2dfab8210aa-f3bb/

Modal is fine for when there is no errors. We need and alternate that is larger for errors. There could be many... MANY errors
So the solutions we're thinking:
The larger modal should be 75 or 80% of each screen size. And if there are more than one error (likely) we show some subset of errors in a scrollable window. Sample errors are below.
[1:11 PM] Conrad Sanley
You have reported a MonitorQualPercent record for a location with the Qualification Type Code not equal to "PK," "SK" or "GF." A MonitorQualPercent record should not be reported for qualification Codes other than "PK", "SK" or "GF".
[1:11 PM] Conrad Sanley
A value has been reported for SO2Tons for the Monitor Qualification LME record #[index of record]. This field should be blank

Export-Import Buttons  - Shared Xd Link
https://xd.adobe.com/view/723aace9-e677-4706-9cb2-ad9600ebf883-2769/
Import Monitoring plan pop-up modal - Shared Xd Link
https://xd.adobe.com/view/a6e86bca-668f-4047-b9e6-b2dfab8210aa-f3bb/


Can't login to mediawiki site

Error message: There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form.

Will, I tried logging in as a different user, which worked, so I logged out, and logged in as the user I was having trouble with, and it worked...


Nucleus lambda function pds-nucleus-datasync-completion sometimes fails to write copied data file names to Nucleus database

Checked for duplicates
Yes - I've already checked
🐛 Describe the bug
When I copied a large amount data with AWS DataSync, the Nucleus lambda function pds-nucleus-datasync-completion got triggered as expected. Also, Nucleus was able to process a many products. However, I noticed that there are few  products remain in the Nucleus database as "INCOMPLETE". When I checked the database and files, I had the following observations.

The AWS DataSyn has copied all the data files and products labels of these  "INCOMPLETE" products to the EFS volume.
The Nucleus lambda function pds-nucleus-datasync-completion has successfully updated the Nucleus database tables: product and product_data_file_mapping
The Nucleus lambda function pds-nucleus-datasync-completion has failed to update the Nucleus database table: data_file
The failed data files that were not written to the database are large IMG files

🕵 Expected behavior
I expected the Nucleus lambda function pds-nucleus-datasync-completion to update the Nucleus table: data_file, after copying the data file to EFS, regardless of the size or type of the data file.
📜 To Reproduce
Copy a large amount data with AWS DataSync and let the the Nucleus lambda function pds-nucleus-datasync-completion to get triggered.
Check if it has relevant records for all the files copied.

Hi @ramesh-maddegoda ,
Do you foresee a PR associated with this ticket ? I am wondering what the review process will be here.
Thanks

Hi @ramesh-maddegoda ,
Do you foresee a PR associated with this ticket ? I am wondering what the review process will be here.
Thanks

@tloubrieu-jpl , I changed the status to Review/QA, because I was doing QA on it with large data sets. Now QA is completed.
I also have a pull request now: https://github.com/NASA-PDS/nucleus/pull/85

The pull request: https://github.com/NASA-PDS/nucleus/pull/85 approved and also tested successfully.


checkNodeResultFile fucntion for vector variables

checkNodeResultFile is used for testing, the function was developed for scalar variables e.g
checkNodeResultFile(traceMng(), filename, m_u, epsilon);
here the FE solution variable m_u is compared against the given solution in filename. The idea is to have a checkNodeResultFile for a vector. e.g
checkNodeResultFile(traceMng(), filename, m_U, epsilon); where m_U has two or more components e.f (m_U.x and m_U.y) at each node.

This functionality has been added  with in PR #132


CLI: Fix doc strings for create-transaction

Before
ARGUMENTS
       MSG (required)
           The message to print.

       MSG (required)
           The message to print.

       MSG (required)
           The message to print.

Now,
SYNOPSIS
       sidecli create-transaction [OPTION]... sender receiver amount

ARGUMENTS
       amount (required)
           The amount to be transacted.

       receiver (required)
           The receiving address.

       sender (required)
           The sending address, or a path to a wallet. If a bare sending
           address is provided, the corresponding wallet is assumed to be in
           the working directory.

Depends on https://github.com/marigold-dev/sidechain/pull/15

Thanks, small change but big improvement in usability (my fault for forgetting to do this originally)


change to intent-based qingyu query. not finished with fsm

I have made a superpower intent recognizer and like to share it with you!
https://github.com/wechaty/bot5-assistant/blob/70bf24b5b3de97791393e3de66c66ad552ebc722/src/machines/message-to-intents.ts#L12-L24
;-P


Headers multiplatform

Minimal API surface area is common.  In part because of complexities of types like date, but also lack of sorted map for KMP.

@swankjesse The most relevant thing on this review for me is which methods should be part of the common interface.  I've dropped a lot of them, especially anything related to build from a response or unsafe variants.  Figuring it is easier to add back than remove.


Fix changelog

Add lowercase and uppercase steps that were part of release v0.3.0

Codecov Report

Merging #349 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #349   +/-   ##
=======================================
  Coverage   96.97%   96.97%
=======================================
  Files          85       85
  Lines        1949     1949
  Branches      292      292
=======================================
  Hits         1890     1890
  Misses         59       59

Continue to review full report at Codecov.

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


Feat: Wrapper for SambaNova (Sambaverse and SambaStudio) with Llama-index

Description
This PR introduces new classes, Sambaverse and SambaStudio, to the LlamaIndex, allowing users to interact with AI models hosted on SambaNova systems endpoint.
Key Features:

Integration with SambaNova-hosted AI models
Integration two SambaNova offerings - Sambaverse and SambaStudio
Support for completion based interactions
Streaming support for completion responses
Seamless integration with the LlamaIndex ecosystem

Note:

Due to limited documentation for SambaNova integration, I developed this wrapper using SambaNova's wrapper with Langchain as a reference.
To know more about SambaNova:

SambaStudio
Sambaverse

New Package?
Did I fill in the tool.llamahub section in the pyproject.toml and provide a detailed README.md for my new integration or package?

[x] Yes
[ ] No

Version Bump?
Did I bump the version in the pyproject.toml file of the package I am updating? (Except for the llama-index-core package)

[ ] Yes
[x] No

Type of Change

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

[x] Added new unit/integration tests
[ ] Added new notebook (that tests end-to-end)
[x] I stared at the code and made sure it makes sense

Suggested Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] I have added Google Colab support for the newly added notebooks.
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] I ran make format; make lint to appease the lint gods

@pradeep-suresh2002 please note i also just pushed a commit to fix a small issue with pants and our BUILD files. Tests should now run (though not sure yet if they pass)

Fyi, the name of the python package was incorrect here.
Renaming and cleaning up docs here
https://github.com/run-llama/llama_index/pull/16799


[release-1.10] add validations to workload entry

This is an automated cherry-pick of #32440

@googlebot I consent


Access individual columns of dataframe defined using read_parquet

I would like to be able to do something like the following:
ddf = dd.read_parquet(filenames)
x = ddf['x'].compute()

without dask having to loading all the columns from the parquet file before pulling out the desired column.  My desired use case may well have hundreds of columns in the parquet file, so in order for a single dask dataframe to be a useful data model for this case, the columnar access would have to be passed along so that the underlying pd.read_parquet only reads the necessary columns.
My understanding of the current implementation is that in order to get my desired behavior, I would need to pass columns=['x'] into dd.read_parquet, in which case I would need to define a new dataframe for each computation/data access.  It would be highly preferable to be able to just define the dataframe once and have it behave as one would expect parquet access to behave (only loading columns as needed).
I believe this may be related to the discussion in #4546, which references a since-merged PR in #4336.  I am running dask 1.2.0; perhaps this is indeed implemented in a newer version?  Apologies if so; I am not easily able to update dask on the system I am testing this on.

FYI, the reason the system I am working on isn't able to upgrade to the latest dask version is related to https://github.com/dask/dask/issues/5054 and https://github.com/dask/distributed/issues/2880, so those issues are indirectly tied to this one in that sense.  @martindurant this has astronomy implications (for the LSST project), so perhaps that's of interest to you?

@jrbourbeau just to mention you here, as were discussing this offline earlier.  Thanks!

Yes, it would be useful to do this optimization.  We removed the optimization during a rewrite of our parquet handling, and haven't added it back in since.  This isn't intentional, it is just due to a lack of developer time.
You're correct that this is mostly the same as the request in #4546 .  Would it be ok to close this issue in favor of that on?

Commenting here so I'm part of the chain as well.

Sure, it's OK to close if this is the same issue; I just wanted to make sure that it wouldn't have been fixed in #4336 (as I'm not able to test that currently).

Oh, sorry; I mistakenly thought #4336 was merged; I guess it's just closed

Thanks.  Closing.  This is definitely something we would like to see fixed.  If anyone is around that wants to invest some time here, I think that that would have high impact.

I'd be happy to help out as much as I can, but will need at least a nudge in the right direction.

dask/distributed#2880 seems to have begun occurring at the same time as the adoption of fsspec as the way to register various file-handling techniques.  I don't know if that has any bearing on this issue, but I am now suspicious that fsspec may not be prepared for the idea of opening a large number of huge files where you might be opening way more stuff than is going to fit into memory.

at the same time as the adoption of fsspec

Note that parquet handling also was rewritten at the same time, so it would be worthwhile trying to isolate further. What do you think fsspec might be doing? It sounds like you thinking memory leaks, which is something that should be concretely testable.
Also, if it is the culprit, there have been a lot of fixed bugs and releases over the summer, it is well worth trying the very latest (or master).

It is the parquet rewrite that dask/distributed#2880 is breaking on (commit ID a53d45edd6b30b514e0e4dee475ae72d78d62a62)
Is this likely to be the same underlying issue as #4546 ?  My failure comes when extracting two columns from the GAIA DR2 data.

Um.  Once I've gotten down to the last useful commit, I still can't get parquet files to load from GCS buckets:

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/google/auth/transport/requests.py in request()
    202         request_headers = headers.copy() if headers is not None else {}
    203
--> 204         self.credentials.before_request(
    205             self._auth_request, method, url, request_headers)
    206

AttributeError: 'AuthorizedSession' object has no attribute 'credentials'

Poke @martindurant .  Is the information above valuable for you to help identify what is going on?  Is there other information that would help?

I have not seen that before - this seems to be happening deep within gauth. How are you authenticating with google? Is this happening in the dask client process or on a worker?

That's happening in the dask client process, and that's supposed to be a public bucket so I don't know how or if I am authenticating at all.  Although maybe it's trying to write _metadata back to the bucket?  I'll see if I can figure it out.
Further possibly confounding fact: this is happening in a GKE cluster, so it's not impossible there's default token mounting going on behind the scenes as well that I haven't investigated.

Still happening with distributed master.  I'll include the whole (large) stack trace.  This is the GAIA DR2 data, so the answer len() should get is roughly 1.7E9.  I am reading from the public bucket gs://jupyterlabdemo-gaia-dr2/gaia_source.parquet (and the initial read goes fine); that folder contains 1750 files, generally about 500MB apiece.
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-13-9e112543b788> in <module>
----> 1 len(df)

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/dask/dataframe/core.py in __len__(self)
    510     def __len__(self):
    511         return self.reduction(
--> 512             len, np.sum, token="len", meta=int, split_every=False
    513         ).compute()
    514

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/dask/base.py in compute(self, **kwargs)
    173         dask.base.compute
    174         """
--> 175         (result,) = compute(self, traverse=False, **kwargs)
    176         return result
    177

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/dask/base.py in compute(*args, **kwargs)
    444     keys = [x.__dask_keys__() for x in collections]
    445     postcomputes = [x.__dask_postcompute__() for x in collections]
--> 446     results = schedule(dsk, keys, **kwargs)
    447     return repack([f(r, *a) for r, (f, a) in zip(results, postcomputes)])
    448

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/distributed/client.py in get(self, dsk, keys, restrictions, loose_restrictions, resources, sync, asynchronous, direct, retries, priority, fifo_timeout, actors, **kwargs)
   2525                     should_rejoin = False
   2526             try:
-> 2527                 results = self.gather(packed, asynchronous=asynchronous, direct=direct)
   2528             finally:
   2529                 for f in futures.values():

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/distributed/client.py in gather(self, futures, errors, direct, asynchronous)
   1825                 direct=direct,
   1826                 local_worker=local_worker,
-> 1827                 asynchronous=asynchronous,
   1828             )
   1829

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/distributed/client.py in sync(self, func, asynchronous, callback_timeout, *args, **kwargs)
    755         else:
    756             return sync(
--> 757                 self.loop, func, *args, callback_timeout=callback_timeout, **kwargs
    758             )
    759

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/distributed/utils.py in sync(loop, func, callback_timeout, *args, **kwargs)
    335     if error[0]:
    336         typ, exc, tb = error[0]
--> 337         raise exc.with_traceback(tb)
    338     else:
    339         return result[0]

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/distributed/utils.py in f()
    319             if callback_timeout is not None:
    320                 future = gen.with_timeout(timedelta(seconds=callback_timeout), future)
--> 321             result[0] = yield future
    322         except Exception as exc:
    323             error[0] = sys.exc_info()

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/tornado/gen.py in run(self)
    733
    734                     try:
--> 735                         value = future.result()
    736                     except Exception:
    737                         exc_info = sys.exc_info()

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/distributed/client.py in _gather(self, futures, errors, direct, local_worker)
   1681                             exc = CancelledError(key)
   1682                         else:
-> 1683                             raise exception.with_traceback(traceback)
   1684                         raise exc
   1685                     if errors == "skip":

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/dask/dataframe/io/parquet.py in _read_parquet_row_group()
    614         open=fs.open,
    615         assign=views,
--> 616         scheme=scheme,
    617     )
    618

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/fastparquet/core.py in read_row_group_file()
    303         return read_row_group(f, rg, columns, categories, schema_helper, cats,
    304                               selfmade=selfmade, index=index, assign=assign,
--> 305                               scheme=scheme)
    306
    307

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/fastparquet/core.py in read_row_group()
    352         raise RuntimeError('Going with pre-allocation!')
    353     read_row_group_arrays(file, rg, columns, categories, schema_helper,
--> 354                           cats, selfmade, assign=assign)
    355
    356     for cat in cats:

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/fastparquet/core.py in read_row_group_arrays()
    329         read_col(column, schema_helper, file, use_cat=name+'-catdef' in out,
    330                  selfmade=selfmade, assign=out[name],
--> 331                  catdef=out.get(name+'-catdef', None))
    332
    333         if _is_map_like(schema_helper, column):

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/fastparquet/core.py in read_col()
    243             skip_nulls = False
    244         defi, rep, val = read_data_page(infile, schema_helper, ph, cmd,
--> 245                                         skip_nulls, selfmade=selfmade)
    246         if rep is not None and assign.dtype.kind != 'O':  # pragma: no cover
    247             # this should never get called

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/fastparquet/core.py in read_data_page()
     97     """
     98     daph = header.data_page_header
---> 99     raw_bytes = _read_page(f, header, metadata)
    100     io_obj = encoding.Numpy8(np.frombuffer(byte_buffer(raw_bytes),
    101                                            dtype=np.uint8))

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/fastparquet/core.py in _read_page()
     19     """Read the data page from the given file-object and convert it to raw,
     20     uncompressed bytes (if necessary)."""
---> 21     raw_bytes = file_obj.read(page_header.compressed_page_size)
     22     raw_bytes = decompress_data(
     23         raw_bytes,

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/fsspec/spec.py in read()
   1019             raise ValueError('I/O operation on closed file.')
   1020         logger.debug("%s read: %i - %i" % (self, self.loc, self.loc + length))
-> 1021         out = self.cache._fetch(self.loc, self.loc + length)
   1022         self.loc += len(out)
   1023         return out

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/fsspec/core.py in _fetch()
    538                 self.start = start
    539             else:
--> 540                 new = self.fetcher(self.end, bend)
    541                 self.cache = self.cache + new
    542

</opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/decorator.py:decorator-gen-22> in _fetch_range()

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/gcsfs/core.py in _tracemethod()
     52         logger.log(logging.DEBUG - 1, tb_io.getvalue())
     53
---> 54     return f(self, *args, **kwargs)
     55
     56

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/gcsfs/core.py in _fetch_range()
   1065         try:
   1066             r = self.gcsfs._call('GET', self.details['mediaLink'],
-> 1067                                  headers=head)
   1068             data = r.content
   1069             return data

</opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/decorator.py:decorator-gen-2> in _call()

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/gcsfs/core.py in _tracemethod()
     52         logger.log(logging.DEBUG - 1, tb_io.getvalue())
     53
---> 54     return f(self, *args, **kwargs)
     55
     56

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/gcsfs/core.py in _call()
    459                     time.sleep(min(random.random() + 2**(retry-1), 32))
    460                 r = self.session.request(method, path,
--> 461                                          params=kwargs, json=json, headers=headers, data=data, timeout=self.requests_timeout)
    462                 validate_response(r, path)
    463                 break

/opt/lsst/software/stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages/google/auth/transport/requests.py in request()
    202         request_headers = headers.copy() if headers is not None else {}
    203
--> 204         self.credentials.before_request(
    205             self._auth_request, method, url, request_headers)
    206

AttributeError: 'AuthorizedSession' object has no attribute 'credentials'

Yes, it is totally possible that gcsfs is picking up some standard google creds which don't have any permissions on GCS (even anonymous reads). You can bypass this with something like
dd.read_parquet(filenames, storage_options={'token': 'anon'})

Thank you!  That worked!
len(df)

1692919135


Distribution attributes specified in a setup.cfg are not set in the setup_keywords extension callback

This applies to 41.6.0.
When using a setup.cfg file to specify package metadata instead of inline via setup.py:setup() arguments, none of the values from the configuration file are reflected in the Distribution object passed into the validation function of a setup_keywords extension.
For example, with a custom keyword my_keyword defined as such:
my_keyword_ext.py
def validate_my_keyword(dist, attr, value):
    print(f'name: {dist.get_name()}')

Using the following:
setup.py
from setuptools import setup
setup(name='example', my_keyword='value')

...prints name: example when the project is processed. However, moving the name argument to a configuration file:
setup.py
from setuptools import setup
setup(my_keyword='value')

setup.cfg
[metadata]
name = example

...prints name: UNKNOWN when the project is processed. Inspecting the dist parameter of my extension reveals none of the attributes from the configuration file have been applied at the time of the callback.
I would expect the configuration file attributes to have been processed and reflected in the Distribution and made available to my extension. My workaround is to move any attributes I require back into the setup.py, but I would prefer to keep everything in the configuration file for consistency.

Hi @Rezzie thank you very much for bringing this up.
Currently setuptools parses both setup_keywords and finalize_options extensions during object initialisation, while the configurations from setup.cfg files are parsed much later in parse_config_files. Changing that would be very complex, specially in a backwards compatible way.
Therefore I would say there are no plans to support this (so far)...
Of course we are always open to reviewing any PR if you want to create one. However it would be nice to discuss any proposals you might have before an implementation.
Please let me know if you would like to pursue this idea, otherwise I think we can close this issue.

Hi @Rezzie, I think I will close this issue for now, but please let us know if you would like to propose a PR and discuss and implementation proposal.


Unable to set IP address to {{auto}}

How do you use Sentry?
Sentry Saas (sentry.io)
Version
3.19.1
Steps to Reproduce
Follow the steps on this page to add auto IP address to user object:
https://docs.sentry.io/platforms/php/enriching-events/identify-user/
\Sentry\configureScope(function (\Sentry\State\Scope $scope): void {
  $scope->setUser(['ip_address' => "{{auto}}"]);
});

Expected Result
Event is sent and the Sentry server infers the user/server's IP address.
Actual Result
Error message:
Fatal error: Uncaught InvalidArgumentException: The "{{auto}}" value is not a valid IP address.

This looks like an issue in our docs.

Sentry will infer the IP address from the connection between your app and Sentry's server.

This does not apply, as the connection between the app and Sentry will always be the IP of the server the PHP application is running on.


TypeDoc attempting to access files/folders not needed & permission denied

[x] I have checked issues with bug label and found no duplicates

Expected Behavior
TypeDoc should work, and should not be attempting to access folders not needed for it's functioning
Actual Behavior
On attempting to run this command
typedoc --module commonjs --target ES5 --exclude /**/**/*.spec.ts --out ./src ./src I receive a list of permission denied errors for folders that should not be needed for the program.

Steps to reproduce the bug
Unfortunately, all I can sure is the command that causes the problem.  It was bad glob patterns


Fix deprecation warning for np.sum with generator.

Background:
https://docs.scipy.org/doc/numpy/release.html#numpy-1-15-0-release-notes
"Giving a generator to numpy.sum is now deprecated. This was undocumented behavior, but worked. Previously, it would calculate the sum of the generator expression. In the future, it might return a different result. Use np.sum(np.from_iter(generator)) or the built-in Python sum instead."

Automerge: waiting for status checks...

Automerge cancelled: Unexpected error.

Automerge: waiting for up to date status checks...

Automerge done.


No module named dataloaders.dataloader - Running Evaluation code

Hi, the problem is that when i run the Evaluation Code it appears:
Traceback (most recent call last):
File "main.py", line 15, in
args = utils.parse_command()
File "/[My_direction_path]/utils.py", line 15, in parse_command
from dataloaders.dataloader import MyDataloader
ImportError: No module named dataloaders.dataloader
I think the problem is in file linking. Can anybody help me?

Hi @EstebanTlelo
Are you running main.py from the top level folder of the repository?


Cant connect to Hass

Problem/Motivation

Can't connect to HASS

Expected behavior

Auto detect server would fill in the proper server details.

Actual behavior

When i connect to https://<IP_ADDRESS>:7080, I get the popup: Unable to connect to Home Assistant. Please check the Server URL is accessible from this device or change the URL below:

Setting it manually also makes no difference, also entered the password manually. Tried: http and https, LAN ip and localhost, port 8123 (which i think it should connect to)

Hardware: RPI2
HASS server is not accesable via WAN, I only use it on LAN.
IP: https://<IP_ADDRESS>:8123
Control panel addon is installed, config:
{
  "log_level": "info",
  "ssl": true,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "ipv6": false
}

Addon log file:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] 01-hacp: applying...
[fix-attrs.d] 01-hacp: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
 Hass.io Add-on: Home Assistant Control Panel v1.0.0
 Simple to use control panel for the ultimate home automation setup
 From: Community Hass.io Add-ons
 By: Franck Nijhof<EMAIL_ADDRESS>-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing...
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 03-version-requirements.sh: executing...
[cont-init.d] 03-version-requirements.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing...
[cont-init.d] 10-requirements.sh: exited 0.
[cont-init.d] 11-nginx.sh: executing...
[cont-init.d] 11-nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
starting version 3.2.4

System log
starting version 3.2.4
18-04-30 19:11:00 INFO (MainThread) [__main__] Initialize Hassio setup
18-04-30 19:11:01 INFO (MainThread) [__main__] Setup HassIO
18-04-30 19:11:01 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to supervisor homeassistant/armhf-hassio-supervisor with version 0.102
18-04-30 19:11:01 INFO (MainThread) [hassio.misc.host_control] Send 'info' to HostControl.
18-04-30 19:11:02 INFO (MainThread) [hassio.misc.host_control] Receive from HostControl: { "type": "resinos", "version": "1.3", "last_version": "1.3", "hostname": "hassio", "features": ["shutdown", "reboot", "update", "hostname"], "os": "GNU/Linux" }.
18-04-30 19:11:02 INFO (SyncWorker_2) [hassio.docker.interface] Attach to image homeassistant/raspberrypi2-homeassistant with version 0.68.0
18-04-30 19:11:16 INFO (MainThread) [hassio.addons.git] Load addon /data/addons/git/a0d7b954 repository
18-04-30 19:11:16 INFO (MainThread) [hassio.addons.git] Load addon /data/addons/core repository
18-04-30 19:11:17 INFO (MainThread) [hassio.addons] Load addons: 34 all - 34 new - 0 remove
18-04-30 19:11:17 INFO (SyncWorker_2) [hassio.docker.interface] Attach to image hassioaddons/control-panel-armhf with version 1.0.0
18-04-30 19:11:17 INFO (SyncWorker_3) [hassio.docker.interface] Attach to image hassioaddons/ftp-armhf with version 1.0.0
18-04-30 19:11:17 INFO (SyncWorker_2) [hassio.docker.interface] Attach to image homeassistant/armhf-addon-nginx_proxy with version 1.2
18-04-30 19:11:17 INFO (SyncWorker_4) [hassio.docker.interface] Attach to image homeassistant/armhf-addon-samba with version 3.0
18-04-30 19:11:17 INFO (SyncWorker_1) [hassio.docker.interface] Attach to image homeassistant/armhf-addon-ssh with version 3.4
18-04-30 19:11:17 INFO (SyncWorker_6) [hassio.docker.interface] Attach to image homeassistant/armhf-addon-configurator with version 0.2.7
18-04-30 19:11:17 INFO (SyncWorker_3) [hassio.docker.interface] Attach to image homeassistant/armhf-addon-letsencrypt with version 2.2
18-04-30 19:11:17 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
18-04-30 19:11:18 INFO (MainThread) [hassio.snapshots] Found 1 snapshot files
18-04-30 19:11:18 INFO (MainThread) [hassio.addons] Startup initialize run 0 addons
18-04-30 19:11:18 INFO (MainThread) [__main__] Run HassIO
18-04-30 19:11:18 INFO (MainThread) [hassio.misc.dns] Start DNS port forwarding for host add-ons
18-04-30 19:11:18 INFO (MainThread) [hassio.core] Ignore Hass.io auto updates on dev channel
18-04-30 19:11:18 INFO (MainThread) [hassio.core] Start API on <IP_ADDRESS>
18-04-30 19:11:18 INFO (MainThread) [hassio.addons] Startup system run 1 addons
18-04-30 19:11:18 INFO (SyncWorker_0) [hassio.docker.interface] Clean hassioaddons/control-panel-armhf docker application
18-04-30 19:11:21 INFO (SyncWorker_0) [hassio.docker.addon] Start docker addon hassioaddons/control-panel-armhf with version 1.0.0
18-04-30 19:11:23 INFO (MainThread) [hassio.api.security] /addons/a0d7b954_control-panel/info access from a0d7b954_control-panel
18-04-30 19:11:23 INFO (MainThread) [hassio.api.security] /addons/a0d7b954_control-panel/info access from a0d7b954_control-panel
18-04-30 19:11:23 INFO (MainThread) [hassio.api.security] /addons/a0d7b954_control-panel/info access from a0d7b954_control-panel
18-04-30 19:11:24 INFO (MainThread) [hassio.api.security] /addons/a0d7b954_control-panel/info access from a0d7b954_control-panel
18-04-30 19:11:24 INFO (MainThread) [hassio.api.security] /addons access from a0d7b954_control-panel
18-04-30 19:11:24 INFO (MainThread) [hassio.api.security] /addons/a0d7b954_control-panel/info access from a0d7b954_control-panel
18-04-30 19:11:25 INFO (MainThread) [hassio.api.security] /addons access from a0d7b954_control-panel
18-04-30 19:11:26 INFO (MainThread) [hassio.api.security] /addons/a0d7b954_control-panel/info access from a0d7b954_control-panel
18-04-30 19:11:26 INFO (MainThread) [hassio.api.security] /addons/a0d7b954_control-panel/info access from a0d7b954_control-panel
18-04-30 19:11:26 INFO (MainThread) [hassio.addons] Startup services run 1 addons
18-04-30 19:11:27 INFO (SyncWorker_1) [hassio.docker.interface] Clean homeassistant/armhf-addon-ssh docker application
18-04-30 19:11:30 INFO (SyncWorker_1) [hassio.docker.addon] Start docker addon homeassistant/armhf-addon-ssh with version 3.4
18-04-30 19:11:35 INFO (SyncWorker_6) [hassio.docker.interface] Clean homeassistant/raspberrypi2-homeassistant docker application
18-04-30 19:11:40 INFO (SyncWorker_6) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi2-homeassistant with version 0.68.0
18-04-30 19:12:50 INFO (MainThread) [hassio.homeassistant] Detect a running Home-Assistant instance
18-04-30 19:12:50 INFO (MainThread) [hassio.addons] Startup application run 1 addons
18-04-30 19:12:50 INFO (SyncWorker_9) [hassio.docker.interface] Clean homeassistant/armhf-addon-configurator docker application
18-04-30 19:12:54 INFO (SyncWorker_9) [hassio.docker.addon] Start docker addon homeassistant/armhf-addon-configurator with version 0.2.7
18-04-30 19:12:59 INFO (MainThread) [hassio.tasks] All core tasks are scheduled
18-04-30 19:12:59 INFO (MainThread) [hassio.core] Hass.io is up and running

configuration.yaml:
http:
  base_url: https://<IP_ADDRESS>:8123
  api_password: !secret password
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  cors_allowed_origins:
    - https://<IP_ADDRESS>:7080
    - https://<IP_ADDRESS>:7080

Please advise.
Kind regards,
Ezra

I can only add to this issue. It looks like the request Headers are missing (Access-Control-Allow-Origin) for connecting from the same domain

hi,
i had the same problem but it fixed.
when it asks for the url enter it like this:
https://IP_ADDRESS:8123?api_password=API_PASSWORD.
now go to settings and delete the api password from the url and enter it where it asks for api password.

I see IP addresses with HTTPS...
That will never work, you cannot have a valid certificate for the IP address...
(unless you have created a self signed one and added it to your client operating system).

I also have this problem.
I do not believe it is a support request issue, but a bug with the software. If the former, you would see an isolated problem brought up by a single person. Here, you have many people with the same issue. It's more because you can be sure there will be lots of people who gave it a go and gave up.
I would think that if software relies on a particular setup of the network environment (i.e. a setup beyond its control) to work, then it cannot expect to work for all, or even many people. It's like saying that you've built a new car, but, oh, I didn't tell you that it can only run on blue roads.
Don't get me wrong: this is not an attack, I am merely trying to point out what seems to me to be a misapprehension by the developers.
Home-assistant is a great app. Control panel looks good too, but I can't run it. But, if, in order to make it work, people have to change their router settings, or install or muck around with their DNS or SSL settings, then, to me, it seems like you are limiting the audience of your app - as well as Home-assistant's.
There's also a security issue here: what if, in changing the settings to support the control panel, people  turned it off and opened their environment to the internet/hackers? Nobody wants that, but forcing people to fiddle with settings they might not properly understand could easily cause them to compromise their security.
Please: Control Panel needs to work autonomously.
All the best!!

@karlg Thank you for your feedback.
An add-on is essential a Docker container running software provided externally.
Please refer to the author of the actual software:
http://reformedreality.com/home-assistant-control-panel
I would only able to fix add-on issues, which this is absolutely not (impossible since the add-on serves only 1 static file, which works...)

Thanks frenck!
Understood. There are issues.

Hello, I experience exactly the same problem. It's a pity since the control panel is really nice.
Please help
Thanks
Al

I don't get it. This issue is closed because there is a sollution? Because if there is a sollution I'm missing it.


reset to en-US

I do have a multilanguage site where I do switch to specific locales. Though on some pages I want to reset back to en-US but can't find the definition for it.
Currently I do use this:
import numeral from "numeral";
import "numeral/locales/en-gb";
numeral.locale("en"); // register numeral locale.

But i want to reset back to en-US, is it possible?

anyone here having the same issue?


Fix to work with cron scheduled checks

Currently if a check is scheduled via cron instead of interval this filter is not working correctly.

Closed by #30


new artifact to install JHipster on Windows

@markusheiliger,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@markusheiliger, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, Microsoft Pull Request Bot


fix typo in GenerateAnswerPDFNode's llm_model attribute

Hey @arsaboo I was already fixing it in the pdf_fix branch, I added you as co-author ;)


Release google-cloud-java v0.106.0

This pull request was generated using releasetool.
08-21-2019 20:29 PDT
AutoML

Regenerate automl client (#6090)

Bigtable

connecting to Bigtable emulator using environment variable (#6067)

Dialogflow

Regenerate dialogflow client (#6091)

Logging

Logback: add loggerName as label in log entry. (#6104)

Pub/Sub

docs: update Pub/Sub publisher docstring example (#6100)
Make subscriber example receive and print messages (#6109)

Spanner

spanner-tests: Sleep uninterruptedly to prevent test failures (#6096)

Spanner JDBC

spanner-jdbc: Add music sql script based integration tests (#6034)
spanner-jdbc: Add integration tests for JDBC DatabaseMetadata (#6035)
spanner-jdbc: Add jdbc statement integration tests (#6033)
Update Spanner JDBC README (#6105)
use random data for tests (#6098)
do not close txmanager twice (#6095)
fix flaky timeouts in tests (#6094)
make sql logging optional in tests (#6111)

Storage

Storage: HMAC service account support (#5284)

Talent

Regenerate talent client (#6110)
Regenerate talent client (#6102)

Tasks

Regenerate tasks client (#6113)

Vision

Regenerate vision client: docs update (#6093)

Dependencies

Update core dependencies (#6115)
Update gRPC packages to v1.23.0 (#6081)
Update protobuf to 3.9.1 (#6038)

Internal / Testing Changes

Fix build (#6116)
Remove duplicate ComputeExample in POM (#6108)
Bump next snapshot (#6079)

https://github.com/googleapis/google-cloud-java/pull/6136 will fix the integration test authentication issues

Will start new release when auth-library update is merged


Server opens but won't load

Okay I'm a total beginner so I may have done something obvious, but I downloaded atom-live-server and it showed the following errors after installation:

](url)
I can still launch it but when it opens in chrome the server doesn't load any of the code I've written. Any ideas?

seems you encountered this problem https://stackoverflow.com/questions/17245881/node-js-econnreset. Maybe you could delete C:/Users/APE08/AppDate/Local/atom/ and reinstall the plugin again.


Test for tcp address connections

#57
What is the use case for tcp address connections? Are people using dbus config or some kind of network forwarding?
@M-Bab

I guess mainly people are using dbus config. We have a successful config here on an embedded device with anonymous auth but this is only for testing. Obviously the combination of opening up dbus to the network combined with anonymous authentication is somehow dangerous.

Yes that is very dangerous because it means anyone can call dbus methods on your system and some of the methods are extremely powerful.
Right now the tests just use network forwarding. These should be expanded to test with a direct tcp connection using a config. If you have an example config to try, you can post it here.


Cannot add config file for newly trained custom weight file

I was trying to train a new custom detector by adding one additional new class object into the reduced COCO dataset (1 new class + 35 classes). And I have trained new weight file using yolov4.conv.137 with modified yolov4-custom.cfg from Darknet AlexeyAB. Is there any way to add my yolov4-custom.cfg into your code so that the detector could identify the new object? Thanks.

.names, .cfg, .weight files are all in this link.

If you haven't done anything other than modifying the number of classes,
from yolov4.tf import YOLOv4

yolo = YOLOv4()

yolo.classes = r"c:/Users/win/Downloads/coco17.names"

yolo.make_model()
yolo.load_weights(r"c:/Users/win/Downloads/yolov4-custom_36cls_70000.weights", weights_type="yolo")

yolo.inference(0, is_image=False)

I tested the above script with cam.

Thanks for the testing. I have tested the name and weight files on my code which is similar to your, but it seems cannot detected the new class called 'lozenges'. Here is the sample image of the lozenges. Just wonder if the problem comes from the absence of the yolov4-custom.cfg config file. Note that the class number is 36 and the filter size is 123. Should I set the yolo.input_size = 416 yolo.batch_size = 64 as well to match the config file? Thanks.

from yolov4.tf import YOLOv4

yolo = YOLOv4()

yolo.classes = r"c:/Users/win/Downloads/coco17.names"

yolo.make_model()
yolo.load_weights(r"c:/Users/win/Downloads/yolov4-custom_36cls_70000.weights", weights_type="yolo")

yolo.inference(media_path=r"c:/Users/win/Downloads/silo-50836376-front-287098_400Wx400H.jfif")

:)

I have solved my problem on my side too. Thanks for your verification.


Increases the app replicas

[ ] ??Do this first??
[ ] ??and this after??

^ update this

We need to increases the app replicas to 3 for high availability, per the open (linked) PR. There aren't multiple steps to this: it's a 1-line change that our pipeline will deploy to dev, test, and prod as we promote releases.


Set up backend

Set up typescript node & express & mongodb
Used npm for dependency management (so make sure to only use npm)

npm i then npm start to run the backend

Used nested routing (express) to set up sample endpoints (refer to 750 wk3 modules for these)
.env file should be placed under backend folder, and have MONGODB_URL, PORT
Project structure:

src

models: has all mongodb database schema
routes: configures REST routes
utils: configures environment values
index.ts: entrypoint that configures mongoose & express

Would you be able to add a newline character at the end of each file so that it meets the requirements for ESLint?

Yep done. It would probably be a good idea to leave any other formatting issues until eslint is set up for backend (#15)


FirebaseMessaging.onBackgroundMessage() not working for ios

Discussed in https://github.com/firebase/flutterfire/discussions/9380

Originally posted by m2sahin August 19, 2022
HI,
I want to use FirebaseMessaging for notifications in my Flutter project. I have completed the installation for both Android and IOS. Everything works perfectly except one thing.
I want to do; I want to evaluate the incoming notification according to the data it contains and decide whether to show the notification or not. I also want to display notifications using flutter_local_notifications package.
I can do all this for android. For iOS, it works fine when the application is running and covered, but the FirebaseMessaging.onBackgroundMessage function is not triggered when the application is terminated.
I've been grappling with this issue for days, there's no advice I haven't tried. Please help me, at least tell me if this is possible. As a result of my research, I realized that there are many people struggling with the same problem and none of them have found a solution. The strange thing is that this issue is never mentioned in firebase and flutter.
This is very frustrating, please I need help.

@m2sahin
This seems to be same / similar to https://github.com/firebase/flutterfire/issues/6290 which has been fixed as part of this PR : https://github.com/firebase/flutterfire/pull/9292, wherein, the plugin example has been updated with instructions on how to test / verify the onBackgroundMessage handler.
I have done that already and based on my tests I shared here for your reference:
https://github.com/firebase/flutterfire/issues/9300#issuecomment-1209275539
https://github.com/firebase/flutterfire/issues/9300#issuecomment-1210305588
I have asked the team on when will the PR fix will be available in new version of the plugin, but mean time, can you use this PR branch:https://github.com/firebase/flutterfire/pull/9292, and follow these instructions:https://github.com/firebase/flutterfire/pull/9292/files#diff-9b3d71b5695d165617b4e5d3abe958a2991aa582c065aa3ff463e47a436a1d4dR21-R29  and see at your end, whether your use case works using it ?

Update: I got to know from the team that the fix made as part of https://github.com/firebase/flutterfire/pull/9292 is an update to plugin's example app, so there's nothing to release on pub.dev for it.
You can checkout the plugin example: https://github.com/firebase/flutterfire/tree/master/packages/firebase_messaging/firebase_messaging/example and try it out on iOS and confirm at your end. As mentioned earlier above, I have done the same and it worked properly.

I got the same behaviour of @m2sahin. On firebase_messaging: ^12.0.3 he never pass to the onBackgroundMessage on iOS, it's just the default push notification from iOS. But we can't create a custom notification via flutter_local_notifications.
It works fine on android.
On flutter 3.3.0-0.4.pre

I have searched a lot, there is no solution for this. Unfortunately, I was disappointed. 🙁 @Kiruel

Keeping this issue open and labeling for further insights from the team based on https://github.com/firebase/flutterfire/issues/9381#issuecomment-1225796339
/cc @russellwheatley

After investigating a lot, I find something interesting.
To be able to received a notification the payload should contains gcm.message_id. So if you use a different payload (third party like sendbird in my case). You can't pass this line  so the onBackgroundMessage is never call.
And I try to fork and change this line. I never received the notification. It's because to handle it properly, the payload need to add mutable-content:1 in the JSON payload. More info in the Apple Documentation.
Then you need to add a custom service to handle the notification and change the contain if needed (modifying_content_in_newly_delivered_notifications).
Of course if firebase_messaging could handle this for us (via onBackgroundMessage) and be able to change the contain of the notification directly in Dart/Flutter via flutter_local_notification or other package it could be good.
I'm still programming this part on my application, but if I find something else to share I will not hesitate.

@darshankawar the #9300 already explains the issue and how to solve it.
https://github.com/firebase/flutterfire/issues/9300#issuecomment-1210349576
Documentation from Apple is clear:
https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications
On iOS, we must use “notification” + mutable-content:1 + service app extention to modify content before displaying head up. We cannot use “silent notifications” because on iOS they are not triggered IF (app is terminated && app is not the last one opened). Also, on many occassions, silent notifications can be delivered with delay or not delivered at all.
Until this fix is done, firebase messaging is not usable on iOS if notifications must be modified before displaying head up. So it would be much appreciated if you guys could assign this a p1 and provide us a deadline.

@m2sahin Maybe you can check how I fix it, it's related to flavor files, check this issue https://github.com/sendbird/sendbird-sdk-flutter/issues/48

Having the same problem. Is there any update? Will this be implemented? Right now we must use the notification text from back-end, which is a problem as we can't adjust to each user's preferred language. We also need to perform some operations on the data, like storing some missing info or at least knowing some data has to be re-fetched from back-end.
Please prioritize this feature, it would be very appreciated, I'm sure there are many apps which need to show custom notifications/ handle payload when app is terminated on iOS.

Same problem!!

As mentioned by @iosephmagno and @Kiruel 's comments, FirebaseMessaging plugin still doesn't fully cover iOS.
If remote notification's content must be modified before displaying head-up, "mutable-content:1" and iOS service app extension are required. https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification
Remote notifications are the only type of notifications which guarantee to be always delivered by Apple APN and get always triggered on device, whatever the app's state. On iOS, data-only notifications cannot be used for the reasons explained in above comments: (1) they might not be sent by Apple APN under certain traffic, and (2) they are not displayed under certain device usage condition or when a different app is moved to foreground after user terminates our app.

i have good news it works in the native side there are bug with firebase_messageing package
#9563

Hello everyone, we’ve reviewed the issues opened for iOS background messages and we want to make our position clear.
Android and iOS handle background messaging differently. The decision made by the iOS operating system whether messages reaches the relevant iOS event handler (and subsequently received by the Dart background messaging handler) is based on a number of criteria, such as: CPU usage, priority level (data-only messages are considered “low priority” by iOS, android does not), battery level, amount of messages being received by the app, background/terminated application state, etc. This is a fundamental difference between the platforms, and you need to be aware of them when designing your application.
One solution suggested for iOS data-only messages unreliability has been to add a NotificationExtension. But this will still not create parity with Android as you will still have to include a notification with your message (therefore not data-only). It will still render the original notification if you do not update/mutate the notification that comes through the system in a timely manner.  We are not currently considering this as a solution due to these limitations.
We also will not support non-FCM messages from third party packages. We specifically only support messages received from the Firebase APIs since we cannot guarantee that messages received from third party packages will not have any unintended side-effects  on other Firebase products such as messaging delivery reporting and Analytics data.
To help us triage and locate genuine issues that need to be addressed we have created a specific issue template for iOS background messages. If you believe you still have an issue that needs to be addressed, please create a new issue following this template.
I will be closing this issue in favor of raising a new issue with the new template above. This template will help you provide us with all the information we need to investigate a potential issue with background messaging on iOS.


Back Button in Dashboard Communities

When cities go to their "dashboard" then go to "Services" then go to a "dashboard of a service" - they cannot go back to their "city-dashboard" - they have to login all over again.
This should be solved.
Thanks

duplicate of https://github.com/our-city-app/oca-backend/issues/467


New cards and due

Currently, to be selected as a new card, a card must have an interval of 0 and due must be before the current time. But there is no record of why due is considered. Is there a legitimate case for setting due on a card with interval = 0? If not, then the selection of new cards should disregard due.
The srf readme says explicitly that if a card has interval = 0 then due is ignored. But this isn't the implementation.

from an early commit: For new cards, due is an ordinal
This is from the time that srf used a slightly modified Anki database. In Anki, when card type is 0 a card is 'new' and due is an ordinal used to order the presentation of new cards. Recall that Anki as type and queue on card, which seem somewhat redundant. Similarly, Anki has fields due and ord. It isn't obvious why due is used as an ordinal when there is already an ord field. It's a bit of a mess and I never completely analyzed what Anki was doing, let alone reverse engineering to determine why.
Now, on import, if card type is 0 then srf card.ord is set from Anki card due and srf card.due is set to 0.
srf has been checking card.due for selection of new cards since commit 5a4b901a9f539eaf7a327aafff5d780c436a37e9 but no explanation of why in this commit.
So, after an import from Anki, card.due should be 0 if interval = 0. In other words, there is no information in card.due in this case and card.due should not be used for determining if a new card is presented. The condition on card.due seems simply to be an error that has persisted since.

From commit ff2708bb7bc4779631dd7d52373312b8407107a9, card.due is ignored when selecting new cards. Unseen cards are sorted on ord then id for selection of a new card.


[ARTEMIS-1758] support SASL EXTERNAL with TextCertLoginModule

rework proton handler to use saslListener

When running in the IDE the new test works fine, however when I run the AMQP tests from the command line the new test produces an error as below which seems to indicate the test environment isn't getting configured correctly.

Test
testConnection(org.apache.activemq.artemis.tests.integration.amqp.JMSSaslExternalTest)  Time elapsed: 0.773 sec  <<< ERROR!
javax.jms.JMSException: file:/home/timothy/.m2/repository/org/apache/activemq/tests/unit-tests/2.6.0-SNAPSHOT/unit-tests-2.6.0-SNAPSHOT-tests.jar!/client-side-keystore.jks (No such file or directory)
at org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:86)
at org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:108)
at org.apache.qpid.jms.JmsConnection.connect(JmsConnection.java:168)
at org.apache.qpid.jms.JmsConnectionFactory.createConnection(JmsConnectionFactory.java:203)
at org.apache.activemq.artemis.tests.integration.amqp.JMSSaslExternalTest.testConnection(JMSSaslExternalTest.java:116)
Caused by: java.io.FileNotFoundException: file:/home/timothy/.m2/repository/org/apache/activemq/tests/unit-tests/2.6.0-SNAPSHOT/unit-tests-2.6.0-SNAPSHOT-tests.jar!/client-side-keystore.jks (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at org.apache.qpid.jms.transports.TransportSupport.loadStore(TransportSupport.java:287)
at org.apache.qpid.jms.transports.TransportSupport.loadKeyManagers(TransportSupport.java:250)
at org.apache.qpid.jms.transports.TransportSupport.createSslContext(TransportSupport.java:99)
at org.apache.qpid.jms.transports.TransportSupport.createSslHandler(TransportSupport.java:74)
at org.apache.qpid.jms.transports.netty.NettyTcpTransport.connect(NettyTcpTransport.java:136)
at org.apache.qpid.jms.provider.amqp.AmqpProvider$1.run(AmqpProvider.java:203)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Thanks Tim, artemis will treat the key/trust-store string as a url first and then revert to file.
qpid-jms expects a file only. I found some certs that work among the existing resources in the integrations tests. Also added a sanity check of the outbound support.
also learned the need for -DskipIntegrationTests=false!


Support creating unmanaged PrestoTables from a ReportDataSource.

This would add the ability to create a ReportDataSource that references an existing table in Presto. Before, you would need to first create an unmanaged PrestoTable that referenced an existing table in Presto, then create a ReportDataSource that referenced the now created PrestoTable. With initial support for the presto-prometheus connector being integrated, this change would be needed as Presto would instead read directly from Prometheus and store relevant data into tables which ReportDataSources can then reference.

/retest

/retest


SSL ERROR

Opened Again

I'm facing an SSL problem, Can you please fix it?
https://imgur.com/a/TVJJspH

You're going to have to issue an SSL for your site. We don't issue SSL certificates.

Hey, I'm running into the same problem with narmis.is-cool.dev.
There are ways of adding other domains to your user.github.io site which I am currently trying to do. I hope that should work.


build error on web api

Hi
I just took latest code from main branch and getting this build error. Can anyone advice. Thanks in advance
Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0311	The type 'LLama.LLamaModel' cannot be used as type parameter 'T' in the generic type or method 'ChatSession'. There is no implicit reference conversion from 'LLama.LLamaModel' to 'LLama.OldVersion.IChatModel'.	LLama.WebAPI	C:\Users\conta\source\repos\LLamaSharp\LLama.WebAPI\Services\ChatService.cs	8	Active
This is the code impacted
LLamaModel model = new(new LLamaParams(model: @"ggml-model-q4_0.bin", n_ctx: 512, interactive: true, repeat_penalty: 1.0f, verbose_prompt: false));
_session = new ChatSession<LLamaModel>(model)

Hi, that's because v0.4.0 introduced break changes. I haven't been free to upgrade the web api project yet. Could you please have an another try with lower version?

Was this resolved by #39?


graph, graphql, store: Coerce Int8 values to ints

Previously, they were coerced to strings which ultimately leads to errors when lists of int8 are used in queries
@dotansimha Do you remember why Int8 was initially coerced into String in a lot of places? The whole topic of coercion is really confusing to me; part of it is because the Value of graphql-parser can't represent all the values we deal with internally (like bytes or int4 vs int8) and so you are forever trying to figure out if a string is really a string or whether it's a byte array. The other part is that coercion happens all over the place and it's really hard to draw a line between 'here we are dealing with values that have fairly random types and aren't checked yet' vs 'these values have been properly checked and express the proper type'. I wonder if we should expand the r::Value type to faithfully represent all value types, and take the conversion from q::Value to r::Value as the point where we go from unchecked to checked.

Closing this since it's not been active for a while. Feel free to reopen when you're ready to work on this again


Video doesn't play on Android 4

What kind of issue is this?

[x] Bug report. If so, please supply the way to reproduce the issue, including addition information as follow:

[x] Toro version: <IP_ADDRESS>04
[x] Android version: 4.3.1.
[x] Device name: Nexus 5X emulator
[x] Source code that can reproduce the issue (a snapshot is expected). https://gist.github.com/DSofter/e8b043c9a77aece6714de5afbb9c32d1
[x] Logcat stack trace in case of fatal issue.

Log cat:
04-19 17:29:04.125 4975-4975/news.buzzbreak.android D/BuzzBreak: onPlayerStateChanged: true, 3
04-19 17:29:04.395 4975-5486/news.buzzbreak.android D/dalvikvm: GC_FOR_ALLOC freed 519K, 9% free 54037K/58896K, paused 9ms, total 9ms
04-19 17:29:04.545 4975-5486/news.buzzbreak.android D/dalvikvm: GC_FOR_ALLOC freed 312K, 6% free 55709K/58896K, paused 10ms, total 10ms
04-19 17:29:07.135 4975-5494/news.buzzbreak.android W/AudioTrack: obtainBuffer timed out (is the CPU pegged?) 0xb9ded2b0 name=0xb user=00002ee0, server=00000000
04-19 17:29:10.135 4975-5494/news.buzzbreak.android W/AudioTrack: obtainBuffer timed out (is the CPU pegged?) 0xb9ded2b0 name=0xb user=00002ee0, server=00000000
04-19 17:29:13.135 4975-5494/news.buzzbreak.android W/AudioTrack: obtainBuffer timed out (is the CPU pegged?) 0xb9ded2b0 name=0xb user=00002ee0, server=00000000
04-19 17:29:16.135 4975-5494/news.buzzbreak.android W/AudioTrack: obtainBuffer timed out (is the CPU pegged?) 0xb9ded2b0 name=0xb user=00002ee0, server=00000000
04-19 17:29:16.785 4975-5125/news.buzzbreak.android D/dalvikvm: GC_FOR_ALLOC freed 193K, 6% free 55870K/58896K, paused 22ms, total 22ms
04-19 17:29:16.795 4975-5125/news.buzzbreak.android I/dalvikvm-heap: Grow heap (frag case) to 55.519MB for 756012-byte allocation
04-19 17:29:16.815 4975-4984/news.buzzbreak.android D/dalvikvm: GC_FOR_ALLOC freed 34K, 6% free 56574K/59636K, paused 20ms, total 20ms
04-19 17:29:19.135 4975-5494/news.buzzbreak.android W/AudioTrack: obtainBuffer timed out (is the CPU pegged?) 0xb9ded2b0 name=0xb user=00002ee0, server=00000000
04-19 17:29:22.145 4975-5494/news.buzzbreak.android W/AudioTrack: obtainBuffer timed out (is the CPU pegged?) 0xb9ded2b0 name=0xb user=00002ee0, server=00000000
04-19 17:29:25.145 4975-5494/news.buzzbreak.android W/AudioTrack: obtainBuffer timed out (is the CPU pegged?) 0xb9ded2b0 name=0xb user=00002ee0, server=00000000

Video demonstration:
https://s3.us-east-2.amazonaws.com/dsofter/VID_20190419_173023.mp4
Thank you so much for your awesome work!

@DSofter Hi. Thanks for the detail. Can you send me the video in your demo? If it should be private, email me is Ok<EMAIL_ADDRESS>

@eneim Sorry for the late response. Here is the link: https://s3.us-east-2.amazonaws.com/buzzbreak/video/096755235-1.mp4

@DSofter Tried on my local but using same toro version. It does seem to work well :-/
https://drive.google.com/file/d/16ezydYpPG_qhaccjU1TTUsKwmGc_TF1O/view?usp=sharing
Your log says the state is updated to BuzzBreak: onPlayerStateChanged: true, 3 which says your video is ready and has started playing.
Can you check your AS version, Emulator version, Network condition, etc? I'm using latest Android Studio with latest Emulator though. If the Emulator is too old it can have trouble I think.


Moves constants that are actually settings

There are a handful of settings in src/core/const.js that are actually intended to be writable. Because these are exported, they cannot be changed. This PR deprecates the high-level properties and moves them to a PIXI.settings namespace object, which can be edited. This restores functionality that was lost when converting to ES6.
Deprecations

PIXI.RESOLUTION => PIXI.settings.RESOLUTION
PIXI.FILTER_RESOLUTION => PIXI.settings.FILTER_RESOLUTION
PIXI.TARGET_FPMS => PIXI.settings.TARGET_FPMS
PIXI.MIPMAP_TEXTURES  => PIXI.settings.MIPMAP_TEXTURES
PIXI.SPRITE_BATCH_SIZE  => PIXI.settings.SPRITE_BATCH_SIZE
PIXI.SPRITE_MAX_TEXTURES => PIXI.settings.SPRITE_MAX_TEXTURES

Preview the docs here.
Fix for #3170
Updated - Additional Deprecations

PIXI.DEFAULT_RENDER_OPTIONS => PIXI.settings.RENDER_OPTIONS
PIXI.GC_MODES.DEFAULT => PIXI.settings.GC_MODE
PIXI.TRANSFORM_MODE.DEFAULT => PIXI.settings.TRANSFORM_MODE
PIXI.SCALE_MODES.DEFAULT => PIXI.settings.SCALE_MODE
PIXI.RETINA_PREFIX => PIXI.settings.RETINA_PREFIX
PIXI.WRAP_MODES.DEFAULT => PIXI.settings.WRAP_MODE
PIXI.PRECISION.DEFAULT => PIXI.settings.PRECISION

@themoonrat I have incorporated these suggestions (description updated above) with the exception of the maxIdle, checkCountMax and DEFAULT_UPLOADS_PER_FRAME. I would like to do that as a separate PR. There may be other default options we'd like to pull out. I mostly wanted to get the existing stuff working as we're trying to push out a release this week.

Looks good.
Something that can also be done (post 4.2 if time is an issue) is adding some @see 's to point to the CONST's for settings that have available options listed there.
ie.
/**
 * Default wrap modes that are supported by pixi.
 *
 * @static
 * @memberof PIXI.settings
 * @type {number}
 * @default PIXI.WRAP_MODES.CLAMP
 * @see PIXI.WRAP_MODES
 */
WRAP_MODE: 0,

Or alternatively (not sure if jsdoc is this clever) the @type could be {PIXI.WRAP_MODE}

@themoonrat would welcoming a PR for that


Permissions and SQL elastic pool

It is no longer required for an Owner to visit Advisor first to register

removed note
updated FAQ

Removed SQL Elastic Pool cost recommendation

removed SQL server from resources listed in FAQ question "What resources does Advisor provide recommendations for?"

Opened PR incorrectly - closing


Missing turn in replay examination

The Majsoul paipu is https://game.maj-soul.com/1/?paipu=220312-b4481a3d-57c0-4d89-b096-d7dd9dd7d837_a19427114
I followed the instruction here and used tempermonkey to download the paipu above. I tried to use akochan-reviewer to analyse it, using the command .\akochan-reviewer.exe -i .\2022_3_12_Gold_Room_South.json -n 0.1 --pt 110,50,-10,-130 -a 3 -k S1, but found the 2nd turn was skipped when I pon 7m.

It is because your tehai is too far away from tenpai, akochan don't think you should pon the 7m. Even after you pon the 7m, it is "3向聴" 👀


[wip] an initial start to getting jest up and going

starting with TextileIPFSNativeModule and moving on to actually testing the native module bridges. Then we should start adding components and snapshots etc (which will be part of separate PRs).

Some testing resources:

https://stackoverflow.com/questions/38003347/integration-testing-react-native-ios-unable-to-print-console-log
https://blog.callstack.io/testing-your-react-native-apps-abfe41903dfd
https://medium.com/@SkyscannerEng/testing-react-native-ios-bridges-80c730659a83


Updating to bootstrap4

View live: https://vickysteeves.github.io/reprozip/index.html
I finished moving this site to bootstrap4 and making it consistent with reprozip-examples. I have a few more things to do before this is ready for review:

[x] Add graphics to about page on reprozip showing how it works
[x] menion reproserver somewhere?
[x] Fix sizing on news table
[x] Update news to current stuff going on (it was last updated in like 2017)

Looks cool.
We should add an acknowledgment to the Moore and Sloan Foundations: The development of ReproZip has been supported by the Moore and Sloan Foundations (add link http://msdse.org), under the NYU Moore-Sloan Data Science Environment (add link https://cds.nyu.edu/mooresloan)
Few suggestions:
ReproZip allows you to pack your research along with all necessary data files --> Should we mention it does so automatically?   Using ReproZip, with a single command, you can quickly create virtual machines and containers.
The development of ReproZip was always been --> has always been
We encourage a transparent process to eliminate the black-box of development --> remove this sentence
We encourage folks to submit pull requests... folks --> users and developers (?)
from desktop applications to scripts in various languages to dynamic websites to high performance computing experiments--> from desktop applications and scripts in various languages to dynamic websites to high performance computing experiments
You can then reproduce your work across various OS's! --> remove the exclamation mark

I would split  https://vickysteeves.github.io/reprozip/news.html into two pages, one for news and
one for Publications and Presentations

I fixed those two issues from @remram44 in this last commit. Thanks for the review Remi & Juliana!


Informative labels for mode and language buttons

If we are in Korean mode then the language button should be labelled Sino.
If we are in number guessing mode then the mode button should be labelled Word.

See #16


Fix PHP72 builds on MacOS

This PR is trying to figure out why PHP intl extension cannot be built on MacOS.
See those links:

https://bugs.php.net/bug.php?id=76826
https://github.com/phpbrew/phpbrew/issues/962
https://github.com/docker-library/php/issues/307

Oh, and the commit message should mention macOS too.


Jenkins: if heapdump log present, print it

Notice
It is not allowed to submit your PR to the 'master' branch directly, please submit your PR to the 'master-pre-merge' branch and rebase your PR to 'master-pre-merge' branch.
Description
Please include a brief summary of the change that this pull request proposes. Include any relevant motivation and context. List any dependencies required for this change.

temporary hack to make Jenkins print out Java heap dump files
not a permanent fix, need to add the proper crash detection and reporting into node_test_harness

Fixes Issue # .
Type of change
Insert x into the following checkboxes to confirm (eg. [x]):

[ ] Bug fix.
[ ] New feature.
[ ] Enhancement.
[ ] Unit test.
[ ] Breaking change (a fix or feature that causes existing functionality to not work as expected).
[ ] Requires documentation update.

Testing
Please describe the tests you used to validate this pull request. Provide any relevant details for test configurations as well as any instructions to reproduce these results.

merged via CLI


HashSet Constructor Initializer does not work

HashSet constructor argument for initializing the set does not appear to do anything.
Steps To Reproduce
http://deck.net/a4656173d475692df4fd7928deb45079
Expected Result
2
true
Actual Result
1
false

Thank you for reporting and providing the simplified sample demonstrating how to reproduce.
We will investigate.

.NET application provides the same result
https://dotnetfiddle.net/yueOlM

Just in your sample, you forgot closing quote
[VAR]"value, count"[/VAR]
should be
[VAR]"value", "count"[/VAR]

With a corrected sample:
http://deck.net/71d04871713c289fc00a39c67b52a45d
public class Program
{
    private static readonly HashSet<string> ReservedKeywords = new HashSet<string>(new[] { "value", "count" });

    public static void Main()
    {
        var msg = "Hello, World!";

        Console.WriteLine(ReservedKeywords.Count);
        Console.WriteLine(ReservedKeywords.Contains("value"));
    }
}


Please add a text expander utility

Description of the new feature / enhancement
Hello, just looking to have PowerToys support a text expander utility like BeefText or TyperTask. TyperTask would be ideal since it's tiny and could easily be integrated with the existing PowerToys app; unfortunately seems like perhaps the company that made it is now defunct.
Scenario when this would be used?
I use a TextExpander all the time (TyperTask) but I do get paranoid about the code running behind it; I haven't had a problem to date but I would sure trust MSFT a lot more than some random developer.
Supporting information
No response

AutoHotkey is also good at this thing. If you're willing to try...

/dup https://github.com/microsoft/PowerToys/issues/5074


Don't run formula simplifier when building server-expanded layers

The boolean formula simplifier is needed when doing require list expansion, but not when doing server-side expansion of dependencies, but it was still getting invoked when the layer builder called ModuleDepInfo.getPluginPrefixes() for the purpose of determining whether to include a module in a server-expanded layer.  Because of the poor performance characteristics of the Quinne-Mcluskey algorithm used by the boolean formula simplifier when there are a large number of expressions, it is desirable to avoid the boolean formula simplifier when doing server-side expansion.

@ddumont please review

LGTM


Added Azure.Redis.Version

PR Summary
Fixes #1077
Added Azure.Redis.Version rule.
PR Checklist

[x] PR has a meaningful title
[x] Summarized changes
[x] Change is not breaking
[x] This PR is ready to merge and is not Work in Progress
Rule changes

[x] Unit tests created/ updated
[x] Rule documentation created/ updated
[x] Link to a filed issue
[x] Change log has been updated with change under unreleased section

Other code changes

[ ] Unit tests created/ updated
[ ] Link to a filed issue
[ ] Change log has been updated with change under unreleased section

@BernieWhite
Ready for review.

@BernieWhite
Great, thanks for the feedback. It all made sense.
Adjusted, could you check if have a great product to ship out now?


Unable to run the Main

Cloned the project into my eclipse workspace, I included jbox2d-library-<IP_ADDRESS>.jar though I was not sure what version and where to get it but I googled it and found http://www.java2s.com/Code/Jar/j/jbox2d.htm
Not sure if the jbox2d library is related to the problem but maybe.  Eclipse does not accept  the constructor for World(vec2) it wants to add a boolean after. But it still does not work with true or false.
private final World world = new World(new Vec2(0f, -10f));

I found a newer version of jbox2d <IP_ADDRESS> and it fixed the unrecognized World constructor but still get error messages
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Location is not set.
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2434)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
at svanimpe.fxgameloop.Main.start(Main.java:63)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
... 1 more
Exception running application svanimpe.fxgameloop.Main

Hi,
This project uses Maven, so you don't need to download any jars.
The included pom.xml was enough for me to run it from NetBeans, but you may need to extend it to run it elsewhere.
I've checked and it still runs fine in NetBeans 8.2 with the latest JDK 8. Other than that, I'm afraid I won't be of much help, as I no longer use Java.


[Bug]: response.json times out in Firefox

Bug description
page.on('response', async response => {
    console.log(response); // returns HTTPResponse {}
    if (response.url().includes('api/info')){
     let jsn =  await response.json(); //never ending promise
    }
})
puppeteer firefox returns empty  response object HTTPResponse {} but works fine in chrome
kinldy help in checking this out
im trying to get a request response
Puppeteer version
latest version
Node.js version
latest version
npm version
latest version
What operating system are you seeing the problem on?
Windows
Relevant log output
No response

Could you please provide a repro script? Note that Firefox support is still experimental and somewhat limited and that might be an existing limitation.

pardon my bad formatting  🙂

It looks like a problem with Firefox's implementation of CDP. Firefox team won't extend the functionality of their CDP implementation given the focus on WebDriver BiDi, therefore, closing this issue.

I have the same problem,  response.json()  response.text()  times out in Firefox.


chore: Remove work queue from honk

Charlie has confirmed that the new method of multithreading in wasm is here to stay and there is no longer need for the work_queue. This PR removes the work_queue from Honk only.
Checklist:
Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge.

[ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag.
[ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code.
[ ] Every change is related to the PR description.
[ ] I have linked this pull request to relevant issues (if any exist).

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

Metric
8 txs
32 txs
128 txs

l1_rollup_calldata_size_in_bytes
45,444
179,588
716,132

l1_rollup_calldata_gas
222,960
868,160
3,449,732

l1_rollup_execution_gas
842,047
3,595,268
22,205,101

l2_block_processing_time_in_ms
1,032
3,964 (+2%)
15,717 (+2%)

note_successful_decrypting_time_in_ms
330 (+2%)
1,004 (+2%)
3,750 (+3%)

note_trial_decrypting_time_in_ms
:warning: 34.0 (+26%)
:warning: 106 (+16%)
138 (+1%)

l2_block_building_time_in_ms
9,213 (+3%)
36,668 (+3%)
153,576 (+3%)

l2_block_rollup_simulation_time_in_ms
6,881 (+4%)
27,400 (+4%)
108,801 (+4%)

l2_block_public_tx_process_time_in_ms
2,291 (+1%)
9,143 (+1%)
44,151 (+2%)

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

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
14,148 (-5%)
31,411 (-3%)

note_history_successful_decrypting_time_in_ms
2,321 (-4%)
4,746 (-3%)

note_history_trial_decrypting_time_in_ms
120 (-2%)
146 (-1%)

node_database_size_in_bytes
1,646,709
1,193,468

pxe_database_size_in_bytes
27,188
54,187

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

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
44.0 (+1%)
56,577
14,745

private-kernel-ordering
22.0 (+1%)
20,137
8,089

base-rollup
850
631,605
811

root-rollup
38.0
4,072
1,097

private-kernel-inner
37.6 (+1%)
72,288
14,745

public-kernel-private-input
46.8 (-1%)
37,359
14,745

public-kernel-non-first-iteration
28.3
37,401
14,745

merge-rollup
0.942 (+1%)
2,592
873

Approved for when the tests pass (I believe your PR is not the reason they aren't passing).


Problem listing languages in a correct order and switching to a language-specific page URL

I'm using Hugo 0.40.1 on Ubuntu, and trying to create a language switch control using the following code:
{{ range $.Site.Languages }}
	<span href="#"> {{ .Lang }} - {{ .LanguageName }} </span>
{{ end }}

Where the config.yaml file contains the following:
languages:
  en:
    weight: 1
    LanguageName: english
  es:
    weight: 2
    LanguageName: español
  fr:
    weight: 3
    LanguageName: français

There are the following problems with this:

no matter what I'm trying, I cannot display the .LanguageName - either an empty string is displayed, or the current page language name is repeated all over; note that .Lang works correctly - but this is the only success
according to the documentation, $.Site.Languages is supposed to work in the order specified by weight, but does not work like that and languages are not ordered in any predictable way
it is unclear (from the documentation) how to construct URLs pointing to different languages of the current page

Thanks for getting in touch, but it feels like this is a question  that would be better suited to the Hugo Discussion Forum.  We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug. You may also find the answers you search for in Hugo Documentation.

To @bep - thank you very much, and sorry about not noticing the link to the discussion forum, I've posted my question here:
https://discourse.gohugo.io/t/problem-listing-languages-in-a-correct-order-and-switching-to-a-language-specific-page-url/12155