Fix for failing docker build task

The docker build task docker build --tag $ACR_NAME.azurecr.io/albumapp-ui . is failing because of missing quotes.
invalid argument "/albumapp-ui" for "-t, --tag" flag: invalid reference format
See 'docker build --help'.

Proposing a change to include the quotes:
docker build --tag "$ACR_NAME.azurecr.io/albumapp-ui" .

@owingruters : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@craigshoemaker
Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

thanks, again @owingruters!
#sign-off

Thanks, @owingruters!
#sign-off


Bevel filter (secretly) relies on "alpha-padding" to detect edges

@pixi/filter-bevel relies on alpha to detect the "shadow" & "light" boundaries.
float light = texture2D(uSampler, vTextureCoord - transform).a;
float shadow = texture2D(uSampler, vTextureCoord + transform).a;

color.rgb = mix(color.rgb, lightColor, clamp((color.a - light) * lightAlpha, 0.0, 1.0));
color.rgb = mix(color.rgb, shadowColor, clamp((color.a - shadow) * shadowAlpha, 0.0, 1.0));

Hence, the bevel filter applies correctly only if there is at least a single-pixel padding with alpha=0 around an image.
If you don't do that, the bevel filter will not apply on the left & top sides of the image because there is no padding given to the object in the render-texture.

To solve this problem, a padding of 1 put on the filter should suffice. In fact, doing so from "outside" solves the problem.
const b = new BevelFilter(options)
b.padding = 1
return b

+1 and thanks to @SukantPal for the workaround.

Confirmed:
https://jsfiddle.net/bigtimebuddy/1bcfy9vd/


[GSOC Idea] Live services for ESIP COR

ESIP Member Organization Name
MMI (I think)
Mentors
John Graybeal
(others TBD)
Information for Students
Project Idea: Live Services for ESIP COR
Abstract
Provide a "front page" for the Community Ontology Repository that gives naive users easy access to services of the repository.
Technical Details
One goal of the COR is making access to semantic content easy for beginners. This idea is to provide a 'cover page' with various information panels and activities that serve to present the COR content to naive users.
Service details can be determined by polling the Semantic Technology cluster and evaluation of Minimal Viable Products. Ideas include:
For summary information display:
Number of registered users, number of registered ontologies, number of terms, ontologies updated in last three and six months
Histograms of top users, organizations, science topics, etc. by number of ontologies and terms
For useful services:

Submit an xSV file (with metadata) for conversion to ontology [advanced]
Perform analytics on an ontology (or set of ontologies), e.g, entity counts, max hierarchy depth
Rate FAIRness of an ontology (based on its metadata content)

Helpful Experience
Comfortable writing web UIs that are populated by, and drive other resources using, external APIs
First steps
Review the APIs for the COR and try some example external service

@graybeal Hey Graybeal,  I am vishesh Tripathi from Galgotias university BTech 3rd year students,
I m highly interested in this project. In this project, we can build the web app(dashboard )through r shiny and perform live analysis through this.
also, we can produce a live report as prefer.
so suggest me what I can do further in this project.
really its motivate me because I have done many works in data analysis so it highly motivates me.
so suggest me what I can do further.
thanks and regards
happy coding

Hi @graybeal! I am a graduate student pursuing a degree in Geoinformatics. My work involves developing interoperable services for Geospatial applications. So far, I have mostly worked on developing clients for OGC standard services ( Here's a link to very basic SOS client: https://github.com/sdhoundiyal/SOSProject).
Recently,I have also been working on Ontologies, OWL, and SPARQL. As such, I understand the importance of this project. I would love the opportunity to contribute to it in this years Google Summer of Code.
I will start reviewing the API's, in the meantime, I would appreciate any directions you could give me,


Add notes

Would it be possible/desirable to add notes for friends? Things like "John's mother got the flu" or "Mary's son started school", so we could query for those later on?

Hmm, that's an interesting idea. I'm not sure I totally follow what you're describing though.
How are you picturing that behaving differently from just an activity?

An activity is something I did with a friend. A note is something I want to remember about them so I can maybe follow up later. For example, if I went for drinks with a friend and we talked about various things, I might want to note that they broke up, or that they got a new job, or something like that.

By the way, I should add that notes are friend-specific, so the section would look something like:
### Notes:
- 2017-06-12, John Doe: Is getting married next September.
- 2017-06-10, John Doe: Is finishing his PhD.
- 2017-02-1, Jane Doe: Just got a job.

Then the cli could have a command like friends list notes <friend name> to get all the notes for a friend.

Interesting! But I suspect it could also be useful to add notes for more than one friend, like:
### Notes:
- 2017-06-12: **John Doe** and **Jane Doe** just got engaged.

Does that seem right? My read is that they're basically just activities that I didn't participate in.

Hmm, yes, possibly. I'm wondering whether they aren't activities in the sense that it's something that happened, e.g. is "John Doe has been feeling down after he lost his job" an activity? Although I guess "John Doe told me so-and-so" is an activity, I guess. Maybe you're right that they're just activities...

Actually, the use case is that you can have easily-accessible, highly summarized details of what's going on in a person's life. This is mostly for stuff you want to follow up on, rather than for things that you did together, so if you stick it in activities you'd then have to wade through all the "went out with X in Y" lines to get to the "actionable" items.

Also, are activities meant to be added multiple times per activity? Ie if you have four notes that happened in one outing (John Doe told me W, X, Y and Z), should that be four activities? Won't this skew the stats?

Sorry for being unclear; I didn't mean to say that notes were activities, but rather that they behave like activities in that the way you're describing them they can be tied to any number of friends or locations. So I imagine much of the activity code could be repurposed if we were to treat them as such.
One question I have though is whether you see them as things that need a specific date tied to them or if it's more like a todo list: "I need to follow up with Susan," etc. Does that question make sense?
And as for your question about skewing stats, overall friends is meant to be very flexible—stats are what you want them to be! For example, I personally don't use tags but I know others do. So I think anything that makes sense to both of us is likely to be a good start in figuring out how notes could/should work.

Oh, sorry, I see what you mean now. Yes, from a data model standpoint, notes are pretty much exactly activities, with the only difference being that you can filter them by friend in the cli and sort them by date.
I think the date is much more useful than not, as I see this feature as supplementing my memory, and not so much as a todo list (ie it's for the past instead of the future). So, if a friend asks if I remember one of their exes, I can quickly look at my notes and refresh my memory on who that person was (maybe tags would be helpful here).

Makes sense, thanks. (Though I should point out that you can filter activities by friend/date too: friends list activities --with Susan --after '2 weeks ago')
I think this feature makes sense and seems useful to me! Would you be interested in taking a stab at an initial implementation? (I'm happy to provide lots of guidance.)

Sure, I've never written a line of Ruby, but I can take a stab at it. I'll let you know if it's too foreign, thanks!

Ugh, I'm stuck two seconds in... How do I get ./bin/friends to pick up the changes from the lib dir, instead of the installed gem?

Oh, sorry, I figured it out. I had to install something called bundler, but that's working now.

Glad to hear it! Let me know if there's anything in CONTRIBUTING.md that I can add to make it easier to get started.

I was a bit confused by step 4, thinking that bundle install && overcommit --install would install the package locally, which would make it harder for me to change files. You may want to add a note that "this will install the dependencies".

Thanks, will do. (And I just removed the overcommit line, since that's now part of our CI test suite rather than something developers run locally.)

Just made a change... is it clearer now or still confusing?

Nope, crystal clear now, thanks!

I've tried a bit and it seems learning Ruby would take much longer than implementing the feature, so I'm afraid I'll have to defer to someone more experienced :/

No worries @skorokithakis; I appreciate you trying. I'm adding the upforgrabs label in case anyone wants to take this. @skorokithakis if you want to try again I'm happy to give you lots of guidance and walk you through what to change!


Eliminate need for trinity specific endpoint subclasses

depends on #671
What was wrong?
The trinity specific subclasses of the lahja.Endpoint needed to be re-thought to make room for the upcoming trio base endpoints.
How was it fixed?
Rather than end up with versions for both trio and asyncio it seemed like the right type of thing for our Service abstraction to handle.  This resulted in a nice cascading cleanup of the boot logic as well.
To-Do

[ ] Clean up commit history

[ ] Add entry to the release notes PR

Cute Animal Picture

This looks like a really nice cleanup coming up :+1: :tada:


GraphCapture doesn't throw an error for L1 overflow in NO_DISPATCH mode

Describe the bug
GraphCapture doesn't throw an error for L1 overflow in NO_DISPATCH mode
To Reproduce
E.g., the following block
const auto input_tensor_a = ttnn::zeros(params.a_Shape, DataType::BFLOAT16, ttnn::TILE_LAYOUT, this->getDevice(), params.memory_config);
        const auto input_tensor_b = ttnn::zeros(params.b_Shape, DataType::BFLOAT16, ttnn::TILE_LAYOUT, this->getDevice(), params.memory_config);

        auto call = [&] {
            std::vector<tt::tt_metal::Tensor> res;
            for (int i = 0; i < 500; i++) {
                res.push_back(ttnn::add(
                    input_tensor_a,
                    input_tensor_b,
                    std::make_optional(DataType::BFLOAT16),
                    std::make_optional(ttnn::L1_MEMORY_CONFIG)));
            }

            return res;
        };

        ttnn::graph::GraphProcessor::begin_graph_capture(tt::tt_metal::IGraphProcessor::RunMode::NO_DISPATCH);
        {
            auto output = call();
        }
        auto json_trace = ttnn::graph::GraphProcessor::end_graph_capture();

will not throw in no dispatch mode but will throw in normal mode, as we run out of the L1 space.
Expected behavior
Pasted block of code should throw in either no dispatch mode or some new mode which does not dispatches kernels to the device but tracks memory allocations.

Original design intention was to disallow NO_DISPATCH graph captures to mess up allocator state. With that in mind, this is not a bug. We need to figure out right way to enable L1 overflow catching, but it requires more work on the allocator and graph capture. I've started #15262 to align and scope future work.


Make command line interface python 2/3 compatible

In PR #67 @luizirber has made the command line interface python 2/3 compatible.
This however still fails a feature test for the biobox login command.
I've spent some time today debugging this and trying to get the login feature
to work. I still haven't resolved it. Something appears to be causing the login
command to create a broken pipe when I try running the command manually. I'm
not sure why this is happening as this @luizirber's original PR did not touch
the login code as far as I can tell.
This login code should be fixed before we merge the
feature/python-3-compatible branch into a new release branch. Anyone is
welcome to try and resolve this, otherwise I will continue to look into this
myself.
Please explain the issue. The first line will become the title. Trailing
lines starting with '#' (like these) will be ignored, and empty messages will
not be submitted. Issues are formatted with GitHub Flavored Markdown (GFM):

http://github.github.com/github-flavored-markdown

On bioboxes/rfc

Any progress on this issue?
When I bootstrap the "feature/python-3-compatible" branch with virtualenv set to python3 ("--python=python3") even the "--help" feature test fails.

I haven't had time to look at it recently. Do you know what is causing the
errors?
I was having problems with the login fuctionality on the python2 branch
which was I wasn't able to get working.
On 7 December 2015 at 08:24, pbelmann<EMAIL_ADDRESS>wrote:

Any progress on this issue?
When I bootstrap the "feature/python-3-compatible" branch with virtualenv
set to python3 ("--python=python3") even the "--help" feature test fails.
—
Reply to this email directly or view it on GitHub
https://github.com/bioboxes/command-line-interface/issues/71#issuecomment-162576243
.

python 2 tests are fixed in #72  . python 3 tests still do not pass


Configuration to turn the autometrics feature on/off

Is there is any single point of configuration to turn the autometrics feature in a code base. What would be the model or pattern we have to use. Why I'm asking this question because in case of a performance bottleneck, and we need to turn this feature off, then what is the best approach we can do.

Hi Pradeep. Good question! There is no single point of configuration, or a feature flag or similar that could be used to turn autometrics off currently. You would have to do a code deploy after removing the decorators in order to remove the monitoring as it stands.
In terms of performance bottlenecks there have been some performance tests for some of the libraries that I'll try and dig out for you that might alleviate some of your fears. Don't forget that autometrics is built on top of prometheus and OTeL libraries which are already widely used and tested in production!

Thanks @IvanMerrill  for your quick response. Since the code spread over the entire code base and if we want to disable this due to some reason for example a performance bottleneck , for example. If we have a model like there is a pointcut expression that allows us to define a condition to be checked before execute the autometrics code, just like aspect oriented programming do.

I completely understand your point! I have added this as an idea on the discussions page. Feel free to add more information to this page if there's anything you would like to add.


Fix/update travis config

Description
Add a call to setup.py under "install" key of .travis.yml
Closes issue(s)
No issues
Changes include

[x] Bugfix (non-breaking change that solves an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)

Other comments


WIP

Do NOT pull this! I'm just putting this as a place holder so we can discuss. I'm still working on my review and recommendation, but I wanted to save my work-in-progress.

Hi @jadonk,
Just now only I saw your changes, I have a doubt on the manifest binary blob generation, Is the aim to create a single manifest-blob for the greybus configuration and click identifier. (saw cport and bundle descriptors in the manifest source)? or Is it that manifesto will create two manifest blobs(one for greybus and one to be loaded to the EEPROM) but from the same source?


GA TTLAfterFinished

This PR updates the TTLAfterFinish controller to stable as part of 1.23 k8s release.
Related PRs:

https://github.com/kubernetes/kubernetes/pull/105219
https://github.com/kubernetes/enhancements/pull/2841

@janetkuo @ahg-g

/milestone 1.23


Update dependency to matplotlib-base >=3.3.0

Checklist

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

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

@conda-forge-admin, please rerender

@pc494 I'll leave this to you to review / merge since I made it...

yep this is fine as far as I can see


[WIP] Make Sandwich view resizable

I try to implement #209 but I'm very new to TypeScript and don't see how to set up an environment and build the sources to check if it works. :cry: Is there a document like BUILD.md?
Fixes #209.

Sweet, thanks for starting to look into this! There is indeed a document: https://github.com/jlfwong/speedscope/blob/master/CONTRIBUTING.md

Coverage decreased (-0.02%) to 46.895% when pulling 8fb312e962765f44f086bc5ad0e23f48380b38b2 on okapies:feature/resizable-sandwich into 30ca6291ca93557e2bb77a2bafc5bac580627102 on jlfwong:master.

Thanks! I missed it. :sweat_smile:

I fixed to work resizing feature. It basically works, but it seems the moving amount is half of the expected... Any idea?

Finally it seems it works! Please feel free to fix it to fit your taste.

Sweet! I'll try to take a look at this sometime in the next week or so

I'm very sorry for the late response. Thanks for your comments! I learned a lot from them. But I'm a bit busy to do my own work (analyzing and improving the performance of our software using speedscope) and don't have enough time to fix them now. I'd like to come back again sometime but wonder if you could complete it if you feel this feature useful.


[Question] Using Emmet with vim-jsx-pretty

I had a dig through the source code but there's no obvious way i can see of doing this so I hope you guys know.
When i used mxw/vim-jsx (deprecated in favour of vim-jsx-pretty), emmet would know to use jsx-specific attribute names like className instead of class. Is there a way to fix this here please?
Thanks
;oB

@overbyte Below are the emmet settings of myself. It works well for me, you can have a try.
" -----------------------------------------------------------------------------
" emmet-vim
" -----------------------------------------------------------------------------
let g:user_emmet_mode='a'    "enable all function in all mode.
let g:user_emmet_install_global = 0

let g:user_emmet_settings = {
      \  'javascript' : {
      \      'extends' : 'jsx',
      \  },
      \}

augroup emmet
  autocmd!
  autocmd FileType html,vue,css,less,jsx,javascript EmmetInstall
augroup END

sweet dude - i'll try that and see what happens


fix: set app settings to empty map

Set app settings to empty map when creating the web app.
Previously when setting to null, Azure would automatically set it to a second map, causing terraform plan to note it as a change outside of Terraform.
Changes to app settings will still be ignored.

Seems to make no difference. Closing 🙂


Is this free?

Can I use this plugin to translate content on my app for free?
I know you have to pay for Google API: https://cloud.google.com/translate/pricing

https://github.com/Localize/node-google-translate/blob/master/LICENSE
MIT license so it should be good to go (free as 🍻)

But I'm talking regarding the Google API. I read that I'd need to pay in order to use it so how can I use my API key without payment?
https://cloud.google.com/translate/pricing

@erperejildo google api is not free. If you are looking for an alternative to google, try yandex

Great, thanks for letting me know, I'll have a look.
So just to double check the use of this library is free BUT not the use with the Google API together. Am I wrong?

That's correct, this library won't work without a valid google API token

Perfect, thanks for the clarification

Investigating Yandex I found that I'd need to pay as Google. Do you know any other free one maybe?
https://translate.yandex.com/developers/offer/prices

@erperejildo you can get an api key from yandex free of charge. There is a limitation in how much you can translate
https://tech.yandex.com/translate/doc/dg/reference/translate-docpage/
Create a yandex account then go:
https://translate.yandex.com/developers/keys
there are multiple modules to translate via yandex in npm

This module is free to use in your code (see license), but requires your own Google API (which is not free).
If you're translating a small amount of content (less than 2m characters), the Microsoft Translate API has a free tier, and there are npm modules for Microsoft translate as well: https://azure.microsoft.com/en-us/pricing/details/cognitive-services/translator-text-api/
If you're using the translate API for a good cause (not for profit), feel free to reach out (I work at Localize). We sometimes sponsor projects that are open source, for charity, or not-for-profit:
<EMAIL_ADDRESS>

@KhaledMohamedP what I wanted to know if is possible to find other one without limitation. But anyway, need to try it out to know the real limitation. Maybe that is more than enough. Also is cheaper than Google.
@paton that sounds good. I'm not making any money with my app and just wanted to clarify if I needed to pay or not. I think if I need to pay for the translation it's because I'm using it a lot, which is totally understandable.
Cheers!


Add specification for computing the number of non-zero singular values of a matrix (linalg: matrix_rank)

This PR

specifies the interface for computing the rank (i.e., number of non-zero singular values) of a matrix.
is derived from comparing signatures across array libraries.

Notes

CuPy and Torch (torch.matrix_rank) do not support providing stacks of matrices. Torch latest master does. This proposal follows NumPy and other linalg APIs in supporting stacks.

Dask does not have a matrix_rank API.

NumPy, MXNet, Torch (latest master) support a hermitian keyword argument to indicate a potential optimization. This keyword argument is not widely supported and is not included in this proposal.

Torch (latest master), CuPy, and possibly TF only support specifying tol as a float. This PR follows NumPy and other API proposals (e.g., pinv and lstsq) in allowing tol to be specified as either a float or an array of floats. Providing an array allows specifying one or more tolerances. This PR specifies tolerance as rtol to more explicitly indicate relative tolerance and to distinguish from atol (absolute tolerance).

TF supports a validate_args keyword argument. TF is alone in doing so, and such a keyword argument is not included in this proposal.

Renamed tol to rtol to more explicitly indicate relative tolerance and pave the way for future specification evolution (e.g., atol).

This PR has been open for some time without further comment and has been discussed/approved during meetings. Will merge, and we can submit follow-up PRs should any issues/concerns arise.

For reference, inclusion of this API was discussed here.


Why does TF run ops in the build phase?

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): source
TensorFlow version:  tf-nightly-1.13.1
Python version: python 3
Installed using virtualenv? pip? conda?:  pip
Bazel version (if compiling from source):  0.23.2
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: 10.0/7
GPU model and memory: 1080ti

Describe the problem
Provide the exact sequence of commands / steps that you executed before running into the problem
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Add logging to the code:
...
std::clog << "Terminated \n";
ec_.Notify(true);
return false;
...

Bazel build output:
INFO: From Executing genrule //tensorflow/python:cudnn_rnn_ops_pygenrule:
Terminated  # my std::clog output
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
INFO: From Executing genrule //tensorflow/python:candidate_sampling_ops_pygenrule:
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated
Terminated

I use local eigen instead of the remote repo. I try to tracing / logging eigen library, like WaitForWork.
I find that when I build TF from source, it seems like TF runs the code. Worse, it will segmentation fault / core dump if I add logging to some part code of eigen, like loop.
What is the design behind it?

@shizukanaskytree  This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!


Add a separate 3.3 V LDO for RF part

We need to have a separate LDO on the 3.3 V rail of RF subsystem.

A separate LDO for RF subsystem is added.


fixed lots of warnings  DO NOT MERGE

DO NOT MERGE
aim is 0 warnings
last time there were warnings from line 9 to 542 https://github.com/blueedgetechno/win11React/runs/6434327255?check_suite_focus=true#step:7:11
many warnings fixed.
warnings now down to line 9 to 202
fixed eqeqeq === warnings
fixed  !== except general.js and explorer.js

about 100 warnings fixed so far mostly eqeqeq === warnings

ohh no

The deployment has been broken since the beginning even when npm start still works :(

think i found the problem

Thought I found a way out
But you never go away (bug)


Package with ampersand is corrupted after VORAXCompile

I open a Package with the VORAX explorer. The package has some '&nbsp' in it. After VORAXCompile the '&nbsp' is changed to '' and/or '#pro ___vorax_end___'. Some other characters get messed up too.
In the output window are the following messages:

package was created
enter a value for nbsp

It seems that the '&nbsp' is interpreted as a host variable.
What am i doing wrong?
I'm using current VORAX with vundle under a virtualbox ubuntu.

Hi,
I have just committed a fix for this bug.
Many thanks for reporting it.
Alec.

The Issue is fixed.

Hi Alec,
It looks like this change has broken the display of compilation errors in the 'Location List' window - this window does not show up at all now.
Also, before the above change the executed SQL would always display in the output screen, but now this seems to be intermittent.  Haven't worked out any consistent behaviour yet.
I've backed out the change above (reverted to version 4.3.48) and am getting the correct behaviour again.
Ryan.

Hi Ryan,
Thanks a lot for let me know about the issue. You're right, that "innocent" change has broken some of the components of Vorax. I have committed a new fix. Please confirm it fixes the "voodoo" malfunction you mentioned.
Alec.

Hi Alec,
It looks good - I get back the compilation errors window, it looks like I'm seeing all SQL mirrored in the output window again, and I did a quick compilation with x varchar2(20) := '&nbsp'; and it behaved itself.
Thanks for the quick turn-around yet again.
Ryan.

Great! Thanks for your time on testing this.
Alec.


Load mocha.opts for individual tests

It doesn't seem like mocha.opts is loaded for running individual tests.
I'm trying to run individual tests inside test/ directory. It would be nice if you could just run mocha sometest.js inside test/ and still have it load mocha.opts.
Otherwise, running a single test seems a little verbose:
mocha sometest.js --growl --require should --reporter list

Let me know your thoughts. Thanks!

hhmmm seems fine to me, mine use should etc as well:

mocha test/http*.js

  .......

  ✔ 7 tests complete (43ms)

with 0.5.0

So I was actually inside the directory test/ running mocha http*.js.
What you just showed will work just fine for my purposes though. Thanks a lot.

ohhhh that makes sense. i dont think we have an option for the mocha.opts file, otherwise you would have to do mocha --opts mocha.opts to get ./mocha.opts


[bug] MetaMask logo is cropped

Link to minimal reproducible example
https://lab.web3modal.com/library/wagmi-all/
Summary

This was part of https://github.com/WalletConnect/web3modal/issues/2134 but that issue was closed so re-opening here
List of related npm package versions
latest

this was fixed


Changes cakeshop config to use docker container name as host in urls …

…(host.docker.internal only works on windows and mac)
Docker compose creates host entries for the container name, so http://node1:8545 will successfully hit node1's ip from any container in the network.

Apparently using host.docker.internal to reference the ip of the docker host machine only works on docker for windows and mac, not linux.
Luckily, docker-compose creates host entries for each container by name, so rather than using the docker host and the forwarded ports, we can use the base ports and node1, txmanager1, node2, txmanager2, etc.


Add types to react redux connect to propagate types correctly

I found out today that flow and react-redux have a bit of an issue with propagating type checking since a change in flow 0.54 (https://github.com/facebook/flow/issues/5343). This PR adds a return type to mapStateToProps so that type checking works correctly. This surfaced a few flow issues which are also fixed in this PR.

E2E pass locally:


Another NotWordBoundaryAscii Bug

Matching "$(?-u:\\B)", i.e. Concat([EndText, NotWordBoundaryAscii]) against "\u{5c124}\u{b576c}" gives no match with the default matcher, but matches at (8, 8) with the NFA.
edit:
also "(?m:$)|(?-u:\\b)", i.e. Alternate([EndLine, WordBoundaryAscii]) against "\u{6084e}" gives (4, 4) and (1, 1) as the two match locations.
edit2:
More bugs:

Regex String
Expr
Text
Default
NFA

"(?i-u:\x00)
$"
Alternate([LiteralBytes {  bytes: [0], casei: true }, EndText])
"\u{e682f}"
(4, 4)

"(?i-u:y)
(?m:$)"
Alternate([LiteralBytes { bytes: [121], casei: true }, EndLine])
"\u{b4331}"
(4, 4)

"(?u:\b)^(?-u:X)"
Concat([WordBoundary, StartText, LiteralBytes { bytes: [88], casei: false }])
"X"
None
(0, 1)

Thanks! Sorry it took me so long, but these bugs are gnarly. I converted your issue into these regression tests:
mat!(end_not_wb, u!(r"$(?-u:\B)"), "\u{5c124}\u{b576c}", Some((8, 8))); // xxx
mat!(endl_or_wb, u!(r"(?m:$)|(?-u:\b)"), "\u{6084e}", Some((4, 4)));
mat!(zero_or_end, u!(r"(?i-u:\x00)|$"), "\u{e682f}", Some((4, 4)));
mat!(y_or_endl, u!(r"(?i-u:y)|(?m:$)"), "\u{b4331}", Some((4, 4)));
mat!(wb_start_x, u!(r"(?u:\b)^(?-u:X)"), "X", Some((0, 1))); // xxx

I was only able to observe the first and last tests fail. The middle three seem to work fine.
The actual bug here was that start states were not computing word boundary flags correctly. I think I finally have a fix for it.


Gauge XML error

Added to top:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            xmlns:app="http://schemas.android.com/apk/res-auto"
            xmlns:card_view="http://schemas.android.com/apk/res-auto"
            xmlns:tools="http://schemas.android.com/tools"
            xmlns:gauge="http://schemas.android.com/apk/res-auto"

Android resource linking failed
Output:  E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute endValue (aka battery.stephanie.com.battery:endValue) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute pointEndColor (aka battery.stephanie.com.battery:pointEndColor) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute pointSize (aka battery.stephanie.com.battery:pointSize) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute pointStartColor (aka battery.stephanie.com.battery:pointStartColor) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute startAngel (aka battery.stephanie.com.battery:startAngel) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute startValue (aka battery.stephanie.com.battery:startValue) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute strokeCap (aka battery.stephanie.com.battery:strokeCap) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute sweepAngel (aka battery.stephanie.com.battery:sweepAngel) not found.
error: failed linking file resources.

Getting same error. Wanted to use this library over Speedview, but looks like I will have to go back to that.

I'm using it like this and it works in my case.
app:gaugeStartAngle="270"
app:gaugeStartValue="0"
app:gaugeStrokeCap="ROUND"

doesn't work for me either. The solution above didn't help me either. Looks like "compile()" is also being depreciated.. seems like this library is out of date


remove Object.assign for IE11 compatibility

Fix for #9. Needs testing.

Can I help testing?
Not sure what you need from me, so for now:
I just cloned this branch. Works fine in latest IE 11

Works for me. Thanks for having a look. Will push to NPM shortly.


Ensure owner length <= 9 to meet a GCP resource naming requirement. …

Cluster will fail deploying if the owner has a last name with more than 8 letters (+ 1 letter for first name). There is also no validation being done if someone enters an owner with more than 9 letters. It will fail much later on in the forwarding-rules deployment because the resource name is too long and GCP won't allow it.
Changes: if the user enters an owner with more than 9 letters, the terraform template will fail immediately and return an explicit error.
If the user does not enter an owner and his name is too long, it will be shortened to the maximum.
*tested and working
error sample:
Error: Error applying plan:
2 error(s) occurred:

google_compute_forwarding_rule.external-public-agent-forwarding-rule-http: 1 error(s) occurred:

google_compute_forwarding_rule.external-public-agent-forwarding-rule-http: Error creating ForwardingRule: googleapi: Error 400: Invalid value for field 'resource.name': 'cprovencher-tf2c9f-public-agent-external-lb-forwarding-rule-http'. Must be a match of regex '(?:a-z?)', invalid

google_compute_forwarding_rule.external-public-agent-forwarding-rule-https: 1 error(s) occurred:

google_compute_forwarding_rule.external-public-agent-forwarding-rule-https: Error creating ForwardingRule: googleapi: Error 400: Invalid value for field 'resource.name': 'cprovencher-tf2c9f-public-agent-external-lb-forwarding-rule-https'. Must be a match of regex '(?:a-z?)', invalid

remove null resource check
always use the full name for owner tag (cloudcleaner)
always trim cluster_name


Large request payload crashing API

I am having the exact same issue described here: https://github.com/googleapis/nodejs-logging-bunyan/issues/14
Throughout the codebase, occasionally (and accidentally) I am logging very large entries, and encountering an exception which crashes the server:
Error: 3 INVALID_ARGUMENT: Request payload size exceeds the limit: 10485760 bytes.
  File<EMAIL_ADDRESS>line 31, col 19, in callErrorFromStatus
    const error = new Error(message);
  File<EMAIL_ADDRESS>line 192, col 76, in Object.onReceiveStatus
    callProperties.callback((0, call_1.callErrorFromStatus)(status, /*callerStack*/ ''));
  File<EMAIL_ADDRESS>line 360, col 141, in Object.onReceiveStatus
    '{snip} istener === null || listener === void 0 ? void 0 : listener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(listener, status);
  File<EMAIL_ADDRESS>line 323, col 181, in Object.onReceiveStatus
    '{snip} ener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(interceptingListener, status);
  File<EMAIL_ADDRESS>line 94, col 78, in <anonymous>
    (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus(filteredStatus);
  File "node:internal/process/task_queues", line 77, col 11, in process.processTicksAndRejections

I am using the logging-bunyan Express middleware as follows:
  const { logger: gcpLogger, mw } = await lb.express.middleware({
    logName: "api-" + process.env.FLY_APP_NAME,
    level: "debug",
    defaultCallback: (err: any) => {
      try {
        if (err) {
          console.error("Error occured with logger.", err)
          Sentry.captureMessage(err, { level: "error" })
        }
      } catch (_err) {
        console.error("Error occured with logger in try/catch blog.", _err)
        Sentry.captureException(_err)
      }
      return true
    },

    // GCP should truncate the message down to 200kb.
    // See https://github.com/googleapis/nodejs-logging/pull/607.
    maxEntrySize: 200000,
  })

It doesn't look like I'm able to pass in the arguments to this middleware as per the solution described here: https://github.com/googleapis/gax-nodejs/issues/157#issuecomment-345335610
maxEntrySize also doesn't seem to properly truncate.
Ideally, I don't care as much about truncating; I just want to properly handle the exception and not crash the server whenever I inadvertently attempt to log a massive entry.
Environment details

OS: Linux
Node.js version: 18.18.2
npm version: 10.3.0
@google-cloud/logging-bunyan version: 4.2.2

Hi @seeARMS, are you still running into this issue? If the GRPC options didn't work for you, could you also share the parameters you set?

Hi @seeARMS, are you still running into this issue? If the GRPC options didn't work for you, could you also share the parameters you set?

Where do I set those gRPC options? I mentioned in the OP that I'm using the logging bunyan Express middleware and the gRPC options don't get passed down

I'm also facing a similar issue with our services. @seeARMS, did you find a way to pass those options on to the Express middleware?

Also @cindy-peng - would you like a repro of the issue in a repository somewhere for better inspection?

Hi @pedroyan, are you also using the Express middleware? If so, do you mind also sharing your latest repro? Thank you!

Hi Everyone,
I encountered the same issue where large log entries cause the server to crash due to exceeding the request payload size limit. Specifically, I received the following error:
Error: 3 INVALID_ARGUMENT: Request payload size exceeds the limit: 10485760 bytes.
I managed to resolve it by following these steps:

Create a custom class that inherits from Writable: This class enforces a stream size limit, in this case, 9MB.

import { Writable } from 'stream';

export default class SizeLimitedStream extends Writable {
  private buffer: string[] = [];
  private sizeLimit = 9000000; // 9MB
  private bunyanStream: NodeJS.WritableStream;

  constructor(bunyanStream: NodeJS.WritableStream) {
    super({ objectMode: true });
    this.bunyanStream = bunyanStream;
  }

  _write(chunk: never, encoding: string, callback: Function) {
   // TODO: check size limit before pushing to buffer
    this.buffer.push(chunk);
    if (this.buffer.join('').length >= this.sizeLimit) {
      this.flushBuffer();
    }
    callback();
  }

  flushBuffer() {
    this.bunyanStream.write(this.buffer.join(''));
    this.buffer = [];
  }
}

Use the class to customize and limit the LoggingBunyan stream:

import { LoggingBunyan } from '@google-cloud/logging-bunyan';
import SizeLimitedStream from './size-limited-stream';
import Bunyan = require('bunyan');

# .... some code

const loggingBunyan = new LoggingBunyan();

const { stream, level, type } = loggingBunyan.stream('info');

const sizeLimitedStream = new SizeLimitedStream(stream);

const logger = Bunyan.createLogger({
  name: 'some-log',
  streams: [
    { stream: sizeLimitedStream, level, type },
  ],
});

logger.info({},'something')

# .... some code

Of course, this can and should be improved 😄, but it worked for me, and I hope it works for you too!

Hey @cindy-peng - apologies for the delay here. Things have been hectic on my side, but I will whip up a repro today for you .
@hizaguirre-sp Nice solution!! How can I inject this limited stream into the GCP logging middleware?

import { Express } from 'express'
import * as gcpLogging from '@google-cloud/logging-bunyan'

const useGcpLogger = async (app: Express) => {
  const { mw, logger } = await gcpLogging.express.middleware({
    logName: 'logName',
    level: 'debug',
  })
  app.use(mw)

  // How can I attach the stream to this logger? The middleware is the code that creates it
  // logger.??
}

Ok, so I've hacked together this repro code using a similar setup as the one my team uses in production, but to my surprise, the repro code works...

... while the same "explosion" logic on our production solution takes down the server.

My first hypothesis was that one of the dependencies of @google-cloud/logging-bunyan was not working as expected when trying to limit the request size.
However, even after updating all direct and indirect dependencies of @google-cloud/logging-bunyan by deleting the yarn.lock file and installing it from scratch on our solution, the problem still persists.
Here is a link to my repro repository in case someone is also facing this problem and want to compare their solution against a working (hacked-together) setup
https://github.com/pedroyan/log-explosion-repro


session_url cannot be configured in config/application.rb anymore

In 8.0 session_url configured in config/application.rb (or the other env files) is ignored.
Additional information which could be helpful if relevent to your issue:
Code example (inline, gist, or repo)
Runtime information:
Neo4j database version:
neo4j gem version: 8.0
neo4j-core gem version:

Thanks for noting this!

Released as 8.0.0.alpha.11


Deploy to demo- DO NOT MERGE

Config changes for WA and Bundling/DocNaming POC that should be deployed to demo

Closing as no longer needed


Using with FDC2112, 1st channel transmits only 0x40000, 0x30000 and 0x20000

Hello!
Has anyone tested this on the FDC2112?
I've connected FDC2112 to an Arduino as follows:
Arduino | Level shifter | FDC2112
5V   ---| HV        LV  |--- 3.3V
3.3V ---|---------------|-'
GND  ---| GND      GND  |--- GND
A4   ---| HV1      LV1  |--- SDA
A5   ---| HV2      LV2  |--- SCL

I've run testFDC-Serial.ino:
https://github.com/zharijs/FDC2214/blob/8dc23684ccbd1629eeb41d2a0e99316ff1611503/examples/testFDC-Serial/testFDC-Serial.ino#L48-L68
with the following modifications:
Uncomment https://github.com/zharijs/FDC2214/blob/8dc23684ccbd1629eeb41d2a0e99316ff1611503/examples/testFDC-Serial/testFDC-Serial.ino#L48
Comment out  https://github.com/zharijs/FDC2214/blob/8dc23684ccbd1629eeb41d2a0e99316ff1611503/examples/testFDC-Serial/testFDC-Serial.ino#L50
Change 4 to 2 https://github.com/zharijs/FDC2214/blob/8dc23684ccbd1629eeb41d2a0e99316ff1611503/examples/testFDC-Serial/testFDC-Serial.ino#L59
Change 28 to 16 https://github.com/zharijs/FDC2214/blob/8dc23684ccbd1629eeb41d2a0e99316ff1611503/examples/testFDC-Serial/testFDC-Serial.ino#L66
Add HEX argument to print to see what's happening more clearly: https://github.com/zharijs/FDC2214/blob/8dc23684ccbd1629eeb41d2a0e99316ff1611503/examples/testFDC-Serial/testFDC-Serial.ino#L68
This results in the 2 channels only ever transmitting 0s. Setting intOsc to true on line 48 results in channel 0 transmitting 40000 , 30000, or 20000 (I am using this skin capacitance sensor  (schematic)).
This is obviously a very low resolution, much less than the advertised 12 bits. I've tried changing the MSB address, but unfortunately all values between 0x00-0x07 are just FFFs (i.e. channel 0 transmits FFF0000 for FDC2214_DATA_CH0_MSB being set to any of 0x00-0x07).

Update: after having a good look at the datasheet, a solution is to change the gain flag to 0b11:
// Set the gain flag of the moisture sensor
    uint16_t gainFlag = capsense.read16FDC(0x1C);
    Serial.println(gainFlag, HEX);
    capsense.write16FDC(0x1C, 0x3 << 9);
    gainFlag = capsense.read16FDC(0x1C);
    Serial.println(gainFlag, HEX);

This results in a 6-bit resolution, which was good enough for my application.

have you used moisture click that uses FDC2112 if yes please send me the full code you used to integrate FDC 2112


enum in domain layer, but i want to use it in application .  how can i do that?

namespace Domain.Entities
{
  public class MyNode : EntityBase
  {
    public enum NodeStatus
    {
      WAITING,
      RUNING,
      ERROR,
      REBOOT,
    }

    public Guid Id { get; set; }
    public string Name { get; set; }
    public NodeStatus Status { get; set; }
    public string NodeIp { get; set; }

Since Application references Domain, you should be able to use it.
It is a public enum.

so like this ??
  public class CreateMyNodeCommand : IRequest<MyNodeDto>, IHaveCustomMapping
  {

    public string Name { get; set; }
    public RenderNode.NodeStatus Status { get; set; }

i am using webapi. (presentation layer)
webapi need that enum too. isnt it?
current it take int  like this
 public class MyNodesGetRequest
  {
    public string Name { get; set; }
    public int? Status { get; set; }

==>  so change like this
 public class RenderNodesGetRequest :
 {
    public string Name { get; set; }
    public RenderNode.NodeStatus? Status { get; set; }
}

but then i have to use domain layer code on present layer.
what do you think?

Yes, you can do that, but... I recommend one of the next two ways:

Move the enum definition outside the domain class (it can be placed in a separeted file)
namespace Domain.Entities { public class MyNode : EntityBase {  public Guid Id { get; set; }  public string Name { get; set; }  public NodeStatus Status { get; set; }  public string NodeIp { get; set; } } //outside class MyNode public enum NodeStatus {   WAITING,   RUNING,   ERROR,   REBOOT, }

Add an enum class in Application, like a model, to be mapped with the enum of Domain.

namespace Application.SharedEnums {   public enum NodeStatus   {      WAITING,      RUNING,      ERROR,      REBOOT,    } }
In this way you only need to use Automapper to map Application.SharedEnums.NodeStatus with Domain.Entities.NodeStatus, and you can use this Application enum in Application and in Presentation Layer.

ah...got it i will take second approach.
thank you so much.


[Feature Request(ui)] ui/Dialog accesibility

Hi! @yandeu
I noticed some nano-jsx/lib/ui/Dialog's accessibility fault when I read nano's code, such below

[x] dialog was not removed when a user push Escape key
[x] a user traversing a web site only with a keyboard cannot close dialog because action button in Dialog can not ne focused on traversing with keyboard.
[ ] dialog's background should be attached with aria-hidden prop because this is helpful for a screen-reader user
[x] dialog's background should be fixed with the current scrolling position
[x] dialog should be closed when overlay is clicked
[ ] the first interactive element in Dialog should be focused when Dialog appear
[ ] the interactive element which a user focused on the last time before Dialog appear should be focues after Dialog disappear

These features are implemented in react-spectrum or mui and are helpful for anyone.
I want to implement this feature into nano-jsx/lib-ui/Dialog, but I want to hear your opinion on this before I implement it.

Feel free to add these features :)

Looks great so far. Thanks for your help :)
Btw, check out the cool pattern I just added in ui.html. It is very powerful. I'm sure you'll like it.
// store reference to Pages Component
let pagesRef

class Pages extends Component {
  render(page = 'home') {
    if (page === 'home') return
Homepage

    else if (page === 'about') return
About

    else if (page === 'more') return
More

  }
}

const App = () => {
  return (

      // save reference to Pages Component
      <Pages ref={p => (pagesRef = p)} />

      // manually update the Pages Component via its reference, and pass the Navigation id to update/render
      <Navigation onClick={e => pagesRef.update(e.id)}>
        <NavigationAction label="Home" icon="/.../home.svg" active={true} />
        <NavigationAction label="About" icon="/.../about.svg" active={false} />
        <NavigationAction label="Favorites" icon="/.../heart.svg" active={false} />
      </Navigation>

  )
}

Oh! This Navigation is pretty cool because it can really work with UI library(nanojsx) to provide lightness(bundle size) and simplicity!


Small startup usability improvement

For user klicking in their IDE on the link which is displayed on startup ("Jetty is listening on...") now honors default context path

This is good improvement, thanks @maxemann96 !


csproj and vs 2017 updates to ef mvc core tutorial

@rowanmiller @Rick-Anderson please review
Aside from general project.json to .csproj and VS 2017 changes, this also updates to EF Core 1.1.
Links to staging for sections with significant changes:

In the intro tutorial: the section about adding EF support to a project (.csproj instead of project.json)
In the migrations tutorial: the section about PMC vs CLI (no longer warns that PMC is unstable)
In the reading related data tutorial:

the intro section that explains eager vs explicit loading
the code for explicit loading (now using the same code from the EF 6 version of the tutorial)

In the concurrency tutorial: the code for getting database values (now using the same code from the EF 6 version of the tutorial)

@tdykstra  we can remove auth when we have time.


Improve collectible detection

This PR:

Downgrade jest to last stable version for typescript.
Improves collectibles detection. If collectible contract information is not found when auto detecting collectible (bad internet connection or open sea failure), collectibles are not being added. A test was added simulating this behavior, if information is not found the auto detection is going to wait for the next time detectCollectibles is triggered.

Codecov Report

Merging #60 into master will not change coverage.
The diff coverage is 100%.

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


Moving all IDs to only one file

It would be interesting to have only constants in both OTMapGen.js and border.js and move all ids to a single files, so people could easily change for using 7.6 ids, or OpenTibia Sprite Pack, or a complete different set of 10.98 tiles.

So you mean like having a file e.g. ids.json that has all defined constants that are now in the bordering functions:
{
    "MOUNTAIN_WALL_NORTH": 0000,
    "MOUNTAIN_WALL_SOUTH": 0000,
    ....

}

That was a chore! But done in 523bc7cb1d86064ad56bc77ab9bf809b941c816d.


Please explain what the problem is.

I don't think I can install it like the picture above. Please explain how to do it.

It seems like you're running it in Windows CMD. I recommend running it in Kali Linux.
It's possible that Instagrapi is not installed. Please try the following command:
pip3 install instagrapi

If you encounter any errors, you can watch some tutorials on YouTube to learn how to install pip


Transaction remote participant hang when try to infect the same transaction multiple times.

Description:
When we invoke the same remote participant multiple times, ballerina transaction coordinator refuses to register the remote participant after first registration, yielding error "Already-Registered".
Sample code to reproduce:
-- Service --
import ballerina/http;
import ballerina/log;
import ballerina/transactions;

@http:ServiceConfig {
    basePath: "/"
}
service hello on new http:Listener(8991) {
    @http:ResourceConfig {
        methods: ["POST"],
        path: "/"
    }
    @transactions:Participant { }
    resource function sayHello(http:Caller caller, http:Request req) {
        var result = caller->respond("Hello, World!");
        if (result is error) {
            log:printError("Error sending response", err = result);
        }
    }
}

-- Transaction initiator --
import ballerina/http;
import ballerina/io;

http:Client clientEndpoint = new("http://localhost:8991/");

public function main(string... args) {
    http:Request req = new;
    req.setPayload("POST: Hello World");

    transaction {
        foreach var item in 1...4 {
            var response = clientEndpoint->post("/", req);
            io:println(response);
        }
    } onretry {
        io:println("retrying");
    }
}

Also refer the discussion in Ballerina-Dev list [2]
[1]  - https://docs.google.com/document/d/1DtbN4epRsHioc1vmDYv1EM755Y1NiAqHcSX4-PcMRVc/edit
[2] - https://groups.google.com/forum/#!topic/ballerina-dev/UbOiZJYVubQ

Initiator log
INFO  [ballerina/transactions] - Created transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb
object http:Response
object http:Response
object http:Response
object http:Response
INFO  [ballerina/transactions] - Running 2-phase commit for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb:$anon$.$0
[ballerina/http] started HTTP/WS listener <IP_ADDRESS>:46751
[ballerina/http] stopped HTTP/WS listener <IP_ADDRESS>:46751

Participant log

[ballerina/http] started HTTP/WS listener <IP_ADDRESS>:33935
[ballerina/http] started HTTP/WS listener <IP_ADDRESS>:8991
INFO  [ballerina/transactions] - Registering for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb:$anon$.$0 with coordinator: http://<IP_ADDRESS>:46751/balcoordinator/initiator/$anon$.$0/register
2019-09-06 12:34:52,575 ERROR [ballerina/transactions] - Cannot register with coordinator for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb : error {ballerina/http}GenericClientError message=Something wrong with the connection cause=error {ballerina/io}GenericError message=Connection refused: /<IP_ADDRESS>:46751
error: error Cannot register with coordinator for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb
 INFO  [ballerina/transactions] - Registering for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb:$anon$.$0 with coordinator: http://<IP_ADDRESS>:46751/balcoordinator/initiator/$anon$.$0/register
ERROR [ballerina/transactions] - Cannot register with coordinator for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb : error {ballerina/http}GenericClientError message=Something wrong with the connection cause=error {ballerina/io}GenericError message=Connection refused: /<IP_ADDRESS>:46751
error: error Cannot register with coordinator for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb
2019-09-06 12:35:07,685 INFO  [ballerina/transactions] - Registering for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb:$anon$.$0 with coordinator: http://<IP_ADDRESS>:46751/balcoordinator/initiator/$anon$.$0/register
 ERROR [ballerina/transactions] - Cannot register with coordinator for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb : error {ballerina/http}GenericClientError message=Something wrong with the connection cause=error {ballerina/io}GenericError message=Connection refused: /<IP_ADDRESS>:46751
error: error Cannot register with coordinator for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb
INFO  [ballerina/transactions] - Registering for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb:$anon$.$0 with coordinator: http://<IP_ADDRESS>:46751/balcoordinator/initiator/$anon$.$0/register
ERROR [ballerina/transactions] - Cannot register with coordinator for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb : error {ballerina/http}GenericClientError message=Something wrong with the connection cause=error {ballerina/io}GenericError message=Connection refused: /<IP_ADDRESS>:46751
error: error Cannot register with coordinator for transaction: ce3b9250-503f-4e1f-b6c0-f4b040beebfb
^C[ballerina/http] stopped HTTP/WS listener <IP_ADDRESS>:8991
[ballerina/http] stopped HTTP/WS listener <IP_ADDRESS>:33935

I am not getting Already registered error. ballerina transaction coordinator refuses to register the remote participant after first registration. Nothing in ballerina log as well. Is this expected behavior?

Yes, at the moment we consider "Already-Registered" response from the transaction-coordinator as an error, according to the Frank's reply in mail thread [2] we should not consider it as an error, but just a indicator that transaction is already registered.

Sample will not work due to https://github.com/ballerina-platform/ballerina-lang/issues/18756.
But original issue will fix with pr.
Sample will work if u replace main method with service.

This issue can be observed in local participants and another use case of remote participants. Seems some cases are not handled in previous fix. Hence reopen.


dialogs with their own input elements conflict with alerify

I discovered this while trying to write an alert dialog which happened to have its own set of radio buttons and labels. alertify.js has too generic a querySelector statement that was messing up the dialog. Here's how I fixed it. It probably should be more elegant, e.g., assign an alertify-specific class to the input element. Side note: the default CSS that impacts "input" elements might also be a bit too generic: it has input:not(.form-control) which also ended up negatively altering my dialog...I worked around it by hard-coding my own CSS. I can take a crack at what I think it should be and submit a diff, let me know.
diff --git a/src/js/alertify.js b/src/js/alertify.js
index 1689fd1..692ca1c 100644
--- a/src/js/alertify.js
+++ b/src/js/alertify.js
@@ -246,7 +246,7 @@

                 var btnOK = el.querySelector(".ok");
                 var btnCancel = el.querySelector(".cancel");
-                var input = el.querySelector("input");
+                var input = item.type=="prompt" ? el.querySelector("input") : null;
                 var label = el.querySelector("label");

                 // Set default value/placeholder of input

In fact dialogs with form based content have base page styling over-ridden. Field elements are increased in size to extend to dialog boundary, and labels are centered.
Additionally, .dialog boundaries do not accomodate fixed size textareas. The textarea spills over the .dialog size.


Mark GoogleSearchUser entries as "not_a_match"

Add link on the Candidate Edit page called "These possible candidates don't match" under the Google search area that hits a script page like this one: http://localhost:8001/twitter2/delete_possible_twitter_handles/wv01cand5746/
This script should save all of these entries with "not_a_match" = True in the class GoogleSearchUser.
WeVoteServer/google_custom_search/models.py

Done!


Compile error: definition of unknown language item panic_fmt

According to https://users.rust-lang.org/t/psa-breaking-change-panic-fmt-language-item-removed-in-favor-of-panic-implementation/17875 , panic_fmt has been changed to panic_implementation. It looks like this is causing a compilation error in this crate:
error[E0522]: definition of an unknown language item: `panic_fmt`
 --> /home/austin/.cargo/registry/src/github.com-1ecc6299db9ec823/msp430-rt-0.1.2/src/lang_items.rs:3:1
  |
3 | #[lang = "panic_fmt"]
  | ^^^^^^^^^^^^^^^^^^^^^ definition of unknown language item `panic_fmt`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0522`.
error: Could not compile `msp430-rt`.

I'm actively playing with this, so I may try to provide a pull request if I can figure out how to fix it.

I'm attempting to fix this, but it seems like something is not quite right. With the changes in https://github.com/pftbest/msp430-rt/compare/master...trainman419:master , I'm getting:
error: language item required, but not found: `panic_impl`

error: aborting due to previous error

error: Could not compile `msp430-quickstart`.

the proper fix would be to remove all the panic stuff from this crate completely and just create a new crate named panic-loop or something, similar to panic-abort and panic-semihosting crates

Sorry; I'm still a bit of a Rust noob. I updated the Cargo.toml to override the msp430-rt dep from crates.io, and my patches to msp430-rt work now!
Since the panic function is calling msp430-specific functions, it would probably need to be an msp430-panic-loop crate or something similar.

Submitted my changes as: https://github.com/pftbest/msp430-rt/pull/3

Thank you


Add Footer text option for login screen

ISSUE TYPE

Enhancement Request

COMPONENT NAME

UI

CLOUDSTACK VERSION

4.1%+

CONFIGURATION

NA
OS / ENVIRONMENT

NA
SUMMARY

The ability to add text (usually help related) on the login screen would be very useful.
By adding a Login Screen Footer Text (HTML) option would for instance point users where to get login help.
Or show a usage policy.
STEPS TO REPRODUCE

Go to the login screen
EXPECTED RESULTS

ACTUAL RESULTS

As one can use inline HTML to format the footer text in the main UI through the config.json file. ie
  "footer": "IMPORTANT TEXT
Other text",
Then I'd think that doing the same on the login page would give as much flexibility as anyone would need. so only one 'placeholder' would do it.
People might not realize that this can be done in the main UI.  I'll add a note on it in the documentation if it's not already there.

As one can use inline HTML in the main UI through the config.json file to add text formatting and new lines. ie
 "footer": "IMPORTANT TEXT
Other text",
Then I'd think that doing the same on the login page would give as much flexibility as anyone would need. so only one 'placeholder' would do it.
People might not even realize that this can be done in the main UI. I'll add a note on it in the documentation if it's not already there.

no , i didn't. thanks @PaulAngus

Fixed in https://github.com/apache/cloudstack/pull/5628


BUG: address parser -> validity

~
❯ himalaya -a bureaukrati read 36
Error: cannot parse From value: Oslo kommune, Bymiljøetaten<EMAIL_ADDRESS>Caused by:
Invalid address found: must contain a '@' symbol

Duplicate https://github.com/soywod/himalaya/issues/402, the address is not well formatted according to the RFC (and this happens a lot), I need to think well about how to deal with such cases.


Should be able to specify node id when commissioning device

It would be useful to be able to specify a node id when commissioning a device rather than being assigned one. Getting a node id could be the default behavior if one doesn't specify a node id.
In some cases one might need to re-build something it would be nice to be able to re-create the devices with specified node id's in order to avoid needing to re-mapping the node id's.

node id is internal and should actually be completely random. You should not match any logic on it.
In fact we have it now lineair counting for the time being because it helps us debugging but at some point we'll follow everyone else and just make it randomized number.

The Matter plattforms allow for assigning node id's.

@marcelveldt Could we re-visit this issue?
I would appreciate if it would be possible to specify a node id in the "commission_with_code" command.
If a node id is not specified you can pick a random node id or whatever, but if it's specified you should use it. If it's already used, just return an error.
I don't see why it should not be possible to specify it as long as the platform is designed around it.

Sorry no because we are linear counting and this change would have other impact.
We need to guarantee that we send a node id that has never been used before and that is guarded now. Allowing a node id in the commission command lifts that guard and can have bad side effects. So no, sorry.

Could this be reconsidered? I think it should be possible to replace a node devive without having to re-map the node id.


Vetting Worksheet - Make "Current Work Items" header persistent

When scrolling to see all the Work Items the title "Current Work Items" scrolls out of view. To make it easier to know where the user is in the VW move Current Work Items above scroll box so it is persistent.
Same for "Complete Work Items" (and change to "Completed Work Items" (past tense))

Changes are implemented.


WIP: api: numaresourcesopereator: MCP status reflection is optional

The NUMAResourcesOperator object initially reflected the status of the selected MCP in its own status. This helped the initial (very initial, bootstrapping) stage, but quickly becomes large and it is essentially unnecessaty and wasteful.
We start declaring the values optional.
Future changes, backward compatibility allowing, will stop reflecting the status to save bandwidth, and unblock future compatibility.

/test security

/cherry-pick release-4.15

no, bad idea. The biggest offender is status.MachineConfigPool[*].Conditions which is marked optional anyway. We can't retroactively mark this optional, and actually doing so could harm our extensions plan.
We can and probably should reuse this field for the aforementioned plans (in general), deferring the cleanup to the api v2, if we will ever get to that.


Mac Launcher crashes immediately after opening

The Mac Launcher keeps crashing when opened for some reason, I'll link the crash report below
https://pastebin.com/ewx7XZWH

SIGABRT so means we're gonna need stdout logs. Dangit.

How would I go about getting stdout logs?

If you've got some technical experience you can run Space Station 14 Launcher.app/Contents/MacOS/SS14 with a terminal and screenshot what it dumps out.
Either way I think I'm gonna make the launcher logs get dumped to a file so if you can wait a bit I can make a modified version of the client I guess.

Is this what you need? I'm not sure I did it correctly

That's good enough. I double checked your crash log and the issue is that your macOS version is too old. Right now the game needs a minimum of High Sierra (because .NET Core 3 does) and you're still on Sierra.
Not much we can do here, sorry. Maybe .NET 5's integration of Mono would allow us to run on older macOS versions again.

I've updated the downloads page on the website to list that macOS needs at least High Sierra, since I think you're not the first person to have a problem with this.
Otherwise, there's not much we can do to fix this so closing.


Support default values spread across multiple lines

Support line breaks before the '=' in a field definition

Thanks!


Add more configs to KThreesServerConfig and KThreesAgentConfig

Compared with the available config on k3s cli page, we are missing several configs (like pause-image, resolv-conf). We could do best effort for exposing these configs in KThreesServerConfig and KThreesAgentConfig, but also allow the user to add key-value like configuration to a map structure, so that if certain config is missing in KThreesServerConfig, one could still add it🤔

I find that multiple config files is already supported by k3s, one could add arbitrary configs by create a file to /etc/rancher/k3s/config.yaml.d/*.yaml. This issue is with low priority.
We could still add the configuration to KThreesServerConfig if it is commonly used.


Maven task does not find the task-report.txt is some cases

https://github.com/Microsoft/vsts-tasks/issues/2485

Hi Team,
Looks like "Maven task does not find the task-report.txt is some cases" issue has been fixed.
Just wanted to know how to get the updated version in our TFS instance, we are using in on premise
Thanks


Build failure: mymcplus

Steps To Reproduce
Steps to reproduce the behavior:

build mymcplus

Build log
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'shell'
         whose name attribute is located at /nix/store/7v6l2v247fmdgfpbs3w91mf6rinai4yk-source/pkgs/stdenv/generic/make-derivation.nix:334:7

       … while evaluating attribute 'buildInputs' of derivation 'shell'

         at /nix/store/7v6l2v247fmdgfpbs3w91mf6rinai4yk-source/pkgs/stdenv/generic/make-derivation.nix:381:7:

          380|       depsHostHost                = elemAt (elemAt dependencies 1) 0;
          381|       buildInputs                 = elemAt (elemAt dependencies 1) 1;
             |       ^
          382|       depsTargetTarget            = elemAt (elemAt dependencies 2) 0;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: wxpython-4.2.1 not supported for interpreter python3.12

Additional context
The problem is simply that the package depends on the latest wxpython, which is incompatible with mymcplus' code.
I built the 24.05 version of the package (as opposed to the unstable version) and it built just fine. I was also able to launch the gui by creating a shell with python311Packages.wxpython, so I think this could be fixed by chaning pythonPackages in the package source to python311Packages.
Notify maintainers

@Stunkymonkey @lasers
Metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.43, NixOS, 24.11 (Vicuna), 24.11.20240731.9f918d6`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - nixpkgs: `/nix/store/7v6l2v247fmdgfpbs3w91mf6rinai4yk-source`

Add a :+1: reaction to issues you find important.

#326142 might fix this as well

It's building:
https://hydra.nixos.org/job/nixpkgs/trunk/mymcplus.x86_64-darwin
https://hydra.nixos.org/job/nixpkgs/trunk/mymcplus.x86_64-linux


Adjusting Speed

Hi thank you for this wonderful interface. But is it possible to adjust the tuning speed? thanks.

You're welcome. The answer is no, this is not possible. There is no mention
of adjusting this speed in the device manual.
On Mon, Sep 13, 2021, 04:44 ClassicFan1013 @.***> wrote:

Hi thank you for this wonderful interface. But is it possible to adjust
the tuning speed? thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/martinks/jena/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABLA6WHOQDUSDEOQR7ZK7P3UBVQPRANCNFSM5D4ZVZMA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Code samples on website hardly readable

🐞 Bug Report
Describe the bug
The code samples on the website are hardly readable.
Reproduce the bug
Go to https://millsp.github.io/ts-toolbelt/modules/function_narrow.html
Expected behavior
Code is clearly readable.
Possible Solution
Change the color theme.

Oh Stalebot, you really are the hero of GitHub ❤

Thanks stalebot. You're doing great work.

Fine. Don't care 😄


"mixin-content" mistake

Hi, I think that are a mistake in the mixin-content sample
The sample says:
 @mixin apply-to-ie6-only {
       * html {
         @content;
       }
     }
     @include apply-to-ie6-only {
       #logo {
         background-image: url(/logo.gif);
       }
     }

and the correct use of the mixin would be:
 @mixin apply-to-ie6-only {
  * html {
    @content;
  }
}

#logo {
  @include apply-to-ie6-only {
    background-image: url("/logo.gif");
  }
}

Hi Manuela, thanks for spotting this and taking the time to report it!
Most of these snippets were copied over verbatim from the sass/sass repo behind the http://sass-lang.com/ website and are clearly out of date 😄   This particular snippet was taken from the SASS_REFERENCE.md file at revision 747185238f.
Would you feel comfortable preparing a PR updating the samples yourself?

I was reviewing and the example is correct, the problem is that it is not illustrative with the activity that is proposed to do later, I will prepare a PR with a more appropriate example for this

Super, thank you!

I need authorization to do the PR

Ready! resolve #53

May I ask you to update the issue and commit message to better clarify the intent, e.g. "Improve description of Mixin Content exercise"? This way it will be clear what the change does when looking at the repo history. Thank you!

Sure! #54

Hi ! Please check the PR #63


Picovoice Console Issue:

Make sure you have read the documentation, and have put forth a reasonable effort to find an existing answer.
pvporcupine licence has stopped updating on my raspberry pi4 despite working over last 2 months:
in order to report the issue I have paired back to the demo code from (https://pypi.org/project/pvporcupine/)
import pvporcupine
access_key = "my_access_key" # AccessKey obtained from Picovoice Console (https://console.picovoice.ai/)
handle = pvporcupine.create(access_key=access_key, keywords=['picovoice'])
Actual behaviour
[WARN] License is nearing expiry. Requesting renewal from activation server...
[WARN] Unable to renew license.
-------programme stops at this point-----------
similar code has been working extremely well in my 'home virtuall assistant' project over the past few months and I thought the licence was updating.
The rpi is connected to the internet and the connection works fine with my other apps and code.
I have reinstalled rpi os  a number of times recently using an ssd in place of an sd card to improve speed.
I wonder if the updated os and drive are seen as a different device thus appearing to breach the limit?
console shows:
Device Limits 3 of 3
Devices used for Porcupine, Rhino, Cobra past 30 days
Usage Limits 393 of 360000
Seconds used for Cheetah, Leopard and Octopus past 30 days
I only tried cheetah to see if it would be a better bet but it seems too complicated for my use.
Steps to reproduce the behaviour
above simple demo code clearly confirms the same behaviour as my project code.
(Include enough details so that the issue can be reproduced independently.

@carisbrookes - unfortunately, as you've guessed, reinstalling the OS would cause our licensing system to detect it as a new active user of the software. You'll have to wait until one of your license slots opens up again (30 days after first registration) before your device can be registered again. We are considering changing this behaviour for smaller, Linux-based devices, but can't commit to a timeline on it.

Dang. Same issue — had to reinstall the OS on my rpi and now I am unable to use my access token. It would be nice to have a mechanism to "deactivate all registered devices" for an AccessKey.


Localization issues after running clean command

First of all, there's an issue with importing DEFAULT_LOCALE in i18n.js. It should be import { DEFAULT_LOCALE } from './containers/App/constants'; instead of import { DEFAULT_LOCALE } from './containers/App/constants';. The current one thrown an error when running npm run generate language. Here is a PR for this: https://github.com/mxstbr/react-boilerplate/pull/1190
After fixing this issue and successfully running npm run generate language (let's say it is da) we have the following code in the bottom of i18n.js file:
export const translationMessages = {
  en: formatTranslationMessages('en',
  'da',
 enTranslationMessages),
};

but it should be:
export const translationMessages = {
  en: formatTranslationMessages('en', enTranslationMessages),
  da: formatTranslationMessages('da', daTranslationMessages),
};

Unfortunately I'm not good at regexps, so I can't fix the generator myself (https://github.com/mxstbr/react-boilerplate/blob/master/internals/generators/language/index.js#L48-L53 or https://github.com/mxstbr/react-boilerplate/blob/master/internals/generators/language/format-translation-messages.hbs)
But nevertheless after fixing this issue the localization still doesn't work. After adding appropriate translations to app/translations/da.json and changing DEFAULT_LOCALE to da, I still get English translations rendered in the app. It must be Danish, right? I think @chaintng is the right person to ask this question. There's pretty sure something else I haven't found.
Also, there's an issue with chunked polyfill for browsers without Intl support. So in my case after adding da language I got:
// Chunked polyfill for browsers without Intl support
    ...
    .then(() => Promise.all([
      System.import('intl/locale-data/jsonp/de.js'),
      System.import('intl/locale-data/jsonp/da.js'),
    ]))
    ...

I didn't add de language, I think it should be removed after running npm run clean.

After checking, the "real" default language of the app is defined in the /containers/LanguageProvider/reducer.js:
const initialState = fromJS({
  locale: 'en', // this is the line to change
});

@ulrik59 Yes, the language changes for me if I change locale.
So I suppose this should be:
import { DEFAULT_LOCALE } from '../App/constants';

const initialState = fromJS({
  locale: DEFAULT_LOCALE
});

Can confirm this issue, running the command npm run generate language throws errors no matter which locale you use. It also throws errors regardless if you ran npm run clean or not, interestingly the errors are different.
Did NOT run npm run clean:
? [LANGUAGE] What is the language you want to add i18n support for (e.g. "fr", "de")? fr

C:\Users\sam\fresh\react-boilerplate\internals\generators\language\index.js:71
            throw err || stderr;
            ^
Error transforming file: app/containers/LocaleToggle/messages.js
SyntaxError: unknown: [React Intl] `defineMessages()` must be called with an object expression with values that are React Intl Message Descriptors, also defined as object expressions.

After npm run clean:
? [LANGUAGE] What is the language you want to add i18n support for (e.g. "fr", "de")? fr
C:\Users\sam\fresh\react-boilerplate\internals\generators\language\index.js:71
            throw err || stderr;
            ^

Error: Command failed: npm run extract-intl
module.js:474
    throw err;
    ^

Error: Cannot find module 'containers/App/constants'

I'm unsure exactly where the issue is originating from but I suspect it may or may not be related to this commit. I only assume this as it appears to be a fairly large refactor of localization, but I'm only guessing, so please go easy on me if I am wrong.

@samit4me The second one is already resolved with #1190.
Yes, the bugs are pretty sure caused by the commit by @chaintng.

Yes, i think it's because of my commit. I'm looking into the langauge generator. Will send a patch soon.

@samit4me for 1), this bug was actually introduced since v3.1.0.
Since LocaleToggle/message.js are not to be automatically translated.
May be @justingreenberg you want to take a look to this issue.

Hi @chaintng just wanted to follow up.. should this be resolved by #1199 and #1200 ?

Fixed by #1199 as far as I can tell, will release a new version soon!

@justingreenberg
my pull request doesn't fix the warning
Error transforming file: app/containers/LocaleToggle/messages.js
SyntaxError: unknown: [React Intl] `defineMessages()` must be called with an object expression with values that are React Intl Message Descriptors, also defined as object expressions.

Look like because app/containers/LocaleToggle/messages.js is not using the pattern same as others. I'm not sure how to fix it properly yet.

LocaleToggle/messages.js#L13 maybe this is the issue....?
export function getLocaleMessages(locales) {
  return locales.reduce((messages, locale) =>
    Object.assign(messages, {
      [locale]: {
        id: `app.components.LocaleToggle.${locale}`, // *** this line?
        defaultMessage: `${locale}`,
      },
    }), {});
}

it looks like we are using a different pattern for translation id since this was implemented... so maybe if we change the above to:
//...
id: `boilerplate.containers.LocaleToggle.${locale}`

i'm not sure why this would cause a problem (since no conflict) but it's the only thing i can think of

@justingreenberg i think the generator is expecting dump object instead of function
please see also https://github.com/mxstbr/react-boilerplate/issues/1221#issuecomment-260174124

Could this error "defineMessages() must be called with an object expression with values that are React Intl Message Descriptors" mean that the translations may not default to an empty string?

I haven't looked into the generator but the generation itself works and I can use the new language afterwards - though I'm still getting runtime errors for missing translations as long as I don't fill the empty strings in /translations.
Both - the error and the possibility to double generate a language - should be fixed though to avoid confusion.


Issue77

Closes #77

@medjedovicm Looks like the build failed because of a code style issue. Would you be able run npm run lint:fix on the code please?

If you have the Prettier extension for VS Code, you can get it to format automatically on paste and save, by adding this to your settings JSON.

@allanbowe @medjedovicm I've fixed this for now, and added a 'Code Style' section to contributing.md describing how to adhere to the code style specified.


co_await on level-triggered widget.

Possibly not needed, since no events could trigger events until the next await anyway.


Exception in thread "main" com.hedera.hashgraph.sdk.HederaStatusException: TRANSACTION_OVERSIZE

while creating SmartContract getting following error.
Exception in thread "main" com.hedera.hashgraph.sdk.HederaStatusException: TRANSACTION_OVERSIZE
Code : Using existing CreateStatefulContract code, changed only the solidity and json file.
Will provide solidity code based on request.
try (InputStream jsonStream = cl.getResourceAsStream("xennies.json")) {
        if (jsonStream == null) {
            throw new RuntimeException("failed to get xennies.json");
        }
        jsonObject = gson.fromJson(new InputStreamReader(jsonStream), JsonObject.class);
    }

    String byteCodeHex = jsonObject.getAsJsonPrimitive("object")
        .getAsString();
    byte[] byteCode = byteCodeHex.getBytes();

    // `Client.forMainnet()` is provided for connecting to Hedera mainnet
    Client client = Client.forTestnet();

    // Defaults the operator account ID and key such that all generated transactions will be paid for
    // by this account and be signed by this key
    client.setOperator(OPERATOR_ID, OPERATOR_KEY);

    // default max fee for all transactions executed by this client
    client.setMaxTransactionFee(new Hbar(10000));
    client.setMaxQueryPayment(new Hbar(1000));

    // create the contract's bytecode file
    TransactionId fileTxId = new FileCreateTransaction()
        // Use the same key as the operator to "own" this file
        .addKey(OPERATOR_KEY.publicKey)
        .setContents(byteCode)
        .execute(client);

    TransactionReceipt fileReceipt = fileTxId.getReceipt(client);
    FileId newFileId = fileReceipt.getFileId();

    System.out.println("contract bytecode file: " + newFileId);

    TransactionId contractTxId = new ContractCreateTransaction()
        .setBytecodeFileId(newFileId)
        .setGas(100_000_000)
        .setConstructorParams(
            new ContractFunctionParams()
                .addString("hello from hedera!"))
        .execute(client);

Files have a max size that may be transmitted over a single transaction (~5 KiB I believe). If you need to upload a larger file/contract you must create the file first then do N FileAppend transactions to upload the file in chunks.

Can i get example for this one or some reference code how to use N FileAppend transaction to upload the file in chunks.

I don't have a great example in Java handy. That's definitely something we should add as an example. Upload a file that's say ~1 MiB.
However we do have a fairly decent JavaScript example here:
https://github.com/hashgraph/MyHbarWallet/blob/master/src/views/InterfaceUploadFile.vue#L180

@Velmuruganms12  here is a java example for N file append:
       int final FILE_PART_SIZE = 4000
        String byteCodeHex = jsonObject.getAsJsonPrimitive(contractName).getAsString();
        byte[] byteCode = byteCodeHex.getBytes();

        int numParts = byteCode.length / FILE_PART_SIZE;
        int remainder = byteCode.length % FILE_PART_SIZE;

        //add in 4k chunks
        byte[] firstPartBytes;
        if (byteCode.length <= FILE_PART_SIZE) {
            firstPartBytes = byteCode;
            remainder = 0;
        } else {
            firstPartBytes = TokenUtils.copyBytes(0, FILE_PART_SIZE, byteCode);
        }

        // create the contract's bytecode file
        TransactionId fileTxId = new FileCreateTransaction().setExpirationTime(
                Instant.now().plus(Duration.ofMillis(7890000000L)))
                // Use the same key as the operator to "own" this file
                .addKey(operatorKey.publicKey)
                .setContents(firstPartBytes)
                .setMaxTransactionFee(new Hbar(10))
                .execute(client);

        TransactionReceipt fileReceipt = fileTxId.getReceipt(client);
        FileId newFileId = fileReceipt.getFileId();

        logger.info("contract bytecode file: " + newFileId);

        //add remaining chunks
        // append the rest of the parts
        for (int i = 1; i < numParts; i++) {
            byte[] partBytes = TokenUtils.copyBytes(i * FILE_PART_SIZE, FILE_PART_SIZE, byteCode);
            new FileAppendTransaction().setFileId(newFileId)
                    .setMaxTransactionFee(new Hbar(5))
                    .setContents(partBytes).execute(client);
        }
        //appending remaining data
        if (remainder > 0) {
            byte[] partBytes = TokenUtils.copyBytes(numParts * FILE_PART_SIZE, remainder, byteCode);
            new FileAppendTransaction().setFileId(newFileId)
                    .setMaxTransactionFee(new Hbar(5))
                    .setContents(partBytes).execute(client);
        }

        return newFileId;

@Velmuruganms12 here is a java example for N file append:
       int final FILE_PART_SIZE = 4000
        String byteCodeHex = jsonObject.getAsJsonPrimitive(contractName).getAsString();
        byte[] byteCode = byteCodeHex.getBytes();

        int numParts = byteCode.length / FILE_PART_SIZE;
        int remainder = byteCode.length % FILE_PART_SIZE;

        //add in 4k chunks
        byte[] firstPartBytes;
        if (byteCode.length <= FILE_PART_SIZE) {
            firstPartBytes = byteCode;
            remainder = 0;
        } else {
            firstPartBytes = TokenUtils.copyBytes(0, FILE_PART_SIZE, byteCode);
        }

        // create the contract's bytecode file
        TransactionId fileTxId = new FileCreateTransaction().setExpirationTime(
                Instant.now().plus(Duration.ofMillis(7890000000L)))
                // Use the same key as the operator to "own" this file
                .addKey(operatorKey.publicKey)
                .setContents(firstPartBytes)
                .setMaxTransactionFee(new Hbar(10))
                .execute(client);

        TransactionReceipt fileReceipt = fileTxId.getReceipt(client);
        FileId newFileId = fileReceipt.getFileId();

        logger.info("contract bytecode file: " + newFileId);

        //add remaining chunks
        // append the rest of the parts
        for (int i = 1; i < numParts; i++) {
            byte[] partBytes = TokenUtils.copyBytes(i * FILE_PART_SIZE, FILE_PART_SIZE, byteCode);
            new FileAppendTransaction().setFileId(newFileId)
                    .setMaxTransactionFee(new Hbar(5))
                    .setContents(partBytes).execute(client);
        }
        //appending remaining data
        if (remainder > 0) {
            byte[] partBytes = TokenUtils.copyBytes(numParts * FILE_PART_SIZE, remainder, byteCode);
            new FileAppendTransaction().setFileId(newFileId)
                    .setMaxTransactionFee(new Hbar(5))
                    .setContents(partBytes).execute(client);
        }

        return newFileId;

where i can get this method TokenUtils.copyBytes. do i need import any other library or its custom Util class.

        byte[] rv = new byte[length];
        for (int i = 0; i < length; i++) {
            rv[i] = bytes[start + i];
        }
        return rv;
    }```
It is literally a method that copies a given number of bytes from one array into another

I am able to proceed with that error.
But got another error now in below line. I have balance in my account
    TransactionId contractTxId = new ContractCreateTransaction()
        .setBytecodeFileId(newFileId)
        .setGas(100_000_000)
        .setConstructorParams(
            new ContractFunctionParams()
                .addString("hello from hedera!"))
        .execute(client);

Exception in thread "main" com.hedera.hashgraph.sdk.HederaStatusException:
INSUFFICIENT_PAYER_BALANCE
at
com.hedera.hashgraph.sdk.HederaStatusException.throwIfExceptional(HederaStatusException.java:30)
at com.hedera.hashgraph.sdk.Transaction.mapResponse(Transaction.java:248)
at com.hedera.hashgraph.sdk.Transaction.mapResponse(Transaction.java:23)
at com.hedera.hashgraph.sdk.HederaCall.lambda$execute$0(HederaCall.java:55)
at com.hedera.hashgraph.sdk.Backoff.tryWhile(Backoff.java:37)
On Tue, Feb 18, 2020 at 9:50 PM rahul-ki<EMAIL_ADDRESS>wrote:

    byte[] rv = new byte[length];
    for (int i = 0; i < length; i++) {
        rv[i] = bytes[start + i];
    }
    return rv;
}```

It is literally a method that copies a given number of bytes from one array into another
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hashgraph/hedera-sdk-java/issues/362?email_source=notifications&email_token=AATIUUPEXWZA4LW3KLO3FQDRDQDFHA5CNFSM4KVYDUKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMCTSYI#issuecomment-587544929,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AATIUUINKR5V35Q342ZYI53RDQDFHANCNFSM4KVYDUKA
.

Check that the client.setMaxTransactionFee is < your balance. Also that the typical fee is < your balance. You can always find out more about these exceptions here. Seach for your error in this repo.
Given this is not an issue with the sdk, can we please switch over to discord java-sdk channel? You will find that this has been asked multiple times.

I'm going to say I'd prefer SDK discussion to happen in issues vs. in Discord as it's far more likely to be answered and show up in google results if we discuss it here.

With that said, your issue there is you're setting a huge amount of gas and you likely don't have a high enough balance to afford that gas limit. Just reduce the gas to something more reasonable like ~2000.

Closing out discussion.

I don't have a great example in Java handy. That's definitely something we should add as an example. Upload a file that's say ~1 MiB.
However we do have a fairly decent JavaScript example here:
https://github.com/hashgraph/MyHbarWallet/blob/master/src/views/InterfaceUploadFile.vue#L180

this link is not working. Is there any other reference ?

https://github.com/hashgraph/MyHbarWallet/blob/master/src/views/InterfaceUploadFile.vue#L180
@mehcode this link is not working. Is there any other reference in JavaScript.
@rahul-kothari


Make it clear whether to format the code

@liply You formatted the code once, but you remanded it. (d293b78)
However, your PR contains just a few lines just to format the code.
It is hard to see and review.
So we should choose whether to format the code before sending the PR or to give up formatting and remove the formatting of the code from the PR.
Either way, the description about the formatting of the code from PR will disappear.

Sorry, I just copy & paste from my branch, and It contains formatted code.
I'll try remove formatted only code.

maybe done. please tell me if such code is found.


Module Migrate Issue

I needed to use module:v6:migrate command for each new installation of my project. What changes i have to made, so that i do not have to run the same command each time?

You need to commit the file it generates under the storage folder. You can also configure that file to be generated somewhere else.

thanks for the update. Can you please let me know or refer to any doc so that i can change the generated file path and  commit with the project.

here: https://github.com/nWidart/laravel-modules/blob/master/config/config.php#L204

Thanks.
I believe this file was not in the previous versions. Can we remain the same as before like not having the file?
Can you please mention why is it necessary to list the modules this way ?

No we can't. This is a new feature from version 6, which is a major version.
The reason is because of this, we can easily change the storage, ie storing this in database too.

I just checked the change log and found that this new feature has been added.
I did not find that at the time of updating the package.
 But the module_status file keeps it listed. It is alright? or what is the right way to delete  a module.

you can delete the module folder and remove the line in the status file.
We could provide a module:delete command to make it easier.


New alerts

Image review
Image vulnerability

Done in kubed. https://github.com/appscode/kubed/issues/72


Readme update

Updated read-me for the backend to use.

I think you might need to rebase your commit onto a new branch


Default first parameter to cake.exe should be the target, not the script

What You Are Seeing?
The default parameter to Cake.exe is the build script.
What is Expected?
The default parameter should be the target task to run, so we can run 'cake build', 'cake test', just like all other make-likes.
What version of Cake are you using?
Version 0.15.2+Branch.main.Sha.c2ca4f7ca51c59dc9c47c9830125b4e66cf14e7a
Are you running on a 32 or 64 bit system?
64 bit.
What environment are you running on?  Windows? Linux? Mac?
Windows.
Are you running on a CI Server?  If so, which one?
This is a general issue

:+1:
I would very much like this as well. It would be a breaking change though, for cases where your cakefile is not named build.cake. Perhaps it could be made less breaking by assuming that a first argument ending with ".cake" is the script argument, whereas anything else is assumed to be the target argument?
I'd also personally like if the default file was called "cakefile" instead of "build" but that's maybe not terribly important :wink:

I took a look at how to make this change, but it doesn't look as easy as I'd hoped. The target task - along with all other arguments - is passed through to the script, which is why you need:
var target = Argument("target", "Default");
// ...
RunTarget(target);

So, to maintain some level of backward compatibility, the arguments would have to be rewritten up front so that the default positional argument is copied to target and the script name (passed via -s or -f or somesuch) is copied to the default positional argument.
I've removed cake.exe from my path and replaced it with this cake.cmd script that does this rewriting for me:
call cake.exe cakefile -t=%1


fix(dependencies): Updated dependencies

:tada: This PR is included in version 1.3.11 :tada:
Your semantic-release bot :package::rocket:


Feature request: Positioning and sizing

Hi, the widget is quite good and the only of its kind in the pub.dev, great work. Personally i would give it more flexibility, mainly sizing and positioning on the screen and maybe some border options.
If someone could create a config option for size and position on the config class for use in the modal it would be great!

This is in v0.4.1


Add encoding for MIME (Content-Transfer-Encoding)

I enjoy this library, but have to deal with a system that expects URL-safe base64 and still expects padding there in a strict manner. This is apparently in line with base64 used for MIME and content-transfer-encoding usages, with the only major difference being on the padding rules being kept.
This adds a function to support exactly that.

Merged.  Thanks!


manage-order-c21-changes

Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)
[ ] the enable_keep_helm label has been added, if the helm release should be persisted after a successful build

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/PRL-4814
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No

No longer needed already merged, hence closing it

No longer needed already merged, hence closing it


YouTube Playlist

@robdodson - remember to remind @gauntface about the YouTube Playlist stuff
https://support.google.com/youtube/answer/171780?hl=en

Is this about being able to embed a playlist?

i think so...? it's been so long i don't recall :P

Closing - feel free to reopen if you remember what it was.


Vue插槽slot引发的严重性能问题 - 续？

Version
2.6.6
Reproduction link
https://codepen.io/karmiy/pen/pMWVOX
Steps to reproduce
接着https://github.com/vuejs/vue/issues/10342
v-slot可以解决一些场景
但是，在一些情况不行
如这种
依旧会造成logger组件一直重新render
What is expected?
一个组件应该数据没有任何变化时，不应该有任何重新render的现象
What is actually happening?
放入的是依旧会render

Hey please, stop opening the same issue again and again. Search existing issues as the problem with listeners and attrs has already been reported and please open issues in English. Thank you


refactor: move InjectionKey export from FormItem.vue to .ts file to avoid warnings

Fixes #176

Failing to import from *.vue files happened because I was using tsc instead of vue-tsc. See:
https://github.com/radix-vue/shadcn-vue/issues/176#issuecomment-1817746656