Unable to create integration

I am getting the below error when I try to set this up as an integration in Home Assistant.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 618, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 635, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/config/custom_components/mass/__init__.py", line 14, in <module>
    from music_assistant import MusicAssistant
  File "/usr/local/lib/python3.9/site-packages/music_assistant/__init__.py", line 3, in <module>
    from .mass import MusicAssistant  # noqa
  File "/usr/local/lib/python3.9/site-packages/music_assistant/mass.py", line 19, in <module>
    from music_assistant.controllers.music import MusicController
  File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/music/__init__.py", line 8, in <module>
    from music_assistant.controllers.music.albums import AlbumsController
  File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/music/albums.py", line 24, in <module>
    from music_assistant.models.music_provider import MusicProvider
  File "/usr/local/lib/python3.9/site-packages/music_assistant/models/music_provider.py", line 7, in <module>
    from music_assistant.models.config import MusicProviderConfig
  File "/usr/local/lib/python3.9/site-packages/music_assistant/models/config.py", line 39, in <module>
    class MassConfig:
  File "/usr/local/lib/python3.9/site-packages/music_assistant/models/config.py", line 48, in MassConfig
    stream_port: int = select_stream_port()
  File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/util.py", line 172, in select_stream_port
    if not is_port_in_use(port):
  File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/util.py", line 166, in is_port_in_use
    return _sock.connect_ex(("localhost", port)) == 0
socket.gaierror: [Errno -3] Try again

Version
core-2022.6.6

Installation Type
Home Assistant Container

Development
false

Supervisor
false

Docker
true

User
root

Virtual Environment
false

Python Version
3.9.12

Operating System Family
Linux

Operating System Version
5.18.3-arch1-1

CPU Architecture
x86_64

Timezone
Pacific/Auckland

OK, looks like port 8095 is already in use and it fails to select a different one. I'll checkin a fix for that.
Temp solution is to disable whatever is now on TCP port 8095.

Fix available in 2022.6.1


Build with osdk v0.9.0, fix status update to new crd version

This PR builds the operator using the latest build of operator-sdk. A user can deploy their own image using:
operator-sdk build docker.io/username/etcd-ha-operator:test && docker push git@github.com:alaypatel07/etcd-ha-operator.git and changing the image name in deploy/operator.yaml
/cc @hexfusion @retroflexer

nit: rebase into a single commit?


Split parquet file scan tasks at row group boundaries

+1 from me, and @rdsr already added a +1, so I'm going to merge this.


issue fixed: Refactor the Modal component to be more generic

https://github.com/qu8n/focusbeacon/issues/22

@mahdiQaempanah I made a few minor changes. Nice work and thanks for contributing!


Feature query - customizing standard implementation

Hi
I was looking customize implementation of a standard genetic algorithm.  I would like to inject some individuals using a modified procedure besides crossover and mutation in genetic algorithm (I would like to retain some but not all individuals using crossover and mutation).
Is there a way to do so, and can you please tell me where should the changes be made?
Is callback the right place?
https://www.pymoo.org/interface/callback.html
Thanks

It will be more of a hack, but you can either use the Callback or the Repair operator.
Another way is not running the minimize method but coding the loop and calling algorithm.next() until the algorithm terminates. (see the object-oriented interface in the https://pymoo.org/getting_started.html).
You can inject a solution by replacing an individual in pop or by appending a whole sub-population by Population.merge(pop, others).
(and sorry for the delayed answer)

No problem, thanks for the response!
I will try this and see how it goes.


Would be nice to create generic secrets dynamically

Without this feature it is hard to have self service without some bash curling or another container in pipelines to create secrets.
In the absence of a custom resource or other workflow, this feature will enable a server service to be fully self service.
The example below shows how this could be implemented as a simple additional option for at least the generic secret backend. Maybe the option should also be specific to the generic:
vault-sidekick -cn=secret:/namespace/secrets/db-root-password:create:true

@gambol99 @jon-shanks @vaijab @timgent

Sounds sensible.

Happy with the idea, the UI looks a bit weird but I guess it's consistent with the vault-sidekick (also weird) so :+1:

Fixed by #9


GVM audit...

As I am a proper Gopher now, I am seeing less and less validity in a gvm release - other than building from source.
I want to explore this, and basically figure out if removing GVM support is a good idea. The added complexity and support isn't particularly of interest where the application gets very little use in comparison to traditional installation methods.

Superseded by #26


In AviasalesAirport there is no field 'location'

But there is one when I try perform request for Airports search by this link
http://nano.aviasales.ru/places_ru?term=simferopol


Some API issues

Can you develop more features of the API as follows:

Create custom emails
Read mail by sender and, or subject
Delete mail after reading (optional)
Add email TTL option
My job really needs it, thank you

If your company is willing to pay my hourly contracting rate then yes absolutely. If not, you're free to make a pull request with the features added which I will review when I have time. Otherwise you're also welcome to fork.


signInStatus is 'NOT_SIGNED_IN' during refresh of token

I've noticed that if the token needs to refresh (i.e. I haven't used our app for more than an hour) then the login screen briefly appears while the token is refreshing. This is really annoying. It seems that signInStatus and signingInStatus go through these transitions:
signInStatus: CHECKING signingInStatus: CHECKING_FOR_SIGNIN_LINK
signInStatus: NOT_SIGNED_IN signingInStatus: NO_SIGNIN_LINK
signInStatus: REFRESHING_SIGN_IN signingInStatus: NO_SIGNIN_LINK
signInStatus: SIGNED_IN signingInStatus: NO_SIGNIN_LINK
The NOT_SIGNED_IN status is messing us up and seems erroneous. I had a look at the code. I don't quite understand it but I think maybe a call to setIsSchedulingRefresh(true) would fix the problem? I don't see that isSchedulingRefresh is ever set to true. I think maybe it should be done just before line 205 of hook.tsx. What do you think?
Btw to repro this you can either wait an hour or just edit Passwordless.<longid>.expireAt to be some old date, in local storage.
Thanks!

Hi mate!
The signInStatus should be REFRESHING_SIGN_IN then because either isSchedulingRefresh or isRefreshingTokens should be true: https://github.com/aws-samples/amazon-cognito-passwordless-auth/blob/10c696371b84e41fcbcd8033f314bb6f73f79d1e/client/react/hooks.tsx#L333-L334
Which means you should see this (if you use the pre-built Passwordless component): https://github.com/aws-samples/amazon-cognito-passwordless-auth/blob/10c696371b84e41fcbcd8033f314bb6f73f79d1e/client/react/components.tsx#L101-L114
Are you indeed using the pre-built Passwordless component? Does this work like taht for you, but you're saying I don't want to see that page in this case?
Else, if you do see signInStatus is NOT_SIGNED_IN and not REFRESHING_SIGN_IN we need to figure out what goes wrong.
You should not have to look at signingInStatus by the way. Just looking at the field signInStatus should be enough to figure out whether or not to show sign in page (was made for that purpose).
Since being signed in (=have valid JWTs), and signing in, can be done in parallel (eg in case of step up auth), these statuses were separated into two different fields (they are related but not the same).

Hi! Thanks for the quick response. I just tried with the sample app and it behaves how you said it should, it goes straight to the REFRESHING_SIGN_IN state. I'm not sure why our app is hitting the CHECKING and NOT_SIGNED_IN states. I will dig into it later this week to see what we are doing differently.

Any luck finding out?


Allow alpha in color annotation picking

The alpha control is in a storybook on react-science:
https://react-science.pages.dev/stories/?path=/story/components-color-pickers--color-picker-story
Please check
https://stackoverflow.com/questions/6042550/svg-fill-color-transparency-alpha
I prefer you don't use the RGBA format in the SVG because it is not supported (yet) by all the softwares like inkscape.


Querying connections: nodes, edges>nodes vs nothing

It seems there are 3 ways out there how you can query a field with multiple records (connections):

Via a nodes field (this is what the plugin does currently)

users {
  count
  nodes {
    id
    email
    name
  }
}

Via a node field within a edges field

users {
  count
  edges {
    node {
      id
      email
      name
    }
  }
}

Via none of these

users {
  id
  email
  name
}

Due to the fact that some APIs support 1 and 2, some support only 2 and some only support 3, it makes the usage of this plugin difficult, due to the fact that we hard implemented case 1.
Maybe we should implement a cascading detection of how the query should look like based on the schema. The GraphQL Plugin could automatically detect whether nodes is supported or if not whether edges > node is supported and if not fallback to use neither of those.
Additionally there should be a options flag where you can enforce one of these modes.
However for me it's not clear what the standard way is and what makes sense, which is something we have to find out.
Thanks to @oligus for reporting!

I thought about that and I think the plugin should be as flexible as possible. That doesn't mean we will implement every guff of everyone, but when there is no clear standard and many different implementations, I think we should support that.
I will implement that in the next days.

https://github.com/vuex-orm/vuex-orm-graphql/pull/29

@oligus I've created a PR for that.
Could you test it if it works for you? You can simply checkout the branch, run yarn link within the Vuex-ORM-GraphQL directory and then run yarn link @vuex-orm/plugin-graphql in your project (you have to recompile your project).
In best case everything works out of the box. Otherwise you maybe have to pass connectionQueryMode: 'plain' to the options.
I'm looking forward to hear your feedback :)
Thanks for your help!

@phortx
I did try this but unfortunately I ran into an error for a normal list type:

It might be the way we implement GraphQL, but as I understand it name should be included in the type?
Thanks!

No, that's ok. The LIST Type has no name. I will take a look  :)

I pushed a fix. Could you try again? :)

Also I deployed the documentation: https://vuex-orm.github.io/vuex-orm-graphql/guide/connection-mode/

Thanks it works now both in plain and nodes mode. The auto detection doesn't seem to work for either.
Also, the error message contains spelling error:
Error: Can't determine the connection mode due to the fact that here are no connection types in the schema. Please set the connecitonQueryMode via Vuex-ORM-GraphQL options
connecitonQueryMode should be connectionQueryMode
Thanks again!

Pity. However this may be related how the GraphQL Schema reacts to the introspection query.
Thanks for the testing and the advice. I think this is a good base we can start with :)

Merged and released v1.0.0-rc.8

From documentation is not clear where to configure this.

Sorted https://github.com/vuex-orm/plugin-graphql/issues/106#issuecomment-500312935 -> https://vuex-orm.github.io/plugin-graphql/guide/adapters.html


Bugfix/specs

Wow, good work!

/home/travis/build.sh: line 45: bin/rake: No such file or directory

It's still failling on Travis, i check this.

It's fixed :)


code language issue

Hi,
I see this repo mainly is composed of C++ code.
So why isn't this repo be written in Java or C#? What's the considerations for coding languages? use C++ for efficiency?
BR

Yes, for efficiency. C/C++ still dominates primitive cryptographic implementation.

Yes, for efficiency. C/C++ still dominates primitive cryptographic implementation.

Thank you for your information.


Extract folders from StablehloRefineShapes into new StablehloAggressiveFolder pass

Extract folders from StablehloRefineShapes into new StablehloAggressiveFolder pass.
This patch addresses the problem of adding new folders and allowing potentially lossy computations in folding patterns. It preserves the behavior of existing models and workflows that rely on shape refinement to fold shapes while assuming non-shape-related computations remain unchanged.

It tends out that applyPartialConversion approach is only feasible here if we are 100% sure that folder will be applied, i.e. on the case below:
func.func @eval_add_i32(%arg0 : tensor<i32>) -> tensor<i32> {
  // CHECK-NOT: stablehlo.add
  // CHECK: [[RESULT:%.*]] = stablehlo.constant dense<4> : tensor<i32>
  // CHECK: return [[RESULT]]
  %0 = stablehlo.constant dense<2> : tensor<i32>
  %2 = stablehlo.add %arg0, %0 : tensor<i32>
  func.return %2 : tensor<i32>
}

this code won't work properly as it would fail to legalize:
ConversionTarget target(getContext());
  target.addLegalDialect<stablehlo::StablehloDialect>();
  target.addDynamicallyLegalOp<stablehlo::AddOp>([&](stablehlo::AddOp op) {
    return !op.getLhs().getType().getElementType().isa<IntegerType>() &&
           !op.getRhs().getType().getElementType().isa<IntegerType>();
  });

Alternative we can try to use greedy folder only on a subset of integer-like operations and then apply shape refinement:
SmallVector<Operation*> opsToFold;
func.walk([&](Operation* op) {
  if (!isOpFoldableByStablehloAggressiveFolder(op)) return;

  if (isa<AddOp, AndOp, CompareOp, DivOp, MaxOp, MinOp, MulOp, OrOp, RemOp,
          SubtractOp>(op))
    for (const auto& operand : op->getOperands())
      if (!getElementTypeOrSelf(operand.getType()).isa<IntegerType>())
        return;

  if (auto operation = dyn_cast<BroadcastInDimOp>(op))
    if (!getElementTypeOrSelf(operation.getOperand().getType())
             .isa<IntegerType>())
      return;

  ...

  opsToFold.push_back(op);
});
GreedyRewriteConfig config;
config.strictMode = GreedyRewriteStrictness::ExistingAndNewOps;
(void)applyOpPatternsAndFold(opsToFold, foldPatterns, config);

if (failed(applyPatternsAndFoldGreedily(func, refinePatterns, config))) {
  func.emitError("Failed to converge StablehloRefineShapes in ")
      << config.maxIterations << " iterations";
  signalPassFailure();
}
...

diff <(sed -n '59,530p' stablehlo/transforms/StablehloAggressiveFolder.cpp) <(git show ab92aded:stablehlo/transforms/StablehloRefineShapes.cpp | sed -n '249,720p')

should be identical

diff <(sed -n '59,474p' stablehlo/transforms/StablehloAggressiveFolder.cpp) <(git show fdfab2e4:stablehlo/transforms/StablehloRefineShapes.cpp | sed -n '249,664p')

rebased, should be identical

Will review this next week -- Google I/O next week and have been a bit bogged down. Apologies for the delay!

Any approach introduces the challenge of synchronizing between shape refinement and folders. If someone adds a pattern to the folders, what should be done with shape refinement? Once i add a new EvalIota pattern should i skip it in shape refinement to maintain original behavior? I'm not entirely sure about the criteria that determine which folders are suitable for shape refinement and which are not.

Shape refinement is very limited in use. It's only intended to fold specific patterns that appear in shape computations.
Mostly this is "dynamic reshape|broadcast this into the shape of another tensor" -- reshape requires multiplication/division to figure out number of elements in a dimension, and broadcast requires max to figure out which dims are broadcast, both require get_dimension_size and concat to build the shape vector. It's not a set of patterns that commonly grows.
We can figure out how to refactor this, thanks for pointing out the problem with the dynamic legalization, hadn't thought of that. Another approach could be to make a pattern that wraps a pattern and only applies when int... not sure how bad that is.. Will review this code now and see if I have any thoughts


fix Disable enable_feature_binlog in the cloud mode

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Displays issues occur when setting the shell to Bash by default on Windows

[x] I am on the latest Hyper.app version
[x] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: Windows 10 Pro 64-bit 1703
Hyper.app version: 1.3.3
Link of a Gist with the contents of your .hyper.js: https://gist.github.com/JacobDB/baaf01a2cdfd1ab7d37806a27aa8f1e4
Relevant information from devtools (CMD+ALT+I on Mac OS, CTRL+SHIFT+I elsewhere): N/A
The issue is reproducible in vanilla Hyper.app: Yes

Issue
When changing the shell to C:\\Windows\\System32\\bash.exe in .hyper.js, display issues occur, such as text disappearing, lines wrapping too early, or text not being removed. None of this happens when entering "bash" manually in the terminal. Screenshots below.
Broken (set to use bash .hyper.js:

Working (shell configuration left as default, entering bash in the terminal):

This could theoretically be fixed by passing an argument to the call to cmd.exe rather than calling bash directly. For example, it could be possible to set shell to 'C:\\Windows\\System32\\cmd.exe' /C bash, but in practice that causes crashes. I've tired escaping the /C as \/C as well, still crashes.

Okay, I figured out that I can set shellArgs to \/C bash, but that results in the exact same issue as described above. Doesn't make a whole lot of sense to me.

Here's a GIF demonstrating the issue a bit more clearly.

@rauchg @chabou hterm issue?

Some more detail:

This has happened on every Windows machine I've ever tried it on (at least 4 separate devices), across multiple versions on Hyper
I had a similar issue today when using my "workaround" method, but it does seem to be much rarer when invoking bash after launch.

I'll try to reproduce

Related, sometimes the entry line goes off the end of the page, without any way to fix it other than restarting. Not sure if that's affected by one of my plugins, though.

@JacobDB I have all the same issues you are describing, with only 2 plugins: 'hypercwd' and 'hyper-snazzy'

@thijsvdv yea, plugins don't seem to be affecting it; I did get it to behaving nicely once with no plugins installed, but upon relaunch (still with all plugins disabled), it freaked out again.

@chabou any status update on this?

Can you try to resize Hyper before typing?
From your gif, my hypothese is:
cmd fit correctly hterm/hyper size at startup. After that, you launch bash and everything is ok.
bash doesn't fit correctly at startup. Resizing window could be a workaround.

@chabou after a brief test that does seem to work. I'll try it out while I work today and report back if anything weird continues to happen.

@chabou after a bit more testing, this doesn't really seem to be an effective workaround. It solves it for one  line, sometimes, but then continues being wonky with subsequent lines.

@JacobDB So you have to resize window before each new line! Easy fix 😝
Thank you to have tested it. We'll try to find a real solution/workaround. 😥

I have to resize when starting hyper to get my shell prompt to display correctly, so there's a bunch of stuff broken when using bash/fish/etc. by default I think.

@nesl247 This issue concerns Windows. Are you using fish on Windows?

Yes via WSL.

@nesl247 thank you for your feedback!

Duplicate of #283 ?

I think this is not exactly the same than #283.
Seems specific to Windows.
@nesl247 @Mohamed3on Can you test this issue with our last v1.4.2 release?


european accents encoding

i use a bot.dialog(qnaMakerdialog) that is running perfectly
if i enter some rules contening é è à in rules, when i display it in facebook messanger with encoding
i put "élève" in rule, in facebook i see élève
is there a parameter to do specific think or mistake in sdk?

i give you my code, how intercept return of basicQnAMakerDialog to filter chars? can i rewrite display function?
var basicQnAMakerDialog = new builder_cognitiveservices.QnAMakerDialog({
recognizers: [recognizer],
defaultMessage: "Je n'ai pas compris, merci de précisez",
qnaThreshold: 0.3}
);
bot.dialog('/', [
function (session) {
//my instructions
session.beginDialog('/qna') ;
}
]);
bot.dialog('/qna', basicQnAMakerDialog);

Hey were you able to get this fixed? There is nothing special or funky we are doing on SDK end, if your issue still persists I can probably make a sample app and try out issue myself. Is it only happening with FB Messenger or other platforms as well? What version of NodeJS you are using?

Yes issue persist, i detect that api return all é è in html entities

What version of NodeJS are you using? I will try to reproduce the issue.

it is NodeJs include in azure, but i have the same issue if i call url from REST API
how do you test it?

@goldstark NodeJS on azure must have a version. I will test it via making an app, and running it locally on local NodeJS then verify the message coming through on messenger.

Adding Q&A Maker to investigate.

This was resolved.
@goldstark: Are you still facing any issue?

It is resolved
Thank you
De : dasvictor<EMAIL_ADDRESS>Envoyé : mardi 28 février 2017 08:11
À : Microsoft/BotBuilder
Cc : goldstark; Mention
Objet : Re: [Microsoft/BotBuilder] european accents encoding (#1941)
This was resolved.
@goldstark https://github.com/goldstark : Are you still facing any issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/1941#issuecomment-282960754 , or mute the thread https://github.com/notifications/unsubscribe-auth/AXfa7Tte0aPklWA3iNJclF8VJVDlo24Nks5rg8iAgaJpZM4LY2nb .  https://github.com/notifications/beacon/AXfa7bmV8PpBBR6Sw6Q6-5xO8PkEZI6Cks5rg8iAgaJpZM4LY2nb.gif

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus


nix-env -q only lists home-manager-path

While going through the Nix Pills series, I noticed that nix-env -q only lists home-manager-path on my system. Other nix commands are "broken", too. What's wrong here?

What do you mean by "other commands are broken too"? What you just described regarding nix-env is the intended behaviour: home-manager creates a single package combining all your home-manager packages, then uses nix-env to install it.

For example, to find a package, I used to be able to call nix-env -qaP | grep .... This doesn't work anymore.

nix-env -q should only list home-manager-path, but nix-env -qaP should still output a list of packages. Have you fetched the latest packages? Try running home-manager -n build --update first.

I did both now, same result.

@pmiddend Hmm, it should work:
$ nix-env -qaP | grep wireshark
nixos.tshark                                                           wireshark-cli-2.4.5
nixos.wireshark-gtk                                                    wireshark-gtk-2.4.5
nixos.wireshark                                                        wireshark-qt-2.4.5
$ nix-env -qaP | wc -l
15078

Maybe something is odd about your $NIX_PATH? Or maybe your channel is not actually downloaded. Would you mind making a comment with the output of the two commands
$ echo $NIX_PATH

and
$ nix-env -v -qaP 2>&1 | head -5

?
Personally I don't really use channels anymore so I would run this command as nix-env -f '<nixpkgs>' -qaP to use my local Nixpkgs checkout. Perhaps try that command?

Sure! echo $NIX_PATH outputs:
/home/philipp/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels

And the other command just:
evaluating file '/nix/store/vdvla43ppjf6gfsi8nx1zmac7rwq72yd-nix-2.0.2/share/nix/corepkgs/derivation.nix'

Out of curiosity, can you elaborate on "you don't use channels anymore"?

I'm guessing you don't have a channel downloaded. You could try deleting (or moving out of the way) the /home/philipp/.nix-defexpr directory. Then run nix-channel --update as root.
When you log in again Nix should automatically recreate the /home/philipp/.nix-defexpr directory and hopefully nix-env -qaP will work after that.
By me not using channels any more I particularly mean that I no longer use the nix-channel command. I do still use channels in the sense that I follow the nixos-18.03 branch of nixpkgs-channels. This branch is updated when the release is updated by the hydra builder so I'll pretty much always get packages from the official cache.
In my NixOS configuration I then have something like
nix.nixPath = [
  "nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-18.03.tar.gz"
  "nixos-config=/etc/nixos/configuration.nix"
];

and when I nixos-rebuild switch it'll download the channel. Basically it's the same as if you have
programs.home-manager.path = https://github.com/rycee/home-manager/archive/release-18.03.tar.gz;

in your Home Manager configuration.
The above is a bit of a simplification, I actually use my own fork of nixpkgs-channels that includes some custom modifications. And on some computers I set "nixpkgs=/path/to/checkout/of/my/nixpkgsfork" instead of fetching from github.

@pmiddend Yes, if you set it to the official nixos-unstable branch tarball then doing nixos-rebuild switch might run you into trouble :-) But if something goes wrong you could typically change the tarball URL to point to a specific revision that you know works. But still, yeah a slight risk.
That's part of the reason why I use a fork of this repo where I have a branch that I keep up to date with the nixos-18.03 channel branch. I run my main laptop against a local clone of this repo and that computer will be updated to a new channel release first. When I'm happy with it I just push the updated branch to my github repo from which other systems of mine will get it.
Not sure if the above description is particularly clear. But specifically I have a branch rycee-nixos-18.03 in my Nixpkgs fork. Occasionally I rebase this branch onto the latest nixos-18.03 branch from nixpkgs-channels.

For me, nix-env -qaP works fine. But when I run nix-env -q I do not get any of the packages I installed through home-manager. I am running openSUSE. nix-env -q only lists packages I installed by hand via nix-env itself.
This is problematic because I cannot query the nix store. For example, I have installed htop via home-manager and tree with nix-env:
$ nix-env --installed --no-name --out-path --query tree > x && cat x
/nix/store/2p0c9kjb8wk6brhj5n647ffki2n02n5z-tree-1.8.0
$ nix-env --installed --no-name --out-path --query htop
error: selector 'htop' matches no derivations
$ which htop
/home/rollf/.nix-profile/bin/htop
$ ll $(which htop)
lrwxrwxrwx 1 rollf users 70 Jan  1  1970 /home/rollf/.nix-profile/bin/htop -> /nix/store/78s3h27xj5bzqib6bwsgss06fc5f2wb3-home-manager-path/bin/htop

Do you have any suggestions for this?

You can list packages installed by HM by running home-manager packages. It is unlikely that a better solution will come in the near future.
On 13 February 2020 14:19:52 CET, "Rolf Schröder"<EMAIL_ADDRESS>wrote:

For me, nix-env -qaP works fine. But when I run nix-env -q I do
not get any of the packages I installed through home-manager. I am
running openSUSE. nix-env -q only lists packages I installed by
hand via nix-env itself.
This is problematic because I cannot query the nix store. For example,
I have installed htop via home-manager and tree with
nix-env:
$ nix-env --installed --no-name --out-path --query tree > x && cat x
/nix/store/2p0c9kjb8wk6brhj5n647ffki2n02n5z-tree-1.8.0
$ nix-env --installed --no-name --out-path --query htop
error: selector 'htop' matches no derivations
$ which htop
/home/rollf/.nix-profile/bin/htop
$ ll $(which htop)
lrwxrwxrwx 1 rollf users 70 Jan  1  1970
/home/rollf/.nix-profile/bin/htop ->
/nix/store/78s3h27xj5bzqib6bwsgss06fc5f2wb3-home-manager-path/bin/htop

Do you have any suggestions for this?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/rycee/home-manager/issues/266#issuecomment-585750343

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Hi @rycee , thanks for the quick reply. I stumbled over this because as a resolution of an issue I had, someone suggested to run  export LOCALE_ARCHIVE="$(nix-env --installed --no-name --out-path --query glibc-locales)/lib/locale/locale-archive" where glibc-locales is a package installed in the nix store (i.e. the intention is to specify a path in the nix-store given only the package name). This fix does not work if I install glibc-locales via home-manager.

@rollf If you have home.package = [ pkgs.glibcLocales ] in your configuration, wouldn't it then be possible to simply have
export LOCALE_ARCHIVE="$HOME/.nix-profile/lib/locale/locale-archive"

in your shell configuration?

@rycee yes, I guess so; I wasn't aware of this. Your feedback is much appreciated!

@rycee yes, I guess so; I wasn't aware of this. Your feedback is much appreciated!


Cannot Update - Swift 3 branch

static let AuthTokenLocation = "ALSAuthToken"
static let key_Token = "token"
static let key_Expiration = "expires"

    static func saveAuthToken(_ authToken: AuthToken) {
        do {
            try Locksmith.updateData(data: [key_Token: authToken.token, key_Expiration: authToken.expiration], forUserAccount: AuthTokenLocation)
        } catch {
            print ("Could not save auth token:\(error)")
        }
    }

A Locksmith error is throwing when I call updateData. Error is returning as undefined.
token is a String
expiration is a Date

same problem here..
do {
            try Locksmith.updateData(data: ["password":password.text!], forUserAccount: loginName.text!, inService: tkcService)
        } catch {
            print("\(error)")
        }

inside of Locksmith.swift at static public fun Locksmith.updateData(...) on statement
let request = UpdateRequest(service: service, account: userAccount, data: data)
get debug error:
Printing description of request:
expression produced error: error: /var/folders/vl/g9k6m7y17q1_bvmsgfjxv6dr0000gn/T/./lldb/97468/expr37.swift:1:75: error: 'UpdateRequest' is not a member type of '$__lldb_context' (aka 'Locksmith')
Swift._DebuggerSupport.stringForPrintObject(Swift.UnsafePointer<Locksmith.UpdateRequest>(bitPattern: 0x1168c4510)!.pointee)
                                                                ~~~~~~~~~ ^

The error is that the entitlement is missing. See #31 and http://stackoverflow.com/questions/20344255/secitemadd-and-secitemcopymatching-returns-error-code-34018-errsecmissingentit.
Not sure why this is happening in the new code base. Perhaps an Xcode 8 issue.

Found some more info:
http://stackoverflow.com/questions/38456471/secitemadd-always-returns-error-34018-in-xcode-8-in-ios-10-simulator

The above fix to add the Keychain Sharing Capability to the app fixed the issue. Thanks! (Probably needs to be added to the setup ReadMe.md)

I am using Locksmith from a framework. Is there any way to add credentials to the test host app for unit testing?
On the other hand, I can confirm that adding credentials per above to the app that used the framework worked perfectly.

@phatmann Have you find a way to use Locksmith from a framework? I'm currently facing the same issue.

@Nonouf, I changed my framework unit tests to use my app as the test host. Since the app has an Entitlements file, keychain access works properly.
So, no, I did not solve the issue, but at least I found a workaround. Perhaps you can do the same.

@phatmann Thanks for the tips.
Unfortunately in my case it doesn't work as I need the unit tests to pass. :/


How to create a photo sphere

Please tell me How to create a photo sphere like this
https://www.youtube.com/watch?v=NPs3eIiWRaw
Thank in advance.

Hi,
Sorry this isn't a recording tool, just a display tool.
This kind of technology works best with (or maybe requires) image stitching, something that would take some effort.
Sorry it's outside the scope of this project.
Robby


Don't notify listeners of connection closure until all writes have finished

This gets rid of the terrible terrible waitForPendingWritesToFinish method and generally cuts down on blocky badness. I'm still a little disappointed at how much hoop-jumping needs to happen here, but I feel much better now that it's entirely hidden from listeners/callers.
Depends on #164 and #165; apologies for the diff noise until those are merged. The commits to look at now are dbc04ab (which gets rid of the internal pending write counter) and 620cc77 (which gets write of waitForPendingWritesToFinish and wraps that all into more sensible timing for the handleConnectionClosure listener method).
This is easier to read with whitespace-only changes hidden. Because we're not dealing with counters, we don't have as many anonymous Runnables lying around (yay!) and some stuff got un-indented as a result.

Looks good to me :+1:

Tests here are failing due to https://github.com/travis-ci/travis-ci/issues/3778.


Can someone point out what could be the issue?

there is no issue
INFO: Jenkins is fully up and running


How to programatically close Webview on click?

Bot Info

SDK Platform: NodeJS
Active Channels: Facebook
Deployment Environment: Local

Issue Description
Cant figure out how to close webview when someone submits a form. Using Angular app for Webview- so need to know how to do it on JS.
Expected Behavior
Automatically close webview on submitting form.

Which version of AngularJS are you using?

Angular 3

Upon further review, this issue is not a BotBuilder issue, but is more an Angular/JS issue.  I would recommend opening a question regarding this issue on Stack Overflow regarding this Angular-related question.
Also, I did not notice any documentation regarding Angular 3, as Angular progressed from version 2 to 4 directly.
If there are any further issues with BotBuilder specifically, feel free to open a new request.


Modified escalation processing for handling notifications.

@DanielJMaher @oceanzus please review and merge, thank you.

@DanielJMaher I'm good with this and we need it this morning to keep working so I am gong to merge it in.


[bugfix]Update transformer.py

Description：修复transformer.py中的bug
Main reason:  36行的forward函数中，seq_mask有可能是None，与向量相乘前应做检查，避免报错。

Codecov Report

Merging #217 into dev0.5.0 will decrease coverage by <.01%.
The diff coverage is 50%.

@@             Coverage Diff              @@
##           dev0.5.0     #217      +/-   ##
============================================
- Coverage     66.72%   66.72%   -0.01%
============================================
  Files            78       78
  Lines          9290     9292       +2
============================================
+ Hits           6199     6200       +1
- Misses         3091     3092       +1

Impacted Files
Coverage Δ

fastNLP/modules/encoder/transformer.py
94.59% <50%> (-2.55%)
:arrow_down:

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 8c8e22c...1caa83d. Read the comment docs.


Use AWS SDK v2 or v3

Description
This pull request allows use of either AWS SDK v2 or v3. For the resources used, the interfaces are identical.
Check List

[x] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[x] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

@jeffbyrnes @tas50 Can I interest you in #341 as well? :) It allows authentication using a session token as well


Fix metrics controller races

1. Issue, if available:
N/A
2. Description of changes:
add some race testing and fix two identified issues
3. How was this change tested?
ginkgo -r --race
4. Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: link to issue
[X] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

I'm a bit wary of ExpectRaceFree, though I'll admit it's pretty cool.

I'd prefer to catch this sort of thing in e2e tests, where the raceable scope is much larger. I recognize that we won't be using -race in this environment, though
I worry that this might give us a false sense of security that our tests won't race
In general, testing that something doesn't happen I really hard, since there are an infinite number of things that won't happen. I could see an argument for specific cases like paralleism/racing, but I'd prefer to limit our package testing to behavior checking to catch regressions.
I'm a bit wary of the time added to CI tests (how fast is this?)

I'm a bit wary of ExpectRaceFree, though I'll admit it's pretty cool.

I'd prefer to catch this sort of thing in e2e tests, where the raceable scope is much larger. I recognize that we won't be using -race in this environment, though

You can build with -race, though  it will run much slower.  That's probably the best solution as a -race e2e test should negate the need for this entirely.

I worry that this might give us a false sense of security that our tests won't race

In general, testing that something doesn't happen I really hard, since there are an infinite number of things that won't happen. I could see an argument for specific cases like paralleism/racing, but I'd prefer to limit our package testing to behavior checking to catch regressions.

On the other hand, the test does expose two bugs :)

* I'm a bit wary of the time added to CI tests (how fast is this?)

The 50 objects * 5 runs was to hopefully trip an issue like a concurrent map write during normal unit tests.  You can just create two objects and run them once to trigger detection with the race detector, so time should be negligible in that case.
Possible solution is to just fix the two bugs and create an issue to ensure that at least some e2e test runs on a -race build?

Possible solution is to just fix the two bugs and create an issue to ensure that at least some e2e test runs on a -race build?

Perfect.


fix cmake

Fixed the following cmake error:
CMake Error: File /uddalok/pepin/cmake/cmake_uninstall.cmake.in does not exist.

NICE! Thanks, it really was missing! Ayy. Thanks for fixing!

NICE! Thanks, it really was missing! Ayy. Thanks for fixing!

You are most welcome.


Add Plugin supports the Android V2 embedding

@geekvinod  @nsadisha  Checkout https://pub.dev/packages/flutter_internet_speed_test

@geekvinod @nsadisha Checkout https://pub.dev/packages/flutter_internet_speed_test

Thank you very much @shaz-tech
I will check that soon.

@geekvinod @nsadisha Checkout https://pub.dev/packages/flutter_internet_speed_test

Thank you very much. It is working perfectly.


Running Stryker mutator 3.0.2 with Jest 25.2 fails all mutations

Summary
i have upgraded stryker to 3.0.2
using jest
when jest version was ^24.9.0", stryker run perfectly
when upgraded to the latest jest version (2.5.2) the stryker ran, but all mutations survived....
Stryker config
// eslint-disable-next-line func-names
module.exports = function (config) {
  config.set({
    mutator: 'javascript',
    packageManager: 'npm',
    reporters: ['html', 'progress', 'clear-text'],
    testRunner: 'jest',
    transpilers: [],
    coverageAnalysis: 'off',
    maxConcurrentTestRunners: 4,
    enableFindRelatedTests: true,
    mutate: ['src/**/*.js'],
  });
};

Test runner config
Jest
process.env.VERACODE_ID = 123;
process.env.VERACODE_SECRET_KEY = 123;
process.env.JENKINS_MS_URL = 'https://www.jenkins.ms:5555';

const config = {
  reporters: ['default'],
  coverageReporters: ['json', 'html', 'lcov', 'text'],
};
// if run on Jenkins
if (process.env.JENKINS_HOME) {
  config.reporters.push('jest-junit');

  process.env.RP_TOKEN = 'af888636-61d1-45c7-bfc9-223e3fc9cda3';
  process.env.RP_TAGS = process.env.RP_TAGS
    ? process.env.RP_TAGS
    : 'ms-veracode,unit-test';
  config.reporters.push([
    '@reportportal/reportportal-agent-jest',
    {
      endpoint: 'http://reportportal.intl.att.com:8080/api/v1',
      launchname: 'MS-Veracode__Unit-Test',
      project: 'scrumboard',
    },
  ]);
}
module.exports = config;

Stryker environment
 "@stryker-mutator/core": "^3.0.2",
    "@stryker-mutator/html-reporter": "^3.0.2",
    "@stryker-mutator/javascript-mutator": "^3.0.2",
    "@stryker-mutator/jest-runner": "^3.0.2",

 "jest": "^25.2.2",

Your Environment
| software         | version(s)
| ---------------- | -------
| node             |10.17.0
| npm              |6.11.3
| Operating System |
windows11

Add stryker.log
You can drag and drop it here. -->
// file can be downloaded, see #issuecomment-605462023

Could you please send generated file with logs instead of copy-paste?  It will be more readable for us. Thank you :)

Hi sorry, i didnt know i can upload files.
attached summary and the logs below...
i have upgraded stryker to 3.0.2
using jest
when jest version was ^24.9.0", stryker run perfectly
when upgraded to the latest jest version (2.5.2) the stryker ran, but all mutations survived....
Stryker environment
"@stryker-mutator/core": "^3.0.2",
"@stryker-mutator/html-reporter": "^3.0.2",
"@stryker-mutator/javascript-mutator": "^3.0.2",
"@stryker-mutator/jest-runner": "^3.0.2",
"jest": "^25.2.2",
Your Environment
software	version(s)
node	10.17.0
npm	6.11.3
Operating System
windows11
logstryker.txt
stryker.conf.txt
jest.config.txt

I've been able to reproduce this issue with a simple jest example. I've added it as an e2e test and will now try to figure out what's wrong.
https://github.com/stryker-mutator/stryker/pull/2125

As a workaround: set this in your Stryker config:
 "jest": {
    "enableFindRelatedTests": false
  }

Since the build on Linux succeeds this is an issue on Windows only. See #2125. Will investigate more

I've opened https://github.com/facebook/jest/issues/9728
Known workarounds (descending order of convenience):

Renaming the .stryker-tmp directory to be a non-hidden directory.  // stryker.conf.[js/json]
  "tempDirName": "stryker-tmp",

Disabling --findRelatedTests  // stryker.conf.[js/json]
 "jest": {
    "enableFindRelatedTests": false
  }

Use Jest@24
Use Linux or WSL

OK, thanks, i will try the workarounds.

Is this issue still valid? there were some fixes and workarounds now.

Yes, quite relevant. I want to keep this issue open for users looking for it. Let's hope someone can fix facebook/jest#9728

Problem is fixed in Jest. If you encounter this issue, please upgrade jest to the latest version


logs: added correlation ID and subject to Context

Coverage increased (+0.08%) to 85.839% when pulling 17846bd5a0444373d676e04f68f94e6a78aa4580 on dissoupov into 37abee29f775098b9df7916731573ae16c392a5c on main.


Android is not running

App is crashing after the splash screen. When i remove meta-data in androidmanifest.xml project is building. Do i need to add code block to java or kotlin native code block?

@vladd-g i did not add v5 manually but it is come from in_app_purchases package. can it be problem?

@onuracikgozdusyeri yes, it can. Is in_app_purchases package being used in your project after adding Adapty, or you can remove it?
As for manually adding, you can try the following:
implementation('com.android.billingclient:billing') {
        version {
            strictly '4.0.0'
        }
    }

But please check if nothing fails because of in_app_purchases package (if you don't remove it) since the compatibility may be broken

@vladd-g thanks that is worked but i am getting crash when i try reload func in_app_purchases package :(
when will adapty be upgraded to v5 .
Is there any chance of using v5 or v4 depending on the package?

@onuracikgozdusyeri Do you need in_app_purchases package to be included? Since you can make purchases with Adapty

@vladd-g yeah we need :)

@onuracikgozdusyeri

i am getting crash when i try reload func in_app_purchases package

Sorry, I didn't get, could you please specify what kind of crash are you getting and when?
Btw, is it an option to downgrade in_app_purchases down to the latest with v4 in its dependencies?

@vladd-g we removed iap package thanks


StdlibUnittest: port to android x86, x86_64

Account for the x86 and x86_64 architectures when defining
RTLD_DEFAULT.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please smoke test


chore(core): Add better error message for client-side redirects

If the test clicks a link or something which causes a redirect outside of browser.get or browser.refresh, then the next time waitForAngular is called the user will probably run into this error message (since we didn't wait for Angular to load), which is not very helpful.
Users should be told what's going wrong and about potential work-arounds (e.g. using browser.get or browser.refresh to fix the bootstrapping).

@sjelin would you please explain a bit more on what can be done to mitigate this problem?
My use case: I have a test that enters username/password and hits a log in button, that redirects to another page on successful log in.

If both pages are angular pages, you should just add a browser.refresh after the new page loads to fix the problem

We're working on a feature to make this better in the future

I've been struggling with this issue for a week now. browser.refresh() doesn't work if I'm doing a POST.

That's good to keep in mind, thanks.  For now, you could probably mitigate the problem by just having your test wait a few hundred milliseconds after the client side redirect occurs.  This will stop Protractor from throwing the error message, though it wouldn't allow Protractor to bootstrap properly so it may cause some other unexpected problems (especially if you're using plugins or mock modules).

Actually, I'm using something like this as workaround where I know there will be a redirection:
(function (expectedUrl, timeout) {
    var loaded = false;

    browser.wait(function () {
        browser.executeScript(function () {
            return {
                url: window.location.href,
                haveAngular: !!window.angular
            };
        }).then(function (obj) {
            loaded = (obj.url == expectedUrl && obj.haveAngular);
        });

        return loaded;
    }, timeout);
})(expectedUrl, timeout);

@tassoevan, that's perfect! It's what I'd expect waitForAngular to do - wait for angular to be available.

When protractor starts, it always goes to the baseUrl then my test page.  Is that considered the redirect you are talking about?

Not quite @patrickliechty, I mean when you click on a link (like ) and it directs the browser to google.cm

@juliemr with @hankduan gone is there anyone working on the longer term fix for this anymore?

@sjelin , is this issue still exists in protractor 3.1.1

+1 for a better fix. Ran into this today with no idea how to work-around it. Thanks!

Having the same Issue!!! thanks @tassoevan for a reliable fix

+1 for a fix.

I got this error by doing element().getText() outside of the specs (without a browser.get() having occurred) -- was trying to create a shortcut for the output of a particular div outside the specs. Turned it into a function and all was well.

I get this error when running against \node_modules\protractor\example\conf.js, surely the example conf.js should always work regardless??

For people using Protractor without Angular, is there a workaround ?

@Overdrivr You can set browser.ignoreSynchronization = true; to tell Protractor to not wait for Angular.

browser.ignoreSynchronization = true works for me when i switch windows.

OK but then U need to set browser.ignoreSynchronization = false;

I am getting this error and it contains a link to this github issue.
Here is what I have:
/**
 * Waits for MR job to complete.
 * @param {string} url The GET URL to kick off the map reduce job.
 * @return {!webdriver.promise.Promise}
 */
function waitForMapReduceJobToComplete(url) {
  browser.ignoreSynchronization = true;
  browser.get(url);
  $('a[href*="/mapreduce"]').click();
  browser.wait(()=> {
    console.log('wait');
    return $('#auto-refresh').isPresent();
  });
  browser.controlFlow().execute(function() {
    console.log('after wait, before click');
  });
  browser.wait(()=> {
    console.log('isDisplayed');
    return $('#auto-refresh').isDisplayed();
  });
  $('#auto-refresh').click();
  browser.controlFlow().execute(function() {
    console.log('after click');
  });

  browser.wait(() => {
    return $('.status-box').isPresent().then((isPresent)=> {
      if(isPresent) {
        return hasClass($('.status-box'), 'status-done')
            .then((containsClass) => {
              if(!containsClass) {
                return browser.refresh().then(() => false);
              }
              return true;
            });
      }
      return browser.sleep(constants.BROWSER_WAIT_MS)
          .then(() => false);
    })
  });

  return browser.controlFlow().execute(function() {
    browser.ignoreSynchronization = false;
  });
}

  fit('mapreduce job is idempotent', function() {
    var subBuildingUrl = '/xyz/#all';
    var mapReduceJob = '/import/xyz/';
    helpers.waitForMapReduceJobToComplete(mapReduceJob);

    browser.get(subBuildingUrl);
    var tableView = new TableView();
    var originalCount = 0;
    tableView.count().then((cnt)=>{
      originalCount = cnt;
    });

    tableView.deleteRowNumber(1);
    browser.sleep(5000);
    browser.controlFlow().execute(function() {
      expect(tableView.count()).toBeLessThan(originalCount);
    });

    helpers.waitForMapReduceJobToComplete(mapReduceJob);
    browser.get(subBuildingUrl);
    browser.controlFlow().execute(function() {
      tableView = new TableView();
      expect(tableView.count()).toEqual(originalCount);
    });
  });

//Arrange
The test starts on an angular app.
kicks off a mapreduce job on a URL not an angular app
goes back to the angular app to record row counts
//Act
deletes 1 record
verifies delete occurs
// Assert
kicks off a mapreduce job on a URL  not an angular app
fails the second time before we can confirm the mapreduce job recreates the data (same row count before the delete).
Here is the relevant log details:
wait
after wait, before click
isDisplayed
isDisplayed
after click
[17:48:09] W/element - more than one element found for locator By(css selector, .status-box) - the first result will be used
[17:48:24] W/element - more than one element found for locator By(css selector, .status-box) - the first result will be used
[17:48:40] W/element - more than one element found for locator By(css selector, .status-box) - the first result will be used
[17:48:55] W/element - more than one element found for locator By(css selector, .status-box) - the first result will be used
wait
F

Failures:
  Message:
    Failed: Error while waiting for Protractor to sync with the page: "window.angular is undefined.  This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping.  See http://git.io/v4gXM for details"
  Stack:

It always fails on second time through waitForMapReduceJobToComplete on the 'wait' log.

The solution is "documented" here: https://github.com/angular/protractor/issues/2787
Inside the browser.wait you have to reset ignoreSynchronization.  I did this for all the browser.waits where ignoreSynchronization was already true.
  browser.wait(()=> {
    browser.ignoreSynchronization = true;
    var x = $('#auto-refresh').isPresent();
    return x;
  });
```

My test passes now.

Do you have any solution for wait using browser.ExpectedConditions?
How the patch will look like if you will use this code?
browser.wait(EC.visibilityOf(element), timeout, message);?

@azachar this one seems to work:
browser.wait(() => {
  browser.ignoreSynchronization = true;
  return EC.visibilityOf(element);
}, timeout, message);

I don't know what's going on, for some reason in this block ignoreSynchronization is still false until you force-set it. I followed up in #2787 with this.

I am getting this without ignoreSynchronization with something like this....
afterAll(function(){
    adminPage.header.logout();
    // FIXME: WTF why isn't even this working 100% of the time
    setTimeout(function(){
      expect(loginPage.isVisible()).toBeTruthy();
    }, 1000 )
  })

loginPage seems to take a sec to load and this setTimeout doesn't help. browser.wait seems to help a little bit but still fails.

@tassoevan hi dude, could you tell me how to config that browser.wait() like your description and where to config it

in angular (2) - Make sure your spec begins w/ browser.get('/');
import { browser, element, by } from 'protractor';

it('should display message saying app works', () => {
    browser.get('/');

    let title = element(by.id('title')).getText();
    expect<any>(title).toEqual('cool');
});

After looking at @tassoevan's great workaround and getting my redirect tests working, I figured I'd share my TypeScript and Angular2 solution. I put this function on my abstract page class, but I think it might fit better on the browser object.
/**
  Wait for the page to make it to the next URL before continuing.
  A supplement to browser.waitForAngular() because protractor will continue control
  flow before navigation starts.

  Inputs:
    necessaryUrlFragment: a portion of the url that signifies you have successfully navigated
    timeout: the number of ms to wait before throwing an error. Defaults to the browsers default
      page timeout.
 */
waitForRedirect(necessaryUrlFragment: string, timeout: number = browser.getPageTimeout) {
  // Before we tell the browser to wait, assume it has not navigated
  let hasRedirected = false;

  // Passing a function to browser.wait() tells protractor to call that function repeatedly.
  // This function returns the closure variable hasRedirected, which will be set to true once the
  // necessaryUrlFragment has been found in the url
  browser.wait(() => {
    browser.getCurrentUrl()
      // Check to see if necessaryUrlFragment is in the current url
      .then(url => url.includes(necessaryUrlFragment))
      // Update our navigation status
      .then(hasNavigated => {
        hasRedirected = hasNavigated;
      });

    // Return our navigation status every time protractor asks for it - even if navigation is
    // not complete
    return hasRedirected;
  }, timeout);
}

My login page is non-Angular js page. Once i login to the application Angular js page is created. So I created spec file as given below:
describe('Login to Application', function() {
var userID = element(by.name('username'));
var password = element(by.name('password'));
var logInButton = element(by.id('Submit'));
function loginToApplication(stringSSOID, stringPassword) {
userID.sendKeys(stringSSOID);
password.sendKeys(stringPassword);
logInButton.click();
}
beforeEach(function() {
browser.ignoreSynchronisation = true;
browser.get(''); // which will navigate to login page of the application
});
it('have login to application', function() {
loginToApplication('77777','test')
browser.ignoreSynchronisation=false
expect(browser.getTitle()).toEqual('Software');
});
});
Getting below error message:
Failed: Error while waiting for Protractor to sync with the page: "window.an
gular is undefined.  This could be either because this is a non-angular page or
because your test involves client-side navigation, which can interfere with Prot
ractor's bootstrapping.  See http://git.io/v4gXM for details"

Hi take a look at http://www.protractortest.org/#/timeouts#how-to-disable-waiting-for-angular
Besically there are couple of ways to login using non-Angular page but firstly try this one show in the docs.
Best Regards
Camel

I realize it's a lengthy discussion already, but this might help someone.
Such an error message can also happen when the page is reloading unexpectedly because of an unhandled error happening in an Angular component. The fact that browser console may not be persisted, together with how fast the tests execute made it quite not-straightforward for me to understand what was going on.
So maybe something could be done as far as the error message is concerned, since the aforementioned case is not 'client side navigation' per se :)

Hi @ArnaudPel
Tnx for your extra info. Maybe you can add a PR to explain this in the docs if you want?

I currently get this error when doing the trip to our login page (a common problem):
Failed: Error while waiting for Protractor to sync with the page: "window.angular is undefined.  This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping.  See http://git.io/v4gXM for details"

Doing the ignoreSync trick doesn't seem to help:
browser.ignoreSynchronization = true;
// do work here with browser.driver
browser.ignoreSynchronization = false;

The link lands here at this thread, but what to do next is not exactly clear.
Tested with Protractor versions: 5.2.1, 5.1.1, 5.1.0, 5.0.0

@benjaminapetersen - You could try using waitForAngularEnabled instead of ignoreSynchronization. I'm looking at the API reference page for Protractor v5.1.2 and it no longer includes ignoreSynchronization, but looking through the CHANGELOG I don't see when, if ever, that property was officially deprecated...

I tried waitForAngularEnabled but i still get the same error as @benjaminapetersen gets. Here is my current config:
exports.config = {
    rootElement: 'app',
    baseUrl: 'http://localhost:1384/#/',
    framework: 'jasmine',
    seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: ['./tests/e2e/*.js'],
    multiCapabilities: [{
      'browserName': 'firefox',
      //'browserName': 'chrome',
    },
  ],
  jasmineNodeOpts: {
    showColors: true
  },
}

//example test:

describe('Overall navigation', function () {
  it('test link', function () {
     browser.get('http://localhost:1384/#/registrerprodukt');
  });
});

@thompsnm thanks!  Though it looks like waitForAngularEnabled is also deprecated....

I just solved my issue. 🥇  Root cause: Developer console side effect

I was having this problem and the fix for me ended up being to change to protractor "^5.3.2" in my package.json

I had a problem with this and it was because I had a console.log()  in a step.

That last solution almost work for me unless I got an error after the test passes :
Error: ECONNREFUSED connect ECONNREFUSED <IP_ADDRESS>:4444 From: Task: WebDriver.getCurrentUrl()

I got this error by doing element().getText() outside of the specs (without a browser.get() having occurred) -- was trying to create a shortcut for the output of a particular div outside the specs. Turned it into a function and all was well.

It works for anything, you can't use more than one 'element().anyfunction()' outside an ' it '.
Found it out the hard way...

Got error when switch from one web page to another in Protractor:
Failed: Error while waiting for Protractor to sync with the page: "both angularJS testability and angular testability are undefined.  This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping.  See http://git.io/v4gXM for details"
the code is :
var url = browser.params.login.Url;
browser.get(url+'/#!/app/manage-users');

browser.ignoreSynchronization has been deprecated and should not be used.  As hinted from the original post, using browser.get seems to solve the issue.
If you want to use it in a way that you can disable and enable waitForAngularEnabled at will, you need to use browser.get after setting waitForAngularEnabled(true).  For example:
// do things on your Angular application

waitForAngularEnabled(false)

// do things on non-angular page

waitForAngularEnabled(true)
browser.get('/home') // this is a page from your Angular application

browser.get blocks until the Angular page is loaded.

I'm currently hitting this error:
Exception has occurred: Error: Error while waiting for Protractor to sync with the page: "both angularJS testability and angular testability are undefined.  This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping.  See http://git.io/v4gXM for details"
But only when trying to debug through both VS Code debugger and using chrome inspector debug (followed the instructions here for both cases https://www.protractortest.org/#/debugging).
json


HPCC-27129 Add support for private docker repo, bug fixes and code enhancements

Signed-off-by: Godson Fortil<EMAIL_ADDRESS>HPCC-27129 Add support for private Docker repositories and other code enhancements
Signed-off-by: Godson Fortil<EMAIL_ADDRESS>HPCC-27129 Add suppport for private repo, bug fixes and code enhancements.
Signed-off-by: Godson Fortil<EMAIL_ADDRESS>

targeted wrong repo


"The bot's Microsoft App ID or Microsoft App Password is incorrect." For Azure for US Gov

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
4.8.1
Describe the bug
I am using the Azure for US Government. The Echo Bot works fine locally without the APPID and Secret. Once I add the correct APPID and SECRET to test the web app bot on the azure web sites the emulator always give the above error.
To Reproduce
Steps to reproduce the behavior:

Create on same Echo Bot with new V4 template.
Test locally without any ID or Secret.
Now create Azure Bot Web app on the US Government tenant.
Deploy the code to the web site.
Test the bot using the emulator.
Emulator will show the following error.
{
"message": "The bot's Microsoft App ID or Microsoft App Password is incorrect.",
"status": 400
}

Expected behavior
The bot should work.
Screenshots
not required.
Additional context
I looked at the code below.
https://github.com/microsoft/BotFramework-Emulator/blob/master/packages/app/main/src/server/constants/authEndpoints.ts
Used the line 43 to make a postman call and it did not work. I used my tenant to get bearer token it worked fine.
Also looked at the code below on line #129 is the error shown.
https://github.com/microsoft/BotFramework-Emulator/blob/master/packages/app/main/src/server/state/botEndpoint.ts
[bug]

Hi @dmvtech, can you quickly inspect this issue and update the status? Thanks.

Hi @pankajsurti When you are testing in Emulator against the deployed bot in Azure, you are supplying the appid/password in emulator and using the *.azurewebsites.net endpoint url, correct?
For the application, are you using the appid/password from within the appsettings.json or within configuration settings of the app service?

Hi @pankajsurti When you are testing in Emulator against the deployed bot in Azure, you are supplying the appid/password in emulator and using the *.azurewebsites.net endpoint url, correct?
For the application, are you using the appid/password from within the appsettings.json or within configuration settings of the app service?

Adding to this, I'm seeing the same thing as well. I cannot connect to my Azure Gov bot locally through the emulator despite verifying the endpoint, appId, and password match what is in the Azure portal.

Update: this is definitely a bug in the emulator. I downloaded version 4.6.0 and was able to successfully connect to my gov bot.

Thanks @lauren-mills I don't have a way to test gov myself.
Adding @tonyanziano for visibility.

Just spoke with @lauren-mills offline. I will debug this using her gov bot once I get some cycles. Currently swamped at the moment.

@tonyanziano This has been baking for 12 days. Any update?

Still haven't gotten around to investigating this due to being busy with Composer work.
I'll check it out when I get some downtime, most likely Friday or early next week.

Just got access to a gov bot, so I'm looking into this.

Hi @pankajsurti ,
I can't reproduce this issue on the latest version of the Emulator.
When connecting to the bot, are you checking the following box in the Open Bot dialog?

This box is required to get the right token to communicate with the bot.

Closing due to inactivity.


Save workplace

I cant save the drawing in the notion after I open the full screen mode

@Nighthawks0230  we expose onChange callback which gets triggered on every change and can be used to save the data in the host apps.
closing this as this needs to be handled in notion.


docs: update wrangler.toml to include new compatibility flag

Description
This is required for deployment to Cloudflare Workers, since we use ReadableStream now.

cc @mcvinci another thing to sync to the shopify.dev docs 👍


⚠ NCAA has degraded performance

In 109efa1, NCAA (https://www.ncaa.com) experienced degraded performance:

HTTP code: 200
Response time: 822 ms

Resolved: NCAA performance has improved in 7f2f01d.


Rey

I modified the modal's code so that on keypress(Enter) or search button click, the modal will automatically close, and the input field will clear the next time we click Find A Song

Creating a new pull request with additional modifications


template building for images with tumor

Could we use ANTs for template building on one image data set with tumor inside?

Can you explain more about what you mean by this question?
On Sunday, August 21, 2016, chaohstat<EMAIL_ADDRESS>wrote:

Could we use ANTs for template building on one image data set with tumor
inside?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/stnava/ANTs/issues/352, or mute the thread
https://github.com/notifications/unsubscribe-auth/AATyfjHzhiSpP21CpaulACDA0rtRoz3oks5qiJ5xgaJpZM4JpXEG
.

--
brian

I got the image dataset from 8 subjects. In each brain image, there is a tumor area inside. I would like to generate a template (no tumor ) for these images.

OK, yes that might work but the result might be better if you hadmore
subjects .  Worth trying if it is not too difficult for you
On Sunday, August 21, 2016, chaohstat<EMAIL_ADDRESS>wrote:

I got the image dataset from 8 subjects. In each brain image, there is a
tumor area inside. I would like to generate a template (no tumor ) for
these images.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stnava/ANTs/issues/352#issuecomment-241275692, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AATyfh54D4aYtc1HlxSrPxmC8lnUIR3Vks5qiKL5gaJpZM4JpXEG
.

--
brian


Subclass an existing provider to extend it or create a new provider

What's the procedure to register a new provider for instance custom JWT token authentication to own API server?

I don't understand your question.

Which services provide custom JWT token authentication?
Basically, RxSocialLogin and each providers doesn't support existing provider. You can write new providers with copy-pasting by MR

My question was guide to write new providers?
Without forking the project that is, by using the library as it is :).

@gnud No. Until now, forking the project is only way to write new providers.


Do you know how to use NAS and NetAdapt to optimize mobilenet block and layer to adapt to other task?

when I use paper parameters to train my task , the result is not good enough.
how to use NAS and NetAdapt to optimize mobilenet block and layer to adapt to other task?

Hi @alexliyang!
MobileNetV3 and its predecessors should be suitable for many different tasks. What task are you training for?
Cheers,
Martin

Hi, @martinkersner   :+1:
I use MobilenetV3 to train image classes for mobilephone, but on my dataset, the result is not good , so I  try to optimize the parameters again.
Maybe it is a big task

@alexliyang What does your data look like? How many classes do you train for? The problem could be due to the hyperparameters you use. It is better to investigate it before moving on NAS or NetAdapt.

@martinkersner  my data just like flowers, pets, foods and others' image , about 7 classes, I resized the images to 224,224 or 128,128 ,  I trained mobilenetv3 on the dataset about 100 epoches, the acc is about 0.95, but on the test data  is very poor

@alexliyang Is your test data from the same distribution as train data? Do you use any preprocessing/augmentation? Did you try to train with CIFAR10 or MNIST before?


CI: Add Python 3.10 and 3.11 jobs, weekly run

A bit of CI maintenance:

Adds Python 3.10 and 3.11 jobs to the GitHub Action CI build matrix
It also adds a weekly run each Monday at 06:00 UTC and the ability to manually trigger the CI
Finally, it updates the checkout and setup-python actions to their latest versions.

It seems CI tests are failing. Can you fix it? Thanks.

You were quite fast with merging!
I fixed it in #48.


improve force-complete, 1.0.5 version

1.0.5_wmagent version of #5799

Alan, Is this already applied in production machines?

Yes, it was applied yesterday.


apperently i have a weird plop sound

apparently I have a weird plop sound when using the jar version its clearly coming from the client cause if I disable all runescape sounds its gone
https://www.twitch.tv/videos/235212941

You probably have metronome plugin enabled.


Remove (I believe) all identifiers starting with underscore + Uppercase

This PR:

Remove (I believe) all identifiers starting with underscore + Uppercase.

Also, add the correct path when building version.cpp. It was failing on one version of the MinGW C++ compilers. [Discovered during the REU with students].

Closes #73

This PR highlighted a bug for the Schur swap on Windows. The changes introduced here have nothing to do with the actual bug as far as I see, so I am merging it.

This PR highlighted a bug for the Schur swap on Windows. The changes introduced here have nothing to do with the actual bug as far as I see, so I am merging it.

This PR highlighted a bug for the Schur swap on Windows. The changes introduced here have nothing to do with the actual bug as far as I see, so I am merging it.


Sometimes icons are not loaded when switching with tabs

Ionic version:  (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x
[x ] 4.x
I'm submitting a ...  (check one with "x")
[x ] bug report
[ ] feature request

Current behavior:

Sometimes the icons in lists are not loaded/rendered when selecting another tab, this only happens the first time when you click another tab (root page). After that the icons are loaded for other pages.. so it happens only the first time you enter another tab.
Expected behavior:

Always show icons when switching a tab, also the first time when entering a new tab.
Steps to reproduce:

Create a new application with 3 tabs.
Create a list with icons in the 3 root pages.
Click on another tab.
If the bug doesnt appear, refresh and try again.
It happens sporadically!!
Related code:

insert short code snippets here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
insert the output from ionic info here

This should be fixed in beta.5


[Request] Option select UI in the text area

It would be amazing to have a method of adding selection options to the text windows to give the player the ability to choose an option (that could be used in scripting to change a variable).
Also the ability for a "next" button to link multiple text windows together in sequence or in a logic tree would be very helpful.
See example from Pokemon UI in the bottom right corner

Have you seen the “Multiple Choice” event? It doesn’t do everything you want here but does let you make decision trees by setting variables. I’ve just seen a game made using it by https://twitter.com/mepstein01 at http://zeldamath.surge.sh/

🤦♂ Oh that’s perfect!

If it's what you were looking for, can you please close the issue?

👍


[SPARK-41349][CONNECT][PYTHON] Implement DataFrame.hint

What changes were proposed in this pull request?
Implement DataFrame.hint for pyspark
Why are the changes needed?
For API coverage
Does this PR introduce any user-facing change?
new APIs
How was this patch tested?
existing python tests.

Can one of the admins verify this patch?

Looks like the CI is failing on

python/pyspark/sql/tests/connect/test_connect_basic.py.test_fill_na doe not pass
cannot pass ./dev/lint-scala

if test_fill_na is irrelevant to this PR, I guess rebasing may help

ping @zhengruifeng @amaliujia @grundprinzip

@grundprinzip Thank you for your reviews, I have resolved these comments.

@HyukjinKwon @zhengruifeng please take a look.

merged into master, thank you @dengziming for working on it!

many thanks @dengziming to tackle this work!


PoC account code compilation

Following the discussion at https://github.com/0xPolygonMiden/compiler/discussions/28#discussioncomment-7416441
The goal is to try to compile the following code to the MASM below and see what parts we are missing:
use miden::{
    account,
    asset::Asset,
    note::Recipient,
    tx,
};

#[miden_account]
pub struct MyWallet;

#[miden_account]
impl MyWallet {
    pub fn recieve_asset(&mut self, asset: Asset) {
        account::add_asset(asset);
    }

    pub fn send_asset(&mut self, asset: Asset, recipient: Recipient) {
        account::remove_asset(asset);
        tx::create_note(asset, recipient);
    }
}

Where miden is a crate that provides extern "C" functions. The above code is expected to be compiled close to the following (manually written) code:
use.miden::sat::account
use.miden::sat::tx

#! Adds the provided asset to the current account.
export.receive_asset
    exec.account::add_asset
    padw swapw dropw
end

#! Creates a note which sends the specified asset out of the current account
#! to the specified recipient.
export.send_asset.1
    exec.account::remove_asset
    # => [ASSET, tag, RECIPIENT, ...]

    # insert 8 ZEROs into the stack right after recipient; we temporarily store one of the
    # elements of ASSET in memory to make stack manipulation easier
    push.0 swap loc_store.0 padw push.0.0.0 swapdw loc_load.0
    # => [ASSET, tag, RECIPIENT, ZERO, ZERO, ...]

    exec.tx::create_note
    # => [note_ptr, ZERO, ZERO, ...]
end

The things to check are:

imported account and tx functions;
receive_asset and send_asset are not mangled and are exported;
how arguments are passed to the imported account and tx functions.

Not sure how it might affect things, but a potentially better code on the Rust side for this would be:
use miden::{
    account,
    asset::Asset,
    note::Recipient,
    tx,
};

#[miden_account]
pub struct MyWallet;

#[miden_account]
impl MyWallet {
    pub fn recieve_asset(&mut self, asset: Asset) {
        account::add_asset(asset);
    }

    pub fn send_asset(&mut self, asset: Asset, recipient: Recipient) {
        let asset = account::remove_asset(asset); // this line is different
        tx::create_note(asset, recipient);
    }
}

This is semantically different from the version in the original post only if Asset is not Copy. So, I guess one question we should settle on is whether Asset should be Copy on the Rust side. My initial thinking is that probably it should not be, but I also haven't thought through the implications.


Added support for double plural (Duals) for languages like Arabic

It's a simple change to add support for languages with duals or double plural.
The list of languages included on the wikipedia page here.
Thanks for the great package!

For clarification I have only changed 2 lines in 2 files, the rest of changes are due to dartfmt.
More precisely I added these two lines:
in lib/constants.dart
  static const String pluralTwo = '2';

and in lib/localization.dart
      case 2:
        return Constants.pluralTwo;

Thanks for the pull request, however I will not merge this since the code formatting should not be changed. Additionally the examples and the documentation would need to be updated as well.

Thanks for the feedback.
Totally understandable, I will add another PR without changing code formatting and updating docs and examples.

Thanks @Ayman-Kortobaa


[BUG] Quantum CreateJob fails when InputParams is defined

Describe the bug
When trying to create an Azure Quantum job from the SDK setting the value for the InputParams object causes the request to fail.
Expected behavior
Should be able to set parameters for the target solver.
Actual behavior (include Exception or Stack Trace)
What is the actual behavior? SDK cannot serialize request
[2021-10-08T02:23:03.160Z] Executed 'CreateJob' (Failed, Id=742d4854-467b-4ca9-a190-d54ba5106457, Duration=22741ms)
[2021-10-08T02:23:03.161Z] System.Private.CoreLib: Exception while executing function: CreateJob. Azure.Quantum.Jobs: Service request failed.
[2021-10-08T02:23:03.161Z] Status: 400 (Bad Request)
[2021-10-08T02:23:03.162Z]
[2021-10-08T02:23:03.162Z] Content:
[2021-10-08T02:23:03.162Z] {"errors":{"inputParams":["Error setting value to 'InputParams' on 'Microsoft.Quantum.DataContract.ViewModel.Job'."]},"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-8dedfde9ff4b4949a789f229b0355e35-b3904a4c63ac3548-00"}
[2021-10-08T02:23:03.162Z]
[2021-10-08T02:23:03.163Z] Headers:
[2021-10-08T02:23:03.163Z] Server: Microsoft-IIS/10.0
[2021-10-08T02:23:03.164Z] Request-Context: REDACTED
[2021-10-08T02:23:03.164Z] Strict-Transport-Security: REDACTED
[2021-10-08T02:23:03.165Z] x-ms-request-id: b3904a4c63ac3548
[2021-10-08T02:23:03.166Z] X-Powered-By: REDACTED
[2021-10-08T02:23:03.166Z] Set-Cookie: REDACTED
[2021-10-08T02:23:03.167Z] Date: Fri, 08 Oct 2021 02:23:01 GMT
[2021-10-08T02:23:03.168Z] Content-Length: 308
[2021-10-08T02:23:03.168Z] Content-Type: application/problem+json; charset=utf-8
[2021-10-08T02:23:03.169Z] .
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
I have tried setting InputParams via both a anonymous object and a string
    [FunctionName("CreateJob")]
    public static async Task<IActionResult> Run(
        [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req,
        ILogger log)
    {
        log.LogInformation($"CreateJob function started {DateTime.Now}");

        var client =
            new QuantumJobClient(
                Environment.GetEnvironmentVariable("subId"),
                Environment.GetEnvironmentVariable("workspace"),
                Environment.GetEnvironmentVariable("workspace"),
                "eastUS",
                new DefaultAzureCredential());

        var jobId = Guid.NewGuid().ToString().Replace("-", "");

        var job = new JobDetails($"{Environment.GetEnvironmentVariable("quantumStorage")}/ createnumbers", "microsoft.ionq-ir.v2", "IonQ", "ionq.qpu");
        job.InputParams = "{ 'shots': 50 }";
        job.InputDataUri = $"{Environment.GetEnvironmentVariable("quantumStorage")}/createnumbers/inputData";

        job.OutputDataFormat = "microsoft.quantum-results.v1";
        job.OutputDataUri = $"{Environment.GetEnvironmentVariable("quantumStorage")}/quantum-job-{jobId}/mappingData";

        var response = client.CreateJob(jobId, job);

        return new OkObjectResult(JsonConvert.SerializeObject(response));
    }

Environment:

Azure.Quantum.Jobs 1.0.0-beta.2
Windows 10 .NET Core 3.1.413
.NET SDK
Version:   5.0.301
Commit:    ef17233f86
Visual Studio 2019 v16.10.3

#21836 was just merged and updated our samples and documentation to avoid this issue.


feat: Modified the Refresh button. It can solve Issue #8.

I have modified the refresh button on the homepage.

Hi @symtalha14 Please resolve conflicts before merge

Please check now

The commits have been merged


Assetlists should use chain_name instead of chain_id

I will make a PR to correct this.
There is currently one chain where the name of the directory on the chain registry doesn't match the chain-name property in their chain.json file, ( /konstellation/ vs chain_name: darchub ) so I'm not sure which to use there. Going forward, we should probably try to make sure these are identical.


REST API - Enable RBAC

[ ] Add 3 roles to eclipse-xpanse project on  Zitadel - admin, user, csp
[ ] Add authorization required on API - at class level or at method level
[ ] Validate the 'token' claims contains the list of roles allocated to user under claim name urn:zitadel:iam:org:project:roles - https://zitadel.com/docs/apis/openidoauth/claims
[ ] Proceed only when the required role is available in the list of role the user has in the claim urn:zitadel:iam:org:project:roles.
[ ] If role is allowed to user, then return 403 error.
[ ] Ensure the role based authorization is executed only when zitadel profile is enabled.
[ ] If no role is received in the claims, then assume user roles.

Note - we might have to use the customizer for extracting roles - https://docs.spring.io/spring-security/reference/reactive/oauth2/resource-server/opaque-token.html#webflux-oauth2resourceserver-opaque-authorization-extraction

I will take it.


Allow sampling and saving on demand using signals

This patch registers a signal handler that will sample the model or save it on demand when a signal is received.

SIGUSR1: this signal will sample the model with the given prompts on the next step
SIGUSR2: this signal will save model - and state, if configured - on the next step

The library/signal_handler.py is missing

Fixed. Don't know how I missed that one! Thanks for pointing it out.

How would a user trigger the signals? Would it be programmatically made?

The PID of the process is printed if training from the command line; you can then ‘kill -SIGUSR1 ’  to send the signal. GUIs can instead map UI buttons to signal sending.
Currently this works on Mac and Linux, looking on how to implement similar functionality in Windows.

Maybe it would be possible to listen for some key command to trigger the similar behavior as well? Like ctrl+c has a similar behavior. Not sure of Kohya's impression of this to PR but that would be something I would like to be able to do.


Bugfix: Support Python 3.7 for 1.11

I know that 1.11 should only get security bugfixes and does not officially support python 3.7, but please consider including this two character fix into the next patch release, it would make the work of many people easier.
Bug ticket: https://code.djangoproject.com/ticket/28814
Fix for:
  File ".../site-packages/django/contrib/admin/widgets.py", line 152
    '%s=%s' % (k, v) for k, v in params.items(),
    ^
SyntaxError: Generator expression must be parenthesized

And yes it's really only two square brackets missing!

I don't think this would be the only change required, but it's the most obvious.
Not everyone can afford to port to 2.x when that's not actually a LTS yet.
This could be a problem when we're updating to Python 3.7 on a shared server with multiple django projects, we would have to maintain different python versions for different django versions which could be a mess...
If someone could tell me that (obviously more correct) patches for 3.7 support have a chance to be included in 1.11 I would gladly do the port. I have to anyways, probably in a private fork, because we will be running into that problem at some time in the future.

If i get those 3.7 jenkins errors fixed would that be enough to consider including it? Should i extend this pull request or work on a branch at my own and make a new pull request?

I'm going to close this as-is. What's being asked for is a policy change, which may or may not be reasonable but, which needs to go via django-developers before we could proceed.

I saw the ticket comment and thought I'll just try anyways.
Thanks for the heads-up, I will prepare a branch before jumping on the mailing list and try to argue my position. Perhaps that is more convincing than just commenting on a ticket and push the work onto someone other. As already said, I'll have to do the port anyways (at least that much as our projects need).
I am closing this because it is in no way complete, will come up with another pull request in due time ;)

I have a Django 1.11 fork with Python 3.7 compatibility. Unit tests run with SQLite, but works with PostgreSQL in production. https://github.com/jonashaag/django-1.11-python-3.7


Data Flow has not been interpreting arguments correctly

Hello, since last week I've faced the following problem with GCP Dataflow.
Before last week, I was able to run a job from Dataflow template from console not using the argument "--project", so I guess there is a new release related to this command on GCP console, probably related to python lib google-api-python-client, version 2.24. But other arguments worked very well before this this release, including "--parameters" argument.
1 - Before this release the following example command was runned from console without any problem: "gcloud dataflow jobs run JOB_NAME --gcs-location TEMPLATE_PATH --worker-machine-type MACHINE_TYPE --parameters yyyymmdd=YY,justpubsub=ZZ". And inside the template code, I was able to use both: Python "argparse" lib and Apache Beam "PipelineOptions" lib. Now, just Apache Beam PipelineOptions works, when using Python "argparse" lib I face the following problem (even using the new argument "--project").
Problem: "ERROR: (gcloud.dataflow.jobs.run) INVALID_ARGUMENT: (eb17d490712dc58): The workflow could not be created. Causes: (eb17d490712d4d1): Found unexpected parameters: ['justpubsub' (perhaps you meant 'update'), 'yyyymmdd' (perhaps you meant 'dry_run')]".
2 - when I use PipelineOptions, it has a weird behavior with both Apache Beam parser methods: "add_argument" and "add_value_provider_argument". The code always assumes the arguments value that I used to run the file "source_file.py" in  my localhost (example: python3 source_file.py --YYYYMMDD 20210503), even when using 'DataflowRunner', and when I don't pass any argument it assumes a RuntimeValueProvider without any value.

Hello,
This issue tracker is for google-api-python-client. It looks like you are experiencing an issue with the gcloud SDK. As far as I know, the gcloud SDK does not use this library to make API calls. Please open an issue on the gcloud issue tracker. https://cloud.google.com/support/docs/issue-trackers
Than you!


solution migration threat analysis response -- DO NOT MERGE AS THIS IS 1P

Change(s):
See guidance below
Reason for Change(s):
This PR is part of template spec solution migration for solution Threat Analysis Response.
See guidance below
Version Updated:
2.0.0
See guidance below
Testing Completed:
The link for test results is
Sentinel Solution Migration Threat Analysis Response
See guidance below
This is an 1P solution.

Closing this as new PR was raised. solution migration threat analysis response -- DO NOT MERGE AS THIS IS 1P
#5887


*.sha256 files published along with binaries are not properly formatted

*.sha256 files published to https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/ are not properly formatted.
~/bin$ sha256sum -c *.sha256
sha256sum: crc-linux-amd64.tar.xz.sha256: no properly formatted SHA256 checksum lines found

Correct format includes sha256sum and filename
~/bin$ sha256sum crc-linux-amd64.tar.xz
a4e4b011d7cfa08f47408554ee2e4f55254dcc3419380d843beb1c22977b1d9e  crc-linux-amd64.tar.xz

so output when running sha256sum to check file would be
~/bin$ sha256sum -c crc-linux-amd64.tar.xz.sha256
crc-linux-amd64.tar.xz: OK

https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/1.36.0/sha256sum.txt is correctly formatted, individual shasum files are just have sha256sum but not the file name which it should have. We will ask the RCM team to update it but meanwhile you can use this one.

I brought that up a few months ago with the team managing https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/ (these files are automatically generated at upload time), and apparently some parts of our infrastructure rely on these files being in the current format. Not sure there is much we can do about this :-/

@praveenkumar @cfergeau thank you for explanation. I am just going to use sha256sum.txt. Closing.


Add PT-BR iOS podcast

What does this PR do?
Add Resource(s)
For resources
Description
Add iOS podcast to PT-BR list
Why is this valuable (or not)?
It's a free podcast made by iOS developers to discuss from beginners to advanced topics on iOS development.
How do we know it's really free?
It's a podcast.
Checklist:

[x] Not a duplicate
[x] Included author(s) if appropriate
[x] Lists are in alphabetical order
[x] Needed indications added (PDF, access notes, under construction)

Hey, and welcome to free programming books! :wave:
Please keep all lists and categories in alphabetical order when making additions.
You've only linked to the Twitter profile for Build Failed Podcast, it'd be better to link directly to where the podcasts are available.
The podcasts appear to live on Spotify, however, which there is no way to use without a working email address.
We only allow resources which request an email address, not resources which require a working email address.
You can get more guidance on the formatting and conventions in this repository by checking out the contribution guide.

Thanks, and welcome to free-programming-books!


[WIP] added alternative database CouchDb - mergable

This PR continues the PR #518 ...
For further development on this feature, please create a PR for the cla-assistant/Daimler-master branch.

changes committed


[B] responsive image: remove event listeners, when placeholder element is destroyed

Small bugfix for responsive image. When we delete the fakeImage element that load the picture, we have to detach the event listeners. Otherwise we get an error on resizing the window, because event handler fires, but the element does not exist anymore.
To reproduce, check the demo - responsive image - then resize the window and check the console.
http://onefootball.github.io/onefootball-angular-components/#!/directives#responsive-image

Coverage increased (+0.09%) to 91.579% when pulling 32d7d57bb7d8ff71e7419bbb4a2a6fa3532387d2 on SinisaG:bugfix/responsive-image into 9971cd2a6b35d300a91764f96d050bd677ab614b on Onefootball:master.

cool 👍

:+1:


Another small adjustment

Codecov Report

Merging #657 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #657      +/-   ##
==========================================
+ Coverage   88.51%   88.54%   +0.03%
==========================================
  Files          21       21
  Lines        1506     1502       -4
==========================================
- Hits         1333     1330       -3
+ Misses        173      172       -1

Flag
Coverage Δ

#unittests
88.54% <100.00%> (+0.03%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

lineage/UpwardRecursion.py
100.00% <100.00%> (ø)

lineage/states/stateCommon.py
96.61% <0.00%> (+1.69%)
:arrow_up:

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 c0ff64c...b8dcb76. Read the comment docs.


⚠ Bofrost.at has degraded performance

In 8e0153c, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1710 ms

Resolved: Bofrost.at performance has improved in 9738488 after 15 minutes.


Better test coverage, minor code simplification

I saw your post on Reddit and checked the code. This PR adds a few tests cases and uses httptest.Server instead of http.Server. The main code is simplified a bit as well.

Thanks for your contribution, mate! Merged!


include InitContainers in Kubernetes Service Discovery

@brian-brazil This PR adds support for InitContainers in Kubernetes SD. Closes #5563
Signed-off-by: sh0rez<EMAIL_ADDRESS>

Is there a metadata label or something to distinguish these?

At least we should have a metadata label differentiating regular containers from init containers.

@brian-brazil
Is there a metadata label or something to distinguish these?

I've added a new metadata label __meta_kubernetes_pod_container_is_init to distinguish InitContainers from regular ones.
It takes the values "true" if it is an InitContainer, "false" otherwise.
Tests have been adapted.

Can you add a test that where the label is true? You'd also need to mention the label in https://github.com/prometheus/prometheus/blob/master/docs/configuration/configuration.md.

@simonpasquier
Can you add a test that where the label is true? You'd also need to mention the label in https://github.com/prometheus/prometheus/blob/master/docs/configuration/configuration.md.

Addressed these

@brian-brazil can this one be merged, please? Or are there any blockers I am not aware of? We need this over at grafana/loki as InitContainers are critical for logs.

While in this instance it makes sense for prometheus to have this, I'm not sure this will always hold true for things that external projects need. I don't think that's generally a justification.

While in this instance it makes sense for prometheus to have this, I'm not sure this will always hold true for things that external projects need. I don't think that's generally a justification.

Of course not! But as this one makes sense for Prometheus and has been approved, I wondered whether it can be merged, to benefit both projects. I just wanted to mention Loki because it was the original motivation for this change :)

lgtm :+1:


Arabic improvements

I'm going to make some changes to #198. I merged that PR into this branch and will make a few changes.

This was merged manually in 77daebbaee960734d137b1eaf4c91b89fe44fd8f.


Create smaller, faster building services docker.

This PR creates the full multi-stage services image.
The new image is more than 50% smaller to download - 1 GB vs 2.3 GB

On-disk decompressed size is 3.77 GB vs 7.69 GB

It is also about 3x faster to build in the cloud - 6 min vs 18 min
The new image bundles the embeddings in the image thereby improving the startup time (20 sec vs 30 sec on my machine).
Verified by running it both locally and in the cloud.
Also disabled the web admin in the new services image so data docker is the only option to load data.

Will remove the admin code once the doc is updated and we've completely deprecated the older image.

Updated the runtime image as well to be multi-stage.
Next steps

Auto build and publish the new image - cc @hqpho
Update doc to use new image - cc @kmoscoe
Remove web admin

Really great improvements! Thanks Keyur!


failed file opens don't propagate expect() errors to stdout/stderr

If segcache tries to open a file with expect() that doesn't exist (either for the main config or for TLS certs, for example), it will emit a Rust backtrace but the actual expect() error message won't get printed to stderr/stdout.
To Reproduce
Steps to reproduce the behavior:

run ./pelikan_segcache_rs fhqwhgads.toml

Expected behavior
A human-readable error message (in addition to the backtrace currently emitted)
Environment
latest MacOS, latest Rust, latest Pelikan release

I misremembered which project I encountered this issue with; segcache does indeed produce error messages.