grub: debug output is unreproducible

Building the debug output of this package twice does not produce the bit-by-bit identical result each time. Fixing bit-by-bit reproducibility has various advantages, such as avoiding hard-to-reproduce bugs, making content-addressed storage more effective and reducing rebuilds in such systems. You can read more about this at https://reproducible-builds.org/ .
This case is particularly interesting because it is part of our milestone to build the complete build closure of nixos.iso_minimal.x86_64-linux reproducibly. It might also be worth looking into why a debug output is part of the build closure.
Steps To Reproduce
nix-build '<nixpkgs>' -A grub.debug doesn't seem to work, so not sure how to reproduce this.
Additional context
https://arnout.engelen.eu/nixos-iso-minimal-r13y/diff/b0e0fd3c3fc95dffbd3cfdf995fecb9f8c923b32146c1b2ac49f86f17c4d08ac-5337ba472efc43a651343b3d716371759cce92de9d07f4526e10d03be7e14672.html

I cannot reproduce this: nixos/modules/system/boot/loader/grub/grub.nix does not seem to include a debug output. However, the command I always used for creating an ISO image, nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=... currently fails (error: builder for '/nix/store/qci7qk64355i68ijzkhxkik69akdjzmv-squashfs.img.drv' failed with exit code 1), hence I cannot test any further. Is this just me?

I cannot reproduce this: nixos/modules/system/boot/loader/grub/grub.nix does not seem to include a debug output.

Oops, sorry about that, indeed nix-build '<nixpkgs>' -A grub.debug does not work :/

Also, creating an ISO image using nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=... does not pull in any grub-2.06-debug-like paths in the Nix store.

You can find the derivations with nix-store -q --requisites $(nix-instantiate ./nixos/release-combined.nix -A nixos.iso_minimal.x86_64-linux) | grep grub: this returns 3 results: the source and two derivations.
Then you can build them with nix-build /path/to/drv -A debug. Sorry about the detour!

I can reproduce the problem with nix-build '<nixpkgs>' -A grub2.debug --check --keep-failed
Or also: nix-build /nix/store/hash-for-grub-2.06.drv\!debug --check --keep-failed

so, both /nix/store/07bws5lfvgz0a6psxbyhzzz0sbrnqdab-grub-2.06/lib/grub/i386-pc/kernel.img and /nix/store/07bws5lfvgz0a6psxbyhzzz0sbrnqdab-grub-2.06/lib/grub/i386-pc/kernel.exec have the same build id (02cf30971fcd392b489a3449e75101961d017adc). My guess is we need something like:
diff --git a/pkgs/build-support/setup-hooks/separate-debug-info.sh b/pkgs/build-support/setup-hooks/separate-debug-info.sh
index ca651b4393a..516a22ab143 100644
--- a/pkgs/build-support/setup-hooks/separate-debug-info.sh
+++ b/pkgs/build-support/setup-hooks/separate-debug-info.sh
@@ -41,5 +41,5 @@ _separateDebugInfo() {
             # Also a create a symlink <original-name>.debug.
             ln -sfn ".build-id/${id:0:2}/${id:2}.debug" "$dst/../$(basename "$i")"
         ) || rmdir -p "$dst/${id:0:2}"
-    done < <(find "$prefix" -type f -print0)
+    done < <(find "$prefix" -type f -print0 | sort)
 }

... and maybe print a warning in this case


Using the slash "/" operator between a PurePath and a str should have an inferred type of PurePath

Environment data

VS Code version: 1.35.1
Extension version (available under the Extensions sidebar): 2019.5.18875
OS and version: Ubuntu 18.04
Python version (& distribution if applicable, e.g. Anaconda): Anaconda Python 3.6
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: standard library pathlib

Expected behaviour
Using the / operator on a pathlib.PurePath and a str should infer a type of pathlib.PurePath.
Given the following Python fragment:
import pathlib

root = pathlib.Path("/some/directory")
subdir = root / "subdir"
child = subdir / "file.txt"

root should have an infered type of Path :heavy_check_mark:
subdir should have an an infered type of PurePath :heavy_check_mark:
child should have an an infered type of PurePath :x:
Actual behaviour
root has an infered type of Path :heavy_check_mark:
subdir has an infered type of PurePath :heavy_check_mark:
child has an infered type of str :x:
Steps to reproduce:

Copy the code above into a new Python file in VS code.
Hover over child, or trigger autocomplete with its methods (the completion is for str).

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Starting Microsoft Python language server.
##########Linting Output - mypy##########
##########Linting Output - flake8##########
[Info  - 9:15:03 AM] Analysis cache path: /home/user/.cache/Microsoft/Python Language Server
[Info  - 9:15:03 AM] GetCurrentSearchPaths /home/user/anaconda3/bin/python
[Info  - 9:15:03 AM] Interpreter search paths:
[Info  - 9:15:03 AM]     /home/user/anaconda3/lib/python3.6
[Info  - 9:15:03 AM]     /home/user/anaconda3/lib/python3.6/lib-dynload
[Info  - 9:15:03 AM]     /home/user/anaconda3/lib/python3.6/site-packages
[Info  - 9:15:03 AM] User search paths:
[Info  - 9:15:04 AM] Microsoft Python Language Server version <IP_ADDRESS>
[Info  - 9:15:04 AM] Initializing for /home/user/anaconda3/bin/python

We have code that should be handling operator overrides. Typeshed says:
_P = TypeVar('_P', bound='PurePath')

if sys.version_info >= (3, 6):
    _PurePathBase = os.PathLike[str]
else:
    _PurePathBase = object

class PurePath(_PurePathBase):
    # ...
    def __truediv__(self: _P, key: Union[str, PurePath]) -> _P: ...
    if sys.version_info < (3,):
        def __div__(self: _P, key: Union[str, PurePath]) -> _P: ...

Maybe we can't handle a generic self. Will need some investigation.

Some extra input:
It doesn't work specifically between PurePath and str.
The first time is between Path and str, and that works correctly.


dosent support jpg on web

i have a multiplatfrom project : android ios desktop and web the image loader works on all platfrom execpt for web i thought that all images didnt work but when i tried svg it worked i have tried any other use cases but from what i know jpg dosent work on web

Hi, thanks for the feedback, does it suggest any error, is it due to cors, if so it seems like it can only be handled by the back end the front end is not good enough to fix it.

it dosen't suggest any erros, and I dont know what you mean by CORS


Stuck in adding Ripple effect on an image with CCSpriteGrid extension.

Is there any way to get ripple effect on image in Objective C ios Application. I am using cocos2d-objc framework for ios application.
UIImage *spriteNumber = [UIImage<EMAIL_ADDRESS>CCSpriteGrid *grid = [[CCSpriteGrid alloc] initWithTexture:[[CCTexture alloc] initWithCGImage:spriteNumber.CGImage contentScale:spriteNumber.scale]];
grid.position = (CGPoint){0.5, 0.25};
grid.positionType = CCPositionTypeNormalized;
[grid setGridWidth:100 andHeight:50];
[self addChild:grid];

I think you should open this issue in cocos2d classic


lint: use flake8-use-fstring plugin

Let's use flake8-use-fstring

Codecov Report

Merging #123 (04d4efa) into master (ec3bbde) will decrease coverage by 0.91%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #123      +/-   ##
==========================================
- Coverage   39.18%   38.26%   -0.92%
==========================================
  Files          67       67
  Lines        4395     4330      -65
==========================================
- Hits         1722     1657      -65
  Misses       2673     2673

Impacted Files
Coverage Δ

lona/logging.py
17.00% <0.00%> (ø)

lona/response_parser.py
16.66% <ø> (ø)

lona/routing.py
93.33% <ø> (ø)

lona/static_files.py
57.14% <0.00%> (ø)

lona/request.py
36.00% <0.00%> (-14.00%)
:arrow_down:

lona/connection.py
37.50% <0.00%> (-6.95%)
:arrow_down:

lona/html/data_binding/select.py
54.65% <0.00%> (-4.73%)
:arrow_down:

lona/html/widget.py
48.00% <0.00%> (-3.86%)
:arrow_down:

lona/html/abstract_node.py
53.93% <0.00%> (-2.91%)
:arrow_down:

lona/server_state.py
31.37% <0.00%> (-2.59%)
:arrow_down:

... and 9 more

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 ec3bbde...04d4efa. Read the comment docs.


⚠ Bofrost.fr has degraded performance

In 00392c3, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1437 ms

Resolved: Bofrost.fr performance has improved in 11bc5ad after 6 minutes.


Blog: What's up in the latest SpinKube releases?

It would be helpful to create a blog post that dives into the latest work the SpinKube contributors have released this month to inspire others to get their hands on the latest version. I imagine this would heavily focus on the Spin Operator v0.4 and container-d-spin-shim v0.17 releases which are coming soon

https://www.spinkube.dev/blog/2024/11/12/five-new-things-in-spinkube/


Mysql commands broken in dsh v1.21.1

Follow on from issue #162 and PR #175.
After upgrading to dsh v1.21.1 today, dsh sqlc stopped working. I got this error:
andrew@quinx:~/drude-projects/d8core/docroot$ dsh sqlc
bash: $'\E[?25h\E[0G\E[K\E[?25h\E[0G\E[Kmysql': command not found

It's the same error reported by @david-hernandez and @waako in #162.
Reverting to dsh v1.21.0 solved the problem for me.
In #175, the output of drush sql-connect was piped though sed to remove some unwanted trailing characters. The same commit also removed the use of DRUDE_IS_TTY=0 when calling drush. Restoring this also fixes the problem for me.
Patch to follow...

PR #178 restores the use of DRUDE_IS_TTY=0 in get_mysql_connect()
I noticed the sed expression was exactly the same as the one used in clean_string() so I re-used the comment form there.
I also changed the variable name to $connection_string, just because that's what the function is about.

@fuzzbomb thanks for contribution


Polymer 2 -- support async flag on polymer-element.html import

I would like to be able to set the async flag on the polymer element import in order to prevent synchronous blocking:
<link async rel="import" href=".bower_components/polymer/polymer-element.html">

and to still be able to extend Polymer.Element.
Doing so requires knowing when Polymer.Element is defined.  So I'm looking for an elegant way to wait for Polymer.Element to be defined.  The closest thing I can find documented for how to do this is here, which uses HTMLImports.whenReady
However:

HTMLImports is only defined if you use webcomponents-lite.js.  It is not defined if you use webcomponents-loader.js
Evidently it is not supposed to support async imports anyway.

In my view, the most elegant, intuitive solution for this would be if:
customElements.whenDefined('dom-module', ...)

was fired only after Polymer.Element is defined.  But I'm finding that it is fired before.

You can listen for the load event on the import for polymer-element.html. Is that sufficient?

See http://jsbin.com/sucoriz/1/edit?html,output for an example.
Closing, as the load event is the correct platform signal to use.

I actually briefly considered this, but I didn't think it would be a very elegant solution (and wasn't sure it would work for multiple components, some of which may load after. polymer has already loaded).  It appears to require polluting the global namespace with a unique function for each component one defines.  Perhaps one could programmatically attach an event handler to the first Polymer.element import it finds, but how to query for this node, since the paths might not be the same, in order to avoid that?  One could internally agree to some way of identifying these import dom elements, or make a guess based on  the existence of polymer-element.html in the href, I suppose.
Anyway,  even though this seems ineligant, that's a judgment call, I guess.   I'll play around with this solution, and reopen if I encounter anything insurmountable.
Thanks for the suggestion.

I did encounter what might be an insurmountable problem, or at least one that adds to the inelegance of this solution.  I ran into a bit of a chicken and egg problem. I'm defining the JavaScript in a separate class from the html file.
So, for example:
xtal-checkbox.html:
<link onload="initXtalCheckbox()" rel="import" href="../bower_components/polymer/polymer-element.html">
<dom-module id="xtal-checkbox">
    <template>
        <input checked$="{{isChecked}}" type="checkbox" on-click="handleClickEvent" id="checkbox"/>
    </template>
    <script src="xtal-checkbox.js"></script>
</dom-module>

xtal-checkbox.js:
function initXtalCheckbox(){
        class XtalCheckbox extends Polymer.Element{
        }
}

If xtal-checkbox.js happens to load before Polymer does, great.  If not, I get an error that     initXtalCheckbox doesn't exist.

I don't seem to be able to reopen this issue.  In my mind, I'm not yet convinced this is the right solution.

I suppose the way to "fix" both the issue of global function pollution, and the issue above, is to programmatically add the import polymer-element.html statement within the external js file (or wherever the code for the extending class is located, and dynamically add the onload event handler to the dynamically created import element.  Being that Polymer isn't defined, we can't use any utlities Polymer might provide for this.  This might also break tooling that looks for declarative dependencies, and just seems downright complicated for what I suspect will be a commonly desired scenario.

Update:
Well, in the apparent absence of Polymer providing any help with this, and in case you come across this with the same issue I had, and have the same sense of what makes something elegant vs. a hack as I have, the solution I came up with is:

Make all your web components extend Polymer.Element.  But don't make them import the polymer-element.html.

Instead, make them import a common file.  Let me call it "polymer-loader.html."  This is the one file that imports polymer-element.html, using the declarative

<link async rel="import" href="bower-components/polymer/polymer-element.html" onload="someGlobalFunction()"/>

tag.  Note the on-load function handler within the declarative import, that references a single globally available function.

The globally available function creates an empty custom element within the polymer-loader.html file (no external reference here), something like

function someGlobalFunction(){
   customElements.define('poly-loader', class extends HTMLElement{});
}

Then define all your classes that extend Polymer.Element within a promise:
customElements.whenDefined('poly-loader').then(() => {
class MyComponent extends Polymer.Element{
})
customElements.define(MyComponent.is, MyComponent)
});


Connector stops working when database connection is closed

Since there is only one database connection created per connector, it stops working when connection is closed.

Hi arpanchaudhury,
I'm new to Kafka setup. can you please share me the list of steps you followed to setup Kafa with MySQL as source. can you please send me documents steps to my mail id<EMAIL_ADDRESS>Please consider my plea.

Hi @kommuri44 ,
Currently this project is supporting MSSQL as a source. We have created a issue for enhancing support for MySQL. https://github.com/agoda-com/kafka-jdbc-connector/issues/2. Join our gitter channel and can discuss more about your requirements https://gitter.im/kafka-jdbc-connector/Lobby.


Only one editor search match on each line is highlighted

This was originally reported in #1022.
Steps to reproduce:

In an open file, type the example text below.
Invoke the editor find (e.g. Ctrl+f) and type lighttable in the "find" field.
Only the first LightTable words on each line are highlighted – the second word on the first line is not highlighted.

I reproduced this on a Windows 7 box running a recent source version.
Example text:
LightTable LightTable
LightTable

This seems to only apply to the case-insensitive searches. Using the same example text as above, all of the words are highlighted if I enter "LightTable" in the find bar.

dupe of #1542


HTTP 403 User "system:serviceaccount:default:elasticsearch" cannot get endpoints in the namespace "default".

Regarding: https://github.com/kubernetes/examples/tree/master/staging/elasticsearch
I get:
Exception caught during discovery javax.ws.rs.WebApplicationException : HTTP 403 User "system:serviceaccount:default:elasticsearch" cannot get endpoints in the namespace "default".
Full:
tyrion@Stephans-MBP ~/d/s/s/elastic> kubectl logs -f elastic-f7qxr
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
[2017-10-02 13:26:23,995][INFO ][node                     ] [D'Ken] version[1.7.1], pid[7], build[b88f43f/2015-07-29T09:54:16Z]
[2017-10-02 13:26:23,995][INFO ][node                     ] [D'Ken] initializing ...
[2017-10-02 13:26:24,219][INFO ][plugins                  ] [D'Ken] loaded [cloud-kubernetes], sites []
[2017-10-02 13:26:24,280][INFO ][env                      ] [D'Ken] using [1] data paths, mounts [[/data (/dev/xvda9)]], net usable_space [11.6gb], net total_space [28.6gb], types [ext4]
[2017-10-02 13:26:27,985][INFO ][node                     ] [D'Ken] initialized
[2017-10-02 13:26:27,985][INFO ][node                     ] [D'Ken] starting ...
[2017-10-02 13:26:28,186][INFO ][transport                ] [D'Ken] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/<IP_ADDRESS>:9300]}
[2017-10-02 13:26:28,215][INFO ][discovery                ] [D'Ken] myesdb/EUCn0wAqQjSOUVpqrC4lZQ
[2017-10-02 13:26:30,737][WARN ][io.fabric8.elasticsearch.discovery.k8s.K8sUnicastHostsProvider] [D'Ken] Exception caught during discovery javax.ws.rs.WebApplicationException : HTTP 403 User "system:serviceaccount:default:elasticsearch" cannot get endpoints in the namespace "default".

I have no idea how to fix this. I did everything as on the GitHub Readme.

Do you have RBAC enabled in your cluster? If so, you have to create a ClusterRoleBinding (and optionally a ClusterRole) for the elasticsearch service account.
Try this:
kubectl create rolebinding elasticsearch --clusterrole=view --serviceaccount=elasticsearch --namespace=default

Hi thanks for this.
When I try it I get:

error: serviceaccount must be :

So I started reading Docs and it says only of 1.8 this is stable. But seems to me 1.7.3-tectonic-1 is the latest I can install.
Any ideas?

Am 04.10.2017 um 07:47 schrieb Antoine Cotten<EMAIL_ADDRESS>kubectl create rolebinding elasticsearch --clusterrole=view --serviceaccount=elasticsearch --namespace=default

Hi thanks a lot for this.
When I try it I get:

error: serviceaccount must be :

So I started reading Docs and it says only of 1.8 this is stable. But seems to me 1.7.3-tectonic-1 is the latest I can install.
I then went to my tectonic console and did it via GUI. Please confirm correctness:

kubectl get serviceaccounts
NAME            SECRETS   AGE
default         1         22d
elasticsearch   1         3d

and:
kubectl get serviceaccounts/elasticsearch -o yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  creationTimestamp: 2017-10-01T10:49:26Z
  name: elasticsearch
  namespace: default
  resourceVersion: "5398045"
  selfLink: /api/v1/namespaces/default/serviceaccounts/elasticsearch
  uid: 31c9a776-a696-11e7-ad6e-06c35bf26544
secrets:
- name: elasticsearch-token-hh6r9

Let's stick to the authentication issue :) Ingress access is a whole different concern.
RoleBinding applies only to the namespace it's deployed in. In the case, the default namespace. Are you deploying ES to that namespace?

I used all 3 example yaml files unaltered.
Now after reading your comment I added namespace=default to all metadata.

The manifests don't necessarily define the namespace, but the configuration of your client do.
That said, I think it would be worth adding a valid RoleBinding to the example.

Sure, a working RoleBinding will always be add-worthy. However, at the moment, it is not working. I have a default tectonic install, recently set up. Nothing out of the ordinary. If we can't get the binding to run on my cluster, it won't run on custom clusters either.

I'll push a working RBAC setup in a second (Role, RoleBinding).

Had a chance to push a setup yet?

I'm setting up a cluster to test right now, since the elasticsearch plugin doesn't document the permissions it needs.


Question: How to pass input parameters to the scripts as arguments

I want to pass an input parameter defined in my blueprint as a parameter to a script.
Is that possible?

Hi, please use the cloudify-users group
https://groups.google.com/forum/#!forum/cloudify-users
and you shall be answered promptly!
I apologize for the hassle, I would just prefer the question/answer to appear there (hint: it is possible)

@dankilman Thanks . I figured out. Used get_input intrinsic function.
However just curious why the preference towards having the question posted in google groups to get an answer?
Isn't github also an equivalent (if not better) medium for these queries/questions?

@Chandu Our code is currently scattered across many different repositories. While certain questions naturally relate to one repository, for some questions it's a big more vague and grouping it all in one place seems to make sense.

@dankilman Got it. Thanks.


RealSense SDK NetStandard2.0

Fixing merge conflicts for PR https://github.com/IntelRealSense/librealsense/pull/1017

Great, thanks!


Update endpoint.py

Convert Endpoint method "all" to generator. When you have many tenants - nb.tenancy.tenants.all() works very slow (for more than a second and more), while the generator is 3 times faster

unfortunately, my commit will never pass the tests because the function "all" now returns a generator instead of a list

We may do this in the future to give more control over how many calls we make in functions like .all() and .filter() but would need a little more than just making them a generator. Closing for now.


Create option to modify the manifest

Provide a way for advanced users to modify the manifest before building.
The was suggested by Taifun in response to a user query about adding uses-sdk
to the manifest:
https://groups.google.com/forum/#!topic/mitappinventortest/vJht0JipC_g
I'm mixed on doing this, because app-to-market is available, but maybe we can provide it
if we can do it in such a way that it does not bother/confuse the majority of users.

I have to warn you - if you put the target sdk to be =>21, a lot of app inventor components will be broken because of the material design theme addition.


Update CoC form address

Administrative: This updates the CoC form address to a new form that forwards to the Executive Council.

Just a quick thought - does it say in the COC docs anywhere that COC reports are forwarded to the executive council?
I think it's important that the docs make it really clear who reads the reports, since this might influence their decision to submit

Chris, I added a note at https://github.com/jupyter/governance/pull/158


Implement _check

Closes Issue #1 - This pull request addresses the ReferenceError: x is not defined issue in the _check function and improves the test suite for arithmetic operations (add, subtract, multiply, divide) in the calculator module.
I replaced the similar code in each of the functions in calculator.js and put it into the exports._check function and then included x and y as parameters. I also changed describe.skip to just describe in calculator.test.js file.
Before:

After:

Thanks


Proposal: Allow the App to Print without showing the Confirmation Dialog to user

Proposal: Allow the App to Print without showing the Confirmation Dialog to user

Summary

We should be able to programatically list printers, select the printer, configure paper size, orientation, settings... and PRINT without user interaction.
Rationale
I was trying to make a Touch Screen Kiosk Receipt Print application on UWP, but the samples show
await Windows.Graphics.Printing.PrintManager.ShowPrintUIAsync();
This brings the UWP Print Dialog.
I need to print directly without this dialog. How to do this?
I need something like
await Windows.Graphics.Printing.PrintManager.PrintAsync();
We should be able to programatically list printers, select the printer, configure paper size, orientation, settings...
This will enable:

Enable easy printing from Voice / Touch applications
Make the printing API more complete, like the WPF Printing API was.
This Permission will be very useful for ATM Applications, Touch Screen Kiosk Apps, Barcode Printing Software, Point of Sale applications, Line-of-Business Applications, etc;

Scope

Capability
Priority

This proposal will allow developers Print without user interaction.
Must

This proposal will allow the App to Configure Paper Size
Must

This proposal will allow the App to Set Page Orientation
Must

This proposal will allow the App to List printers
Must

This proposal will allow end users to give the Printing without interaction permission on app install  (AllowPrintingWithoutUserIteraction)
Should

This proposal will allow the App to Change the Default Printer
Could

This proposal will allow the App to set Printing Settings like Color, Grayscale, Draft
Could

Important Notes
This may require the creation of a new permission/capability for UWP AppModel:
AllowPrintingWithoutUserIteraction

Open Questions

This is very similar to existing issue #52, but has more detail.  @awsomecode would you mind if we made this the primary since it has the "proposal" format with details?  What else would you want to add to the proposal?

@jonwis Ya, this one will cover my requirement as well. You can make this primary.

@TonyHenrique FYI we do not show consent prompts on install[1]; we show them on first-use (more correctly: the first time the app requests the permission, which might be before it actually "uses" it, depending on how the app is written and the specific API in question). Otherwise, agreed that this feature would need a permission that the user could consents to and can later change their mind in Settings.
[1] We do perform a UAC prompt for anything that impacts the machine / other users during install.

Moving to backlog for future potential feature work.

@stevewri This wont be available on WinUI3 ?

This wont be available on WinUI3 ?

Printing without confirmation requires work at the security / isolation level, not just the UI level.

This is so much import for retail softwares. Without this we can't convert WPF apps to UWP/WinUI3

@AwsomeCode You should be able to print without an UI confirmation dialog if you will port your WPF apps to WinUI 3 desktop apps. @ptorr-msft's comment is about WinUI 3 UWP apps (since the requested change will require changes in the UWP app model implementation and that's not something WinUI is responsible for).

I'm trying to build a POS application with UWP, can't get the POS to recognize the cheaper thermal printers out there, I'm waiting on this to be realeased so I can properly deal with the printers that are not supported by the POS namespace.

@Rothanan can you share the details of the printers that don't work? Are they specifically sold as POS devices that adhere to the POS standards?

@ptorr-msft this are the few I have tried.
https://www.atpos.in/product/atpos-usb-bluetooth-e-200-portable-thermal-receipt-printer/
https://www.atpos.in/product/atpos-hop-h58-58mm-thermal-receipt-printer/
Surprisingly they work with Android.

I wonder how macOS deal with such issue. Is there a "print permission", or apps are allowed to print without confirm?

@ptorr-msft they are very basic printers, they only work through ESC/POS. I can get them working on android, but not in UWP:
Here's a model:
https://www.amazon.com/Wireless-Bluetooth-MUNBYN-Portable-Compatible/dp/B07N86DR4J
They are sold mainly as mobile bluetooth thermal printers(they also come with an usb conection) and because they are cheaper most customers wanna buy and use them.

POS printers, sounds like an IOT device situation, and that supports device drivers right?  Which would allow direct talking to the printer device right?

Yeah, you're right, in android devices, all I do is send ESC/POS commands directly to the printer.
I'm looking for a way to do the same in UWP.

@Rothanan thanks for the info; I will send to the POS team internally to see if they know of any issues with these devices.

@ptorr-msft, np.
I hope they can do something about it, looking forward for some good news.

@ptorr-msft any update from pos team?

Sorry @AwsomeCode , some rather urgent personal stuff came up and I've been distracted. Tracking them down now and will pass along. Thanks for the reminder.

Sorry to bother, but, any news on this?

Can you confirm if you are using the POS APIs or the regular printing APIs?

In UWP
Its not POS APIs or Regular Printing API.
I have tried RawPrint
Which sends RAW ESC/POS data commands to printer and it print silently on printer. It works in debug mode. But on published app its not allowed.
For published app we have to use Desktop Extension for UWP. Which is not best experience in development. (Our UWP app never get approved in store. They say its crashing and In our machines its working fine.)
In Android
Sending RAW ESC/POS data commands via Bluetooth and its gets print silently.
In iOS
Printer is not getting connected via Bluetooth.
Below are the printers I am referring to.
https://www.atpos.in/product/atpos-usb-bluetooth-e-200-portable-thermal-receipt-printer/
https://www.atpos.in/product/atpos-hop-h58-58mm-thermal-receipt-printer/

I have tried RawPrint
Which sends RAW ESC/POS data commands to printer and it print silently on printer. It works in debug mode. But on published app its not allowed.

That project says it relies on .NET 4, which isn't supported for UWP apps (only .NET Native is supported). Can you pair the printers first and then use the POS API?

I have tried this sample project it did not worked.
https://docs.microsoft.com/en-us/samples/microsoft/windows-universal-samples/posprinter/

Can you confirm if you are using the POS APIs or the regular printing APIs?

I tried using the POS API, it doesn't recognize the ESC/POS printer, the POS API support very few printers which renders it unusable.
We are just looking for a away to send ESC/POS commands to ANY printer that understands it.

I did get it working in UWP using the code bellow, but it doesn't go trhough to the app store, it says I can't use these APIs.
public class RawPrintingService
  {
      // Structure and API declarions:
      [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
      public class DOCINFOA
      {
          [MarshalAs(UnmanagedType.LPStr)]
          public string pDocName;
          [MarshalAs(UnmanagedType.LPStr)]
          public string pOutputFile;
          [MarshalAs(UnmanagedType.LPStr)]
          public string pDataType;
      }

      [DllImport("winspool.Drv", EntryPoint = "OpenPrinterA", SetLastError = true, CharSet = CharSet.Unicode, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
      public static extern bool OpenPrinter([MarshalAs(UnmanagedType.LPStr)] string szPrinter, out IntPtr hPrinter, IntPtr pd);

      [DllImport("winspool.Drv", EntryPoint = "ClosePrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
      public static extern bool ClosePrinter(IntPtr hPrinter);

      [DllImport("winspool.Drv", EntryPoint = "StartDocPrinterA", SetLastError = true, CharSet = CharSet.Unicode, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
      public static extern bool StartDocPrinter(IntPtr hPrinter, Int32 level, [In, MarshalAs(UnmanagedType.LPStruct)] DOCINFOA di);

      [DllImport("winspool.Drv", EntryPoint = "EndDocPrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
      public static extern bool EndDocPrinter(IntPtr hPrinter);

      [DllImport("winspool.Drv", EntryPoint = "StartPagePrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
      public static extern bool StartPagePrinter(IntPtr hPrinter);

      [DllImport("winspool.Drv", EntryPoint = "EndPagePrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
      public static extern bool EndPagePrinter(IntPtr hPrinter);

      [DllImport("winspool.Drv", EntryPoint = "WritePrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
      public static extern bool WritePrinter(IntPtr hPrinter, IntPtr pBytes, Int32 dwCount, out Int32 dwWritten);

      // SendBytesToPrinter()
      // When the function is given a printer name and an unmanaged array
      // of bytes, the function sends those bytes to the print queue.
      // Returns true on success, false on failure.
      public static bool SendBytesToPrinter(string szPrinterName, IntPtr pBytes, Int32 dwCount)
      {
          Int32 dwError = 0, dwWritten = 0;
          IntPtr hPrinter = new IntPtr(0);
          DOCINFOA di = new DOCINFOA();
          bool bSuccess = false; // Assume failure unless you specifically succeed.

          di.pDocName = "RAW Document";
          // Win7
          di.pDataType = "RAW";

          // Win8+
          // di.pDataType = "XPS_PASS";

          // Open the printer.
          if (OpenPrinter(szPrinterName.Normalize(), out hPrinter, IntPtr.Zero))
          {
              // Start a document.
              if (StartDocPrinter(hPrinter, 1, di))
              {
                  // Start a page.
                  if (StartPagePrinter(hPrinter))
                  {
                      // Write your bytes.
                      bSuccess = WritePrinter(hPrinter, pBytes, dwCount, out dwWritten);
                      EndPagePrinter(hPrinter);
                  }
                  EndDocPrinter(hPrinter);
              }
              ClosePrinter(hPrinter);
          }
          // If you did not succeed, GetLastError may give more information
          // about why not.
          if (bSuccess == false)
          {
              dwError = Marshal.GetLastWin32Error();
          }
          return bSuccess;
      }

      public static bool SendFileToPrinter(string szPrinterName, string szFileName)
      {
          // Open the file.
          FileStream fs = new FileStream(szFileName, FileMode.Open);
          // Create a BinaryReader on the file.
          BinaryReader br = new BinaryReader(fs);
          // Dim an array of bytes big enough to hold the file's contents.
          Byte[] bytes = new Byte[fs.Length];
          bool bSuccess = false;
          // Your unmanaged pointer.
          IntPtr pUnmanagedBytes = new IntPtr(0);
          int nLength;

          nLength = Convert.ToInt32(fs.Length);
          // Read the contents of the file into the array.
          bytes = br.ReadBytes(nLength);
          // Allocate some unmanaged memory for those bytes.
          pUnmanagedBytes = Marshal.AllocCoTaskMem(nLength);
          // Copy the managed byte array into the unmanaged array.
          Marshal.Copy(bytes, 0, pUnmanagedBytes, nLength);
          // Send the unmanaged bytes to the printer.
          bSuccess = SendBytesToPrinter(szPrinterName, pUnmanagedBytes, nLength);
          // Free the unmanaged memory that you allocated earlier.
          Marshal.FreeCoTaskMem(pUnmanagedBytes);
          fs.Close();
          fs.Dispose();
          fs = null;
          return bSuccess;
      }
      public static bool SendStringToPrinter(string szPrinterName, string szString)
      {
          IntPtr pBytes;
          Int32 dwCount;
          // How many characters are in the string?
          dwCount = szString.Length;
          // Assume that the printer is expecting ANSI text, and then convert
          // the string to ANSI text.
          pBytes = Marshal.StringToCoTaskMemAnsi(szString);
          // Send the converted ANSI string to the printer.
          SendBytesToPrinter(szPrinterName, pBytes, dwCount);
          Marshal.FreeCoTaskMem(pBytes);
          return true;
      }
  }

I had to create a WPF app just to receive a URI with a path to a text file and them print it.

@ptorr-msft any update from the pos team?

Sorry, I've been out of the office. I got this link:
https://docs.microsoft.com/en-us/windows/uwp/devices-sensors/pos-device-support#receipt-printer-posprinter

Can pos team provided any sample for
MUNBYN Android Bluetooth Mobile Thermal Receipt Printer, MUNBYN 2 Inches 58MM Impresora térmica Printer with Leather Belt for Business ESC/POS, Does NOT Support iOS Devices,Square https://www.amazon.com/dp/B0753B5KYG/ref=cm_sw_r_cp_api_fabt1_IN-TFbH0SH19A

Sorry, I've been out of the office. I got this link:
https://docs.microsoft.com/en-us/windows/uwp/devices-sensors/pos-device-support#receipt-printer-posprinter

Thanks for the link, but, we've all stumbled upon this link and it does nothing for what we are trying to achieve.
We just wanna be able to silently print stuff, if for that we need to request permission for the user, so be it.
It would be awesome to also be able to send esc/pos commands directly to the printer, just like in the code I posted above. It works on debug mode but it doesn't pass to the Microsoft Store because it says I'm using APIs that are not always available.

@ptorr-msft I also have same situation as Rothanan

@ptorr-msft can someone from the POS team can post on this issue?

Since this is now about POS printing, and not general consumer printing without prompts, can you start a new issue?

In my case, I was planning to use general consumer printers from UWP without the user prompts for each printing job, using something like a PrintAsync instead of ShowPrintUIAsync . It would be OK if this may require the creation of a new permission/capability for UWP AppModel like: AllowPrintingWithoutUserIteraction

I'm with @TonyHenrique, I need that too.

Hi everyone,
We develop POS software and we heavily rely on the printing options in WPF.
For example we create our layouts in XAML for receipt tickets / invoices / labels etc, even almost everything if I think about it.
We primarily use the PrintVisual method that we can use in WPF to print our XAML layouts to all kinds of printers.
Due to the nature of our clients (restaurants etc) they need to be able to quickly print a receipt without being bothered with dialogs before they can actually print something.
Is this something that wil be implemented in / ported to WinUI 3?

We need this too.

I wonder how macOS deal with such issue. Is there a "print permission", or apps are allowed to print without confirm?

I don't believe macOS APIs for printing require permission. Actually Apple's printing API has a boolean that indicates whether to show or hide the dialog. So just setting the boolean to false will print without showing the dialog.

i am new in flutter develop and i want to make direct print for pdf file without showing the preview of printing for the user and make this for printer device that in the same network and i have its ip address .

I uploaded a test  (WinUI3_Direct2D_Print) with ID2D1PrintControl which can print silently (can be done with GDI too)
(by printing a few controls using RenderTargetBitmap, which works fine when the control is not virtualized)


utils/github: fix broken pipe error

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes?
[x] Have you successfully run brew tests with your changes locally?

Steps to reproduce:

Unset any possibly set HOMEBREW_GITHUB_* environment variables.
Switch to a Git without git-credential-osxkeychain or temporarily rename this binary.

Before:
$ brew search php
Error: Broken pipe

After:
$ brew search php
No formula found for "php".
==> Searching pull requests...
Closed pull requests:
n98-magerun: migrate to php (https://github.com/Homebrew/homebrew-core/pull/1534)
Error: GitHub API Error: API rate limit exceeded for A.B.C.D. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Try again in 25 minutes and 34 seconds, or create a personal access token:
  https://github.com/settings/tokens/new?scopes=&description=Homebrew
and then set the token as: export HOMEBREW_GITHUB_API_TOKEN="your_new_token"

Closes #573.
Update: Slightly expanded the scope of the PR as mentioned in a comment below.

Can we do:
begin
 github_credentials = Utils.popen ...
rescue
end

Or
 github_credentials = Utils.popen (...) rescue ""

Would this be solved by the proposal to vendor git?

Can we do:

Yes, if that seems preferable. The current version is optimized for a minimal diff (no need for a dedicated begin block and adjustment of the indentation) and since no other part of the code is doing I/O it's essentially the same. (But I can definitely see the benefit of bringing the rescue closer to the source of the exception.)

Or

No. RuboCop objects to rescue as a modifier and I agree. It's too important to be stuffed away at the end of the line where it's easier to overlook and the modifier doesn't allow to specify the exceptions that should be handled, making it more likely to unintentionally handle other unrelated exceptions that shouldn't be silently swallowed.

Would this be solved by the proposal to vendor git?

I think vendoring Git would reduce the likelihood of this happening, but I'm pretty sure there can be other error conditions that lead to an early exit without accepting any input even if the helper is present. (And I think the vendored Git was only meant to be used if the host Git is deemed too old, so it wouldn't actually help in many cases—unless I'm misremembering this part.)

It seems odd that we're getting a broken pipe instead of an explicit error? Is this caused by some fragility in Utils.popen?

Our version of popen redirects standard error to /dev/null, thus any error messages will be discarded, but the result of the invocation (the exit code) will still be reflected in $? after the block given to popen terminates.
The process we're talking to is free to terminate or stop accepting input at any time, thus the broken pipe error can literally happen in the middle of a puts/write operation and (to my knowledge) there isn't a more elegant/correct way of handling this than rescuing Errno::EPIPE.

Would this happen if git credential-osxkeychain get was executed in a shell instead?

This entirely depends on the program that is feeding input to the git credential-osxkeychain get process and how it decided to handle or not handle this case. The default signal handler for SIGPIPE is to simply kill the program as soon as a write fails due to a broken pipe. The other option is to have a custom handler for SIGPIPE or to mask this signal. The latter causes write to return EPIPE which is translated to the exception handled here.
So yes, in some sense this is also happening if executed in a shell, but we don't usually see the broken pipe error as it isn't considered a true error in most circumstances. E.g. in cat file.txt | head -n 1 it is actually desirable that head dies after it has output the first line, so that the pipe is broken and cat can learn its pointless to continue reading the input file. (Whether cat internally relies on the default SIGPIPE behavior or checks for the EPIPE return value I don't know.)
Because the Homebrew process is doing a lot more than just feeding input to that helper (unlike in the cat example above), it makes sense to actually handle the broken pipe and then move on instead of being killed by the OS.

Why it preferable to return [] rather than give an explicit, custom error to the users? Won't the empty search output be confusing when they know what they're searching for does indeed exist?

Won't the empty search output be confusing when they know what they're searching for does indeed exist?

It's not the search result that is empty, but the API credentials. Consequently, the code will continue to make unauthenticated GitHub API requests and either return the desired search results or report back with an error that the rate limit has been exceeded. That error also suggests to create and set a token, thus a possibly incomplete search result shouldn't be causing much confusion—certainly less than the broken pipe error. (See my top comment for an example output for the rate limit case.)

Why it preferable to return [] rather than give an explicit, custom error to the users?

Because it is just one of several options and not having the credentials available this way isn't a fatal condition. We can still try and often succeed with an unauthenticated request. Maybe it's an unusual configuration on macOS, but it's still perfectly legal to have a Git installation without this credentials helper and making its absence stop the rest of the processing in its tracks didn't feel appropriate. If we wanted to make the user aware of this issue, I think the best thing we can do is output a warning. (I'm happy to make adjustments to the error reporting if my assessment of the situation isn't as accurate as I believe it to be.)

That makes sense. However, at least on macOS, I'm not sure why we'd want to support a git lacking this feature. We could simply require the use of an appropriate git, no?

In any case, I think we should consider requiring a git that has this feature, but it seems fine to :ship: this since you were saying you believe this can occur in some other scenario besides lacking the helper too.

Updated!

Refactored the fix to address feedback on code style/organization and moved some work to a helper method to avoid excessively deep nesting due to another begin block.

Did some minor refactoring to simplify the extraction code.

Fixed wrong element order when using HOMEBREW_GITHUB_API_{USERNAME,PASSWORD}. (Currently undocumented and probably not very widely used, if nobody noticed that the password and the user name were swapped.)

I'm happy to move the 2nd and/or 3rd commit to a separate PR, but I think this PR still makes sense with these additional changes on top if reviewed commit by commit.

Should this go in a separate method, too?
+    credentials = Hash[credentials.scan(/^(username|password)=(.*)$/)]
+    if credentials.key?("username") && credentials.key?("password")
+      credentials.values_at("password", "username")
+    else
+      []
+    end

How would further splitting this up benefit the code?

The rescue still seems to be a bit separated from where @xu-cheng was actually saying he'd prefer it be, no?

A few comments otherwise 👍 from me.

Updated to address all comments and to drop the refactoring due to questionable benefit.

LGTM 👍

The rescue still seems to be a bit separated from where @xu-cheng was actually saying he'd prefer it be, no?

@ilovezfs Thanks for reminding me of that! Are you happy with the current simplified diff?

@UniqMartin this looks great.

Thanks everyone for your feedback and your patience while I iterated through some revisions of this PR that were less than ideal! I'm now much more happy with the outcome.


Implement the "SDL2" abstraction

SDL2: initial
waving: mainwindow+music+q_key
one: main window using resmanager
two: window: the puzzle pieces are clicking in place
three: "Open GL" 2.0 enters the scene
four: window: bridge; heres why

Only the details remain. Now the Button...


Fix 2210

Adds sample counts by prep in the listing. Deciding to go via PrepTemplate.keys() cause it and cache the values as it saves us some code/queries.
Now, the study list looks like this:

The study/sample selected like this:

Codecov Report

Merging #2246 into dev will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##              dev    #2246      +/-   ##
==========================================
+ Coverage   92.81%   92.81%   +<.01%
==========================================
  Files         171      171
  Lines       18906    18917      +11
==========================================
+ Hits        17547    17558      +11
  Misses       1359     1359

Impacted Files
Coverage Δ

qiita_db/util.py
96.55% <100%> (+0.03%)
:arrow_up:

...pet/handlers/study_handlers/tests/test_artifact.py
97.19% <100%> (+0.1%)
:arrow_up:

...iita_pet/handlers/api_proxy/tests/test_artifact.py
98.22% <100%> (+0.03%)
:arrow_up:

qiita_db/test/test_util.py
99.78% <100%> (ø)
:arrow_up:

qiita_db/metadata_template/util.py
90.97% <0%> (-0.07%)
: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 a369cad...b7e2cc9. Read the comment docs.

Thanks @tanaes 🍺

I inevitably make a bunch of 'wait I don't understand why...' comments on
these PRs but then spend a bunch of time scrolling back and forth on the
diffs and then I'm like 'ahhh oh I see.' :P
On Mon, Aug 21, 2017 at 12:44 PM Jose Navas<EMAIL_ADDRESS>wrote:

Thanks @tanaes https://github.com/tanaes 🍺
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/biocore/qiita/pull/2246#issuecomment-323834317, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AH6JALYCVOGewXeQ5mKydElF6iFl0eZsks5sad4rgaJpZM4O8w75
.


package: add bugs section

This will render a count of issues on npmjs.com and redirect you to the
issues page when clicking it.

Thanks, but I just added this on my own when I fixing something at the code, so I will close this.


Enhance KerberosAuthContext to support all Krb5LoginModule options. (Fix

for develop branch)
So we can incorporate your pull request, please share the following:

What issue are you addressing with this pull request? https://github.com/marklogic/java-client-api/issues/995
Are you modifying the correct branch? Yes, develop

My only concern is that Git is reporting "this branch cannot be rebased due to conflicts"
It would be good to understand whether the conflicts can be eliminated or a merge is necessary.

The reason it cannot be rebased is that @anu3990 merged ongoing changes from develop into her branch during development.  That's an accepted practice, but it does prevent rebase merges back into develop.
If @anu3990 wants to rebase her branch off of develop first and resolve conflicts then you won't see this message anymore.


Release 2023-12-19

Release 2023-12-19
We need to do a config change that requires restarting the pageservers.
Slip in two metrics-related commits that didn't make this week's regularly release.

Also cherry-picked the higher resolution getpage histograms, these are also super low risk and will allow me to determine a new getpage@lsn slo 1 week sooner.

No docs impacts.


fix(send): support new send flow for QR Scan and pay deeplink

Description
This feature fell through the cracks in send flow planning
Test plan
Unit tests updated
Backwards compatibility
yes

@cajubelt yep, I decided to do a separate PR

For the testing, i was not able to. I'll test tomorrow off of the nightly build


RuntimeWarning: invalid value encountered in double_scalars

General information:

emcee version: 2.2.1
platform: Ubuntu LTS 18.04
installation method (pip/conda/source/other?): pip

Problem description:
Expected behavior:
No error
Actual behavior:
I get a RuntimeWarning: invalid value encountered in double_scalars in the red_blue.py script at line 97: lnpdiff = f + nlp - state.log_prob[j]. The same error appears from the old ensemble.py script at the line: lnpdiff = (self.dim - 1.) * np.log(zz) + newlnprob - lnprob0 (Issue 269, now closed)
What have you tried so far?:
I have tried both versions of the code, and I can't figure out why I get that error. For an Ensemble with a lower amount of steps I do not get that error, only when the chain gets longer.
Minimal example:

import emcee

# sample code goes here...

This generally means that you are initializing in some part of parameter space where the log probability is -inf or nan. Double check that your initialized values are all ok. If they are, then there's a chance that this is caused by your log probability function returning nan or inf, but that should be caught in the sampler. One way or another you should always try to catch issues like that in your log probability function and return -np.inf. Give that a shot.

Thanks, I already control the priors on my parameters, as well as the log probability which returns -np.inf in case of issues..

I'm not sure what you mean by "control", but this does mean that there's some numerical issue happening in your log probability function and it normally has to do with initialization. I'd recommend trying to make a simple test case that reproduces the problem. That should make it clear what's going on.

Alright, I'll check all this. Thanks again.

I'm not sure what you mean by "control", but this does mean that there's some numerical issue happening in your log probability function and it normally has to do with initialization. I'd recommend trying to make a simple test case that reproduces the problem. That should make it clear what's going on.

Sir I am also facing the same issue, can you please help me.


docker-volume-glusterfs on aws instance

I am trying to run mount gluster volume to docker container running on debian8 aws instance, and it doesn't work, any clues where can I check issue:
root@s-app1:~# docker-volume-glusterfs -servers s-fs1:s-fs2
2016/06/23 17:18:50 Mounting volume datastore on /var/lib/docker-volumes/_glusterfs/datastore
2016/06/23 17:18:51 Unmounting volume datastore from /var/lib/docker-volumes/_glusterfs/datastore
root@s-app1:~# docker run --volume-driver glusterfs --volume datastore:/data alpine touch /data/helo
root@s-app1:~# docker run --volume-driver glusterfs --volume datastore:/data alpine ls -hl /data
total 0
-rw-r--r--    1 root     root           0 Jun 23 17:18 helo
root@s-app1:~# docker run -it --volume-driver glusterfs --volume datastore:/data alpine /bin/sh
/ # ls -hl /data
total 0
-rw-r--r--    1 root     root           0 Jun 23 17:18 helo
-rw-r--r--    1 root     root           0 Jun 22 08:10 helo1
-rw-r--r--    1 root     root           0 Jun 22 12:25 helo3
s-fs1:datastore   50G   53M   47G   1% /var/lib/docker-volumes/_glusterfs/datastore
root@s-app1:~# ls -hl /var/lib/docker-volumes/_glusterfs/datastore
total 0
-rw-r--r-- 1 root root 0 Jun 22 07:44 aa
While on glusterFS storage:
s-fs1:datastore          50G   53M   47G   1% /mnt/glusterfs
root@s-fs1:~# ls -hl /mnt/glusterfs
total 0
-rw-r--r-- 1 root root 0 Jun 22 07:44 aa
Same setup using debian8 on vagrant works fine. Is there any known problem on amazon aws instance?

Hello @damian-s
I was about to raise the exact same issue. Only difference is I'm using AWS linux (Centos6) rather than debian8.
After smashing my head against the wall yesterday, this morning i finally found what i think is going on.
The problem I think is a race condition of glusterfs mount and docker.
The process during a docker run is meant to be:

Docker reads the GlusterFS volume name and passes it on to the plugin
the plugin runs a glusterfs command to mount the Gluster volume, returning to docker where the mount point is
docker mounts the path in the container

The problem is that docker is mounting the volume in the container before glusterfs has finished mounting in the gluster volume. So what you end up with is, the docker container is writing stuff to the directory under the glusterfs mount point.
To test this, if you terminate your running container and look under /var/lib/docker-volumes/_glusterfs/datastore you will see that the files from the container are now there.


Components and shadow DOM

I open this error with the hope of being able to solve this annoying problem.
I state that I have read the documentation and I do not seem to have found anything about it (take me with a grain of salt because being new in web development I might have skipped something that did not seem relevant) and in the original repository the issues concerning this topic do not give a solution very clear (to tell the truth they don't give it at all, see here or here).
Expected Behavior
The materialize component used within a shadow-rooted custom element should show effects (i.e. waves) or perform specific actions (see cards). I have encountered problems with buttons and cards but the problem could affect all components using the waves.
Current Behavior
The component in a shadow DOM has only some of the effects it normally has in the light DOM (i.e. the button changes color on hover but does not have the wave effect when clicked).
Steps to Reproduce (for bugs)
Simply add a component inside a custom element with shadow DOM.
I link two examples on CodePen: buttons and cards.
Context
The problem arose when I was trying to create a component to represent a single game in a game manager using cards (with hidden side) and buttons. Specifically, the component in question is this.
Your Environment
The error presented with:

Electron 10.1.6 (Chromium 85.0.4183.98)
Electron 11.0.3 (Chromium 87.0.4280.67)
Firefox 84.0b6

On Windows 10 20H2 (19042.630)
With the latest available release of materialize on npm (both this repository and the original)

Hi, I feel bad for around 10 months of inactivity.
I can see well in the dev tools that the card don't register an event inside a shadow root. About the waves, it might be similar.
As explained in the original issues, this might be related to how materialize selects events.
Unfortunately I don't know enough, and I don't have free time to investigate more. Added the bug label.
I can see well in the dev tools that the card don't register an event inside a shadow root. About the waves, it might be similar.
Feel free to reply if you can help to any ways.

Is there any plan on supporting webcomponents, especially the shadow root?

Well, thanks for the Info :) I will try to See What I can do with that.

A possible solution could be this:
change the static init of the components:
static Init() {
    document.addEventListener("DOMContentLoaded", () => {
      document.body.addEventListener('click', e => {
        const trigger = <HTMLElement>e.target;

with something like this:
static Init(rootElement = null) {
   if (rootElement == null)
     rootElement = document.body
   document.addEventListener("DOMContentLoaded", () => {
      rootElement.addEventListener('click', e => {
        const trigger = <HTMLElement>e.target;

This will maintain backward compatibility and you can call the init method with the shadowRoot (for each card in a different shadow DOM).


MM-28653 Detox/E2E: Add jest-junit, jest-html-reporters and pathbuilders for test report/artifacts

Summary
Add jest-junit, jest-html-reporters and pathbuilders for test report/artifacts
Ticket Link
Jira ticket - https://mattermost.atlassian.net/browse/MM-28653
Screenshots

looking forward to have this enabled with CI builds 🎉

Yes, that's correct and that's most likely to run in CI.

Weird, honestly I can't see the problem as it's working fine on me. I don't think the changes here have anything to do with Detox Android build.
Miguel or Elias, can you help us validate the issue if Android test is broken or working with you?  Thanks in advance!

Sorry for the hassle. It's due to the optional chaining operator at path_builder.js which is not supported for node v13 and below. babel works during test but not on build. I've changed the implementation and tested to be working with v10. Thanks for testing @josephbaylon!

@saturninoabril No worries! I retested with both node v10 and v14 and they seem to work fine now. Thanks for the changes!

Awesome, thanks for testing again!


Bump numpy version from 1.22.x to 1.24.2

Description
Update numpy version to latest, this is to address white source check result: https://github.com/opensearch-project/k-NN/runs/12031993452
run pip install locally:
pip install -r requirements.txt

(py39v2) gaievski@3c22fb3bf031 perf-tool % pip install -r requirements.txt
Collecting cached-property==1.5.2
  Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting cerberus==1.3.4
  Using cached Cerberus-1.3.4-py3-none-any.whl
Requirement already satisfied: certifi==2022.12.7 in /opt/anaconda3/envs/py39v2/lib/python3.9/site-packages (from -r requirements.txt (line 11)) (2022.12.7)
Collecting charset-normalizer==2.0.4
  Using cached charset_normalizer-2.0.4-py3-none-any.whl (36 kB)
Collecting h5py==3.3.0
  Using cached h5py-3.3.0-cp39-cp39-macosx_10_9_x86_64.whl (3.0 MB)
Collecting idna==3.2
  Using cached idna-3.2-py3-none-any.whl (59 kB)
Collecting numpy==1.24.2
  Downloading numpy-1.24.2-cp39-cp39-macosx_10_9_x86_64.whl (19.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.8/19.8 MB 18.0 MB/s eta 0:00:00
Collecting opensearch-py==1.0.0
  Using cached opensearch_py-1.0.0-py2.py3-none-any.whl (207 kB)
Collecting psutil==5.8.0
  Using cached psutil-5.8.0-cp39-cp39-macosx_10_9_x86_64.whl (236 kB)
Collecting pyyaml==5.4.1
  Using cached PyYAML-5.4.1-cp39-cp39-macosx_10_9_x86_64.whl (259 kB)
Collecting requests==2.26.0
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting urllib3==1.26.6
  Using cached urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
Requirement already satisfied: setuptools in /opt/anaconda3/envs/py39v2/lib/python3.9/site-packages (from cerberus==1.3.4->-r requirements.txt (line 9)) (65.6.3)
Installing collected packages: cached-property, urllib3, pyyaml, psutil, numpy, idna, charset-normalizer, cerberus, requests, opensearch-py, h5py
Successfully installed cached-property-1.5.2 cerberus-1.3.4 charset-normalizer-2.0.4 h5py-3.3.0 idna-3.2 numpy-1.24.2 opensearch-py-1.0.0 psutil-5.8.0 pyyaml-5.4.1 requests-2.26.0 urllib3-1.26.6

pip install -r requirements.txt
(py39v3) gaievski@3c22fb3bf031 osb % pip install -r requirements.txt
Collecting aiohttp==3.8.1
  Using cached aiohttp-3.8.1-cp39-cp39-macosx_10_9_x86_64.whl (574 kB)
Collecting aiosignal==1.2.0
  Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting async-timeout==4.0.2
  Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting attrs==21.4.0
  Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting cachetools==4.2.4
  Using cached cachetools-4.2.4-py3-none-any.whl (10 kB)
Requirement already satisfied: certifi==2022.12.7 in /opt/anaconda3/envs/py39v3/lib/python3.9/site-packages (from -r requirements.txt (line 19)) (2022.12.7)
Collecting charset-normalizer==2.0.12
  Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting frozenlist==1.3.0
  Using cached frozenlist-1.3.0-cp39-cp39-macosx_10_9_x86_64.whl (36 kB)
Collecting google-auth==1.22.1
  Using cached google_auth-1.22.1-py2.py3-none-any.whl (114 kB)
Collecting google-crc32c==1.3.0
  Using cached google_crc32c-1.3.0-cp39-cp39-macosx_10_9_x86_64.whl (30 kB)
Collecting google-resumable-media==1.1.0
  Using cached google_resumable_media-1.1.0-py2.py3-none-any.whl (75 kB)
Collecting h5py==3.6.0
  Using cached h5py-3.6.0-cp39-cp39-macosx_10_9_x86_64.whl (3.1 MB)
Collecting idna==3.3
  Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting ijson==2.6.1
  Using cached ijson-2.6.1-py3-none-any.whl
Collecting importlib-metadata==4.11.3
  Using cached importlib_metadata-4.11.3-py3-none-any.whl (18 kB)
Collecting jinja2==2.11.3
  Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Collecting jsonschema==3.1.1
  Using cached jsonschema-3.1.1-py2.py3-none-any.whl (56 kB)
Collecting markupsafe==2.0.1
  Using cached MarkupSafe-2.0.1-cp39-cp39-macosx_10_9_x86_64.whl (13 kB)
Collecting multidict==6.0.2
  Using cached multidict-6.0.2-cp39-cp39-macosx_10_9_x86_64.whl (28 kB)
Collecting numpy==1.24.2
  Using cached numpy-1.24.2-cp39-cp39-macosx_10_9_x86_64.whl (19.8 MB)
Collecting opensearch-benchmark==0.0.2
  Using cached opensearch_benchmark-0.0.2-py3-none-any.whl (266 kB)
Collecting opensearch-py[async]==1.0.0
  Using cached opensearch_py-1.0.0-py2.py3-none-any.whl (207 kB)
Collecting psutil==5.8.0
  Using cached psutil-5.8.0-cp39-cp39-macosx_10_9_x86_64.whl (236 kB)
Collecting py-cpuinfo==7.0.0
  Using cached py_cpuinfo-7.0.0-py3-none-any.whl
Collecting pyasn1==0.4.8
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pyasn1-modules==0.2.8
  Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting pyrsistent==0.18.1
  Using cached pyrsistent-0.18.1-cp39-cp39-macosx_10_9_universal2.whl (81 kB)
Collecting rsa==4.8
  Using cached rsa-4.8-py3-none-any.whl (39 kB)
Collecting six==1.16.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting tabulate==0.8.7
  Using cached tabulate-0.8.7-py3-none-any.whl (24 kB)
Collecting thespian==3.10.1
  Using cached thespian-3.10.1-py3-none-any.whl
Collecting urllib3==1.26.9
  Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting yappi==1.2.3
  Using cached yappi-1.2.3-cp39-cp39-macosx_10_9_x86_64.whl
Collecting yarl==1.7.2
  Using cached yarl-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl (121 kB)
Collecting zipp==3.7.0
  Using cached zipp-3.7.0-py3-none-any.whl (5.3 kB)
Requirement already satisfied: setuptools>=40.3.0 in /opt/anaconda3/envs/py39v3/lib/python3.9/site-packages (from google-auth==1.22.1->-r requirements.txt (line 29)) (65.6.3)
Installing collected packages: yappi, thespian, tabulate, pyasn1, py-cpuinfo, ijson, zipp, urllib3, six, rsa, pyrsistent, pyasn1-modules, psutil, numpy, multidict, markupsafe, idna, google-crc32c, frozenlist, charset-normalizer, cachetools, attrs, async-timeout, yarl, opensearch-py, jinja2, importlib-metadata, h5py, google-resumable-media, google-auth, aiosignal, jsonschema, aiohttp, opensearch-benchmark
Successfully installed aiohttp-3.8.1 aiosignal-1.2.0 async-timeout-4.0.2 attrs-21.4.0 cachetools-4.2.4 charset-normalizer-2.0.12 frozenlist-1.3.0 google-auth-1.22.1 google-crc32c-1.3.0 google-resumable-media-1.1.0 h5py-3.6.0 idna-3.3 ijson-2.6.1 importlib-metadata-4.11.3 jinja2-2.11.3 jsonschema-3.1.1 markupsafe-2.0.1 multidict-6.0.2 numpy-1.24.2 opensearch-benchmark-0.0.2 opensearch-py-1.0.0 psutil-5.8.0 py-cpuinfo-7.0.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pyrsistent-0.18.1 rsa-4.8 six-1.16.0 tabulate-0.8.7 thespian-3.10.1 urllib3-1.26.9 yappi-1.2.3 yarl-1.7.2 zipp-3.7.0

Check List

[X] Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #811 (f589658) into main (e1d2e45) will decrease coverage by 0.33%.
The diff coverage is n/a.

:exclamation: Current head f589658 differs from pull request most recent head caf1e7a. Consider uploading reports for the commit caf1e7a to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff              @@
##               main     #811      +/-   ##
============================================
- Coverage     85.40%   85.08%   -0.33%
+ Complexity     1084     1076       -8
============================================
  Files           151      151
  Lines          4370     4370
  Branches        390      390
============================================
- Hits           3732     3718      -14
- Misses          463      475      +12
- Partials        175      177       +2

see 5 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

checking issue, something related to nmslib on win:
[o.o.i.e.Engine           ] [knnBwcCluster-rolling-0] [knn-bwc-testknndefaultindexsettings][0] failed engine [refresh failed source[refresh_flag_index]]
�  java.lang.Exception: basic_ios::clear: iostream error
�  	at org.opensearch.knn.jni.NmslibService.createIndex(Native Method) ~[?:?]
�  	at org.opensearch.knn.jni.JNIService.createIndex(JNIService.java:35) ~[?:?]
�  	at org.opensearch.knn.index.codec.KNN80Codec.KNN80DocValuesConsumer.lambda$createKNNIndexFromScratch$4(KNN80DocValuesConsumer.java:190) ~[?:?]
�  	at java.security.AccessController.doPrivileged(AccessController.java:318) ~[?:?]
�  	at org.opensearch.knn.index.codec.KNN80Codec.KNN80DocValuesConsumer.createKNNIndexFromScratch(KNN80DocValuesConsumer.java:189) ~[?:?]
�  	at org.opensearch.knn.index.codec.KNN80Codec.KNN80DocValuesConsumer.lambda$addKNNBinaryField$2(KNN80DocValuesConsumer.java:134) ~[?:?]
�  	at org.opensearch.knn.index.codec.KNN80Codec.KNN80DocValuesConsumer.addKNNBinaryField(KNN80DocValuesConsumer.java:141) ~[?:?]
�  	at org.opensearch.knn.index.codec.KNN80Codec.KNN80DocValuesConsumer.addBinaryField(KNN80DocValuesConsumer.java:78) ~[?:?]
�  	at org.apache.lucene.index.BinaryDocValuesWriter.flush(BinaryDocValuesWriter.java:132) ~[lucene-core-9.5.0.jar:9.5.0 13803aa6ea7fee91f798cfeded4296182ac43a21 - 2023-01-25 16:44:59]
�  	at org.apache.lucene.index.IndexingChain.writeDocValues(IndexingChain.java:400) ~[lucene-core-9.5.0.jar:9.5.0 13803aa6ea7fee91f798cfeded4296182ac43a21 - 2023-01-25 16:44:59]
�  	at org.apache.lucene.index.IndexingChain.flush(IndexingChain.java:258) ~[lucene-core-9.5.0.jar:9.5.0 13803aa6ea7fee91f798cfeded4296182ac43a21 - 2023-01-25 16:44:59]


Default type imported with import type from not-found module not flagged when used as a value

🔎 Search Terms
cannot be used as a value because it was imported using import type
🕗 Version & Regression Information

This is the behavior in every version I tried

⏯ Playground Link
https://www.typescriptlang.org/play?ts=5.4.2#code/JYWwDg9gTgLgBDAnmApnAKnAZlCIBQA9IXAAIwDOAtCgB6oDGMNUuU+ccA5CBACZcA3PnwMIAOwrx4AXgzD8oSLDgBvJKjgBVAL7ZcBYmUo16KJizYduvAQrGT4AVzhytwoA
💻 Code
import type T from
// @ts-expect-error
  'mod';

const t = T;

import {type U} from
// @ts-expect-error
  'mod';

const u = U;

🙁 Actual behavior
TS does not error on the usage of T.
TS errors on the usage of U with the error

'U' cannot be used as a value because it was imported using 'import type'.(1361)

🙂 Expected behavior
TS errors on the usage of T with the error

'T' cannot be used as a value because it was imported using 'import type'.(1361)

TS errors on the usage of U with the error

'U' cannot be used as a value because it was imported using 'import type'.(1361)

Additional information about the issue
No response

It looks like this specifically occurs then if the imported module does not exist.

Does that matter, then?  To be clear it's still a bug since you shouldn't be able to use type imports in value positions, but in practice you already get an error on the import, and I don't think people are generally going to be @ts-ignoreing module resolution errors.


FluentDesignSystemProvider cause abnormal card component

🐛 Bug Report
After using FluentDesignSystemProvider card is unusual, to the normal page cannot use Design tokens associated Settings. This can be used if other pages without card components are reloaded by pressing F5. If again jump to have card components page, press F5 again, after FluentDesignSystemProvider Settings will not take effect. You can also see the browser error Uncaught RangeError: Maximum call stack size exceeded

https://github.com/Seanxwy/FluentBlazorApp1/blob/master/FluentBlazorApp1/FluentBlazorApp1/Components/Pages/Home.razor
Similar questions
#1851
💻 Repro or Code Sample
[https://github.com/Seanxwy/FluentBlazorApp1/blob/master/FluentBlazorApp1/FluentBlazorApp1/Components/Pages/Home.razor](url)
🤔 Expected Behavior

😯 Current Behavior

💁 Possible Solution

🔦 Context

🌍 Your Environment

OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
.NET and Fluent UI Blazor library Version [e.g. 8.0.2 and 4.4.1]

See my comment on #185. Not a library issue. Do not use the FluentDesignSystemProvider for those changes you want


Update WebUI

1. Tell us something about your changes.

Implements "edge gap" for classic leds (missing: 16:9 compensation for H)
Implements write of led config
Fixes trans tokens, mixed led arrays in textfield
Implements dynamic effect lists based on https://github.com/hyperion-project/hyperion.ng/pull/293
show dialog on delete action

+1


CS simulator docker hub image issues

Hi all,
Getting below error while I tried running ACS GUI from CS simulator docker hub image in docker
HTTP ERROR: 503
Problem accessing /client/. Reason:
 Service UnavailablePowered by Jetty://

While checking the docker container logs, I could see lines indicating connection and authentication issues while connecting to DB. Detailed logs are in the link below.
https://gist.githubusercontent.com/Cloud-Mak/a09766d752f0688885b2416e4a9925c8/raw/bb418c87394e267f4b867bde8697b760c5924874/gistfile1.txt
Can people managing this image please look into this and fix it or give possible workaround?
--
Makrand

Can you mention the steps which you followed to run the docker image?
First you need to start the simulator docker container. Then run the marvin docker to setup zone. Then you will be able to access the ui.
I have run this several times and not encountered this issue so far

Hello Rakesh,
I am following steps mentioned in description of image on Docker hub - https://hub.docker.com/r/cloudstack/simulator
From descrition - it looks like just using doker run is all you need to setup. Anywho, I even tried to run marvin DC setup step. Getting errors there as well. Check below logs and step.
**makrand@mint-gl63:/tmp$ docker run -d --name cloudstack -d -p 8080:8080 cloudstack/simulator**

**makrand@mint-gl63:/tmp$ docker exec -it cloudstack bash**

**root@06d293d9a407:~# python /root/tools/marvin/marvin/deployDataCenter.py -i /root/setup/dev/advanced.cfg**

==== Log Folder Path: /tmp/MarvinLogs/DeployDataCenter__Sep_25_2020_16_14_32_1VH78N. All logs will be available here ====

=== TestClient Creation Failed===

root@06d293d9a407:~# cat /tmp/MarvinLogs/DeployDataCenter__Sep_25_2020_16_14_32_1VH78N/failed_plus_exceptions.txt

**root@06d293d9a407:~# cat /tmp/MarvinLogs/DeployDataCenter__Sep_25_2020_16_14_32_1VH78N/runinfo.txt**
2020-09-25 16:14:32,914 - DEBUG - Parsing Test data successful
2020-09-25 16:14:32,914 - DEBUG - Payload: {'account': 'admin', 'command': 'listUsers', 'response': 'json'}
2020-09-25 16:14:32,914 - DEBUG - ========Sending GET Cmd : listUsers=======
2020-09-25 16:14:32,916 - ERROR - __sendGetReqToCS : Exception Occurred: HTTPConnectionPool(host='localhost', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection refused',))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 189, in __sendGetReqToCS
    verify=self.httpsFlag)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='localhost', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection refused',))
2020-09-25 16:14:32,917 - ERROR - marvinRequest : CmdName: <marvin.cloudstackAPI.listUsers.listUsersCmd object at 0x7f8de862d350> Exception: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 364, in marvinRequest\n    raise self.__lastError\n', "ConnectionError: HTTPConnectionPool(host='localhost', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection refused',))\n"]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 364, in marvinRequest
    raise self.__lastError
ConnectionError: HTTPConnectionPool(host='localhost', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection refused',))
2020-09-25 16:14:32,918 - ERROR -  Exception Occurred Under __createApiClient: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackTestClient.py", line 144, in __createApiClient\n    list_user_res = self.__apiClient.listUsers(list_user)\n', '  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2479, in listUsers\n    response = self.connection.marvinRequest(command, response_type=response, method=method)\n', '  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 379, in marvinRequest\n    raise e\n', "ConnectionError: HTTPConnectionPool(host='localhost', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection refused',))\n"]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackTestClient.py", line 144, in __createApiClient
    list_user_res = self.__apiClient.listUsers(list_user)
  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2479, in listUsers
    response = self.connection.marvinRequest(command, response_type=response, method=method)
  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 379, in marvinRequest
    raise e
ConnectionError: HTTPConnectionPool(host='localhost', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection refused',))
2020-09-25 16:14:32,918 - ERROR - ==== Test Client Creation Failed ====

Am I overlooking anything?
I am on docker 19.0.3 and can see cloudstack container running.

I usually run the following commands
Start the simulator
docker run --name simulator -p 8080:8080 -d cloudstack/simulator

Start the marvin
docker run -ti --rm --name marvin --link simulator:8096 cloudstack/marvin

Deploy zone using marvin
docker run -ti --rm --link simulator:8096 cloudstack/marvin python /marvin/marvin/deployDataCenter.py -i /marvin/dev/advanced.cfg

if the above command fails then I usually get the ip of the simulator container and that in mgtSvr dbSvr section in /marvin/dev/advanced.cfg and run again

@ravening
Just cross checking.

So basically you're running two seperate containers simulator and marvin.

Marvin container is being linked to simulator contianer while its getting created. (not able to understand the need to link two...doesn't docker have networking out of box?)

Finally initiatlizing the python script using "your command" from host OS.

(if above fails) Edit the mgtSvr and dbSvr values in /marvin/dev/advanced.cfg on Marvin container and tun the python "deployDataCenter.py" script on Marvin container.

Even After doing so - I am getting same error.
root@4034e81431d0:/marvin/dev# python /marvin/marvin/deployDataCenter.py -i /marvin/dev/advanced.cfg

==== Log Folder Path: /tmp/MarvinLogs/DeployDataCenter__Sep_29_2020_12_19_41_KKF3WZ. All logs will be available here ====

=== TestClient Creation Failed===

root@4034e81431d0:/tmp/MarvinLogs/DeployDataCenter__Sep_29_2020_12_19_41_KKF3WZ# cat runinfo.txt
2020-09-29 12:19:41,884 - DEBUG - Parsing Test data successful
2020-09-29 12:19:41,885 - DEBUG - Payload: {'account': 'admin', 'command': 'listUsers', 'response': 'json'}
2020-09-29 12:19:41,885 - DEBUG - ========Sending GET Cmd : listUsers=======
2020-09-29 12:19:41,886 - ERROR - __sendGetReqToCS : Exception Occurred: HTTPConnectionPool(host='<IP_ADDRESS>', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 189, in __sendGetReqToCS
    verify=self.httpsFlag)
  File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',))
2020-09-29 12:19:41,887 - ERROR - marvinRequest : CmdName: <marvin.cloudstackAPI.listUsers.listUsersCmd object at 0x7f11e4974050> Exception: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 364, in marvinRequest\n    raise self.__lastError\n', "ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',))\n"]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 364, in marvinRequest
    raise self.__lastError
ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',))
2020-09-29 12:19:41,888 - ERROR -  Exception Occurred Under __createApiClient: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackTestClient.py", line 144, in __createApiClient\n    list_user_res = self.__apiClient.listUsers(list_user)\n', '  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2605, in listUsers\n    response = self.connection.marvinRequest(command, response_type=response, method=method)\n', '  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 379, in marvinRequest\n    raise e\n', "ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',))\n"]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackTestClient.py", line 144, in __createApiClient
    list_user_res = self.__apiClient.listUsers(list_user)
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2605, in listUsers
    response = self.connection.marvinRequest(command, response_type=response, method=method)
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 379, in marvinRequest
    raise e
ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',))
2020-09-29 12:19:41,888 - ERROR - ==== Test Client Creation Failed ====
root@4034e81431d0:/tmp/MarvinLogs/DeployDataCenter__Sep_29_2020_12_19_41_KKF3WZ#

I just want to give GUI demo to someone....not intested in reinventing the wheel here.

Installed the ping on Marvin to see if I can reach simulator by its name and IP.
root@4034e81431d0:/tmp/MarvinLogs# ping simulator
PING 8096 (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from 8096 (<IP_ADDRESS>): icmp_seq=1 ttl=64 time=0.131 ms
64 bytes from 8096 (<IP_ADDRESS>): icmp_seq=2 ttl=64 time=0.076 ms
^C
--- 8096 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1031ms
rtt min/avg/max/mdev = 0.076/0.103/0.131/0.029 ms
root@4034e81431d0:/tmp/MarvinLogs# ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=64 time=0.132 ms
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=64 time=0.097 ms
^C
--- <IP_ADDRESS> ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1014ms
rtt min/avg/max/mdev = 0.097/0.114/0.132/0.020 ms

Installed the ping on Marvin to see if I can reach simulator by its name and IP.

root@4034e81431d0:/tmp/MarvinLogs# ping simulator

PING 8096 (<IP_ADDRESS>) 56(84) bytes of data.

64 bytes from 8096 (<IP_ADDRESS>): icmp_seq=1 ttl=64 time=0.131 ms

64 bytes from 8096 (<IP_ADDRESS>): icmp_seq=2 ttl=64 time=0.076 ms

^C

--- 8096 ping statistics ---

2 packets transmitted, 2 received, 0% packet loss, time 1031ms

rtt min/avg/max/mdev = 0.076/0.103/0.131/0.029 ms

root@4034e81431d0:/tmp/MarvinLogs# ping <IP_ADDRESS>

PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.

64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=64 time=0.132 ms

64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=64 time=0.097 ms

^C

--- <IP_ADDRESS> ping statistics ---

2 packets transmitted, 2 received, 0% packet loss, time 1014ms

rtt min/avg/max/mdev = 0.097/0.114/0.132/0.020 ms

But seems I can't telnet to simulator on 8096 from Marvin

root@4034e81431d0:/tmp/MarvinLogs# telnet <IP_ADDRESS> 8096

Trying <IP_ADDRESS>...

telnet: Unable to connect to remote host: Connection refused

root@4034e81431d0:/tmp/MarvinLogs# telnet <IP_ADDRESS> 8080

Trying <IP_ADDRESS>...

Connected to <IP_ADDRESS>.

Escape character is '^]'.

Here is how docker ps -a looks like

makrand@mint-gl63:~$ docker ps -a

CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS              PORTS                                      NAMES

4034e81431d0        cloudstack/marvin                                     "/bin/sh -c /bin/bash"   36 minutes ago      Up 36 minutes                                                  marvin

fc86aecc33bd        cloudstack/simulator                                  "/usr/bin/supervisord"   About an hour ago   Up About an hour    <IP_ADDRESS>:8080->8080/tcp, 8096/tcp           simulator

593188cd5e2c        docker.elastic.co/kibana/kibana:7.8.0                 "/usr/local/bin/dumb…"   12 days ago         Up About an hour    <IP_ADDRESS>:5601->5601/tcp                     kibana

47ba9727f41e        docker.elastic.co/elasticsearch/elasticsearch:7.8.0   "/tini -- /usr/local…"   12 days ago         Up About an hour    <IP_ADDRESS>:9200->9200/tcp, 9300/tcp           elasticsearch

82ad0cb6df32        rancher/rancher                                       "entrypoint.sh"          12 days ago         Up About an hour    <IP_ADDRESS>:80->80/tcp, <IP_ADDRESS>:443->443/tcp   rancher

I will run this in my setup and share you the result..
BTW, if you want ready made cloudstack with advanced zone already installed, you can refer to Dockerfile present in https://github.com/ravening/Cloudstack-Docker

hi guys - may I kindly ask that we use mailing list user@ for support issues - and not GitHub - it will become garbage yard if we continue to do to. Thanks

I have a question for ravening, I have been trying to get the advanced zone docker working, and it tells me the repository does not exist.
What is the appropriate mailing list?

@lmhetz either dev@ or<EMAIL_ADDRESS>

@lmhetz either dev@ or<EMAIL_ADDRESS>


[DO NOT MERGE] docker: remove github.com/docker/engine-api

Close https://github.com/projectatomic/skopeo/issues/239
Signed-off-by: Antonio Murdaca<EMAIL_ADDRESS>

ACK, thanks!


bindOne on a model with a many-to-many relationship is causing "10 $digest() iterations reached" error

I have 3 models...
user
agent (join table between user and agency)
agency
to represent the many-to-many relationship between user and agency, i have a computed property on the user model that well return an array of agencies based on the hasMany relationship that the user has with the agent.
  agencies: ['agents', function (agents) {
        var params = {
          where: {
            agencyId: {
              in: _.pluck(agents, 'agencyId')
            }
          }
        }

        return DS.filter('agency', params)
      }]

I use a bindOne to listen to when a particular user is loaded in, however I'm noticing that it is triggered almost infinitely...
DS.bindOne('user', 147, scope, 'whatever', function(err, user){
  console.log(user) // this is printed out infinitely
})

However! If instead I use a bindAll and filter where the userId is equal to some value, it is only called once (as expected).
Any ideas?

Hmm, I tried to duplicate it with this plunker, but I couldn't. Could you take a look at it?

Thanks for your quick response @jmdobry ! I haven't found time yet to reproduce this in a plunker but I also want to add that I discovered this in Firefox. In Chrome this would only occur occassionally :confused:

Can you try again with js-data 2.0.0-rc.1 and js-data-angular 3.0.0-rc.1?

Here is the plunker again: http://plnkr.co/edit/wveT2J?p=preview, this time with the latest versions of of js-data and js-data-angular. I can't reproduce the error.
@stringbeans Closing this issue, but if you can show me a plunker that reproduces the issue, feel free to re-open.


Accepting pending iwara friend request on windows

Followed from here: https://github.com/hare1039/iwara-dl/issues/8#issuecomment-1318585181

@Rika334 Are you using the friend-accepting script on Unix systems?
Then please follow: https://github.com/hare1039/iwara-dl/blob/master/README-friend.md
Or you can use PowerShell on Windows to accept pending friend requests: https://gist.github.com/hare1039/d29bfff8d88aa5e61e34a21ee1cc2acb
日本語と中国語も通じます

Closed due to api change


[FLINK-34216][connectors/mongodb] FLIP-377: Support fine-grained configuration to control filter push down for MongoDB Connector

[FLINK-34216][connectors/mongodb] FLIP-377: Support fine-grained configuration to control filter push down for MongoDB Connector
This improvement implements FLIP-377 Support fine-grained configuration to control filter push down for Table/SQL Sources
This FLIP has 2 goals:

Introduces a new configuration filter.handling.policy to the JDBC and MongoDB connector.
Suggests a convention option name if other connectors are going to add an option for the same purpose.

Hi @eskabetxe, @RocMarshal, can you help take a look as well?

hi @Jiabao-Sun
I'm not an contributor to this connector but it LGTM

Thanks @eskabetxe and @RocMarshal for the review.


Update ApiCall to use static JSON files

resolves #76

Codecov Report

Merging #83 into master will decrease coverage by 9.73%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##           master      #83      +/-   ##
==========================================
- Coverage   75.37%   65.64%   -9.74%
==========================================
  Files          61       61
  Lines        1332     1333       +1
  Branches       94       94
==========================================
- Hits         1004      875     -129
- Misses        322      452     +130
  Partials        6        6

Impacted Files
Coverage Δ

...r-problems-frontend/src/components/Application.tsx
78.75% <ø> (ø)
:arrow_up:

atcoder-problems-frontend/src/utils/ApiCall.tsx
86.56% <85.71%> (-1.32%)
:arrow_down:

...blems-frontend/src/components/CategoryOneBlock.tsx
42.85% <0%> (-57.15%)
:arrow_down:

...roblems-frontend/src/components/DropdownSelect.tsx
34.61% <0%> (-50%)
:arrow_down:

...oder-problems-frontend/src/components/Category.tsx
55.26% <0%> (-44.74%)
:arrow_down:

atcoder-problems-frontend/src/components/List.tsx
24.79% <0%> (-43.81%)
:arrow_down:

...s-frontend/src/components/RatedPointCountTable.tsx
62.5% <0%> (-34.38%)
:arrow_down:

...ems-frontend/src/components/CategorySmallBlock.tsx
66.66% <0%> (-33.34%)
:arrow_down:

...oder-problems-frontend/src/utils/HtmlFormatter.tsx
83.33% <0%> (-16.67%)
:arrow_down:

...roblems-frontend/src/components/LanguageOwners.tsx
80.95% <0%> (-14.29%)
:arrow_down:

... and 5 more

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 53f552f...a829712. Read the comment docs.


Failing at make build on Windows

Describe the bug

I'm trying to run make build in order to install the project but I'm encountering an error
Setup and configuration
Windows 10 with WSL, Python 3.11.8, Node.js 20.12.1, Docker Desktop 4.28.0.
Current version:

commit dcaf51bc9e09ae02c5719aea7f9232d7c6dd2c9e (HEAD -> main, origin/main, origin/HEAD)
Author: iFurySt<EMAIL_ADDRESS>Date:   Fri Apr 5 11:21:17 2024 +0800

    fix: add the community-maintained model list (#654)

My config.toml and environment vars (be sure to redact API keys):
LLM_API_KEY="<YOUR OPENAI API KEY>"
WORKSPACE_DIR="./workspace"

My model and agent (you can see these settings in the UI):

Model:
Agent:

Commands I ran to install and run OpenDevin:
make build

Steps to Reproduce:

Building the project
Installing dependencies
Setting up OpenDevin

Logs, error messages, and screenshots:
"Building project..."
"Pulling Docker image..."
Using default tag: latest
latest: Pulling from opendevin/sandbox
Digest: sha256:486e3da1d7c8ec54a2e3269071eed9b91bc75b82ca5d1ac1760d33883c39e575
Status: Image is up to date for ghcr.io/opendevin/sandbox:latest
ghcr.io/opendevin/sandbox:latest
What's Next?

Sign in to your Docker account → docker login
View a summary of image vulnerabilities and recommendations → docker scout quickview ghcr.io/opendevin/sandbox
"Installing Python dependencies..."
curl: (23) Failure writing output to destination
make: *** [Makefile:19: build] Error 9009

Additional Context
I also tried to install poetry with pipx but it seems to fail on curl command

Describe the bug
I'm trying to run make build in order to install the project but I'm encountering an error
Setup and configuration
Windows 10 with WSL, Python 3.11.8, Node.js 20.12.1, Docker Desktop 4.28.0. Current version:
commit dcaf51bc9e09ae02c5719aea7f9232d7c6dd2c9e (HEAD -> main, origin/main, origin/HEAD)
Author: iFurySt<EMAIL_ADDRESS>Date:   Fri Apr 5 11:21:17 2024 +0800

    fix: add the community-maintained model list (#654)

My config.toml and environment vars (be sure to redact API keys):
LLM_API_KEY="<YOUR OPENAI API KEY>"
WORKSPACE_DIR="./workspace"

My model and agent (you can see these settings in the UI):
* Model:

* Agent:

Commands I ran to install and run OpenDevin:
make build

Steps to Reproduce:
1. Building the project

2. Installing dependencies

3. Setting up OpenDevin

Logs, error messages, and screenshots:
"Building project..." "Pulling Docker image..." Using default tag: latest latest: Pulling from opendevin/sandbox Digest: sha256:486e3da1d7c8ec54a2e3269071eed9b91bc75b82ca5d1ac1760d33883c39e575 Status: Image is up to date for ghcr.io/opendevin/sandbox:latest ghcr.io/opendevin/sandbox:latest
What's Next?
1. Sign in to your Docker account → docker login

2. View a summary of image vulnerabilities and recommendations → docker scout quickview ghcr.io/opendevin/sandbox
   "Installing Python dependencies..."
   curl: (23) Failure writing output to destination
   make: *** [Makefile:19: build] Error 9009

Additional Context
I also tried to install poetry with pipx but it seems to fail on curl command

I don't think you posted the error.

I think I have perimissions but sudo isn't available on Windows. Tried also to run it as admin but can't build it..

I think I have perimissions but sudo isn't available on Windows. Tried also to run it as admin but can't build it..

Did you followed the readme https://github.com/OpenDevin/OpenDevin/blob/main/README.md

I managed to get make run to work but now: Installing the current project: opendevin (0.1.0)
"Activating Poetry shell..."
"Installing pre-commit hooks..."
pre-commit installed at .git\hooks\pre-commit
"Setting up frontend environment..."
"Detect Node.js version..."
Current Node.js version is 20.12.1, corepack is supported.
-f non atteso.
make: *** [Makefile:27: build] Error255
@foragerr

Seems you open a new issue here #771. Close this one.