test_inet_01 test case is failing on my setup

test_inet_01.py.log

2019-02-26 09:13:28,873 [WeaveInet] [localhost] WeaveInet: Could not find IP address of the receiver node, 01-WifiNode-Rx
E
ERROR: test_weave_inet (main.test_weave_inet_01)
Traceback (most recent call last):
File "/usr/local/google/home/jexie/github/openweave-core/src/test-apps/happy/tests/standalone/inet/test_inet_01.py", line 158, in test_weave_inet
value, data = self.__run_inet_test_between(self.sender, self.receiver, interface, network, transport, prefix, tx_size, rx_tx_length)
File "/usr/local/google/home/jexie/github/openweave-core/src/test-apps/happy/tests/standalone/inet/test_inet_01.py", line 195, in __run_inet_test_between
ret = weave_inet.run()
File "/usr/local/google/home/jexie/github/openweave-core/src/test-apps/happy/test-templates/WeaveInet.py", line 371, in run
self.__pre_check()
File "/usr/local/google/home/jexie/github/openweave-core/src/test-apps/happy/test-templates/WeaveInet.py", line 173, in __pre_check
self.__log_error_and_exit(emsg)
File "/usr/local/google/home/jexie/github/openweave-core/src/test-apps/happy/test-templates/WeaveInet.py", line 102, in __log_error_and_exit
sys.exit(1)
SystemExit: 1

Ran 1 test in 27.435s


[Bug?] The Dirt slimes (Khndrel Keght) 1.8.9

I play on 1.8.9 i know it might not be full done but there is bug with it that it spawns even after breaking with shovel. (I have feels its higher with better shovel you dig it) And with Thaumcraft shovel i get up to 4 slimes from 3x3 hole thats so much.

Thanks for the report.
It seems the logic has been reversed somehow during the port, so they only spawn when you are using a shovel. Will be fixed soon.

New version fixing this issue is now available on curse


clicking on notification branch takes me to 404 page

Are you still facing the same issue? I am not able to reproduce this.

Hello @ameyarangal ,
No, I am not facing this issue anymore. I will be closing this issue now, Thanks.


Calendar Input not static to iframe

Screenshots

Version
using this version - https://cdn.botframework.com/botframework-webchat/latest/webchat-es5.js
embedding into the website using iframe

"
Describe the bug
In browser like Chrome/Edge the calender input and drop down is not static to iframe it changes its position when we scroll the main outer webpage please see the attached gif for better understanding.
same goes with dropdown too.
Steps to reproduce
1.embed webchat into a page with scroll bar
2.click calender input adaptive card.
3.scroll the main website up/down
4.click the calender input the dropdown will be not where it was earlier.
Expected behavior
dropdown should be static to the iframe selection
Additional context
in firefox it works as expected
[Bug]

@compulim Can you take a look at this please?

@compulim Did you get a chance to look at this?

@stevkan could you take a look at this issue? Thanks.

@ninggao, can you list which version of Web Chat you are using? And, could you post the code you use for creating the adaptive card you send? I will try and repro without, but I generally like to use the actual code when and where I can.

^Webchat version
also adaptive card is simple with datepicker and drop down

@droidriz, thank you for your patience. Unfortunately, I am unable to reproduce the issue you have described. I have placed an iframe into a hosting page. The iframe source is a separate HTML document housing the Web Chat instance. With every click of the calendar drop down and/or scroll of the main page or iframe, the calendar always appears positioned correctly.
Can you include the CSS you are using in both the Web Chat page as well as the page containing the iframe? My guess is some custom CSS you have implemented is interfering with how the calendar would normally appear.

Closing due to no activity, please reactivate if follow up is needed.


Implement IEC 61853 module temperature model

[ ] Closes #750
[x] I am familiar with the contributing guidelines
[ ] Tests added
[ ] Updates entries to docs/sphinx/source/api.rst for API changes.
[ ] Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
[ ] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
[ ] Pull request is nearly complete and ready for detailed review.
[ ] Maintainer: Appropriate GitHub Labels and Milestone are assigned to the Pull Request and linked Issue.

A quick first look at the function signature and 6 lines of code would be helpful before I flesh out the tests.

Thanks for this.  The signature looks fine to me. Maybe U0=25.0 and U1=6.84 as defaults, those values appear in Faiman's paper from measured temperature for 7 silicon modules.  I didn't see any default values in the 2016 version of IEC61853-2.
Maybe combine a few of the calculation lines, a style preference more than anything else.

Maybe combine a few of the calculation lines, a style preference more than anything else.

Not really my usual style either, but it's intended to help people understand the model.

Ok, ready for full review.

One note, the thermal coefficients are called u0, and u1 in the signature but u_c and u_v in the docstring.

@adriesse I fixed the merge conflict in whatsnew.

Maybe combine a few of the calculation lines, a style preference more than anything else.

Not really my usual style either, but it's intended to help people understand the model, in particular the difference with the PVsyst model.

I really appreciate when math functions are coded like this by breaking out sections of the equation and providing a descriptive variable name for each section and cleanly arranging the pieces afterward. It strikes me as very Pythonic in that it creates more readable code and is therefore more easily debugged all while educating the reader and being computationally functional. A win-win-win in my opinion.

Thanks @adriesse!

Thanks @all!


Consul: replace custom HTTP script check with built-in http/tcp check

With updated Consul we can now use built-in http and tcp checks, see https://www.consul.io/docs/agent/checks.html. While certainly using custom "pings" is not wrong it is customization that should and could be avoided.
Example of HTTP check:
{
  "check": {
    "id": "api",
    "name": "HTTP API on port 5000",
    "http": "http://localhost:5000/health",
    "interval": "10s"
  }
}

Below are images with HTTP check. Perhaps we could just do http://localhost/ as that typically out of the box works?

alpine-consul-apache
alpine-consul-nginx
user-consul-nginx-nodejs nginx and user-consul-nginx-nodejs node

@matthewvalimaki, great suggestion. I was upgrading alpine-consul-apache so I thought I'd put this in as I go.
That works fine, however, can you please review https://github.com/smebberson/docker-alpine/blob/alpine-consul-apache-upgrade/alpine-consul-apache/Dockerfile#L7. Note the additional requirement of having to mkdir -p /run/apache2. This wasn't a requirement previously, but without it Apache fails to load with:
[Tue Apr 12 21:45:26.244458 2016] [core:error] [pid 794] (2)No such file or directory: AH00099: could not create /run/apache2/httpd.pid
[Tue Apr 12 21:45:26.244493 2016] [core:error] [pid 794] AH00100: httpd: could not log pid to file /run/apache2/httpd.pid

I'm not sure how the requirement was introduced? Are you happy for that mkdir to be there?

@matthewvalimaki, are you still keen on working with docker-alpine or have you moved on to something else? I would still very much like your participation.
I went to update alpine-consul-ui to turn it into more of an example of how to run the UI now that it is integrated into the consul binary more than anything. And I've actually run into problems. The nodes aren't leaving properly anymore, so I'm working on resolving that. It might seem quiet, but I've been busily working on it.

@smebberson I'm still here but got busy with other things. Let me get up to speed.
The /run/apache2 problem is really strange indeed. Apache does not create it automatically and I'm not sure if that is the expectation. In comparison to Nginx the build and init scripts seem similar. Only difference between Apache for 3.2 and 3.3 is in that default run dir is removed, check these out:
http://git.alpinelinux.org/cgit/aports/tree/main/apache2/APKBUILD?h=3.2-stable and http://git.alpinelinux.org/cgit/aports/tree/main/apache2/APKBUILD#n143. I tried edge version of Apache with same broken results.
Adding mkdir -p /run/apache2 is acceptable but it bugs me :) Probably should reach out to maintainers of this package and ask what is wrong.

@matthewvalimaki, I'm closing this out. Everything looks to be fine with latest round of updates.


Flycheck warnings doesn't work after update

I'm using Intero on Spacemacs, and a few days ago I did an upgrade on some of my emacs packages (I do
this daily). I guess after some change I stopped receiving flycheck warnings from Intero.
At first I thought this was about me having a custom prelude file named Prelude.hs at the same path with the file I'm working with (I was getting this error before, but it was working alright). I noticed that this error is coming from flycheck-haskell so also created an issue there.
After that I renamed my prelude file to a different name and stopped getting the errors mentioned in the issue above.
But still I'm not getting any flycheck highlights in the buffer. ie. renaming MonadIO to MonadIOt doesn't highlight that part in the code, the only way for me to see this error is via manually building the project and looking at the errors, another indicator is the type-signatures that are displayed at the bottom (when we place the cursor on an expression) stops showing (if we save the buffer)

For now, revert
this commit and recompile the file.

@concavegit yup! that did the trick. thanks!

Same error here.

had quite a few problems with this (no errors shown, no warnings/hlint shown, ...) - for me deinstalling intero and then installing the 1.20.xxx version from melpa-staple fixed it again

Reverted!


Process leak on Websocket server

I am seeing that new defunct process's left behind on the server, after the client stops the connection via a KeyBoard interrupt. It's also coupled with the following error logs on the server. Wondering if there is something wrong?
Server error logs:
server - event = eof_received()
[websockets.protocol]: server - event = eof_received()
server ! failing OPEN WebSocket connection with code 1006
[websockets.protocol]: server ! failing OPEN WebSocket connection with code 1006
server - event = connection_lost(None)
[websockets.protocol]: server - event = connection_lost(None)
server - state = CLOSED
[websockets.protocol]: server - state = CLOSED
server x code = 1006, reason = [no reason]
[websockets.protocol]: server x code = 1006, reason = [no reason]
server x half-closing TCP connection
[websockets.protocol]: server x half-closing TCP connection

[asyncio]: Task was destroyed but it is pending!
task: <Task pending name='Task-4' coro=<WebSocketServerProtocol.handler() running at /home/root/herbie/ivy_development_tool-1.0/ivy-development-tool/lib/python3.9/site-packages/websockets/server.py:199> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f87c69e20>()]>>
[asyncio]: Task was destroyed but it is pending!
task: <Task pending name='Task-9' coro=<WebSocketCommonProtocol.write_close_frame() running at /home/root/herbie/ivy_development_tool-1.0/ivy-development-tool/lib/python3.9/site-packages/websockets/protocol.py:1085> cb=[_release_waiter(<Future pendi...f87c69e20>()]>)() at /usr/lib/python3.9/asyncio/tasks.py:416]>
sys:1: RuntimeWarning: coroutine 'WebSocketCommonProtocol.write_close_frame' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

Server code:
class Server:
    _host: str
    _port: int
    _websocket: websockets.WebSocketServerProtocol
    _plugins: DaemonPlugins
    _loop: asyncio.AbstractEventLoop
    _stop: asyncio.Future[None]

    def __init__(self, host: str, port: int):
        self._host = host
        self._port = port

    def init_server(self) -> websockets.serve:
        return websockets.serve(
            self._serve,
            self._host,
            self._port,
            max_size=None,  # type: ignore[arg-type]
            ping_timeout=None,  # type: ignore[arg-type]
            compression=None,
        )

    def run(self) -> None:
        self._loop = asyncio.events.new_event_loop()

        asyncio.events.set_event_loop(self._loop)
        self._stop: asyncio.Future[None] = self._loop.create_future()
        try:
            self._loop.run_until_complete(self.init_server())
            self._loop.run_forever()
        finally:
            self._loop.close()

    async def _serve(self, socket: websockets.WebSocketServerProtocol, path: str) -> None:
        while True:
            try:
                self._websocket = socket
                msg: typing.Union[str, bytes] = await self._websocket.recv()
            except Exception as e:
                if self._websocket:
                    await self._websocket.close()
                    await self._websocket.wait_closed()
                break
            finally:
                _logger.info(f"Exiting")

Client side code. The receiver is kept open in order to continuously receive messages.
class WebSocketClient:
    _websocket: websockets.WebSocketServerProtocol
    _event_loop: asyncio.AbstractEventLoop

    def my_handler(self):
        if self._websocket:
            self._websocket.close()

    async def run(self, data: bytes, receive: bool,
                  callback: typing.Optional[progress_callback] = None
                  ):

        self._event_loop = asyncio.events.new_event_loop()
        asyncio.events.set_event_loop(self._event_loop)

        try:

            for sig in (signal.SIGINT, signal.SIGTERM):
                self._event_loop.add_signal_handler(sig, self.my_handler)

            send_receive_task = asyncio.create_task(
                self._connect_send_receive_until_complete(data, receive, callback))
            done, pending = await asyncio.wait(
                [send_receive_task],
                return_when=asyncio.FIRST_COMPLETED,
            )
            for task in pending:
                task.cancel()
        except Exception as e:
            print(f'Exception occured {e}')

        finally:
            self._event_loop.close()

    async def _connect_send_receive_until_complete(self,
                                                   data: bytes, receive: bool,
                                                   callback: typing.Optional[
                                                       progress_callback] = None
                                                   ) -> None:
        await self.connect()
        await self.sendMessage(data, callback)
        if receive: // Keep running in while True to continously receive updates from Server
            while True:
                try:
                    await self.receiveMessage()
                except Exception as e:
                    print(f'Received exception {e}')
                    break

    async def connect(self):
        uri: str = _get_uri()
        _logger.debug(f"Connecting to {uri}")
        max_size: int = typing.cast(int, None)
        self._websocket = await websockets.connect(
            uri, max_size=max_size, ping_timeout=300, compression=None, ping_interval=None
        )

    async def sendMessage(self, data: bytes, callback: typing.Optional[progress_callback] = None):
        if callback:
            callback(0, CHUNK_SIZE_BYTES, len(data))
        fragmented_data = _get_fragmented_data(data, callback)
        await self._websocket.send(fragmented_data)

    async def receiveMessage(self):
        message = await self._websocket.recv()

You don't get a clean shutdown because you don't close the server.
Indeed:

You start a server (the WebSocketServer object returned by serve).
You assign each connection alternatively to self._websocket — it points to the connection that received a message most recently, among all connections — this is a weird pattern.
When the script is interrupted, you close only the connection that received a message most recently; you don't close the server.

Please read the documentation carefully and do some debugging before filing issues.
The purpose of this tracker is to improve websockets, not to ask others to do the work that Cisco is paying you for.


iPad landscape: Tapping "More Game Actions" shows warning "Snapshotting a view [...]" in debug output

On an iPad in landscape orientation, when I tap the "More Game Actions" button the following warning is displayed in Xcode's debug output

Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.

The warning is printed as soon as MoreGameActionsController presents the UIAlertController. The warning is not printed if the iPad is in portrait orientation.
Currently tested in simulator only. The warning is printed on iOS 9.3, but not on iOS 8.4.

The UIAlertController is presented with the following code:
  [...]

  [self.modalMaster presentViewController:alertController animated:YES completion:nil];

  if (alertController.popoverPresentationController)
  {
    alertController.popoverPresentationController.sourceView = view;
    alertController.popoverPresentationController.sourceRect = rect;
  }

Notes:

self.modalMaster is the presenting view controller (WindowRootViewController)
view is the UIView that displays the "More Game Actions" button. The popover that displays the alert is supposed to anchor itself to this view.
rect is the bounds of view. The popover that displays the alert is supposed to anchor itself to this rect.

I have attempted to fix the warning by configuring the popover presentation controller directly with the UIBarButtonItem that represents the "More Game Actions" button, like this, but without success:
alertController.popoverPresentationController.barButtonItem = barButtonItem;

The warning does go away if I use a completely unrelated view, such as this:
WindowRootViewController* windowRootViewController =
    (WindowRootViewController*)self.modalMaster;
alertController.popoverPresentationController.sourceView =
    windowRootViewController.mainApplicationViewController.view;

Research indicates that this is a known bug - although not acknowledged by Apple - in iOS 8 and also iOS 9. This SO question is the most popular search result that I could find, but none of the proposed solutions really works for me.
The best answer is this one: It suggests that referencing the view property of UIAlertController before presenting the controller causes the view to load and allows iOS render it before taking the snapshot. In my case, this reduces the number of times that the warning is issued from 8 times to just a single time - but it is still there. But at least this shows that the problem is connected to the UIAlertController view, not the UIBarButtonItem view as I had first suspected.

Cannot be reproduced with iOS 14.3 SDK on any iPad simulators ranging from iOS 11.4 to 14.3. I no longer have access to iOS 9 and iOS 10 simulators.
The issue seems to be obsolete with modern iOS versions, so closing this issue.


Can I add setHeaders method?

I need control the headers when the formData is parsing. But I cannot find the method in busboy resource code.
The code like this and overwirte the headers if some context is needed
Busboy.prototype.setHeaders = function (extraHeaders){
  if(typeof extraHeaders !== 'object'){
    throw new Error('invalid type');
  }
  for(var i in extraHeaders){
    if(this.opts.headers[i] && extraHeaders[i]){
      this.opts.headers[i] = extraHeaders[i];
    }
  }
  this.parseHeaders(this.opts.headers)
};

I don't understand the need for this. Why do you need to mutate it during parsing?

I had solved the problem. It doesn't matter with busboy.  Thanks all the same.


Print offending query or file when there's a PostgreSQL exception

When you get org.postgresql.util.PSQLException, there's a stack trace with something like:
java.util.concurrent.ExecutionException: org.apache.baremaps.workflow.WorkflowException: org.apache.baremaps.workflow.WorkflowException: org.apache.baremaps.workflow.WorkflowException: org.postgresql.util.PSQLException: ERROR: column "name" does not exist

However there's no indication of which file or sql statement caused this exception.
I believe in v0.7.1, it would tell you which sql statement was just executed. In the v0.7.2-rc, it doesn't tell you which sql statement.
I'm running import with the log level set to debug and can't track down the offending sql.
It would be helpful to include more debugging information here to be developer friendly.

Thanks a lot for reporting this, we should definitely log the exception.


openvino with UHD Graphics 600 error "GPU program build failed!"

Describe the bug
Using a Celeron J4125 I am trying to run OpenVINO, but get
[Step 7/11] Loading the model to the device
[ ERROR ] Check 'false' failed at src/inference/src/core.cpp:114:
Check 'false' failed at src/plugins/intel_gpu/src/plugin/program.cpp:384:
GPU program build failed!
[GPU] clWaitForEvents, error code: -14

Steps To Reproduce
Steps to reproduce the behavior:

nix-shell -p 'python310.withPackages(ps: with ps; [ openvino opencv4])' opencv2 pciutils
git clone https://github.com/openvinotoolkit/openvino/ && cd openvino
python tools/benchmark_tool/benchmark_app.py -m rc/bindings/python/tests/test_utils/utils/test_model_fp32.xml   -d GPU

(It also fails using ssdlite_mobilenet_v2.xml  from the frigate NVR package which is the one I really want to use, so I don't think this is a model-specific problem. I'm no expert though)
Expected behavior
Good question. I expected it not to fail with an error message, but I don't know what correct behaviour looks like. I'd like frigate to work, but it fails with  the same error messages, so I hope that this is a smaller test case
Additional context
configuration.nix has
  hardware.opengl = {
    # needed for frigate to use hw accel in ffmpeg
    enable = true; driSupport = true;
    extraPackages = with pkgs; [
      intel-media-driver
      intel-compute-runtime
      ocl-icd
    ];
  };

clinfo works:
NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel(R) OpenCL Graphics
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [INTEL]
  clCreateContext(NULL, ...) [default]            Success [INTEL]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 Intel(R) OpenCL Graphics
    Device Name                                   Intel(R) UHD Graphics 600
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 Intel(R) OpenCL Graphics
    Device Name                                   Intel(R) UHD Graphics 600
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 Intel(R) OpenCL Graphics
    Device Name                                   Intel(R) UHD Graphics 600

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.3.2
  ICD loader Profile                              OpenCL 3.0

If I set LD_DEBUG=libs I can see quite voluminous output which includes several fatal lines. I don't know if these are relevant ...
[nix-shell:~/src/openvino]$ LD_DEBUG=libs python tools/benchmark_tool/benchmark_app.py -m  /etc/nixos/openvino/ssdlite_mobilenet_v2.xml  -d GPU  2>&1 |grep fatal
     51110:     /nix/store/9c03r86hcdn43dm3hsgjirifvyzfkhwh-python3-3.10.12/bin/python: error: symbol lookup error: undefined symbol: kmp_set_thread_affinity_mask_initial (fatal)
     51110:     /nix/store/syx6gbglc3s41nw08g0g72233h6aima4-openvino-2023.0.0/runtime/lib/intel64/libopenvino_intel_gpu_plugin.so: error: symbol lookup error: undefined symbol: CreateExtensionShared (fatal)
     51110:     /nix/store/syx6gbglc3s41nw08g0g72233h6aima4-openvino-2023.0.0/runtime/lib/intel64/libopenvino_intel_gpu_plugin.so: error: symbol lookup error: undefined symbol: CreateExtension (fatal)
     51110:     /nix/store/syx6gbglc3s41nw08g0g72233h6aima4-openvino-2023.0.0/runtime/lib/intel64/libopenvino_auto_batch_plugin.so: error: symbol lookup error: undefined symbol: CreateExtensionShared (fatal)
     51110:     /nix/store/syx6gbglc3s41nw08g0g72233h6aima4-openvino-2023.0.0/runtime/lib/intel64/libopenvino_auto_batch_plugin.so: error: symbol lookup error: undefined symbol: CreateExtension (fatal)
     51110:     /nix/store/9c03r86hcdn43dm3hsgjirifvyzfkhwh-python3-3.10.12/bin/python: error: symbol lookup error: undefined symbol: scalable_malloc (fatal)

Notify maintainers
@tfmoraes
From git history: @mweinelt @superherointj
Metadata
[nix-shell:~/src/openvino]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.4.4, NixOS, 23.11 (Tapir), 23.11pre506474.12303c652b8`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.15.1`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Works with the discrete Intel GPU I have access to:

03:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A380] (rev 05)

$ python tools/benchmark_tool/benchmark_app.py -m src/bindings/python/tests/test_utils/u
tils/test_model_fp32.xml -d GPU
[Step 1/11] Parsing and validating input arguments
[ INFO ] Parsing input parameters
[Step 2/11] Loading OpenVINO Runtime
[ INFO ] OpenVINO:
[ INFO ] Build ................................. 2023.0.0-000--
[ INFO ]
[ INFO ] Device info:
[ INFO ] GPU
[ INFO ] Build ................................. 2023.0.0-000--
[ INFO ]
[ INFO ]
[Step 3/11] Setting device configuration
[ WARNING ] Performance hint was not explicitly specified in command line. Device(GPU) performance hint will be set to PerformanceMode.THROUGHPUT.
[Step 4/11] Reading model files
[ INFO ] Loading model files
[ INFO ] Read model took 2.42 ms
[ INFO ] Original model I/O parameters:
[ INFO ] Model inputs:
[ INFO ]     data (node: data) : f32 / [...] / [1,3,32,32]
[ INFO ] Model outputs:
[ INFO ]     fc_out (node: fc_out) : f32 / [...] / [1,10]
[Step 5/11] Resizing model to match image sizes and given batch
[ INFO ] Model batch size: 1
[Step 6/11] Configuring input of the model
[ INFO ] Model inputs:
[ INFO ]     data (node: data) : u8 / [N,C,H,W] / [1,3,32,32]
[ INFO ] Model outputs:
[ INFO ]     fc_out (node: fc_out) : f32 / [...] / [1,10]
[Step 7/11] Loading the model to the device
[ INFO ] Compile model took 1355.77 ms
[Step 8/11] Querying optimal runtime parameters
[ INFO ] Model:
[ INFO ]   OPTIMAL_NUMBER_OF_INFER_REQUESTS: 1024
[ INFO ]   NETWORK_NAME: test_model
[ INFO ]   EXECUTION_DEVICES: ['GPU.0']
[ INFO ]   AUTO_BATCH_TIMEOUT: 1000
[ INFO ]   LOADED_FROM_CACHE: False
[Step 9/11] Creating infer requests and preparing input tensors
[ WARNING ] No input files were given for input 'data'!. This input will be filled with random values!
[ INFO ] Fill input 'data' with random values
[Step 10/11] Measuring performance (Start inference asynchronously, 1024 inference requests, limits: 60000 ms duration)
[ INFO ] Benchmarking in inference only mode (inputs filling are not included in measurement loop).
[ INFO ] First inference took 614.32 ms
[Step 11/11] Dumping statistics report
[ INFO ] Execution Devices:['GPU.0']
[ INFO ] Count:            7646208 iterations
[ INFO ] Duration:         60012.08 ms
[ INFO ] Latency:
[ INFO ]    Median:        7.30 ms
[ INFO ]    Average:       6.93 ms
[ INFO ]    Min:           3.02 ms
[ INFO ]    Max:           14.47 ms
[ INFO ] Throughput:   127411.15 FPS

I have J4125 too with the same problem
[Step 7/11] Loading the model to the device
[ ERROR ] Exception from src/inference/src/core.cpp:99:
[ GENERAL_ERROR ] Check 'false' failed at src/plugins/intel_gpu/src/plugin/program_builder.cpp:179:
[GPU] ProgramBuilder build failed!
[GPU] clWaitForEvents, error code: -14

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/openvino/tools/benchmark/main.py", line 408, in main
    compiled_model = benchmark.core.compile_model(model, benchmark.device, device_config)
  File "/usr/local/lib/python3.9/dist-packages/openvino/runtime/ie_api.py", line 547, in compile_model
    super().compile_model(model, device_name, {} if config is None else config),
RuntimeError: Exception from src/inference/src/core.cpp:99:
[ GENERAL_ERROR ] Check 'false' failed at src/plugins/intel_gpu/src/plugin/program_builder.cpp:179:
[GPU] ProgramBuilder build failed!
[GPU] clWaitForEvents, error code: -14

I wouldn't be surprised if this was a limitation on GPU inference on that model.
Even though Intel claims to support basically everying from a 6th gen CPU. https://www.intel.com/content/www/us/en/developer/tools/openvino-toolkit/system-requirements.html#tab-blade-1-1

I'm having the same "[GPU] clWaitForEvents, error code: -14" issue using the GPU on an N4020 with UHD graphics running openvino 2024.2 on Ubuntu 22.04.
Funny thing is, this system was running Ubuntu 20.04 and openvino 2021.3 and the GPU worked fine.


Imporper Input Validation

Poison Null Byte
Admin Registration

'This actually fixes the role assignment issue, by overriding any value pre-set via the POST request with a static "customer" default role.'


ValueError : Cannot create group in read only mode.

Hi @mtobeiyf ,
While using my own trained model, I am facing this issue:
runfile('C:/Users/Singhkri/Videos/keras-flask-deploy-webapp-master/app.py', wdir='C:/Users/Singhkri/Videos/keras-flask-deploy-webapp-master')
Using TensorFlow backend.
Traceback (most recent call last):
File "", line 1, in
runfile('C:/Users/Singhkri/Videos/keras-flask-deploy-webapp-master/app.py', wdir='C:/Users/Singhkri/Videos/keras-flask-deploy-webapp-master')
File "C:\Users\Singhkri\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "C:\Users\Singhkri\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/Singhkri/Videos/keras-flask-deploy-webapp-master/app.py", line 17, in
model = load_model('models/model.h5')
File "C:\Users\Singhkri\AppData\Local\Continuum\anaconda3\lib\site-packages\keras\engine\saving.py", line 419, in load_model
model = _deserialize_model(f, custom_objects, compile)
File "C:\Users\Singhkri\AppData\Local\Continuum\anaconda3\lib\site-packages\keras\engine\saving.py", line 221, in _deserialize_model
model_config = f['model_config']
File "C:\Users\Singhkri\AppData\Local\Continuum\anaconda3\lib\site-packages\keras\utils\io_utils.py", line 302, in getitem
raise ValueError('Cannot create group in read only mode.')
ValueError: Cannot create group in read only mode.
It would be helpful if you can help in sorting out this.

You need to define your model first before loading the weights, because your 'h5' file does not include the definition of your model.
See https://stackoverflow.com/a/53214077


No difference in speedup between configs

Environment info

adapter-transformers version: 3.1.0
Platform: Linux-3.10.0-1062.12.1.el7.x86_64-x86_64-with-glibc2.27
Python version: 3.9.12
Huggingface_hub version: 0.7.0
PyTorch version (GPU?): 1.11.0 (True)

Details
I don't seem to be achieving much speedup with adapters thus far and I'm unsure what it is that I'm doing wrong. I upgraded to 3.1.0 and I've tried using the IA3Config which trains a fraction of the parameters than the PfeifferConfig. To my surprise, it's still taking me 10 minutes or so per epoch on 25,000 samples which is roughly the same time as the PfeifferConfig.
For my model, I use a custom BERT head with an additional layer and some modifications (just things like mean pooling etc, nothing particularly intensive) and I follow the Colab notebook in setting up the following:
bert = transformers.BertModel.from_pretrained("bert-base-cased", add_pooling_layer=False)

for p in bert.parameters():
    p.requires_grad = False

model = BertClassificationHead(bert=bert, pooling="mean")

config = transformers.adapters.IA3Config()
model.bert.add_adapter("ia3_adapter", config=config)
model.bert.train_adapter("ia3_adapter")
model = model.to(device)

Am I misunderstanding the parameter efficiency aspect w.r.t adapters in general or am I implementing something incorrectly?

This issue has been automatically marked as stale because it has been without activity for 90 days. This issue will be closed in 14 days unless you comment or remove the stale label.

This issue was closed because it was stale for 14 days without any activity.


Rosetta: accounts requiring special handling

Some addresses are special cases, and Rosetta CLI checks return errors as they are being treated as ordinary accounts.
0x8624b52f9ddcd04a - address of the FlowIDTableStaking contract. Balance for this account is constant, while Rosetta CLIs internal accounting will detect its balance as going negative at some point in time. (See #353)
0x87f3f233f34b0733 - To be investigated, but looking like some FUSD-related contract

@Maelkum should check with https://github.com/joshuahannan about this, he is the lord of smart contracts for the Flow team.


Compatibility with FoxGame / SuperOgame addons

Check the HTML code of the game for compatibility with major popular addons and custom scripts like InfoCompte.

[x] FoxGame 1.5.1
[x] SuperOGame 1.7.0
[x] InfoCompte

SuperOGame is quite good, but for some reason it doesn't display the time in the event list. Everything else seems to be working.
Well, at least it is alive.

FoxGame is installed in Firefox 7.0, but setting URLs other than official ones is not provided, you need to finalize the extension.

InfoCompte seems to work, but the Google Charts API doesn't work, so no picture of the pie.

Bottom line: The main addons are compatible, but require some tweaks:

Manually specify the retroserver address instead of predefined by the GF server
Manual language selection (since our retroserver is multi-language)
Fix obsolete functionality, e.g. non-working Google Chart API
Specifically FoxGame would be difficult to port as a modern extension, as it uses XUL there

All these tweaks will be done when the mood strikes, in other issues.


Update read_gtf.py

fix palars error

https://github.com/openvax/gtfparse/pull/34

https://github.com/openvax/gtfparse/pull/35

polars also change toggle_string_cache(True) to enable_string_cache(True). Can you please change it and update the conda version?

thanks for this @y9c, I applied this patch by hand (as well as the string cache thing that @hsn-ylmz mentioned) and it fixed my issues.

Hi @hsn-ylmz. Thank you for your suggestion. I have updated accordingly. Could you help review and merge this patch?

@iskandr gtfparse has been broken for polars>v.016.x Polars is currently at v0.19.19. Any change of these patches being implemented soon?

There is also some bugs in the current release. For example, if there is a ";" in the attribute of the record, gtfparse can not parse the file in the correct way.

Sorry I was missing these notifications and leaving this broken, I'll take a look today.

Fixed by https://github.com/openvax/gtfparse/pull/42 -- sorry I left this hanging for so long.


Updating Russian translation in symbol-mobile-wallet

I want to start updating the translation for the Russian language ...
I understand this is the right way?
symbol-mobile-wallet/src/locales/translations/ru.json

There are some minor typos in the text
Example:

"title": "Добро пожаловать\nв Symbol",

"title": "Добро пожаловать\nв Symbol",


Support flat config (eslint.config.js)

See https://eslint.org/docs/latest/use/configure/configuration-files-new

I'm still wondering how best practice is to export a new shareable configuration 🤔
I would like to export using the same method as the popular eslint-plugin, but I don't know what it is yet.
Otherwise, I can think of the following method:

Use configs.recommended namespace.
plugin.configs.recommended is reserved for legacy configurations.
I don't want to change it for backwards compatibility.
Use a new namespace.
I don't want to use names like plugin.flatConfigs.recommended, and plugin.configs.flatRecommended. "Flat" quickly becomes meaningless.
Also, I think it is difficult to understand the difference between config and configs.
I'm not sure what namespace to use instead that would be easier for people to use.
Use new *.js file.
e.g. import { recommended } from 'eslint-plugin-regexp/configs'.
Make plugin.configs an object-like function with properties.
e.g. plugin.configs('recommended').

Thank you for sharing the discussion! I will check it.

Note: @typescript-eslint is using a new package because we have both the plugin and the parser.
The advice from upstream is the breaking change approach - though I don't like it, personally as it's making second class citizens of users not on flat configs.
There's no specific reason that you need to make it available on the .config export of your package. You could also do it as a different exported name, or a separate path (eslint-plugin-regexp/config).

Unicorn didn't use /config because this requires exports to be added in package.json, since it should support both import and require.


Visual fails to load DataView: Repeated Indices found in GroupBy or Projections

Reported in the forum https://speckle.community/t/3d-viewer-visual-doesnt-color-by-parameter/3773/35
Seems like there are potential combinations of inputs that will trigger an error while parsing the DataView.
Surely this is based on the new matrix view we've implemented, as it will now try to group things together using PowerBI's logic, there may be some extra setup needed in capabilities.json to allow for this combinations to happen without fail.

This was fixed by a small modification on the data table mapping. Color By input can only be a "grouping" and never a "measure" now.


Fix Moses Tokenizer and Detokenizer

From #1551 , the initial implementation of the Python port of Moses' tokenizer and detokenizer went awry and thus the following fixes:

Fixed by using the appropriate backslashes only at necessary places due to wrong use of escape for special regex characters cause by literal port of Perl's regexes
Corrected several instances of typo in regexes
Using re.search instead of re.match. The behavior in Perl for regex matching is for the whole string but the re.match is anchored to the start of the sting.

Moses expected outputs:
$ echo "This ain't funny. It's actually hillarious, yet double Ls. | [] < > [ ] & You're gonna shake it off? Don't?" | ~/mosesdecoder/scripts/tokenizer/tokenizer.perl
Tokenizer Version 1.1
Language: en
Number of threads: 1
This ain 't funny . It 's actually hillarious , yet double Ls . | [ ] < > [ ] & You 're gonna shake it off ? Don 't ?

$ echo "This ain't funny. It's actually hillarious, yet double Ls. | [] < > [ ] & You're gonna shake it off? Don't?" | ~/mosesdecoder/scripts/tokenizer/tokenizer.perl | ~/mosesdecoder/scripts/tokenizer/detokenizer.perl
Detokenizer Version $Revision: 4134 $
Language: en
Tokenizer Version 1.1
Language: en
Number of threads: 1
This ain't funny. It's actually hillarious, yet double Ls. | [] < > [] & You're gonna shake it off? Don't?

Outputs from this patch (both Py2.7 and Py3.5)
>>> from nltk.tokenize.moses import MosesTokenizer, MosesDetokenizer
>>> t, d = MosesTokenizer(), MosesDetokenizer()
>>> sent = "This ain't funny. It's actually hillarious, yet double Ls. | [] < > [ ] & You're gonna shake it off? Don't?"
>>> expected_tokens = [u'This', u'ain', u''t', u'funny.', u'It', u''s', u'actually', u'hillarious', u',', u'yet', u'double', u'Ls.', u'|', u'[', u']', u'<', u'>', u'[', u']', u'&', u'You', u''re', u'gonna', u'shake', u'it', u'off', u'?', u'Don', u''t', u'?']
>>> expected_detokens = "This ain't funny. It's actually hillarious, yet double Ls. | [] < > [] & You're gonna shake it off? Don't?"
>>> tokens = t.tokenize(sent)
>>> tokens == expected_tokens
True
>>> detokens = d.detokenize(tokens)
>>> " ".join(detokens) == expected_detokens
True

Thanks @alvations


feat: improve monetization docs

Small tweaks in Payouts and QA docs

@TC-MO applied suggestions, can you please re-review?

@TC-MO can you please check the lint errors? They seem unrelated, but can you confirm I can merge this? Thx

They are unrelated to the changes but are found in the file that has been changed. In these cases I'd prefer not to leave any mdlint issues living in docs. This should take care of them.


Fix menu crash when user scroll menu before it complete appear

Fixes #13

@artemSydorenko thanks. merging in.


[GRADLE-3329] Fix long lines of UTF-8 mangled in exec output

Only flush exec output after all the data has been processed. This shouldn't affect line-by-line flushing, as exec outputs are piped through a LineBufferingOutputStream as well.

@lptr this makes sense to me, especially after finding this nearly identical looking code: https://github.com/gradle/gradle/blob/master/subprojects/launcher/src/main/java/org/gradle/launcher/daemon/client/InputForwarder.java#L71-L90
Your test case is failing because it's marked as @NotYetImplemented.

Shit, thanks @big-guy.

Unfortunately this breaks too many things right now, let's close it for the time being.


feat: support default script tag

problem
It will throw a error when i ignore script tag，because of scirpt tag is unnecessary in my markdown docs. like below：

solution
Pull Request：https://github.com/xiguaxigua/vuepress-plugin-demo-block/pull/23

Try this plugin https://github.com/calebman/vuepress-plugin-demo-container?
Good support for examples.

@lq782655835 请教一下你这个 u-input 是怎么引入的


Fix for resolving promise resolving multiple times on interstitials

Fixes issue #61.
I do not know if this change should be propagated in other parts of the code (e.g. banner, videos).

Thanks for your contribution! I've just released this as 4.0.1.


test pr442 on staging

Let me know if any action is needed from me here.

Let me know if any action is needed from me here (apart from the package visibility, which I'm working on).

Just package visibility for this PR to be tested on staging.


Added fstrings

#3 Adding fstrings to replace concatenation.

Since we are using the fstrings now, there's no need to cast the len as a string.
Also, if possible, it would be appreciated if you could branch from development instead of master.


CheckDockerExists

Checks if Docker exists before attempting to install it

Couple of small comments, otherwise LGTM

Should be good now @ehankland


Fix a bug where computed disposition would be misaligned with real disposition.

Foundry v11 stores disposition as a value ranging from -2 for "secret" to +2 for "owned". This is a change from v10 where this value would range from -1 to +3. This PR fixes the way this module understands disposition.

Closing pull request as the scope of the changes to this branch got out of hand. The fix is still valid, but only for v11.


Error for gradient with tensor observables QiskitDevice

Describe the bug
An error is raised when the gradient of a QNode with tensor observables is computed when using the Qiskit device. (Thanks @trbromley for catching this!)
To Reproduce
import pennylane as qml
import numpy as np

n_qubits = 2
depth = 2
noise = 0.1

def ansatz(weights):
    weights = weights.reshape(depth, n_qubits, 3)
    qml.templates.StronglyEntanglingLayers(weights, wires=list(range(n_qubits)))
#     return qml.expval(qml.PauliZ(0))  # The error does NOT occur when using a single qubit observable
    return qml.expval(qml.PauliZ(0) @ qml.PauliZ(1))

from qiskit.providers.aer.noise import NoiseModel
from qiskit.providers.aer.noise.errors.standard_errors import (
    depolarizing_error,
    amplitude_damping_error,
)

noise_model = NoiseModel()
noise_model.add_all_qubit_quantum_error(depolarizing_error(noise, 1), ["u1", "u2", "u3"])

dev_qsk = qml.device(
                "qiskit.aer",
                wires=n_qubits,
                shots=10000,
                noise_model=noise_model,
                backend="qasm_simulator",
            )

weights = np.random.random((depth, n_qubits, 3)).flatten()

exp_sampled = qml.QNode(ansatz, dev_qsk, diff_method="parameter-shift") # Want to get expectation value and gradient
grad_shift = qml.grad(exp_sampled, argnum=0)
print(exp_sampled(weights))
print(grad_shift(weights))

Expected behavior
The gradient is computed without any errors and the correct result is returned.
Screenshots
~/pennylane_qiskit/qiskit_device.py in expval(self, observable, wires, par)
    353
    354         # estimate the ev
--> 355         return np.mean(self.sample(observable, wires, par))
    356
    357     def var(self, observable, wires, par):

~/pennylane_qiskit/qiskit_device.py in sample(self, observable, wires, par)
    404
    405         for w, b in zip(eigvals, itertools.product([0, 1], repeat=len(wires))):
--> 406             samples = np.where(np.all(res == b, axis=1), w, samples)
    407
    408         return samples

<__array_function__ internals> in where(*args, **kwargs)

ValueError: operands could not be broadcast together with shapes (9999,) () (10000,)

qml.about() output
Name: PennyLane
Version: 0.9.0.dev0
Summary: PennyLane is a Python quantum machine learning library by Xanadu Inc.
Home-page: https://github.com/XanaduAI/pennylane
Author: None
Author-email: None
License: Apache License 2.0
Location: /pennylane
Requires: numpy, scipy, networkx, autograd, toml, appdirs, semantic-version
Required-by:
Platform info:           Linux-4.19.11-041911-generic-x86_64-with-debian-buster-sid
Python version:          3.7.6
Numpy version:           1.18.1
Scipy version:           1.3.2
Installed devices:
- qiskit.aer (PennyLane-qiskit-0.9.0.dev0)
- qiskit.basicaer (PennyLane-qiskit-0.9.0.dev0)
- qiskit.ibmq (PennyLane-qiskit-0.9.0.dev0)
- strawberryfields.fock (PennyLane-SF-0.8.0)
- strawberryfields.gaussian (PennyLane-SF-0.8.0)
- forest.numpy_wavefunction (PennyLane-Forest-0.8.0)
- forest.qpu (PennyLane-Forest-0.8.0)
- forest.qvm (PennyLane-Forest-0.8.0)
- forest.wavefunction (PennyLane-Forest-0.8.0)
- projectq.classical (PennyLane-PQ-0.7.0.dev0)
- projectq.ibm (PennyLane-PQ-0.7.0.dev0)
- projectq.simulator (PennyLane-PQ-0.7.0.dev0)
- microsoft.QuantumSimulator (PennyLane-qsharp-0.6.0)
- cirq.simulator (PennyLane-Cirq-0.8.0)
- default.gaussian (PennyLane-0.9.0.dev0)
- default.qubit (PennyLane-0.9.0.dev0)
- default.tensor (PennyLane-0.9.0.dev0)
- default.tensor.tf (PennyLane-0.9.0.dev0)

Additional context
This bug is related to how the tensor observable part of QiskitDevice.sample is used:
https://github.com/XanaduAI/pennylane-qiskit/blob/269802a7c58dd951c2a183e071e31ed93e3c906d/pennylane_qiskit/qiskit_device.py#L400
When changing this to the logic used in QubitDevice, the error seems to be resolved.
Also, on first look, it gave the impression that the error is raised upon consecutive calls to sample.
Possible ways to resolve this bug:

Modify the tensor observable part of QiskitDevice.sample.
Port QiskitDevice to QubitDevice (bigger undertaking).

In either case, an integration test needs to be added testing gradient computation for the tensor observable case.

I'm in favour of porting to QubitDevice, as this will reduce maintenance load in the long run.

Closing as solved by #83


Mark YSSegmentedControl as Public

In order to use YSSegmentedControl outside of Pods project i had to mark the class as public

Need to hook up your delegate to actually call the methods.

Hello guys!
I have successfully installed this project, but how can I actually put it to work? I am still learning xcode.. Can someone help me? Thanks

project updated lastest swift syntax and fixed delegation errors.


fix: issue with sync between Bruno app and VS Code

Sometimes there is a problem with synchronizing things done in Bruno and those in VS Code (open collection of the same requests). Usually when I change something in Bruno I don't see it in VS Code (I have both applications open at the same time)
MacOS (13.4.1 (c) (22F770820d) Bruno v0.20

Hey @buont
Apologies for the late reply here.
Bruno has received numerous updates over the past year and this issue should no longer be present.
Could you check if the issue is happening in the latest version of Bruno ?


Optionally tag issues into projects based on assigned label

I think it would be highly useful if people could specify a GitHub project to tag issues into based on the label.
This would make it easy for people to take advantage of GitHub projects for triaging issues.
Newly tagged issues would go into the TODO column. Humans could then use that column to track which issues still need to be manually reviewed and move them to appropriate columns.

Are you thinking something similar to this project ?

@hamelsmu That's exactly what I'm thinking of. I'll try that out and see how it works.


Clients should not be too persistent about 'dropped calls'

Copying from comments of #131, so I don't forget to do a more comprehensive fix to this:
If we reconnect to the server, and we had some dropped process() calls we were trying to make up, we should flush them at that point.
If our count of dropped calls to make up for gets too high, we should give up and reconnect instead.

This is worked-around in https://github.com/gwillen/solstice-audio-test/commit/b3026cc3e5d278d40aeeffe5d9aec2176dcd9d64 , but we should be able to clear state and reconnect without having to refresh the entire page.

The easy way to repro this is to put the computer to sleep while the client is running.

I think this is fine now


Feature Request: Configure Auth Provider outside of the UI

What kind of request is this (question/bug/enhancement/feature request):
Feature Request. Similar to this one: https://github.com/rancher/rancher/issues/20 if I can setup my auth provider when spinning up a rancher cluster I don't have to worry about getting beaten to the punch to configure AD or similar.
Right now we can sort of do it with the pipeline and bringing up rancher and logging in with the default admin credentials, then getting the token, then squirting JSON in there but it seems like a long reach (and insecure) to hope that I'm the first one in there and complete all my pointy-clicky before someone else notices the pipeline has run. Or worse, someone spinning up a rancher docker container on their laptop to mess around with it might be exposed to someone else sending rancher the admin creds and doing goofy stuff.
If we just gave us some sort of command line way of doing it (or a helm chart), that would be great.

@rawmind0 can you share what you’ve done in our TF templates? Maybe that will meet his needs.
FWIW, it’s 100% api driven and scriptable.

The public API is PUTting to /v3/activeDirectoryConfigs/activedirectory. (or others in /v3/authConfigs).
When you setup a new server the first step is to set the local admin password, regardless of what auth you ultimately want configured.  If you're not changing it then there's no point turning on other auth providers because anyone can use local with admin/admin.

I am setting a local admin password, but I want to turn on other auths in some easier way than squirting JSON at the API endpoint. I was hoping that rancher defined these as CRDs or something but that's not the case. Then I was hoping that I could add AD auth via the command line or RKE config.

https://rancher.com/docs/rancher/v2.x/en/faq/technical/#how-can-i-reset-the-admin-password This sort of scratches the itch. I still think it should be an option in RKE or on the initial spin up. :)

2.6 sets a random initial password and has inputs to let you override that with one of your choosing.
The auth config is (and always has been) a CRD with CRs you can directly edit in the local cluster if you want to, after the server is up.  You would also need to setup the admin or other user with a principalId to tie them to the auth provider, if you're bypassing the API and the steps it does.


Fix bug with testing Jenkins Users as file path has changed

Signed-off-by: Josh Barker<EMAIL_ADDRESS>Description
Fixes InSpec resource to test Jenkins Users
Check List

[x] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[x] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[x] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Hey @tas50, this is ready for review/merge, or @Stromweld can merge this into his branch and we can close this one.


Provide Configuration to disable screenshots especially in case of non-ui tests

set screenshot_enabled=false in the properties file, ex. default.properties and this should disable screenshots.


Add an

Codecov Report

Merging #341 (6a005e6) into master (1fab646) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #341   +/-   ##
=========================================
  Coverage     64.60%   64.60%
  Complexity      701      701
=========================================
  Files           112      112
  Lines          2557     2557
  Branches        332      332
=========================================
  Hits           1652     1652
  Misses          775      775
  Partials        130      130

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 d9f1f94...6a005e6. Read the comment docs.


Add support for Google Custom Search Engine

This is an extension to issue https://github.com/mmistakes/minimal-mistakes/issues/1416 to implement
Google Custom Search Engine as a search provider.

Thanks to the great structure of your theme and the relative ease of the google custom search we did an implementation that we are going to deploy and thought to share it upstream. Please let me know if you would like to see any modification for the merge. Thanks again for the great theme.

Thanks @user414. I had a quick look over the PR and don't see any issues prior to me testing it.
Do you happen to have a working example of it pushed somewhere to see how everything looks on a deployed site?

@mmistakes Unfortunately not yet.

OK. I did a quick test and things look mostly good.
Under the "Look and Feel" section of CSE, if you use the default Overlay layout things appear broken. Search results overlay has z-index issues, masthead and footer appear above it and cut into the results.

Full Width and Results Only layouts both look pretty good.

Not sure if it's worth worrying about the "Overlay" layout and just make mention in the config documentation to use Full width or Results only layouts.

@mmistakes Ok good idea. I'm not sure how well Full Width would work since that is meant for a search box/search result combo box provided by Google and we use the result only model. We tried with using the Google provide search box but it just did not fit as well with the rest of the theme.
As far as the comments did you mean adding it to the _config.yml, or in the proper documentation somewhere in doc like 05-configuration.md, or both?
As a side note while there was some instruction on how to restyle the results, as we thought the regular green/blue might be to big of a clash with the gray theme, we thought that when using the google minimalist look and feel theme in the CSE options it matches pretty well the color scheme and saw no need to import all the google style class inside.

I meant in the documentation...I can take care of that.
Full width works fine as does "results only". To my eye they look identical. I didn't try all of the look and feel layouts, but the one that definitely looks broken is "overlay".

I'm fine with leaving the styling alone as it seems all of that can be configured in CSE's look and feel section. This is my first experience using CSE on a site so not really sure what people expect from it. That was part of the reason I was dragging my feet adding the feature.
Adding something I don't use personally causes a clash when I start getting support requests about it.

Adding something I don't use personally causes a clash when I start getting support requests about it.

I can definitely understand that, feel free to leave it as a PR if you think it's going to create support headache down the line. Anyway, it's fairly easy if someone just want to copy paste they can just hard code their engine id and put everything in search_form.html to minimize the update maintenance.
As a side note re-looking at the code I forgot to either namespace the javascript or change it to a less generic function name like googleCustomSearchExecute() instead of executeQuery() which could collide down the road with something else.


Validation types

Types reused & test removed, but i'm still waiting for Vouchers types to be merged and reused here

@darekg11 please check it in spare time, i've imported Voucher types & moved @types package to devDependencies.
I've could import a lot of other types like customer etc, but IMO this would complicate stuff (as I would still have to do something like Pick<SimpleCustomer, 'key1' | 'key2'>). Let me know if I should import as many types as possible or is this okay.


Switch block - error thrown if comment is on the second line of a Switch block

Windows Terminal Version
1.11.3471.0
Windows Build Number
Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      19041  1320

Steps to reproduce
Code example below taken directory from Microsoft
Error:
$day = 3
switch ( $day )
{
    # This comment will throw an error in WindowsTerminal.exe v1.11.3471.0 (but not in PowerShell.exe or the ISE)
    0 { $result = 'Sunday'    }
    1 { $result = 'Monday'    }
    2 { $result = 'Tuesday'   }
    3 { $result = 'Wednesday' }
    4 { $result = 'Thursday'  }
    5 { $result = 'Friday'    }
    6 { $result = 'Saturday'  }
}
$result

At line:2 char:2
+ {
+  ~
Missing condition in switch statement clause.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingSwitchConditionExpression

No error:
$day = 3
switch ( $day )
{
    0 { $result = 'Sunday'    }
    # This comment will not throw an error in WindowsTerminal.exe, nor PowerShell.exe, nor ISE
    1 { $result = 'Monday'    }
    2 { $result = 'Tuesday'   }
    3 { $result = 'Wednesday' }
    4 { $result = 'Thursday'  }
    5 { $result = 'Friday'    }
    6 { $result = 'Saturday'  }
}
$result
Wednesday

Also no error:
$day = 3
switch ( $day )
{   # This comment will not throw an error in WindowsTerminal.exe, nor PowerShell.exe, nor ISE
    0 { $result = 'Sunday'    }
    1 { $result = 'Monday'    }
    2 { $result = 'Tuesday'   }
    3 { $result = 'Wednesday' }
    4 { $result = 'Thursday'  }
    5 { $result = 'Friday'    }
    6 { $result = 'Saturday'  }
}
$result
Wednesday

Expected Behavior
I expect Windows Terminal to allow a comment on the second line of the block since PowerShell.exe (5.1) and the ISE (v10.0.19041.1) allow it.
Actual Behavior
This error is thrown:
At line:2 char:2
+ {
+  ~
Missing condition in switch statement clause.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingSwitchConditionExpression

@thegraffix the error is thrown also when pwsh is using conhost only:

This is rather the behavior of pwsh itself. The same in the native linux (not WSL) in any terminal emulator.
I am always use invocation script block in order to escape of creation of new variables in the main runspace.
PS > & {
>>    $a = 1
>>    switch ($a)
>>    {
>>       # comment
>>       1 {  $r = 'a' }
>>       2 {  $r = 'b' }
>>    }
>>    $r
>>  }

Huh. This has to do with the way powershell is readind the text from the clipboard (for some reason).
If you unbind ctrl+v in your settings, that'll let PowerShell use its own built-in paste handler.
        {
            "command": "unbound",
            "keys": "ctrl+v"
        },

If you do that, the the code snippet can be pasted perfectly fine in the Terminal

In fact, if you type this in line-by-line, you'll get the same error even in conhost:

I'd recommend following up upstream at https://github.com/powershell/powershell/. This looks like it's just something weird that powershell does.


Weird rotation behaviour

As told in other issues, the plugin in some phones has a weird rotation behaviour.
Anyway, I've noticed if I put:
CurrentOrientation *= FQuat(FRotator(FMath::RadiansToDegrees(0), FMath::RadiansToDegrees(-RotationRate.Y), FMath::RadiansToDegrees(0)));
Instead of:
CurrentOrientation *= FQuat(FRotator(FMath::RadiansToDegrees(-RotationRate.X), FMath::RadiansToDegrees(-RotationRate.Y), FMath::RadiansToDegrees(-RotationRate.Z)));
On Y works good.
If I change it with
CurrentOrientation *= FQuat(FRotator(FMath::RadiansToDegrees(-RotationRate.X), FMath::RadiansToDegrees(0), FMath::RadiansToDegrees(0)));
After some up and down shaking the rotation has some problems.
Tested with One Plus One

Did you fix it? I Have the same issue... if I move too much the final rotation results in a weird behavior :/

Hi guys,
Please, take a look on official Cardboard plugin in 4.12 :)


Build fails

Hello.
I made some errors at compile.
Environment:
ubuntu 18.04 bionic
zmq-v4.2.5,
glog-v0.3.4,
librdkafka-v0.9.1,
libevent-2.1.8-stable,
bitcoin-0.16.0

and compile command is:
git clone https://github.com/btccom/btcpool.git
cd /work/btcpool
mkdir build && cd build
cmake -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/work/bitcoin-0.16.0 -DCMAKE_BUILD_TYPE=Debug ..
make -j $CPUS

It is recorded as follows.

See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/btcpool.dir/src/GbtMaker.cc.o] Error 4
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/btcpool.dir/build.make:134: recipe for target 'CMakeFiles/btcpool.dir/src/GbtMaker.cc.o' failed
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/btcpool.dir/src/GwMaker.cc.o] Error 4
CMakeFiles/btcpool.dir/build.make:158: recipe for target 'CMakeFiles/btcpool.dir/src/GwMaker.cc.o' failed
make[1]: *** [CMakeFiles/btcpool.dir/all] Error 2
CMakeFiles/Makefile2:252: recipe for target 'CMakeFiles/btcpool.dir/all' failed
make: *** [all] Error 2
Makefile:129: recipe for target 'all' failed
Removing intermediate container 72b7bf05a1db
The command '/bin/sh -c bash ./install_btcpool.sh' returned a non-zero code: 2

The following error occurred when I used ubuntu 16.04.

See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
CMakeFiles/btcpool.dir/build.make:446: recipe for target 'CMakeFiles/btcpool.dir/src/rsk/RskWork.cc.o' failed
make[2]: *** [CMakeFiles/btcpool.dir/src/rsk/RskWork.cc.o] Error 4
make[2]: *** Waiting for unfinished jobs....
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/btcpool.dir/src/StratumServer.cc.o] Error 4
CMakeFiles/btcpool.dir/build.make:134: recipe for target 'CMakeFiles/btcpool.dir/src/StratumServer.cc.o' failed
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/btcpool.dir/src/Statistics.cc.o] Error 4
CMakeFiles/btcpool.dir/build.make:110: recipe for target 'CMakeFiles/btcpool.dir/src/Statistics.cc.o' failed
CMakeFiles/btcpool.dir/build.make:206: recipe for target 'CMakeFiles/btcpool.dir/src/JobMaker.cc.o' failed
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/btcpool.dir/src/JobMaker.cc.o] Error 4
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/btcpool.dir/src/MySQLConnection.cc.o] Error 4
CMakeFiles/btcpool.dir/build.make:158: recipe for target 'CMakeFiles/btcpool.dir/src/MySQLConnection.cc.o' failed
CMakeFiles/Makefile2:326: recipe for target 'CMakeFiles/btcpool.dir/all' failed
make[1]: *** [CMakeFiles/btcpool.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Removing intermediate container e7642d8ce1d5
The command '/bin/sh -c bash ./install_btcpool.sh' returned a non-zero code: 2

I want to ask what does it depend on?
And the possible reasons for that.
Thanks.

make -j1, seems you are OOM

oh, @dyzz  ,Thanks, That's my question.
When I use -j1 , it works.
Thanks for your answers.


chore: Fix lint warnings

@VictorUvarov could you please fix the merge conflicts? I don't have the rights to do so. thx.


Fix XMLRPCServer setup and callback registration for seperate interna…

Hi,
small bugfix to make pyhomematic run in my containerized setup.
Cheers,
When pyhomematic is run in a docker container a common network setup is that the external
reachable IP is different from the local container IP. In this case the XMLRPCServer could not start.
Instead binding to "local" we bind to <IP_ADDRESS> (all interfaces).
RPC callback registration uses now "local" as callback address.

If I read this correctly, your change hardcodes the server to always listen on <IP_ADDRESS>. Since this impacts security, I don't think that's a good idea.
I assume you are using Home Assistant and have tried using the local_ip option, but that fails because in your sepcific case the IP the service has to bind to differs from the IP that HASS connects to to initialize the second connection.
So the usual way is:
pyhomematic ---> <IP_ADDRESS> ---> HASS
HASS ---> <IP_ADDRESS> ---> pyhomematic

But in your case it is:
pyhomematic ---> <IP_ADDRESS> ---> HASS
HASS ---> <IP_ADDRESS> ---> pyhomematic

Did I understand the problem correctly?

The communication problem doesn't occur between hass and pyhomematic but between pyhomematic and ccu.
Example:
docker host ip: <IP_ADDRESS>
ccu ip: <IP_ADDRESS>
pyhomematic ip: <IP_ADDRESS>
pyhomematic local_ip = <IP_ADDRESS>
pyhomematic local_port = 4321
local_port is exposed via docker network configuration as <IP_ADDRESS>:4321
Before the commit pyhomematic failed since it tried to start the RPCServer on <IP_ADDRESS> which it doesn't see.
If you see local_ip as a security feature then the commit is a regression. I agree with you the cleanest solution would be splitting binding and call addresses. It would be best to also reflect that in the naming. Since it is not docker specific names like below would be pretty clear.

bind_ip
bind_port
callback_ip
callback_port

Would you apply the changes to hass and pyhomematic in sync? I saw you are active on both.

I think also we should that make as option and not with a constante. Can you change that to set it with a option on start? I will add this also to hass config.

One thought I had: The problem doesn't seem to be the local IP. So to clarify: additionally to the local IP (the one the server binds to) we need a custom callback IP (the one we tell the CCU we're reachable on) in case auto detection returns a result that doesen't fit.

Correct, in the end we need one IP for binding and one for the callback.
Each of them should have a port (binding port and callback port).
Example you bind to x.x.x.x:yyyyy which is reachable for the CCU as a.a.a.a:bbbb

I have implemented this in a new branch. Please test https://github.com/danielperna84/pyhomematic/pull/58 if this solves the problem.


Interesting values should not emit every value from a set

Feature Request
Description of Problem:
When running in interesting mode the generator will always emit all values described in a set, that are applicable at the current time. Sometimes this will mean data is repeated unnecessarily.
For example a set with 1,000 values would currently emit 1,000 rows (multiplied by any number of other field variations encountered.
This - whilst correct - is over expressive, and can be reduced making the output more appropriate.
Ideally this change should be configurable, per field, but would not be required for the first iteration.
Potential Solutions:
Update the interesting value production to either:

Emit all MUST CONTAIN values as defined in the interesting value analysis AND one other value in the set but NOT in the MUST CONTAIN set.
If there are no MUST CONTAIN values identified, emit a single value from the set that is appropriate for the iteration.

This issue is dependant on the completion of #319

As at 19/12/2018:

Priority: Medium-High - where profiles contain many hundreds-thousands of values, there is no need to emit all of them when there is an is in set constraint. This will reduce the amount of output, but would also improve the usefulness of the data emitted, otherwise the first n rows may only vary by this particular field/enum.
Complexity: Low: Once changes to interesting values as part of #319 this change should be simple to take into account the values in MUST CONTAIN and optionally one other value in the set only.


Beta.4 add alchemy rpc like wagmi example

Hi, how to add alchemy rpc to walletConnectProvider from '@web3modal/ethereum' , like wagmi example below
import { WalletConnectConnector } from 'wagmi/connectors/walletConnect'

const connector = new WalletConnectConnector({
  options: {
    qrcode: true,
    rpc: {
      1: 'https://eth-mainnet.alchemyapi.io/v2/yourAlchemyId',
    },
  },
})

walletConnectProvider uses our own rpc under the hood, so you either need to add alchemy alongside it or replace it with it. You can add / change providers inside your configureChains function. Here is an example from wagmi docs for alchemy https://wagmi.sh/docs/providers/alchemy


Terminal disconnected, blank terminal

          I have the same problem

When entering the terminal for the first time, you can open the terminal. Occasionally, it shows that the terminal is disconnected. At this time, the terminal icon turns red. Delete all terminal shortcuts ctrl+ ` to open the terminal. Terminal blank.

Originally posted by @garveyhu in https://github.com/microsoft/vscode/issues/200757#issuecomment-1855355963

https://github.com/microsoft/vscode/issues/200757#issuecomment-1855362384


Cant use null as an option in a select

Hi, today i was trying to use a <select> tath binds to a model tath can be null and i would liek to set an null option to show a default option when the object is null.
I tried with [ngValue]="" it sets the model to null but on the init of the select it doesnt select de value, and tried [ngValue]="null" but it set the text inside the option as the value
This is the select im using:
<div *ngIf="!readOnly" class="form-group col-sm-6" [ngClass]="controlStateClasses(expedienteAmbito)">
            <label class="form-control-label" for="expedienteAmbito">Ámbito Reglamentario*:</label>
            <select class="form-control"
                    id="expedienteAmbito"
                    [(ngModel)]="expediente.ambito.id"
                    aria-describedby="expedienteAmbito"
                    #expedienteAmbito="ngForm"
                    ngControl="expedienteAmbito"
                    required>
                <option [ngValue]="null">Seleccione un ambito</option>
                <option *ngFor="let ambito of ambitos" [ngValue]="ambito.id">{{ambito.codigo}} -
                    {{ambito.descripcion}}
                </option>
            </select>
        </div>

expediente.ambito will never be null but expediente.ambito.id can be null is nothing is selected.
This was using angular 5.0.0-alpha

We don't plan to make this change.

@matanlurey  Why? I think thats the right way to using select placeholders..   This is working in Angular
https://netbasal.com/angular-quick-tip-how-to-show-a-placeholder-in-select-control-bab688f98b98

@matanlurey do you have another solution for this use-case?
I am using this at now
String get idCountry => addressDto.idCountry ?? 'none';
set idCountry(String val) => addressDto.idCountry = (val == 'none' ? null : val);

in template
<select [(ngModel)]="idCountry">
     <option value="none" disabled>Choose country</option>
     <option *ngFor="....">...</option>
</select>

it is only solution what can I do. But the problem is validators, when I set required for this select thats not check for null value because the value is "none".
Do you have some solution for this situation???
Thanks


Unblock narkive.com

It's a newsgroup, and anyway has nothing to do with search engines

The issue #317 highlight that narkive is doing automatic translation of Stackoverflow contents. It is a deceptive behavior to me, as explain in this filter scope.
However, I can't  deny that Narkive websites have original and interesting content, but it is mixed up with deceptive copycats.


fix: corrected resource group parameter name

Resource Group parameter name is broken.
correct value : resource-group

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

#label:"aq-pr-triaged"

#sign-off


feat(markdown): change image border-radius

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.005%) to 83.36%

Totals

Change from base Build<PHONE_NUMBER>4:
-0.005%

Covered Lines:
10256

Relevant Lines:
11307

💛  - Coveralls


MINOR: correct package of LinuxIoMetricsCollector

kafka.server.LinuxIoMetricsCollector -> kafka.metrics.LinuxIoMetricsCollector
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

失敗
Build / JDK 8 / org.apache.kafka.clients.admin.KafkaAdminClientTest.testMetadataRetries

it is already fixed by https://github.com/apache/kafka/commit/e4eab377e1489fc0cc90edec3eeb382b1192a442

Test failures are not related and passed locally, merging


send Transaction error

build message err: get seqno err: adnl request timeout, node <IP_ADDRESS>:52995 ?

Try to use diff node, this error is related to network connection
example:
https://github.com/xssnick/tonutils-go/blob/master/example/account-state/main.go#L17


Label + RichTextLabel renders differently in Viewports

Godot version
v3.5.1.stable.official [6fed1ffa3]
System information
Windows 10, GLES 2
Issue description
A Label or a RichTextLabel renders differently when put inside a Viewport.

Steps to reproduce
Open the reproduction project or clone https://github.com/sszigeti/Viewport-font-hinting-difference
Minimal reproduction project
Viewport-font-hinting-difference-1.zip

Duplicate of https://github.com/godotengine/godot/issues/17574.
Add a CanvasItemMaterial to your ViewportContainers with the Premul Alpha blend mode:

@Calinou -- in my case this is only a partial fix. I have a shader on the ViewportContainer that applies a slight alpha fade at the top and bottom edges (I'm scrolling some text there). This no longer works with Premult Alpha, the shader is unable to modify the a property:
shader_type canvas_item;
//render_mode blend_premul_alpha;

uniform float paddingSize : hint_range(0, 0.5) = 0.2;

void fragment() {
	vec4 pixel = texture(TEXTURE, UV);

	float fade = 1.0;
	if (UV.y < paddingSize) {
		fade = UV.y / paddingSize;
	}
	if (UV.y + paddingSize >= 1.0) {
		fade = (1.0 - UV.y) / paddingSize;
	}

	pixel.a = min(pixel.a, fade);
	COLOR = pixel;
}

I have also tried using render_mode blend_premul_alpha in the shader, without having a separate CanvasItemMaterial -- with the same result.
Would you have a suggestion as to how I should modify this shader?

I have a shader on the ViewportContainer that applies a slight alpha fade at the top and bottom edges (I'm scrolling some text there). This no longer works with Premult Alpha, the shader is unable to modify the a property:

It should be possible to adapt your shader to work with premultiplied alpha. See this page for a description of premultiplied alpha, and this one for a description of why it's a good idea to use it.

Thank you @Calinou! For reference I'm sharing the shader with the necessary correction here (thanks to @golddotasksquestions for the help):
shader_type canvas_item;

uniform float paddingSize : hint_range(0, 0.5) = 0.2;

void fragment() {
    vec4 pixel = texture(TEXTURE, UV);

    vec3 fix = pixel.rgb / pixel.a;
    pixel = vec4(fix, pixel.a);

    float fade = 1.0;
    if (UV.y < paddingSize) {
        fade = UV.y / paddingSize;
    }
    if (UV.y + paddingSize >= 1.0) {
        fade = (1.0 - UV.y) / paddingSize;
    }

    pixel.a = min(pixel.a, fade);
    COLOR = pixel;
}


Integrate profile service

Why?
To help users manage their identity through different devices we need to sync profile data with our profile service.
What?

[ ] Fetch user's profile from profile service
[ ] Create a sync strategy for having local and remote information up to date

This is too ambiguous, need more definition what that integrate profile service means? fetch the profile info when avatar appears? does this involves more than #215?

I think this may be a duplicate of #214 or vice-versa.

This issue depends on the profile service migration.


List single level of a directory

@azure/storage-blob:
^12.1.1:
Windows:
[ x] nodejs

12.8.1:

[ ] browser

name/version:

[ ] typescript

version:

Is the bug related to documentation in

[ ] README.md
[ ] source code documentation
[ ] SDK API docs on https://docs.microsoft.com

Describe the bug
Cannot list one level of a directory. My blob has the following structure: /, / etc. and each dir1, dir2 etc has lots of subfolders. I am trying to get the following listing (like ls )
<container>/<dir1>
<container>/<dir2>
...

When I use the node sdk to access blob storage, I have found 2 methods to list the content of the blob:

listBlobsByHierarchy
listBlobsFlat
Both of these method start listing blobs low down in the hierarchy (like ///)

To Reproduce
Run something like
let iter = containerClient.listBlobsFlat("/", { prefix: "containername" });
    let blobItem = await iter.next();
    while (!blobItem.done && i < 10) {
      console.log(`Blob ${i++}: ${blobItem.value.name}`);
      blobItem = await iter.next();
    }

Expected behavior
Some method to do the equvalent of an ls/dir on a given hierarchy level

I think the delimiter parameter of listBlobsByHierarchy may help. Say you have these blobs:
prefix/a/1
prefix/a/2
prefix/b
prefix/c/1

Then we list with
const delimiter = "/";
const result = await containerClient
        .listBlobsByHierarchy(delimiter, {
          prefix: `prefix${delimiter}`   // do not forget the ${delimiter} part, or it will only return a prefix item: "prefix/"
        })

will conceptually return
prefix/a/          // not a blob, just a prefix
prefix/b           // it's a blob
prefix/c/

If the returned item is a blob, you can fetch it from result.segment.blobItems[].
If the returned item doesn't refer to a blob but is just a prefix, you can fetch it from result.segment.blobPrefixes[] which only has a name string as its attribute.
You can refer to these test cases for detailed code examples.
https://github.com/Azure/azure-sdk-for-js/blob/f7a74a3bcc53ae6f2e7bb9151e1e9828b4bfedab/sdk/storage/storage-blob/test/containerclient.spec.ts#L482

No response for long time, closing it.


System Utilities/System configuration scripts

A script needs to be made for enabling the following:

GPIO
i2c
SSH server
Serial Port (Optional)
UART (Optional)

@chubbychow Can I get what you have so far for a bash script?

@chubbychow Can I get what you have so far for a bash script?


⚠ Mobitopup has degraded performance

In 9bd78a7, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 3466 ms

Resolved: Mobitopup performance has improved in 4e97f36.


Ask about installing latest NR version as a stack

Lays the ground work to setup default stack at install time
At the moment it's hard coded to a version because the stack selector needs a semver number not just latest (open to allowing latest as an option if it makes things easier)

Updated to not ask just do inline with https://github.com/flowforge/flowforge/issues/1194


[BugFix] Fix local shuffle

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #17137.
Problem Summary(Required) ：

Problem for The Query 1

partition_exprs are not passed to upstream_source, such as ScanNode⇨LocalPassthroughSink, LocalPassthroughSource⇨BroadcastJoinProbe⇨[LocalShuffle]⇨ColocateJoin.
The _probe_equivalence_partition_expr_ctxs used by the LocalShuffle of JoinNode for is only available for Local Bucket Shuffle, but we always set part_type to BUCKET_SHUFFLE_HASH_PARTITIONED.

Problem for The Query 2

select distinct(k1) from t0 where k1 is the bucketing key, and when agg_stage is forces to 4, ColcoateBackendSelector is not used (because ColcoateBackendSelector is only used for the local one-stage aggregation and the second-stage of four-stage aggregation is pruned)

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 2.5
[x] 2.4
[x] 2.3
[ ] 2.2

run starrocks_fe_unittest

run starrocks_admit_test

run starrocks_fe_unittest

run starrocks_admit_test

@Mergify rebase main

run starrocks_admit_test

run starrocks_admit_test

@mergify rebase main

run starrocks_admit_test

run starrocks_fe_unittest

[FE PR Coverage Check]
:disappointed: fail : 2 / 3 (66.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/plan/PlanFragmentBuilder.java
2
3
66.67%
[1642]

run starrocks_fe_unittest

run starrocks_admit_test

run starrocks_fe_unittest

[FE PR Coverage Check]
:disappointed: fail : 2 / 3 (66.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/plan/PlanFragmentBuilder.java
2
3
66.67%
[1642]

@Mergifyio backport branch-2.5

@Mergifyio backport branch-2.4

@Mergifyio backport branch-2.3


[Documentation] Doxygen docs bash for Azure::Core

[x] Dropdown for docs is not listing all versions - #2270
[x] The README at the root shows code sample/snippets with {C++} visible
WIP Victor #2273
[x] Drop distributed tracing from the root readme, and logging is already available, so update that - #2295
[x] Add a section on how to turn on and customize logging - #2294
[x] The root readme has important getting started info, where will that show up in the generated docs? - #2296
[ ] Add BodyStream concept docs in the core readme - #2293
[x] Within Azure Core, order the key concepts in order of importance and complexity, the end user doesn't need to know about http pipeline to start using the SDK, so go from most important to least. - #2295
[x] Remove the vcpkg publish automation assets section from the concepts and related pages part of the docs.
[x] Add periods at the end of all doc comments - [ ] doxygen seems to be removing it
WIP - Victor - #2271
[x] Add doc comments at the namespace level
[x] Update doc wording of options to be more expressive and descriptive about what it's used for, what are valid/invalid, rather than just repeating the type name in doc comments. For example RetryOptions - #2297
[ ] There is a "More..." link on certain docs that are meaningless and do nothing for small types/doxygen docs (like AccessToken) - #2272
[x] AuthenticationException brief - [ ] missing an within the sentence
WIP - Victor
[ ] [low priority] Drop Represents, Defines and other "intro words" in the doc comment, and just state what it is.
[x] Add commonly used template description for all simple/defaulted virtual dtors that give the reason for why we have it. - #2298
[ ] Use words, by adding (s) like "Gets", "Returns", "Destroys", etc. and not "Get", "Return", "Destroy"
[ ] Add pre tags for preconditions
[x] Generated docs don't show some of the doc comments that are there in source, for example Nullable::Value() (possibly because it is a templated type)  - WIP - Victor
[x] operator #bool() and #GetValue() are not getting linked/referenced correctly. Make sure API name is correct.
WIP - Victor
[ ] Add 2-5 liner code snippets for the most important or commonly used APIs, such as client ctors, that folks can use for getting started, maybe using \example
[x] Have common phrasing as a starting point across all ctor/dtors for consistency. Constructs the <type name>.../Destructs the <type name> ... - #2298
[ ] Avoid self-referential links on the same page
[x] Add documentation for HttpMethod extensible enum
WIP - Victor
[x] Document delete functions like the default ctor, using a template statement. - #2298
[x] Add docs to AZ_CORE_DLLEXPORT so the link show up.
[x] Context Key has limited documentation and it needs to be improved
[ ] Add docs to Tparam (for example Operation)
[x] For bool returns, follow C, and do ; otherwise, false. - #2298
[ ] For multi-value returns, use Return values, similar to C
[ ] Use @note to highlight important things to call out rather than @remark
[x] HttpPolicy doc, add @details  - WIP - Victor
[ ] DateTime ctor remark reword, change to: This class can handle a DateTime...
[ ] Add example format for Rfc format enum in the docs.
[ ] Link the actual RFC doc in docs.
[ ] Figure out a good format for the generated docs for all the extensible enums.
[ ] ETag docs have references that used to be in Azure::Core, make sure to reference the right namespace.
[x] Can we add links to STL types, such as chrono millisecond.
[x] Capitalize SSL.
[x] Be consistent in docs on WinHttp vs WinHTTP (use WinHTTP) and CURL/Libcurl/curl/etc.

Unrelated to docs, @antkmsft remove Listener typedef and use function directly.

FYI @danieljurek - there might be a couple of things here that you might be able to help us on, for example the dropdown issue

I.e. #2270, #2271, #2272, #2273.

All the remaining work is extracted to individual items, which are planned for September-October (1 case):

https://github.com/Azure/azure-sdk-for-cpp/issues/2293
https://github.com/Azure/azure-sdk-for-cpp/issues/2299
https://github.com/Azure/azure-sdk-for-cpp/issues/2300
https://github.com/Azure/azure-sdk-for-cpp/issues/2304
https://github.com/Azure/azure-sdk-for-cpp/issues/2732
https://github.com/Azure/azure-sdk-for-cpp/issues/2367


ColorHelper.ToDisplayName still appears to be missing since before 1.0?

@bpulliam ToDisplayName still appear to be missing in the latest release, this never seemed resolved here on how we're supposed to upgrade these code paths. Also see: https://github.com/MicrosoftDocs/winrt-api/issues/2120
This effects our ColorToDisplayNameConverter in the toolkit, so not sure what to do with our comment here:
        // return global::Microsoft.UI.Xaml.ColorDisplayNameHelper.ToDisplayName(color);
        // Removed on Reunion 0.8-RC. Not sure what to replace with.

Originally posted by @michael-hawker in https://github.com/microsoft/microsoft-ui-xaml/issues/5260#issuecomment-1470948879
Someone mentioned using the original Windows.UI one, but that doesn't seem to work either.
I get red squiggles trying to use the Windows.UI version explicitly Windows.UI.ColorHelper.ToDisplayName(color):

@michael-hawker
I know it is a silly question, but for C#, wouldn't Color.ToString be how you would do this?
The documentation for ColorHelper itself does state that you should be using members on the Color class due to how C# wraps it.

@DarranRowe Color.ToString returns the hex representation of the colour, not the display name.
From the docs:

For C# and Microsoft Visual Basic, the language support for the Color structure provides a behavior for ToString that serializes the values of the ARGB data properties into a single string. The string representations of Color values are similar to XAML attribute string syntax for specifying Color values in markup. It is the syntax that is most commonly used by designer tools to specify a (non-named) Color. The string is in the form #AARRGGBB, where each letter pair represents one of the color channels as a value between 00 and FF. Each letter pair is interpreted as if it were a hex value and thus represents a value between 0 and 255. The string always starts with a hash (#). For example, the string form of the color where A=255, R=0, G=128, B=255 is "#FF0080FF". For named colors you get the serialized string and not the constant name; for example calling ToString on Colors.Blue gives "#FF0000FF".

Hmm, well, I have to admit that I'm not exactly that familiar with the C# projection.
Since I am more knowledgeable of the C++ projection, I was messing around with this a little. Interestingly, ToDisplayName seems to just outright crash. Digging into the disassembly a little, this seems to call into Windows.UI.Xaml.dll, and for some reason, at least on Windows 11 22H2, DirectUI::DXamlCore::GetLocalizedResourceString tries to access a null pointer.
So part of me is saying that there is also currently a bug in Windows that would get in the way.

@DarranRowe Are you running as packaged or unpackaged. Maybe this has to do with it using old MRT (Windows.ApplicationModel.Resources) instead of MRT Core from Windows App SDK (Microsoft.Windows.ApplicationModel.Resources). Or maybe it's dependent on the UWP XAML framework to be initialized, even though the ColorHelper class itself is not under the Windows.UI.Xaml namespace.

@JaiganeshKumaran
I tried both packaged and unpackaged, it had the same behaviour. I also tried it in a plain Windows API application, so that completely ruled out any Windows App SDK interference.
But since Windows Runtime APIs not supported in desktop apps doesn't give any indicator that it shouldn't work, I am inclined to go with bug.

@JaiganeshKumaran By the looks of it. I dug in a little more and it was getting a null pointer from a TLS slot. I then had the brilliant idea to initialise Xaml Islands for the UI thread and it worked.
But as I stated the documentation doesn't give any indicator that it shouldn't work. The ToDisplayName documentation also doesn't state that UWP Xaml needs to be initialised in order for it to work. If it does require Xaml to be initialised then it needs to be documented. If the intention is to not require it to be initialised then this issue needs to be fixed.

I think this function just needs to be ported/exposed to the new Microsoft.UI.ColorHelper version of the class that does exist in WASDK/WinUI 3?

This was added in Wasdk 1.6 preview1 https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/preview-channel#other-notable-changes

Fixed in 1.6.0; closing issue.


Python script for reading parquet

Perhaps we also need the loading scripts for parquet files for the one or two Python users (they exist!) Something for you, @Lischip ?

Just for parquet files opposed to sav files?

Yes, same as for the R stuff. We have a few Python users who might not realize the value using the parquet files.

Perhaps you can also include a short snippet like this in one of the examples:
library(arrow)
library(dplyr)

open_dataset("parquet.file") |>
  filter(
    rinpersoon %in% df_studypop$rinpersoon,
    datum >= "2020-01-01",
    grepl("^B01", dATC")
  ) |>
  select(rinpersoon, datum, dATC, dosis) |>
  collect()

This way only the columns & rows that satisfy the criteria are read into memory. Saves a lot of time if you dont have to read in the whole file and subset afterwards.


"ImportError: cannot import name Edmunds"

I installed using
pip install edmunds
Then tried to follow example, and get this error message:

from edmunds import Edmunds
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name Edmunds

Tried installing by downloading the files and run
python setup.py install
Same result when I try to import.
I already have requests installed.
Platform:
OS: Windows 7 64-bit (Version 6.1.7601)
Python: Python 2.7.5 |Anaconda 1.8.0 (64-bit)| (default, Jul  1 2013, 12:37:52) [MSC v.1500 64 bit (AMD64)] on win32
Could you help?

Guys, the docs and examples are still wrong!


Function to get all the info

Would be great to have a function that could return all the information in an object in one go, instead of having to call each of them separately

@kordianbruck that's a great idea! can you submit a PR for it?

hi @kordianbruck , I tried to add a function in this PR - please review

I guess this is https://github.com/kurttheviking/git-rev-sync-js/pull/54

yes, itw #54