Include test data file in protractor

Is there a way i can put my test data in a json file and use that file in my specs to get the test data. I need to use a lot of hard coded data which i want to put inside the data file. I know karma has the functionality for unit tests but not sure of using in protractor. Any suggestions.

Thanks Suresh, this helped me out big time man!!!  I am now able to create my data driven tests in Protractor. One day, I hope to contribute something as helpful as this. Thanks.

I am attempting to create the data file that was referenced Suresh. However I am having issues with protractor when I got to execute. I am getting unexpected token. Something isn't correct in my syntax. What does the whole data.json look like.
My Example:
projectData.json:
{
"url":"https://google.com",
"projectCode":"5c5d3ca2",
"memberId":"1",
"externalId":"1"
}
Then I save this off and reference the json file.
var testdata = require('../data/projectdata.json');

Can you put the json in jsonlint to verify if it is valid or not. That will
give you idea on where the issue is.
Thanks.
On May 27, 2015 8:48 AM, "meneghia"<EMAIL_ADDRESS>wrote:

I am attempting to create the data file that was referenced Suresh.
However I am having issues with protractor when I got to execute. I am
getting unexpected token. Something isn't correct in my syntax. What does
the whole data.json look like.
My Example:
projectData.json:
{
"url":"https://google.com",
"projectCode":"5c5d3ca2",
"memberId":"1",
"externalId":"1"
}
Then I save this off and reference the json file.
var testdata = require('../data/projectdata.json');
—
Reply to this email directly or view it on GitHub
https://github.com/angular/protractor/issues/978#issuecomment-105969012.

I followed Suresh's approach and It doesn't work for me either. My json is a valid file. I checked it in the json validator
{
<EMAIL_ADDRESS><EMAIL_ADDRESS>}
In my test,
var diff = require('../helper/differentlogin.json');
  it('Should click on Login button', function() {

    browser.get('/#/');

    element(by.name('username')).sendKeys(diff.user1);
    element(by.name('password')).clear().sendKeys('pass');
    element(by.id("login"))..click();;

 //});
  });

});

I need to pass the different userID in the send keys and password is the same for all our test users.

@sautomation : Can you give a try by referencing the values as diff[user1] or diff['user1'] inside sendkeys.

Thanks for Every one, Iam very new to protractor this helped me a lot and also can any one send the links to learn protractor?

Hi,
The solution from Suresh worked perfectly fine.
Next thing I need to try is write some text using protractor to the json file from which we read the values.
e.g.
If the original json file is this:
{
<EMAIL_ADDRESS><EMAIL_ADDRESS>}
I want to add an extra field through protractor code to json file. So the file should be like.
{
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>}
Please help.

Is there a way to run same it for several times based on array size in the JSON.
My JSON file looks like this:
[{
        "titleText": "U1"
    },

    {
        "titleText": "U2"
    },
    {
        "titleText": "U3"
    }

]


why templatesText click not working

Describe the bug
templatesText
do mouseover ok
but click not working
thanks
Screenshots

Device (please complete the following information)

OS: Windows 10
Browser:  Chrome 103.0.5060.134
Package version: 1.5.7

It's working on my side... Could you share a minimal example repo to reproduce the issue?

Is it working on the demo for you ? https://antoine92190.github.io/vue-advanced-chat/

sandbox example
thanks u :)
https://codesandbox.io/s/hardcore-shamir-nwlh0w

Is it working on the demo for you ? https://antoine92190.github.io/vue-advanced-chat/

It's working on my side... Could you share a minimal example repo to reproduce the issue?

sandbox example
thanks u :)
https://codesandbox.io/s/hardcore-shamir-nwlh0w

add setTimeout it's working lol
but i don't know why ....

Thanks, I can reproduce. I will fix this ASAP

Fixed in https://github.com/antoine92190/vue-advanced-chat/commit/cc6ad4f6f6211fb0ab8285796e04cc8c746a9970
Actually, the list was destroyed at the same time as the click action was done, so the click was not computed.
Not sure where this regression comes from, but it should work fine now.
Will release a new version later today.

great! thanks you

Fixed in cc6ad4f Actually, the list was destroyed at the same time as the click action was done, so the click was not computed. Not sure where this regression comes from, but it should work fine now. Will release a new version later today.


correct gitignore

Please ensure that your pull request fulfills these requirements:

[x] The pull request is being made against the master branch
[ ] Tests for the changes have been added (for bug fixes / features)

What is the purpose of this pull request? (bug fix, enhancement, new feature,...)
make .gitignore works
What changes did you make?
update .gitignore file
Provide some example code that this change will affect, if applicable:
-
Is there anything you'd like reviewers to focus on?
-
Please provide testing instructions, if applicable:
-

apk

http-server is a simple, zero-configuration command-line http server. It is powerful enough for production usage, but it's simple and hackable enough to be used for testing, local development, and learning.


Fix negative degree progression

Fix #153 : Computing degree progress has now changed to deal with duplicated credits causing an issue. I have not tested on >2 tags, or duplicate tags with UE, or different ordering of multi tags modules...
The change:
Split modlist into single tag and multi tag.
Insert all single tags first.
For each multitag, check how much to duplicate, then insert into the requirements.
How much to duplicate is calculated by $\Sigma(min(credit, remaining, capacity)) - credit$, limited to be non-negative.
Honestly, I forsee the ordering of multi tagged modules being somewhat an issue.

Yepp ordering of module is an issue, this doesn't work fully yet.

New fix: Allow for negative duplication credit to remove ordering issue. Also added error handling for total duped credit < 0 by telling the user that their list of modules is most likely invalid based on how they tagged them.
I also think we should probably have tightened the range available for the user's inputs to credit and tags, but then that's probably a feature flaw...

@AY2223S2-CS2103T-T13-1/developers please help to run some random "valid" list of modules to make sure the error doesn't show up for actual valid list of modules once merged.

Oh ya, possible to also change to disallow "F" grade module from being counted to MCs completion?

Oh ya, possible to also change to disallow "F" grade module from being counted to MCs completion?

Oright I missed that out, done.


Better platform independence

Filepaths need to be corrected and OS detection needs to be put in place

Changed default filepath for compiled output to ~/.yara_tmp.bin, which should resolve on every platform

Using tempy.file instead of ~ to provide a better os-independent solution


issue #101 resolved

Will soon upload a working example under my github handle
PS: Sorry for the wrong commit message

Hi @shubhamkakkar ! Thanks for the PR and for using Hooks. I have a question regarding those files in the .idea directory. I'm not sure what's up with them what are they used for and why are those there? I think those files should be ignored for the PR.
Alin

It's strange, those shouldn't be uploaded !! i will amend this by tonight.

I have removed the
.idea

folder @palingheorghe

Closed as mentioned in #116 .


jquery version

The jquery embed link doen't work. And the latest 3.1.0 version doesn't apply showing the "Uncaught TypeError: a.indexOf is not a function" .   The version 2.1.0 works.
update hopefully :)

I'll review this today, thanks. Probably patch will comes up in a day.

selector was also removed

By investigating this issue, i remembered that i have implemented long time ago - safe condition for .selector in case if by some reason it will not be available. So even if .selector is deprecated, xZoom still work. But just a little different.
Example
Let say we have next initialization code:
$(".xzoom, .xzoom-gallery").xzoom();

Then
With .selector available
xZoom will take only first image of the class .xzoom as main source image, then will ignore all other images of the class .xzoom, and starting from second class .xzoom-gallery it will use all of the images as thumbnails.
Without .selector available
xZoom will take only first image of the class .xzoom as main source image, all other images of the class .xzoom, plus all images from the class .xzoom-gallery will use as thumbnails.
So in case if class .xzoom is used only for main source image and for thumbnails is used only class .xzoom-gallery. Like dedicated - one class for main image, another for thumbnails. Then everything works fine without errors and as usual.


Improve confusing terminology

The variables symbol, base_symbol and output_symbol are not used consistently in the code and it reduces the readability. actually base_symbol and output_symbol are the same. output_symbol should be renamed to base_symbol because this is more intuitive. Somewhere in the code variable name symbol is used where base_symbol is meant actually.
Those changes are implemented in https://github.com/notadamking/tensortrade/pull/6

This should be fixed with the latest commits.


rebuilding while offline

When using the default configuration where programs.home-manager.path points to a remote URL it is not possible to rebuild one's home configuration with home-manager switch when not connected to the internet.
I deliberately configured my system config to be rebuildable even when offline, so I ask for either an option to disable updating remote paths or for an autodetection of being offline/ unable to pull in the paths. (GitHub could be down, too)
This is especially important because even adding a line to one's vimrc using home-manager requires a rebuild and should not depend on internet connectivity.

Thanks for the report. Yeah, for this case I would suggest cloning the Home Manager repository and changing programs.home-manager.path to point to the absolute path of your clone. Something like
programs.home-manager.path = "$HOME/devel/home-manager";

The lack of control over remote imports is up to the Nix tools and cannot be controlled by Home Manager. Then update Home Manager using git pull.

As a compromise it'd be nice to manage the home-manager sources via nix-channels as well. Updating the local git repo is an additional effort, but I update the nix-channels anyways.
Is that possible?

In principle it should straight forward to distribute Home Manager through a channel. But it would require setting up build infrastructure and hosting for the channel directory. Perhaps nixos.org would be willing to lend their hydra and CDN for the purpose?
In any case, I'm unlikely to start looking into this anytime soon due to work and other priorities but would be willing to assist anybody wanting to look into it.

On Tue, 23 Oct 2018 13:40:52 -0700, Robert Helgesson<EMAIL_ADDRESS>wrote:

In principle it should straight forward to distribute Home Manager through a channel. But it would require setting up build infrastructure and hosting for the channel directory. Perhaps nixos.org would be willing to lend their hydra and CDN for the purpose?
In any case, I'm unlikely to start looking into this anytime soon due to work and other priorities but would be willing to assist anybody wanting to look into it.

I think one of us needs to teach 'nix-channel' how to use a git repo
directly, it's a very common use case and AFAIK is the form in which
virtually all channels are created from anyway.
Or maybe just a bit of tooling to bridge the gap, dunno.
I know you can point it at the tarballs but that's a smidge inefficient
(full dl for every commit, also gz vs xz, etc.) but I want to say that it
also breaks something but I don't remember what-- only that I thought
it was great until I ran into this problem and now just have a bunch
of local git clones instead since apparently that's "better" :(.
Oh-- I'm not sure this is the only limitation, but one problem
is that nixpkgs acquired this way won't know what revision it is
which is annoying if not problematic.

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rycee/home-manager/issues/430#issuecomment-432411215Non-text part: text/html

You could do the following to use the nix-channel command:
$ nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager
$ nix-channel --update
$ ls -la .nix-defexpr/channels/home-manager

programs.home-manager.path = "$HOME/.nix-defexpr/channels/home-manager";

@Mic92 That's nice! My understanding of the channel format was that it needed some special setup with a binary-cache-url file. If this works then I definitely would like to add it to the documentation. I will try it out as soon as possible. Thanks a lot!

No the binary cache is orthogonal to the channel, which is literal just a tarball with a default.nix.

@Mic92 Created #475 to switch the installation instructions to recommend nix-channel instead. No need to set programs.home-manager.path if using home-manager as the channel name.
I've actually intended to support nix-channel for a long time but never got around to it because I assumed it would need some work on the CI side to create a correctly formatted directory: https://nixos.org/nix/manual/#channel-format

I merged #475 so I'll close this ticket. From now on the recommended way to set up Home Manager is using nix-channel and this will allow the Home Manager expression to be reliably available even while offline.


demo: add cli for members

This will eventually be added in InvenioRDM to be able to run through invenio-cli demo .... The code has been extracted into a GitHub gist: https://gist.github.com/slint/dc7edc04bae84213e4b1588e95486e5a


Add support for basic auth without a password

Finally got round to working on this. Fixes #356.
It's my first time writing python, so let me know if the style isn't up to scratch. Also added some tests for basic auth because i couldnt see them anywhere else, but if i missed them and i've duplicated it, let me know.

this looks solid, but a bit silly. i'm torn, personally.

@kennethreitz I agree that this seems silly. That said, httpbin doesn't seem to have a strict philosophy. Is it there to test the most common variations of things that people will see, or is there to allow folks to test everything? If we can decide on that, I think we can have clearer answers for different additions to the project.

i think i'll opt against another endpoint, but thank you for your kind contribution! it's a sane one and a good one. just, unneccessary. reducing code coverage is always a good thing.

✨🍰✨


Add a flag so that only classes for which coverage changed are listed

@tm1000 Would you also be able to add a flag, so that only classes for which coverage changed gets added to the MD file.. If a project has thousands of classes, it would end up being a really long file and difficult to read in a PR context.
Originally posted by @hsingh-texada in https://github.com/clearlyip/code-coverage-report-action/issues/53#issuecomment-2114075053

https://github.com/clearlyip/code-coverage-report-action/releases/tag/v5.0


This "complete" value will always be "false" for get /v2/kafka/(cluster)/consumer/(group)/status

If a consumer group has been a long did not commit offset when startup a Burrow, since "if offset.Timestamp-previousTimestamp < (storage.app.Config.Lagcheck.MinDistance * 1000)",
this "complete" value will always be "false" for get /v2/kafka/(cluster)/consumer/(group)/status

if offset.Timestamp-previousTimestamp < (storage.app.Config.Lagcheck.MinDistance*1000)
=>
if storage.offsets[offset.Cluster].consumer[offset.Group][offset.Topic][offset.Partition].Value != nil && offset.Timestamp-previousTimestamp < (storage.app.Config.Lagcheck.MinDistance*1000)
Is this ok？

If a consumer is not committing offsets, then it is appropriate that complete will return as false. The consumer must be active for Burrow to monitor it. There is no effective status check for a consumer group that has not been running since Burrow was started.
The change you have proposed has a similar effect to the last one, which is that the MinDistance check is skipped and will cause the same Zookeeper-committed offset to be written to the ring over and over to initially fill it. This is not correct behavior, as each value in the offset ring is supposed to represent a single offset commit.

If a consumer is normally, but no  data submitted to the kafka broker, this consumer also does not submitted offsets, What is the behavior of the Burrow?

If use the same group name of consumer to spend a different A and B topics. 	Assume no  data submitted to the A topic,  but the data has been submitted to B topic, this "complete" value will always be "false" for get /v2/kafka/(cluster)/consumer/(group)/status.

For Kafka-committed offsets, the auto offset commit works appropriately. That is, it will commit the offset regardless of whether or not it has changed. The problem is that for ZK-committed offsets, the auto offset commit will short-circuit the write if the value has not changed. This presents a problem for us in this type of situation.
I have no good answer for this. Your proposals would result in the offset ring getting filled up with the same value. Consider the case where at one point there was a ZK consumer group on a topic, and it has gone away. If we implemented your proposals, this group would continually be considered to be in a bad state (the consumer offset is not changing, but the lag is increasing).

I just added a patch for #38 to support ZK consumers on slow topics. This should resolve the slow/no data case. Unfortunately, there's not much that can be done about the completeness of a ZK consumer who consumes a topic that never gets any data. If it has any data at all, the consumer will eventually be marked complete.

Thanks for @toddpalino, I will use it.


Modify BpfProgramConfig to take interface selector instead of just an interface

In Kubernetes, it's common to not know what interface gets plugged into a pod, or which interface is the main interface of a node. This PR updates the BpfProgramConfig and BpfProgram CRD objects, as well as the code to process it to allow more generic selection of interfaces. These changes will now allow multiple interfaces on a node to be selected for a given BpfProgram.

Yay I is a GO @Billy99

Some nice follow up issues to tackle here in #386 and #385 but I think this is GTG for now!


Issue 783 - Add shared memory field to job detail page

Resolves #783.  I also removed the fixed height of the details portion of the page.

It looks like "Shared Memory Required" doesn't fit. How about removing "Required" from each of the resource labels? It doesn't really add any information and takes up space.

Good idea!


chore: Update dependencies

Codecov Report

Merging #89 (5783a2b) into main (5c138a5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #89   +/-   ##
=======================================
  Coverage   87.31%   87.31%
=======================================
  Files           9        9
  Lines         662      662
=======================================
  Hits          578      578
  Misses         84       84

Continue to review full report at Codecov.

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


Make boxing two-phase to more efficiently support dependent types

Feature request
Today, boxing takes arguments (typ, val, c), and is responsible for assembling the compiled function body which calls C API's to reconstruct a fully-formed PyObject * pointer.
The requirement to emit C APIs is rather burdensome. Typically, this unboxing will need to invoke a constructor for a regular python type, which means either it must:

Be pickled into the compiled bytecode, and reassembled upon request.
Have a statically-declared name, and be imported by the boxer
Have its pointer address embedded into the boxer, which feels dangerous in the face of file-system caching or object lifetime. This is the approach taken by jitclass:
https://github.com/numba/numba/blob/015dbf83df8b11bb25d0aa6b96cae809939dfaf6/numba/experimental/jitclass/boxing.py#L134-L146

These problems are a big deal for dependent types (aka dynamically created types), because:

pickle results can now be large and slow to reassemble.
no statically declared name is available.

My idea is that boxing could be modelled in the same way as unpickling:

Instead of producing the final PyObject *, the boxer should produce an intermediate object.
After running all the C level boxers, the final step of all jitted functions is to run the post-processor from the python side, of return_type.final_box(intermediate_val):
Built-in collection types like list would have second-stage boxers like:def final_unbox(typ, intermed):
    return [
        self.dtype.final_unbox(item) for item in intermed)
    ]

Types like jitclass could have second-stage boxers likedef final_unbox(typ, intermed):
    x, y, z = intermed
    # call `final_unbox` on appropriate types for x, y, and z
    x = ... .final_unbox(x)
    ...
    return typ.whatever_the_python_type_is_called()

The key trick here is we no longer attempt to embed information from typ in the C-level unboxer - instead we apply that information as a wrapper on the python side around the outermost jitted function.

I haven't fully thought through the ramifications of this idea. I think the main concern would be whether there are places where boxing occurs without re-entry into the python code - perhaps object loops in ufuncs.

Ping @asodeur at @stuartarchibald's suggestion.

I been using using the pickling approach extensively for custom types and so far only seen performance problems (most recently for typed.Dict|List). My solution was to cache the deserialized objects (see here and #5828. The remaining complications around function types should be solvable).
For some of the more complex extension types I adopted a variation of the two-phase boxing approach via static factory methods on the Python class which  I am calling with a minimal set of boxed arguments. (Thinking of it, putting the factory method onto the Numba type might indeed be cleaner except for the risk of cyclic imports.)
Using these two approaches solves pickle performance problems and somewhat lessens the burden of implementing the boxers. Probably, there still will be issues when creating boxers for a large numbers of generated types, though.
I'd think the  .add_dynamic_addr approach as in jitclass might save some space by avoiding to store the serialized object but will prevent caching. I'd suspect compilation times will be an issue as well when that many types are involved. In a different context @sklam mentioned you could try and fix constants (the pyobject* for the Python class in this case) when cached code is loaded into memory. I did not find the time to look into this, yet, but initially my plan was to serialize some factory function for the constant into module metadata which probably would have the same issues as the pickle approach.

@eric-wieser, thanks for your suggestion. It is interesting. I think it's worth experimenting on the idea.
btw, the term dependent type has a different meaning in type theory. See https://en.wikipedia.org/wiki/Dependent_type. I would suggest calling it dynamically created types to not confuse.

btw, the term dependent type has a different meaning in type theory. See https://en.wikipedia.org/wiki/Dependent_type.

My understanding is that for my use case, the dynamically created type is a dependent type, as it's parameterized by a value of another type. This is perhaps relevant, because such a value can be arbitrarily large (and in my case, is).


kotlin{-native}: 1.9.20 -> 1.9.22

Description of changes
https://github.com/JetBrains/kotlin/releases/tag/v1.9.22

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using  . Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 276684 run on x86_64-linux 1

4 packages built:

jetbrains.idea-community (jetbrains.idea-community-src)
jetbrains.pycharm-community (jetbrains.pycharm-community-src)
kotlin
kotlin-native


type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>'

POPULAR section:
E/flutter ( 4417): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception: E/flutter ( 4417): type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' E/flutter ( 4417): #0      DbHelper.insertMovies (package:fluvies/data/db_helper.dart:49:28) E/flutter ( 4417): <asynchronous suspension> E/flutter ( 4417): #1      PopularScreenPresenter.loadMovies.<anonymous closure> (package:fluvies/popular_screen/popular_screen_presenter.dart:18:16) E/flutter ( 4417): #2      _RootZone.runUnary (dart:async/zone.dart:1381:54) E/flutter ( 4417): #3      _FutureListener.handleValue (dart:async/future_impl.dart:129:18) E/flutter ( 4417): #4      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:633:45) E/flutter ( 4417): #5      Future._propagateToListeners (dart:async/future_impl.dart:662:32) E/flutter ( 4417): #6      Future._complete (dart:async/future_impl.dart:467:7) E/flutter ( 4417): #7      _SyncCompleter.complete (dart:async/future_impl.dart:51:12) E/flutter ( 4417): #8      _withClient (package:http/http.dart) E/flutter ( 4417): <asynchronous suspension> E/flutter ( 4417): #9      get (package:http/http.dart:47:3) E/flutter ( 4417): #10     NetworkUtil.request (package:fluvies/data/network/network_util.dart:9:17) E/flutter ( 4417): #11     NetworkData.fetchPopularMovies (package:fluvies/data/network/network_data.dart:16:16) E/flutter ( 4417): #12     PopularScreenPresenter.loadMovies (package:fluvies/popular_screen/popular_screen_presenter.dart:16:17) E/flutter ( 4417): #13     PopularScreenState.initState (package:fluvies/popular_screen/popular_screen.dart:26:16) E/flutter ( 4417): #14     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3751:58) E/flutter ( 4417): #15     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3617:5) E/flutter ( 4417): #16     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) E/flutter ( 4417): #17     Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) E/flutter ( 4417): #18     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) E/flutter ( 4417): #19     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) E/flutter ( 4417): #20     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2242:33) E/flutter ( 4417): #21     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:626:20) E/flutter ( 4417): #22     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) E/flutter ( 4417): #23     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) E/flutter ( 4417): #24     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) E/flutter ( 4417): #25     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) E/flutter ( 4417): #26     _invoke (dart:ui/hooks.dart:120:13) E/flutter ( 4417): #27     _drawFrame (dart:ui/hooks.dart:109:3)
LIKED section:
E/flutter ( 4417): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception: E/flutter ( 4417): type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' E/flutter ( 4417): #0      DbHelper.insert (package:fluvies/data/db_helper.dart:42:30) E/flutter ( 4417): <asynchronous suspension> E/flutter ( 4417): #1      MovieDetailsState.build.<anonymous closure> (package:fluvies/movie_details_screen.dart:70:41) E/flutter ( 4417): <asynchronous suspension> E/flutter ( 4417): #2      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:494:14) E/flutter ( 4417): #3      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:549:30) E/flutter ( 4417): #4      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24) E/flutter ( 4417): #5      TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:161:9) E/flutter ( 4417): #6      TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:94:7) E/flutter ( 4417): #7      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:315:9) E/flutter ( 4417): #8      PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12) E/flutter ( 4417): #9      PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11) E/flutter ( 4417): #10     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:143:19) E/flutter ( 4417): #11     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22) E/flutter ( 4417): #12     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7) E/flutter ( 4417): #13     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7) E/flutter ( 4417): #14     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7) E/flutter ( 4417): #15     _invoke1 (dart:ui/hooks.dart:134:13) E/flutter ( 4417): #16     _dispatchPointerDataPacket (dart:ui/hooks.dart:91:5)

Thanks for the solution @Vojtas87


Add support for registry backed by GCP BSL

Fixes https://github.com/openshift/oadp-operator/issues/325

Codecov Report

Merging #326 (f2d00b3) into master (a4f6691) will decrease coverage by 0.44%.
The diff coverage is 22.22%.

@@            Coverage Diff             @@
##           master     #326      +/-   ##
==========================================
- Coverage   41.36%   40.91%   -0.45%
==========================================
  Files           9        9
  Lines        1697     1718      +21
==========================================
+ Hits          702      703       +1
- Misses        958      976      +18
- Partials       37       39       +2

Impacted Files
Coverage Δ

pkg/credentials/credentials.go
29.21% <ø> (ø)

controllers/registry.go
43.16% <19.23%> (-1.67%)
:arrow_down:

controllers/bsl.go
60.23% <100.00%> (ø)

Continue to review full report at Codecov.

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


Use type_id instead of name on Hawkular LiveMetrics

With the update of gem hawkular-client 2.4.0 type_id has been exposed, so it is a better way to identify the native type metric coming from Hawkular.
Previously we used name attribute, but this one has been changed from the hawkular agent.
In a preliminar commit, we fixed the names and it was ok, but this change was not enough for alerting related work, so now it is sync.
Closes #10310

@miq-bot add_label providers/hawkular,enhancement

@abonas this is a minor one but I would need it for following PR related alerting work.
Please, could you review it ?
Thanks.

LGTM except for a minor question in a test.
One thing I recommend to add/change is clarify in title/commit message that the PR also changes the metric names in the configuration, and not only the field used. It is clear from reading the changed files, but not from the title.

@miq-bot assign @chessbyte


Feature request: Composing levels into worlds

It would be really awesome if there was a "worlds" view. Each world is composed of levels. In this context, levels would be more akin to "rooms" in the Metroidvania genre. The worlds view could serve a few purposes.

Allow compositions of rooms by level designers.
Allow re-ordering of rooms in 2 dimensions.
Visually show the overall topology of each world, and how the rooms fit together within it.
Allow creation of rooms of varying sizes, allowing levels designers to "plug the holes" of the world map with rooms from within the world view.

Hi!
The world editing is on the roadmap and will probably be available before 1.0 release 👍
See issue: #47

I started working on this big new feature, it'll be in 0.6 update :)

Sweet, I can't wait to try it out!


Improvement/server cert table

This includes almost entirely duplicate code from the key_table functionality. Since the underlying structures are the same there's no reason to have any duplicate code, the server_table can just use the key_table functions. I think the cleanest solution would be to add the table structure as an argument to the existing functions, then write wrappers (one for the key_table, one for the server_table that passes in the appropriate global structure. So, for example, we would have functions
key_table_add(key_table* table, charbuf key_id, charbuf* key);
kek_table_add(charbuf key_id, charbuf* key);
server_table_add(charbuf key_id, charbuf* key);

with kek_table_add and server_table_add just wrappers around key_table_add that pass the correct first argument.
Except for initialize and destroy, those should automatically handle both tables.

This includes almost entirely duplicate code from the key_table functionality. Since the underlying structures are the same there's no reason to have any duplicate code, the server_table can just use the key_table functions. I think the cleanest solution would be to add the table structure as an argument to the existing functions, then write wrappers (one for the key_table, one for the server_table that passes in the appropriate global structure. So, for example, we would have functions
key_table_add(key_table* table, charbuf key_id, charbuf* key);
kek_table_add(charbuf key_id, charbuf* key);
server_table_add(charbuf key_id, charbuf* key);

with kek_table_add and server_table_add just wrappers around key_table_add that pass the correct first argument.
Except for initialize and destroy, those should automatically handle both tables.

We're tracking this with #40, so we won't do it with this pull request but it will happen later.


unable to run update* mutations when using multi-user data access pattern (non-standard "owner" field)

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?
pnpm
If applicable, what version of Node.js are you using?
18
Amplify CLI Version
10.4.0
What operating system are you using?
mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
n/a
Amplify Categories
api
Amplify Commands
Not applicable
Describe the bug
Unable to run update* mutations when logged into a user that has limited access and the owner field is an array of owners (as described in the documentation for multi-user data access)
This occurs when the id field is not manually included in the model, and we instead lean on @model to generate this field.
Using this schema:
type Todo
  @model(subscriptions: null)
  @auth(
    rules: [
      { allow: owner }
      { allow: owner, ownerField: "editors", operations: [read, update] }
    ]
  ) {
  name: String!
  description: String
  editors: [ID]
    @auth(
      rules: [
        { allow: owner }
        { allow: owner, ownerField: "editors", operations: [read] }
      ]
    )
}

And the following operations (you can run this in AppSync to verify)
# 1. run this as "josef"
mutation CREATE {
  createTodo(input: {
    name:"hello my first todo",
    editors:["5314d28f-8e18-4015-83cd-3b781ce790f6::user"]
  }) {
    id
    owner
    editors
  }
}

# 2. log in as "user" and run the update
mutation UPDATE {
  updateTodo(input:{
    id: "8f70078d-d1e0-4cfd-9a20-be2612af7432",
    name:"edited todo name"
  }) {
    id
    name
  }
}

we are receiving the following error:
{
  "data": {
    "updateTodo": null
  },
  "errors": [
    {
      "path": [
        "updateTodo"
      ],
      "data": null,
      "errorType": "Unauthorized",
      "errorInfo": null,
      "locations": [
        {
          "line": 15,
          "column": 3,
          "sourceName": null
        }
      ],
      "message": "Unauthorized on [id]"
    }
  ]
}

Expected behavior
users that have access via non-standard "owner" field should be able to update the fields they have access to as defined in the graphql schema
Reproduction steps

amplify init -y
amplify add api > GraphQL > choose Cognito User Pools
amplify push -y
amplify console auth > create two separate users (note sub::username for second user)
amplify console api > run the operations noted in the description

log in as the first user "josef" and run:mutation CREATE {
  createTodo(input: {
    name:"hello my first todo",
    editors:["5314d28f-8e18-4015-83cd-3b781ce790f6::user"]
  }) {
    id
    owner
    editors
  }
}

log in as second user "user" and run:mutation UPDATE {
  updateTodo(input:{
    id: "8f70078d-d1e0-4cfd-9a20-be2612af7432",
    name:"edited todo name"
  }) {
    id
    name
  }
}

observe error

GraphQL schema(s)

# Put schemas below this line
type Todo
  @model(subscriptions: null)
  @auth(
    rules: [
      { allow: owner }
      { allow: owner, ownerField: "editors", operations: [read, update] }
    ]
  ) {
  name: String!
  description: String
  editors: [ID]
    @auth(
      rules: [
        { allow: owner }
        { allow: owner, ownerField: "editors", operations: [read] }
      ]
    )
}

Log output

# Put your logs below this line

Additional information
project id 02f796c6f2e9e7c5a53d44ad88500b67

To mitigate, include the ID field on the model itself. From there we are able to execute updates as expected
type Todo
  @model(subscriptions: null)
  @auth(
    rules: [
      { allow: owner }
      { allow: owner, ownerField: "editors", operations: [read, update] }
    ]
  ) {
+ id: ID!
  name: String!
  description: String
  editors: [ID]
    @auth(
      rules: [
        { allow: owner }
        { allow: owner, ownerField: "editors", operations: [read] }
      ]
    )
}

Hey Josef, I can reproduce the issue using steps provided above.

Duplicate of https://github.com/aws-amplify/amplify-category-api/issues/630.


CORS issue when uploading file using presigned POST URL

Hi! I'm migrating some of our tests from Localstack to S3Mock (great work, btw!), but I've encountered an issue where one of our tests fails when uploading a file to S3Mock using a presigned POST URL.
The request includes the Access-Control-Allow-Methods: POST header, and this seems to cause the failure. I've tried reproducing the issue, and you can see the failing test case here: https://github.com/fabiob/S3Mock/commit/c7679fc8d8c84e3c7378f49f2d69741a6c71f7eb
What I've tried:

Allowing POST in controller annotations: Added @CrossOrigin(..., methods = {Request.POST, ...}) to the controllers: https://github.com/fabiob/S3Mock/commit/79057ce74010360a59ae787a82df2b34569b5668
Configuring CORS globally: Removed the @CrossOrigin annotations from the controllers and tried configuring CORS globally by overriding S3MockConfiguration.addCorsMappings: https://github.com/fabiob/S3Mock/commit/0c6d2c4a3e917368ffa35210d777769ae07032cb
Using CORS filter: Removed the @CrossOrigin annotations and added a CORS filter using FilterRegistrationBean to S3MockConfiguration: https://github.com/fabiob/S3Mock/commit/ebe7d5e363dec5a6fb469c315c883744a00a348d

None of these attempts seem to resolve the issue. The test still fails when performing the OPTIONS request.
Any insights or workarounds from others who may have experienced this issue would be greatly appreciated!
References I've used:

https://spring.io/blog/2015/06/08/cors-support-in-spring-framework#global-cors-configuration

@fabiob which URL are you trying to POST to?
The controllers are annotated with @CrossOrigin(origins = "*", exposedHeaders = "*") which means that the HTTP methods allowed default to the HTTP method declared by the controller function.
There are only a few S3 APIs that allow POST requests, most APIs use PUT to modify or create data.
The only APIs supported by S3Mock using POST are deleteObjects, createMultipartUpload and completeMultipartUpload.
The reason why your test fails is because the URL used points to a bucket (https://github.com/fabiob/S3Mock/commit/c7679fc8d8c84e3c7378f49f2d69741a6c71f7eb#diff-830d0afe6486c2b436b422fabcb308511dab2b2eef4c1edf698108716a4d7b0dR228), and there are no APIs that allow a POST on a bucket.

if you change your test to use "PUT" instead, it succeeds, as there are two APIs (and controller functions) that allow a "PUT" on a bucket, for example putObjectLockConfiguration

You write "upload file" - do you mean "putObject"? This API needs a "PUT", not a "POST" request:
https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html

I'm running into this as well. I'm using boto's generate_presigned_post method, which specifically returns a URL to post to.

@afranken Do you have any context on this by chance? Should POST be supported for presigned URLs?

@jedkass didn't have time yet to look into this.
As I said in an earlier comment, the S3 API supports POST requests only for a few resources, everywhere else, PUT is used.
You can't just generate a presigned URL allowing POST and then make the POST request for an API that disallows that HTTP verb...
It would be good to have specific test cases that work against S3 directly and fail against S3Mock for APIs that allow POST.

Just merged tests for GET, HEAD, DELETE and POST options requests. Success depends on the APIs being called.
As I wrote in previous comments, creating presigned URLs may work locally using the AWS SDK for arbitrary URLs, but the S3 API (and S3Mock) will refuse connection if the API called does not allow for the HTTP method used.
Please refer to the S3 API to learn about the HTTP methods used for API calls:
https://docs.aws.amazon.com/AmazonS3/latest/API/Welcome.html


MatSnackBar would not show when .open is used.

What is the expected behavior?
I expect MatSnackBar to show when I call snackbar.open
What is the current behavior?
The Snackbar would not even appear
What are the steps to reproduce?
My app module
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {FlexLayoutModule} from '@angular/flex-layout';
import { HomeComponent } from './home/home.component';
import { NavComponent } from './nav/nav.component';
import {MatToolbarModule} from '@angular/material';
import {AuthService} from './services/auth.service';
import {MatSnackBarModule} from '@angular/material/snack-bar';

@NgModule({
  declarations: [
    AppComponent,
    HomeComponent,
    NavComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    BrowserAnimationsModule,
    FlexLayoutModule,
    MatToolbarModule,
    MatSnackBarModule
  ],
  providers: [AuthService],
  bootstrap: [AppComponent]
})
export class AppModule { }

my component trying to trigger the snackbar
import { Injectable } from '@angular/core';
import * as firebase from 'firebase/app';
import {MatSnackBar} from '@angular/material';
declare var $: any;
@Injectable({
  providedIn: 'root'
})
export class AuthService {

  constructor(public snackbar: MatSnackBar) { }

  signup(email: string, pass: string) {
    this.snackbar.open("hello", null, {duration:5000});
    // firebase.auth().createUserWithEmailAndPassword(email, pass).then((response) => {
    //   this.sb.open('Sign up successful', null, {duration: 5000});
    //   $('#modal-form').modal('hide');
    //   $('#modal-subscribe').modal('show');
    // }).catch((error) => {
    //   this.sb.open('An error occurred signing up', null, {duration: 5000});
    // });

  }
}

Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Using Angular Material 7.3.0 and running on Angular 7
{
  "name": "unamed app",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^7.0.4",
    "@angular/cdk": "^7.3.0",
    "@angular/common": "~7.0.0",
    "@angular/compiler": "~7.0.0",
    "@angular/core": "~7.0.0",
    "@angular/flex-layout": "^7.0.0-beta.23",
    "@angular/forms": "~7.0.0",
    "@angular/http": "~7.0.0",
    "@angular/material": "^7.3.0",
    "@angular/platform-browser": "~7.0.0",
    "@angular/platform-browser-dynamic": "~7.0.0",
    "@angular/router": "~7.0.0",
    "core-js": "^2.5.4",
    "firebase": "^5.8.2",
    "rxjs": "~6.3.3",
    "zone.js": "~0.8.26"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^0.12.3",
    "@angular/cli": "~7.0.2",
    "@angular/compiler-cli": "~7.0.0",
    "@angular/language-service": "~7.0.0",
    "@types/jasmine": "~2.8.8",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~8.9.4",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~3.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.11.0",
    "typescript": "~3.1.1"
  }
}

Is there anything else we should know?

Works for me
https://stackblitz.com/edit/angular-dv6wwl?file=app%2Fsnack-bar-component-example.ts

Strange. From your example, the only difference is I am also using a bootstrap dialog. Could the bootstrap dialog being open at the same time cause this behavior?

@bamboozooled, it's not a good idea using two styling libraries together, but I did it myself in the past without much problems (material + bootstrap, without bootstrap's javascript part). But it doesn't look like to be the problem in your case.
Are you, by any chance, calling the service outside NgZone? This would cause a similar behavior. Maybe some other external library is firing the event that is calling your auth service. You can test it by injecting zone and forcing the snackbar to run inside NgZone again:
  constructor(public _zone: MatSnackBar, private _zone: NgZone) { }

  signup(email: string, pass: string) {
    _zone.run(() => {
      this.snackbar.open("hello", null, {duration:5000});
    });
  }

If the code above fixes your problem, there must be some code (maybe external to your project) calling your service ouside NgZone.

@bamboozooled, it's not a good idea using two styling libraries together, but I did it myself in the past without much problems (material + bootstrap, without bootstrap's javascript part). But it doesn't look like to be the problem in your case.
Are you, by any chance, calling the service outside NgZone? This would cause a similar behavior. Maybe some other external library is firing the event that is calling your auth service. You can test it by injecting zone and forcing the snackbar to run inside NgZone again:
  constructor(public _zone: MatSnackBar, private _zone: NgZone) { }

  signup(email: string, pass: string) {
    _zone.run(() => {
      this.snackbar.open("hello", null, {duration:5000});
    });
  }

If the code above fixes your problem, there must be some code (maybe external to your project) calling your service ouside NgZone.

We haven't been able to reproduce this issue. Feel free to open a new issue if you are able to provide a reproduction via StackBlitz.
(this is a canned response)


Add getter and setter for the Molecule's degree_of_freedom attribute

Summary
Fixes #399 by adding a getter and a setter for the degrees_of_freedom attribute of the Molecule class.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

The new setter ends up not being covered by unit tests. The getter gets tested since the code was changed to fetch the value via the getter rather than the private instance variable. Maybe the simplest change to ensure the setter is used to set the same variable that the getter is reading, is to change the constructor so that instead of
self._degrees_of_freedom = degrees_of_freedom

we first create the instance variable there that the getter/setter will use but then initialize it via the setter i.e.
self._degrees_of_freedom = None
self.degrees_of_freedom = degrees_of_freedom

Sometimes we have an explicit test for the getter/setter so that they are covered. Here they will be covered implicitly via the constructor and whatever test ends up going through the code that uses the getter, which I guess is enough unless others would prefer something explicit. My only issue with the explicit test is a simple set followed by get that all it does is check that the object can store and retrieve the value - the intent of setting it is of course that future use of the object will use that new value - that aspect is often not catered to by the test.


Per-item scaling based on metric labels (Prometheus Scaler)

Proposal
I'm looking to optimize my current ScaledJob configuration so that when multiple PostgreSQL PVCs exceed a usage threshold, a separate job is launched for each PVC rather than processing them sequentially within a single job. This would improve efficiency and parallelism in resizing PVCs.
My current understanding is that KEDA's ScaledJob with the Prometheus scaler doesn't natively support per-item scaling based on metric labels (e.g., PVC names). This means I can't directly create multiple jobs, each with a different PVC name, based on the metric labels returned from the Prometheus query.
Use-Case
No response
Is this a feature you are interested in implementing yourself?
No
Anything else?
No response

Hello
That's correct, KEDA doesn't support changing the PVC name as it doesn't modify the workload at all.

@JorTurFer, I'm not trying to change the PVC name. Instead, I'm aiming to resize the PVC using a KEDA ScaledJob that targets PVCs based on their labels, so it knows which PVC to modify. However, I may have multiple PVCs that currently exceed the specified threshold parameter in the ScaledJob, and therefore each will need to be resized.

KEDA doesn't support resizing PVC as data managing is out-of-the-scope of KEDA. There were an initiative to valorate how to handle this but I don't remember the outcome. @zroubalik , do you remember it?

I think this is slightly relevant: https://github.com/kedacore/keda/issues/5218

KEDA doesn't support resizing PVC as data managing is out-of-the-scope of KEDA. There were an initiative to evaluate how to handle this but I don't remember the outcome. @zroubalik , do you remember it?

Yeah it is this proposal: https://github.com/kedacore/keda/issues/5232


Tools of the Trade chapter?

I recently discovered https://draw.io as a really nice way of drawing diagrams. I of course instantly though about adding this to the guide!
However, we seem to not have a section for this. :-(
Do we need a new chapter for this? I can image things like Overleaf, SURFdrive, and Figshare, all deserve a mention somewhere in the guide.

Interesting. The question is if maybe they should be mentioned in the context of function. For example Figshare in the context of data repositories and where to store data that is part of the project.

This content would be more appropriate for The Turing Way


Node.js 16 deprecation

Similarly to https://github.com/gregsdennis/dependencies-action/issues/14, Node.js 16 is now deprecated as well. Here is the warning for reference:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20<EMAIL_ADDRESS>For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Thanks. If you like, I'm happy to accept a PR.

@gregsdennis You have made a very nice Github Action! 🚀
Could you release the latest version of main with a new version tag?
We would like to fix node16 deprecation warning.

We have already tried to add this:
- uses: gregsdennis/dependencies-action@main
But this will still redirect to version 1.3.0 & also version 1.3.2 is still running on node16

Sorry for not publishing.  v1.3.3 is now available and is set to the primary release.


Add nightly releases

Will fix #708
Test artifacts from 0a63841ac9b6469c8deab18902538eff9aa19bfb:

https://dl.kittycad.io/releases/modeling-app/test/nightly/last_download.json
https://dl.kittycad.io/releases/modeling-app/test/nightly/last_update.json

Alright @jessfraz there you have it! Tried to be as incremental as possible here (hence the many commits) to make sure I didn't blow up the existing release pipeline
Would appreciate a second pair of eyes @Irev-Dev when you have a chance (no rush)
cc @franknoirot, once this is merged and tested we could probably add it to the website

Dope!


3d PDF support

It would be nice to have 3d interactive object support in this viewer:
http://www.3dpdfconsortium.org/
As of now incorporating this feature would make it (apparently) the first open source PDF viewer to render 3d pdf graphics.
Currently only Adobe Acrobat and some proprietary viewers only support 3d viewing capabilities, which severely limits use of 3d content (coupled with the relatively involved ways of incorporating 3d content via non-proprietary methods).
Moreover, if pdf.js provided this capability, it would allow standalone websites (i.e., irrespective of browser/system) to display 3d PDF content, platfrom-independently.
Some related links may be of interest:
http://vcg.isti.cnr.it/~cignoni/newvcglib/html/
http://threejs.org/

I was excited to see this as an open issue.  Has there been any movement on it?

Not yet. This is a very complicated and not frequently used feature, so I doubt it will be implemented soon. However, anyone willing to work on this is invited to submit a PR.

More than year has passed. News about this? I'm waiting for this to be a reality on the web. Big cloud companies are not rendering 3D PDF's in browsers and I can not understand why.

I can not understand why.

I mentioned above 3D part is not part of PDF32000 specification, but defined in different specification http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-363 4th Edition.pdf . The market is small for this feature, but we will be glad to consider integrating a plugin or some external library that will render U3D (that PDF.js can extract from a PDF) into generic demo viewer.

Somebody want's to try https://github.com/Lorti/webgl-3d-model-viewer-using-three.js ?

Somebody want's to try https://github.com/Lorti/webgl-3d-model-viewer-using-three.js ?
It is very different but NOT an answer to this issue. I have used three.js, it is based on the latest WebGL technology and good for .obj/.stl files, but the 3D model here is embedded into a pdf file and the format is no opened.

渴望实现3d渲染

As mentioned above, see e.g. https://github.com/mozilla/pdf.js/issues/3254#issuecomment-330267767, this isn't actually part of the PDF specification and it also seems to be a somewhat of a niche feature still; all-in-all this seems unlikely to be implemented in PDF.js and thus WONTFIX is probably appropriate here.

In case it is decided at a future time to implement this functionality, then this issue could be reopened.


GSNGM-349: Topography Profile for polyline

TODO:

[x] Download SVG & PNG
[x] Placement/styling

@b4l , it does not look like building.

@b4l , it does not look like building.

Sorry, all fine now after rebasing.

Is it still actual or we shouldn't implement it?

normally yes, but if we are lacking time let's skip it for the moment.

@vladyslav-tk in accordance with @eleu we will address the missing functionality in a follow up issue.


Not being able to use nodejs20.x as runtime

Is your request related to a new offering from AWS?
Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

Yes ✅: please list the AWS provider version which introduced this functionality

Is your request related to a problem? Please describe.
I'm not being able to use nodejs20.x runtime on terraform-aws-modules/lambda/aws, it's not available yet?
Describe the solution you'd like.

Describe alternatives you've considered.

Additional context

Did you try to specify the correct runtime value?
https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/dcb087d610a294d9c5a29930d8a11a7ab8d4d07e/examples/complete/main.tf#L25

Hi @antonbabenko , thank's for asking!
Yeah, I tried to use runtime = "nodejs20.x"
Here's a screenshot with the error that I got:


Some text alterations

Thanks! I will do corrections tonight, hopefully I wont be sleepy that much :D

@slash3b :+1: thank you!

^^
On 24 July 2018 at 21:51, Vlad Gregurco<EMAIL_ADDRESS>wrote:

@slash3b https://github.com/slash3b 👍 thank you!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gregurco/jobeet-tutorial/pull/7#issuecomment-407513620,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADHjxSPHNoQVJAS1wWwgARwNCpB_SQk3ks5uJ2yhgaJpZM4VbkLb
.


Doesn't return the social items in the contact

The Contact class doesn't contain the social media data which is increasingly used in contacts especially when sharing them.

Hi there!  This is a community project (my time is very limited, sorry).  Please feel free to contribute your PR for review... thanks!


Added stack trace printing

Previously, many kinds of errors (e.g. a typo in a column name resulting in an exception from Postgres) would go unreported and the only clue that any kind of error occurred was a JSON decoding error in the playground.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 74.12%. Comparing base (fa42e36) to head (536dc0d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #581      +/-   ##
==========================================
- Coverage   74.14%   74.12%   -0.03%
==========================================
  Files          32       32
  Lines        4606     4606
  Branches     1018     1018
==========================================
- Hits         3415     3414       -1
- Misses       1191     1192       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

That test failure looks like a (hopefully) transient issue with the docker test environment. I'm retrying :crossed_fingers:


container.enchant.clue is missing localization

Forge version <IP_ADDRESS>5, only mod installed is Et Futurum version 1.0.1.

d'oh!
Fixed for the next version.
You can add these lines to the en_US.lang file if you'd like to fix the problem immediately:
Containers
container.enchant.lapis.one=1 Lapis Lazuli
container.enchant.lapis.many=%d Lapis Lazuli
container.enchant.level.one=1 Enchantment Level
container.enchant.level.many=%d Enchantment Levels
container.enchant.clue=%s . . . ?


Fc2

FC2：change all http response use FcHttpResponse and add custom headers

Coverage increased (+1.0%) to 89.465% when pulling dc979554e2166ac6e3866374ab8451b8abd26bd1 on fc2 into 3439457b1c8a0e6ef3cb5f9968d716ec17a658ca on master.

Coverage increased (+1.0%) to 89.482% when pulling 1889ca1dcc3525ba41c57f5e7dc1bc0a1bddf3dc on fc2 into 3439457b1c8a0e6ef3cb5f9968d716ec17a658ca on master.

Coverage increased (+0.9%) to 89.365% when pulling 0a1098b940748f9688488719e8fbae39155da080 on fc2 into 3439457b1c8a0e6ef3cb5f9968d716ec17a658ca on master.

Coverage increased (+0.6%) to 89.137% when pulling 6d63cc978eefa81794d994aebe76de445eba047a on fc2 into 3439457b1c8a0e6ef3cb5f9968d716ec17a658ca on master.

Coverage increased (+0.6%) to 89.137% when pulling 6d63cc978eefa81794d994aebe76de445eba047a on fc2 into 3439457b1c8a0e6ef3cb5f9968d716ec17a658ca on master.


Translations update from Hosted Weblate

Translations update from Hosted Weblate for arcade-songs/arcade-songs.
Current translation status:

@yangyangdaji Hi! Thanks for your contribution!
Just to be sure, do other zh-Hans translations look good to you as a native Simplified Chinese user?

yes

Thanks again! :)

and some waiting to be synced😉

I should recheck this translation as "音乐" is usually translated to "music", not "song".
By the way, are you a regular arcade music game player?

By the way, are you a regular arcade music game player?

Yes, I love Music game

I should recheck this translation as "音乐" is usually translated to "music", not "song".
Modified

Since this PR is already closed, let's go to #5.

and some waiting to be synced😉
---Original---
From: "Raku @.>
Date: Sat, Sep 17, 2022 15:14 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [zetaraku/arcade-songs] Translations update from Hosted Weblate(PR #4)
Thanks again! :)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


Fixed #30497 -- Fixed looking for a root node in assertXMLEqual()/assertXMLNotEqual() when first node is a document type.

Trac Ticket: https://code.djangoproject.com/ticket/30497

If there's a possible comparison of Node.DOCUMENT_TYPE_NODEs, I think we should do it.
@caioariede Could you explore that please?

I agree with Claude.

@felixxm @claudep I thought about Node.DOCUMENT_TYPE_NODE comparisons and tested the behavior of xmldiff library and it does not compare Node.DOCUMENT_TYPE_NODE.
Also, we do not perform any comparisons on xml declaration, for example:
self.assertXMLEqual(
    '<?xml version="1.0" encoding="UTF-8"?><root />',
    '<?xml version="2.0" encoding="UTF-8"?><root />')

So I'm not really sure if we should test these things, as this is not a string comparison utility but a XML comparison utility, which I guess should be more concerned about root element and what is inside it.

Makes sense, thanks. Is it worth documenting that in the docs?

@claudep yeah, that I think it's worth mentioning it in the docs 👍

@caioariede Thanks!


PMID:9200612 tea1 related

decreased protein level during conjugation with cellular fusion

increased RNA level during mitotic M phase

decreased protein level during mating FYPO:0006541
edit file: 73508f0c207dd2e6eb12452b3f175066c5bf9215
release: 247360caa543e0bfe288ba9235c2eb1c9eba35f0


Null dereference in PluginVC.cc

VIO *
PluginVC::do_io_read(Continuation *c, int64_t nbytes, MIOBuffer *buf)
{
....
read_state.vio.mutex     = c->mutex;
This is called from HttpTunnel::producer_handler(int event, HttpTunnelProducer *p)
{
....
p->vc->do_io_read(nullptr, 0, 0);
.....
So when you hit these 4 VC events it looks like it will always crash since there are no checks on the continuation in do_io_read

This can be closed @SolidWallOfCode: https://github.com/apache/trafficserver/pull/3311

Cool.


Set up Sign Up Modal window

Input handlers
Button handlers
Method calls

Commit f2b6123 for form fields and 5e518fa for designing it in a modal window


ci: Fixed release workflow

Pull Request Checklist

[X] Make sure to read the contributor guide here.
[X] Make sure you are making a pull request against the staging branch.
[X] Make sure your pull request title matches the requested format.
[X] Make sure to lint, type-check, and run unit and API tests.

Description
Fixed release workflow

:tada: This PR is included in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


always use ValidationMethod=DNS

Not sure when, but at some point in the past year or so, the code generator was changed in a way that when you add fields to the ignore list, that field is literally deleted from the associated aws-sdk-go/private/model/api.Shape object. This means that you cannot have both a field that is in the ignore list (because you don't want it to appear in the CRD's fields) AND have that field referenced in the override_values map for an Operation. Because the code that sets an Input shape for an Operation iterates over the Input shape's MemberNames() collection, and the code generator has literally deleted the ignored field from the shape, meaning it cannot be referenced in the override_values code :(
This fixes an issue in the ACM controller where the generator.yaml file had the ValidationMethod field both ignored and in override_values by adding a sdk_create_post_build_request hook that manually sets the RequestCertificateInput.ValidationMethod field to "DNS".
Closes Issue aws-controllers-k8s/community#1701
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/ok-to-test

/lgtm
Thanks for the fix!
Do you think this would be a good example to add to https://aws-controllers-k8s.github.io/community/docs/contributor-docs/code-generator-config/#the-sdkgo-hook-points  ?


Add lvm2 to docker image

Docker build otherway fails as it is missing blkdeactivate
Signed-off-by: Ettore Di Giacinto<EMAIL_ADDRESS>

Ouch, I forgot about that, I just did a check in SLE Micro for Rancher
$ docker run --rm -ti registry.suse.com/suse/sle-micro-rancher/5.2
969fa22dbc0a:/ $ which blkdeactivate
/usr/sbin/blkdeactivate
969fa22dbc0a:/ $ rpm -qf $(which blkdeactivate)
lvm2-2.03.05-8.39.1.x86_64


Create umsa

Web Page
https://www.umsa.bo/
Mail Domain
umsa.edu.bo
Universidad Mayor de San Andrés
La Paz - Bolivia
Plaza del Obelisco, Av. Camacho, La Paz
https://goo.gl/maps/XaFwHubV8hH9SRc2A

sorry, it's my first time with git

@elbebegato Pull request merged. Thank you!


fix: modify basicUsage list  do not display content

fix: modify basicUsage list  do not display content

First of all thank you for your contribution, but the error is inside the component, the previous part of the adjustment affects the list component


aws-cpp-sdk-core-tests: error while loading shared libraries: libaws-checksums.so: cannot open shared object file: No such file or directory

What platform/OS are you using?
Ubuntu 18.04
What compiler are you using? what version?
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
What's your CMake arguments?
cmake ~/workspace/aws/aws-sdk-cpp
OR
cmake ../aws-sdk-cpp -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=ON
Can you provide a TRACE level log? (sanitize any sensitive information)
[ 99%] Linking CXX executable aws-cpp-sdk-core-tests
./aws-cpp-sdk-core-tests: error while loading shared libraries: libaws-checksums.so: cannot open shared object file: No such file or directory
aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/build.make:1127: recipe for target 'aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests' failed
make[2]: *** [aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests] Error 127
make[2]: *** Deleting file 'aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests'
CMakeFiles/Makefile2:9505: recipe for target 'aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/all' failed
make[1]: *** [aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

https://github.com/aws/aws-sdk-cpp/issues/1020#issuecomment-441843581
Does this comment helpful for you?

do temprorily
export LD_LIBRARY_PATH=<YOUR_WORKSPACE>/.deps/install/lib
before your build. Library dependencies, like aws-c-event-stream.so doesn't contain runputh information, so it'll be resoéved against system directories, unless you specify LD_LIBRARY_PATH.


[BUG] If you don't have admin rights, the installing the test certificate silently fails

When running dart run msix:create in the terminal without admin rights, the installation silently fails and display "successfully installed" which took me (as a windows noob) really long to find out. An error message would have been really helpful. Right now, all output from the spawned process is ignored.
Even better would have been if the install script would automatically try to acquire admin rights.
At least, a bold notice in the README would be useful, I think.

same issue here...


OAS-1061 | Added example dataset installations data source

Adding tests in a moment

Will update readme.


Memory leak in @protobuf-ts/grpc-transport

@grpc/grpc-js Client is being created on every call and never disposed after.
Demo of the issue can be found here
Example of 2 clients running 1000 unary calls and reporting memory usage after:

make in packages/example-node-grpc-server/ to start the server
make in packages/example-node-grpc-client/ to see correct memory usage
make in packages/example-node-grpc-transport-client/ to see clients not being garbage collected

The solution would be to either close the client after request, or create it once in GrpcTransport constructor and then reuse.

Great feedback, thanks.
Closing the client after each request plugs the memory leak, but I think this doesn't go in the right direction.
I am pretty sure that @grpc/grpc-js will keep connections alive (to save expensive TLS handshakes) until you close a channel (by client.close()). At least that is what I would expect from a gRPC client.
So the best way forward seems to be to create the client once in the transport (fixing the memory leak, allowing connection re-use) and expose client.close() with a close() method on the transport.
There is a minor problem with that: We accept host, channelCredentials and clientOptions for each individual call.  This only works because we create a new client each time. This should be refactored, probably by splitting the GrpcOptions type into one type for transport options and one type for call options.

@timostamm since I cannot ask you on ETA for this, can I ask you if there is a temporary workaround?
In my SPA (single-page-app) I'm not closing/destroying services once opened (with new PlayerServiceClient(transport)).
So I think I'm in full memory leak, right? (I don't know how to measure it.)

@frederikhors No, you are not affected. This is about the gRPC implementation, but your SPA uses gRPC-web.

@timostamm I agree that the solution with creating @grpc/grpc-js Client once and reusing connection is the right one.
I've submitted a PR with partial implementation of this approach (without exposing close method on the protobuf-ts Client).
It should solve the memory leak issue, and allow the user to close GrpcTransport directly, therefore disposing of @grpc/grpc-js Client underneath.
I've also rebased the demo branch on top of the fix:
master:
{
  startHeap: 78.52119445800781,
  finishHeap: 85.61224365234375,
  diffHeap: 7.0910491943359375
}

fix:
{
  startHeap: 79.07605743408203,
  finishHeap: 79.87208557128906,
  diffHeap: 0.7960281372070312
}

let me know if there are any changes you would like me to make.


add a drain timeout

issue : #78
rebase on main branch instead of master (previous PR : #283)

@evrardjp @dholbach

Awesome! Thankls @flbla

The docs claim this change was put in as part of release 1.7.0. Is there an ETA?

@fouadsemaan  TBH, I am not sure this PR is necessary anymore. It gives extra details compared to a merged feature.
I would love to hear @flbla and your opinion on this.
Because the other feature was merged already, you might be interested by it @fouadsemaan .

Hi,
I'm not sure if a drain timeout happened if it actually uncordon nodes
If not, this PR is still necessary


Bump sway-core to use fuel-asm version 0.6

Summary
Changes made:

Bumped to 0.6
Removed opcodes

CIMV
CTMV
SLDC

Related
Closes #2190
Ref:

Remove obsolete CIMV and CTVM opcodes
Remove SLDC opcode

Shows up, deletes codebase without saying anything, leaves.
My job here is done.

Do you mind also updating fuel-asm in the following toml files:
./forc/Cargo.toml:fuel-asm = "0.5"
./test/Cargo.toml:fuel-asm = "0.5"
./sway-types/Cargo.toml:fuel-asm = "0.5"
./sway-core/Cargo.toml:fuel-asm = "0.5"

I don't expect any issues.


Python inconsistent multiprocessing.Process behavior

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:
Version: 1.90.2 (user setup)
Commit: 5437499feb04f7a586f677b155b039bc2b3669eb
Date: 2024-06-18T22:34:26.404Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS Version:
Windows_NT x64 10.0.22621
Steps to Reproduce:

running the below snippet as a Python file in the terminal or within a notebook cell works fine. But running the same snippet within an interactive window fails as the snippet fails to do anything:
import multiprocessing
def fn():
    print("here")
process = multiprocessing.Process(target=fn, )
process.start()
process.join()

Please can you try running the same code in Jupyter Notebook I tried running this against the latest version of Jupyter Lab and Jupyter Notebook and it fails there as well. I.e. it fails to work in Jupyter Lab, Jupyter Notebook and VS Code This looks very much like a duplicate of #12485

@DonJayamanne thank you for the response. Yes you are right. Tested with Jupyter Notebook and Jupyter Lab, and can indeed confirm that the same failure happens as within VS Code Notebooks.  Interesting that everything seems to work fine on Google Colab though.

or within a notebook cell works fine. But running the same snippet within an interactive window fails as the snippet fails to do anything:

I think you meant it works in interactive window and fails in a notebook.

Yes, just tried again, and works in an interactive window but fails in a notebook.
Two interesting things to note when it comes to the interactive window:

The code only executes properly when the main body is put below a __main__ if block. Otherwise the file is never populated by the processes. Is this the expected behaviour? I am asking, as in Google Colab, both ways (with and without the __main__ if statement) work as anticipated.
The code only executes properly when the file is saved before running the snippet in the interactive window, otherwise the same failure is observed as in the notebooks. This does not seem to be the expected behaviour, as other code snippets (not using multiprocessing) can be executed in the interactive window without the underlying file being saved.

Thank you for getting back
Given this is an issue in Jupyter lab/notebook as well, I’m
Closing as a duplicate of https://github.com/microsoft/vscode-jupyter/issues/12485
As for 1 & 2 , I’m not sure what’s going on, given that this isn’t by design (ie we don’t deliberately try to make it not work)
Ie it’s trying to mimic what ever happens in Jupyter


Add hipSYCL scope_handle and host_task

Description
This PR adds hipSYCL support to oneMKL by providing a specific scope_handler. As discussed here hipSYCL has the half datatype in the cl::sycl:: namespace; Therore to compile successfully the following patch needs to be applied: half.txt
Checklist
All Submissions

[x] Do all unit tests pass locally? Attach a log.
[x] Have you formatted the code using clang-format?
hipsycl_cuda_host.log
dpcpp-hand-test.log

What is the purpose of half.txt? That seems like a global search and replace of all "half" texts in the library.

Half.txt is only necessary as a temporary solution until half is replaced by cl::sycl::half in the library. This is necessary since in hipSYCL half (according to the SYCL standard) is only defined in the cl::sycl namespace. It is only there so that the library can be built with hipSYCL and the tests can be run with hipSYCL.

Half.txt is only necessary as a temporary solution until half is replaced by cl::sycl::half in the library. This is necessary since in hipSYCL half (according to the SYCL standard) is only defined in the cl::sycl namespace. It is only there so that the library can be built with hipSYCL and the tests can be run with hipSYCL.
EDIT:
The attached patch is mainly a global replacement indeed, but it needed some tweaking therefore I thought it might be useful for anyone who wants to verify this PR.

So, we need to apply the half.txt patch to be able to test this PR? If yes, I would suggest first submitting the PR needed for updating the half namespace. Once it is reviewed and merged, I suggest submitting the following PRs.
Regarding the half namespace: Instead of changing everything globally in oneMKL, is there any minimal workaround that can be applied to hipSYCL?

So, we need to apply the half.txt patch to be able to test this PR?

You should be able to test this PR with dpc++ without applying the half.txt, it should only be necessary for testing with hipSYCL.

If yes, I would suggest first submitting the PR needed for updating the half namespace.

That was the original purpose of the #105 I believe you mentioned in the conversation that you would like to change the namespace yourself. Do you have any information on when this change will approximately get merged?

Regarding the half namespace: Instead of changing everything globally in oneMKL, is there any minimal workaround that can be applied to hipSYCL?

Pinging @illuhad for information on that

Regarding the half namespace: Instead of changing everything globally in oneMKL, is there any minimal workaround that can be applied to hipSYCL?

Of couse you could just have something like
#ifdef __HIPSYCL__
using ::sycl::half;
#endif

in some commonly used oneMKL header to import half into the global namespace when compiling with hipSYCL. I suspect this is the cleanest solution here to move forward.
I'd prefer not to apply such a workaround to hipSYCL itself, as hipSYCL follows the SYCL standard by putting half into the sycl namespace, and I think that unnecessary pollution of the global namespace should be avoided if possible.

Sorry for the long silence. @mmeterel would you prefer the solution proposed by @illuhad or would you rather have a different PR replacing the half with sycl::half

Hi @mmeterel , I think this PR is ready, could you have a look?

Hi @sbalint98 thanks for the PR. I am currently doing some local tests on the PR. Will get back to you soon.

@sbalint98 Could you please rebase your branch with latest develop and test with latest llvm compiler? Your branch still has sycl::vector_class calls which are not supported in recent llvm compilers.

@sbalint98 Could you please rebase your branch with latest develop and test with latest llvm compiler? Your branch still has sycl::vector_class calls which are not supported in recent llvm compilers.

@sbalint98 Please let me know when you complete this. I would like to do another round of tests after this.

It has been rebased to develop already, let me know if something doesn't seem right!

It has been rebased to develop already, let me know if something doesn't seem right!

Oh ok, looks like I missed the rebase commit. Thanks.


Not able to display the message "email already exist"

signup-process.php : an error occurred in mentioned file,
why these lines of codes doesn't work
}else {
if ($mysqli->errno === 1062) {
die("email already taken");
} else {
die($mysqli->error." ".$mysqli->errno);
}
}

What exactly is the error that you get?

**it's because you have to replace :
$mysqli = new mysqli(hostname: $host,                      username: $username,                      password: $password,                      database: $dbname);
by :
$mysqli = new mysqli($host_name, $user_name, $password, $database);
I hope this was useful to you 😃**

Just to be clear, the above fix is only if you're using a version of PHP prior to version 8. Named arguments are supported from PHP 8 onwards.

Helloe did you solve it?
i cant find out it whats wrong, if anybody can help me guys.
error is :
Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/280881/virtual/www/subdom/test/database.php:1) in /data/web/virtuals/280881/virtual/www/subdom/test/process-signup.php on line 39
$stmt->bind_param("ss",
$_POST["email"],
$password_hash);
if ($stmt->execute()) {
header("Location: signup-success.html");  //<- thats line 40
exit;
} else {
if ($mysqli->errno === 1062) {
    die("email already taken");
} else {
    die($mysqli->error . " " . $mysqli->errno);
}

}

i tried fix it by myself, i tried delete all and make it again and copied your code and still same problem, i cant reach this html and it show the error problem upper
tried something from this, but still dont know https://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php

thank you for any advice

signup-process.php : an error occurred in mentioned file,
Error showed in browser:
Fatal error: Uncaught mysqli_sql_exception: Duplicate entry<EMAIL_ADDRESS>for key 'email' in C:\xampp\htdocs\php-signup-login-main\process-signup.php:45 Stack trace: #0 C:\xampp\htdocs\php-signup-login-main\process-signup.php(45): mysqli_stmt->execute() #1 {main} thrown in C:\xampp\htdocs\php-signup-login-main\process-signup.php on line 45
Mentioned error line:
why these lines of codes doesn't work
if ($stmt->execute()) {
header("Location: signup-success.html");
exit;

} else {
if ($mysqli->errno === 1062) {
    die("email already taken");
} else {
    die($mysqli->error . " " . $mysqli->errno);
}

}

Please see this issue to see if any of the fixes there work for you.


Standalone Block opening/closing brace needs Linebreak and block statements needs indentation

Hi,
Summary of issue: Standalone block not formatted properly, missing line-breaks and indentations, Creates a erroneous code.
When I have a standalone block with a set of statements, It would be great if it formatted with a line-break after/before block opening/closing brace.
Also the statements inside the block needs one-level indentation for readability.
Because of the missing line-break, formatter creates a erroneous code output.
Input:
function a() { var arr2 = [] }
var x = 1
{
var x = 2
console.log(x) }

Actual output: - formatter creates errorenous code
function a() {
  var arr2 = []
}
var x = 1 {
var x = 2
console.log(x)   }

After I set the property indent.BlockStatement=1,I get the indentation working (as shown below)
With block indentation working:
function a() {
    var arr2 = []
}
var x = 1 {
  var x = 2                  // indented correctly
  console.log(x)   }         // indented correctly

So in order to get the line-break working, I tried setting  lineBreak.before.BlockStatement=1 and lineBreak.after.BlockStatement=1. But do not see linebreaks appearing for the standalone blocks.

EDIT: @millermedeiros inlined the gist to make it easier to understand.

we currently don't handle BlockStatement properly since it ends up being part of many other constructs (like FunctionDeclaration.body):
function foo() {
  // this is also a BlockStatement!
}

To handle it properly we would need to check if the parent node is not a function/do/while/arrowFunction/for/forOf/... before we add the indent or line breaks.
It is doable (should not be that hard) and is actually something that we need to address, thanks for reporting it!

Thanks for the update. Would be great to know an approximate timeline when this could be fixed.


UI not linked with Logic.cjs

The website is not functional!1!!! 🤬
Linking shouldn't be too hard. just calling functions and stuff, and modifying the elements.

Now linked


When systemMessage exceeds a certain length, ollama is unable to process it.

What is the issue?

when system message exceeds a certain length(4096 likely), Ollama returns "It seems like you're sharing some information, but it's not in a readable format. Could you please rephrase or provide more context about what this is related to? I'd be happy to help if I can! ".
It is ok when I uses version 0.1.47.
OS
Linux, macOS
GPU
Nvidia, Apple
CPU
AMD, Apple
Ollama version
0.3.4

Hi @billrenhero thanks for the issue. It may be that the context size is too small – setting the num_ctx to 8192 or higher (if the model supports this) should help. In the meantime I'll look into how we can avoid truncating the system prompt

I'm following, same issue with Llama3 and 3.1.
Short system prompt is considered, long one (not above context length limit) is discarded
error happened during debug:
"truncating input message which exceed context length"
Therefore only user prompt is considered...

Same happens here, for any system prompt of sufficient but still moderate size in RAG use cases — apparently with all models.
Tested with Ollama 0.3.5 and 0.2.8, with Llama3, 3.1 70B, Gemma2 and Mistral-nemo, on dual Nvidia A40 GPUs. All models using default settings after "ollama pull". Sending an OpenAI-style API call via Postman.
All these models should be able to handle the context in question, it's about 2 kt in size. /show info reports max context size well above this.
If the nr input tokens are at or above exactly 2048 tokens, as reported by Ollama's own OpenAI-style response, the system prompt is dropped.
Debug line of interest:
time=2024-08-13T14:57:35.755Z level=DEBUG source=prompt.go:51 msg="truncating input messages which exceed context length" truncated=2
This is the largest input that works:
    "usage": {
        "prompt_tokens": 2047,
        "completion_tokens": 100,
        "total_tokens": 2147
    }

If I make the system prompt or user prompt just one character longer, after seeing this stat, only the user message is considered for input, and the log line above is shown.
Loaded models and num_parallel are set to 4. I also tested with num_parallel 1, but same behavior.
Frankly, if the input + max_tokens is truly oversized, I think we should get an API error in this situation, like with TGI. But in this case these models should all be able to handle inputs of 2048 tokens, running with their default settings.

@jmorganca
Here I have a full example that could be reproduced: issue

This may be because the input is longer than the context window, and so inputs are truncated based until it will fit. In this case it seems the system message is truncated. Ollama doesn't currently error when truncation is required, and so to extend the context window you'll need to use the num_ctx option:
"options": {
  "num_ctx": 8192
}

Let me know if that helps.


Can you run this with Standalone geyser?

Yes but it has to be a specific build of it (supporting extensions). For now that is: https://github.com/bundabrg/Geyser/releases/tag/v1.16-b55


Replace ssmtp with msmtp (which needs a corresponding module)

The ssmtp program is dead/unmaintained. The commonly suggested substitute is msmtp.
While home-manager has a module for msmtp, NixOS lacks one.
Let's:

[x] Add a NixOS module for msmtp. Done in #105831

We should probably also:

[ ] Remove the ssmtp NixOS module and add migration instructions to the release notes
[ ] Remove the ssmtp package

The https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/msmtp.nix module works really well.
Thanks for the module @pacien.


is it working with the latest React Native versions?

I need to check the status of the wifi, that is if it is connected to a specific wifi.
Could this library fit my case? works well?
Thanks

Not for me. Throwing errors:
/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

:react-native-background-task:processReleaseResources FAILED

@xRahul I get the same error.

@xRahul I got the exact same error as yours.

I think it is due to the fact that it has not been updated for a long time and therefore no longer fully compatible with last react native versions (last android/iso versions)

In node_modules/react-native-background-task/android/build.gradle I changed:
compileSdkVersion 23 -> 28
And now it works ok.


feat: add aws batch compute and job queue

Description of your changes
Adding AWS Batch Compute Environment(aws_batch_compute_environment) and Job Queue(aws_batch_job_queue)

Fixes #
I have:

[X] Read and followed Crossplane's contribution process.
[X] Run make reviewable to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested
Manually tested as per the guide
Batch compute environment

Job Queue

/test-examples="examples/batch/v1beta1/computeenvironment.yaml"

/test-examples="examples/batch/v1beta1/computeenvironment.yaml"

/test-examples="examples/batch/v1beta1/jobqueue.yaml"

/test-examples="examples/batch/v1beta1/jobqueue.yaml"

/test-examples="examples/batch/v1beta1/jobqueue.yaml"

/test-examples="examples/batch/v1beta1/computeenvironment.yaml"

/test-examples="examples/batch/v1beta1/computeenvironment.yaml"

/test-examples="examples/batch/v1beta1/jobqueue.yaml"

/test-examples="examples/batch/v1beta1/computeenvironment.yaml"

/test-examples="examples/batch/v1beta1/jobqueue.yaml"

/test-examples="examples/batch/v1beta1/jobqueue.yaml"

/test-examples="examples/batch/v1beta1/computeenvironment.yaml"

/test-examples="examples/batch/v1beta1/jobqueue.yaml"

/test-examples="examples/batch/v1beta1/computeenvironment.yaml"

/test-examples="examples/batch/v1beta1/jobqueue.yaml"

For the test to fails because of hardcoding securityGroupIds: and subnets: values. Can I know how to fix this? The computeenvironment crd does not allow subnet and securitygroupid reference.

@sachinmalanki, here's an example configuration: https://github.com/crossplane-contrib/provider-upjet-aws/blob/v1.14.0/config/apprunner/config.go#L14-L23

Thanks for the help @mergenci, I have updated the MR with reference and selector.

/test-examples="examples/batch/v1beta1/jobqueue.yaml"

/test-examples="examples/batch/v1beta1/computeenvironment.yaml"

/test-examples="examples/batch/v1beta1/jobqueue.yaml,examples/batch/v1beta1/computeenvironment.yaml"

Looks like computeEnvironment resource fails to delete because of `statusReason: 'CLIENT_ERROR - User: batch.amazonaws.com is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::153891904029:role/aws-batch-service-role (Service: AWSSecurityTokenService; Status Code: 403; Error Code: AccessDenied; Request ID: 3006240f-9511-4141-928e-1dd0258ebb24; Proxy: null)'
I believe this is because the service role is deleted before the MR is deleted.
Similar issue - https://github.com/hashicorp/terraform-provider-aws/issues/8549
Any idea, how to add dependency so computeEnvironment is deleted before the serviceRole?

/test-examples="examples/batch/v1beta1/jobqueue.yaml,examples/batch/v1beta1/computeenvironment.yaml"

Hi, I'm stuck again. Could anyone please help?
trying to get aws_batch_compute_environment resource added but it fails on uptest.
apiVersion: batch.aws.upbound.io/v1beta1
kind: ComputeEnvironment
metadata:
  annotations:
    meta.upbound.io/example-id: batch/v1beta1/computeenvironment
  labels:
    testing.upbound.io/example-name: sample_ce
  name: sample
spec:
  forProvider:
    eksConfiguration: {}
    computeResources:
      instanceType:
      - c4.large
      maxVcpus: 16
      instanceRoleSelector:
        matchLabels:
          testing.upbound.io/example-name: ecs_instance_role
      placementGroupSelector:
        matchLabels:
          testing.upbound.io/example-name: sample_pg
      securityGroupSelector:
        matchLabels:
          testing.upbound.io/example-name: sample_sg
      subnetSelector:
        matchLabels:
          testing.upbound.io/example-name: sample_subnet
      type: EC2
    region: eu-west-1
    serviceRoleSelector:
      matchLabels:
        testing.upbound.io/example-name: aws_batch_service_role
    type: MANAGED

But get the following error which fails to update the external resource -
update failed: async update failed: refuse to update the external resource because the following update requires replacing it: cannot change the value of the argument "eks_configuration.#" from "0" to "1"
And when  eksConfiguration  is remove, getting the following error
Warning  CannotUpdateExternalResource  9m37s (x2 over 10m)  managed/batch.aws.upbound.io/v1beta1, kind=computeenvironment  (combined from similar events): async update failed: failed to set observation: v1beta1.ComputeEnvironmentObservation.EksConfiguration: readObjectStart: expect { or n, but found [, error found in #10 byte of ...|uration":[],"service|..., bigger context ...|e_environment_name":"sample","eks_configuration":[],"service_role":"arn:aws:iam::811861054499:role/a|...
Any inputs on how to resolve this?

Hi @turkenf. Thanks for the suggestions, I have rebased and made the changes. Could you please review ?
When I was testing this locally, the service_role gets deleted first and leaves the computeenvironment in a INVALID hanging state. Any idea how this could be fixed? This could cause the uptest to fail.

When I was testing this locally, the service_role gets deleted first and leaves the computeenvironment in a INVALID hanging state. Any idea how this could be fixed? This could cause the uptest to fail.

@sachinmalanki, we have hooks for this kind of cases. We can use pre-delete-hook. Here is an example: yaml and sh files.
Also, I see 47 commits in the PR's commit history. Please fork your PR from the latest main and squash your commits.

I have raised another PR - https://github.com/crossplane-contrib/provider-upjet-aws/pull/1542 with all the changes suggested.

Hi @sachinmalanki, which PR will we continue with?

Lets continue with https://github.com/crossplane-contrib/provider-upjet-aws/pull/1542. let me close this PR


added svelte support

I just added another value to the array of supported extensions

i just noticed the settings: attributes-collapse.enabledLanguageIds, nevermind :)


[CI][C++][Flight] Test failures in macos release verification nightlies

Describe the bug, including details regarding any error messages, version, and platform.
Examples can  be found below:
https://github.com/ursacomputing/crossbow/actions/runs/4232843320/jobs/7353066727
https://github.com/ursacomputing/crossbow/actions/runs/4583238411/jobs/8093963787
Component(s)
C++, Continuous Integration, FlightRPC, Release

CC @assignUser @raulcd


Support improved debugging capabilities in web editor

the blot editor hosts a much more sophisticated debugging system, where lines with errors are shown and the specific error is pointed to. the Current sprig debugging systems lacks the sophisticated features that make the blot editor so much more useful for debugging.

@Sheepy3 please make this more specific on what exact use cases are superior on blot and missing on Sprig.  The sprig editor does show specific lines w/ errors along with error details.

This gives important context https://docs.google.com/document/d/1AE6xumn45Jv4P7mg_klcPw_zMs9iLsTS5iE17ozvizw/edit

it seems to me that the "big feature" here is just support for a debug console

I think the first big thing to address here is improved error messaging.
Error messages should

have line numbers which are highlighted
include easily understandable messages when possible
point to the row as depicted in the screenshot

splitting into new issues - #1651 and #1652.


⚠ Guya.moe Proxied has degraded performance

In 4218d6c, Guya.moe Proxied (https://ice.guya.moe/) experienced degraded performance:

HTTP code: 200
Response time: 12948 ms

Resolved: Guya.moe Proxied performance has improved in 7f41c95 after 11 minutes.