g502x plus

Is your feature request related to a problem? Please describe.
yes, my g502x plus mouse doesnt work, it just says "no devices found" on piper and ratbagctl. ive tried using the wireless dongle and the wired cable.
Describe the solution you'd like
the g502x plus mouse to work
Describe alternatives you've considered
none

Set proper driver index for the USB receiver, fixed mine here: https://github.com/MOVZX/libratbag/commit/53d447dc81c69a516c53aa713d491a3cacec333a

@MOVZX feel free to make a PR if that helps. Such change was also suggested in #1623.

Works for both wired and wireless
$ ratbagctl singing-gundi info
singing-gundi - Logitech G502 X PLUS
             Model: usb:046d:c095:0
       Device Type: Mouse
 Number of Buttons: 11
    Number of Leds: 1
Number of Profiles: 5
Profile 0:
  Name: n/a
  Report Rate: 1000Hz
  Resolutions:
    0: 200dpi
    1: 400dpi
    2: 500dpi (active) (default)
    3: 800dpi
    4: 1000dpi
  Button: 0 is mapped to 'button 1'
  Button: 1 is mapped to 'button 2'
  Button: 2 is mapped to 'button 3'
  Button: 3 is mapped to 'button 5'
  Button: 4 is mapped to macro '↕KEY_PLAYPAUSE'
  Button: 5 is mapped to 'button 4'
  Button: 6 is mapped to macro '↕KEY_PREVIOUSSONG'
  Button: 7 is mapped to macro '↕KEY_NEXTSONG'
  Button: 8 is mapped to 'profile-cycle-up'
  Button: 9 is mapped to 'button 1'
  Button: 10 is mapped to macro '↕KEY_MIN_INTERESTING'
  LED: 0, depth: rgb, mode: breathing, color: ff0000, duration: 5000, brightness: 142
Profile 1:
  Name: n/a
  Report Rate: 1000Hz
  Resolutions:
    0: 200dpi
    1: 450dpi
    2: 500dpi (active) (default)
    3: 800dpi
    4: 1000dpi
  Button: 0 is mapped to 'button 1'
  Button: 1 is mapped to 'button 2'
  Button: 2 is mapped to 'button 3'
  Button: 3 is mapped to 'button 5'
  Button: 4 is mapped to macro '↕KEY_B'
  Button: 5 is mapped to 'button 4'
  Button: 6 is mapped to macro '↕KEY_F5'
  Button: 7 is mapped to macro '↕KEY_F3'
  Button: 8 is mapped to 'profile-cycle-up'
  Button: 9 is mapped to 'button 2'
  Button: 10 is mapped to macro '↕KEY_F4'
  LED: 0, depth: rgb, mode: breathing, color: ff0000, duration: 3000, brightness: 140
Profile 2: (disabled) (active)
Profile 3: (disabled)
Profile 4: (disabled)

Set proper driver index for the USB receiver, fixed mine here: MOVZX@53d447d

i have absolutely zero clue how to do that, and when running the command you have it just cant find the device (also running "ratbagctl list" returns no devices available)

Set proper driver index for the USB receiver, fixed mine here: MOVZX@53d447d

i have absolutely zero clue how to do that, thats just a bunch of buzzwords for me lol. also when running the command you have it just cant find the device (also running "ratbagctl list" returns no devices available)
i made that file you mentioned, put the usb id in there (which i think i did right? there was only one for me), restarted ratbagd and listed devices, still nothing.

Try build using my fork: https://github.com/MOVZX/libratbag/commits/master/

i built it (not sure if i did it right but i think i did) and im getting this when running ratbagctl:
Traceback (most recent call last):   File "/usr/local/bin/ratbagctl", line 3184, in <module>     ret = main(sys.argv[1:])           ^^^^^^^^^^^^^^^^^^   File "/usr/local/bin/ratbagctl", line 3163, in main     _r = open_ratbagd(verbose=cmd.verbose)          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/local/bin/ratbagctl", line 3129, in open_ratbagd     ratbagd = Ratbagd(RATBAGD_API_VERSION)               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/local/bin/ratbagctl", line 300, in __init__     raise RatbagdIncompatibleError(self.api_version or -1, api_version) RatbagdIncompatibleError: ratbagd API version is 1 but we require 2

i built it (not sure if i did it right but i think i did) and im getting this when running ratbagctl:
  File "/usr/local/bin/ratbagctl", line 3184, in <module>
    ret = main(sys.argv[1:])
          ^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/ratbagctl", line 3163, in main
    _r = open_ratbagd(verbose=cmd.verbose)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/ratbagctl", line 3129, in open_ratbagd
    ratbagd = Ratbagd(RATBAGD_API_VERSION)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/ratbagctl", line 300, in __init__
    raise RatbagdIncompatibleError(self.api_version or -1, api_version)
RatbagdIncompatibleError: ratbagd API version is 1 but we require 2```

What's your distro? I'm using Arch.

What's your distro? I'm using Arch.
same here, not sure whats causing it maybe i built it wrong or something.

Before you install the newly built package, make sure to stop ratbagd daemon first:

sudo systemctl stop ratbagd.service

Connected through USB-C Dongle

Connected through USB-C Cable

just stopped it, re built it, and same error when running ratbagctl

Not sure if it's allowed, but I attached my built file here just in case you wanna try.
sudo pacman -U libratbag-0.20-2-x86_64.pkg.tar.zst
libratbag.zip

ratbagctl works now, and the device shows up so thats good. for some reason now piper is getting the incompatible ratbag api version error now tho. not sure how to fix that.

Try recompile Piper maybe.
I don't use Piper, I use bash script to setup my mouse.

yeah im just going to use ratbagctl, it does everything i need it to so no point getting the piper working lol.

You needed to restart ratbagd. systemctl restart ratbagd.service.
weirdly i tried that a few times but it didnt fix it, either way it works now so who knows.

Hi,
Can we get a PR for this change?

I added the new .device file for the mouse which did make an improvment however. However when I check device info it only has 3 profiles when it should have 5, DPI resolution is not included.
logitech-g502-x-plus-wireless
Device]
Name=Logitech G502 X Plus Wireless
DeviceMatch=usb:046d:c095;usb:046d:c547
Driver=hidpp20

[Driver/hidpp20]
DeviceIndex=1
Profiles=3
Buttons=11

stdout of ratbagctl info
warbling-mara - Logitech USB Receiver
             Model: usb:046d:c547:0
 Number of Buttons: 11
    Number of Leds: 2
Number of Profiles: 3
Profile 0: (active)
  Name: n/a
  Report Rate: 1000Hz
  Button: 0 is mapped to macro '↕F1'
  Button: 1 is mapped to macro '↕F2'
  Button: 2 is mapped to macro '↕F3'
  Button: 3 is mapped to macro '↕F4'
  Button: 4 is mapped to macro '↕F5'
  Button: 5 is mapped to macro '↕F6'
  Button: 6 is mapped to macro '↕F7'
  Button: 7 is mapped to macro '↕F8'
  Button: 8 is mapped to macro '↕F9'
  Button: 9 is mapped to macro '↕F10'
  Button: 10 is mapped to macro '↕F11'
  LED: 0, depth: rgb, mode: cycle, duration: 5000, brightness: 255
  LED: 1, depth: rgb, mode: off
Profile 1:
  Name: n/a
  Report Rate: 1000Hz
  Button: 0 is mapped to macro '↕F1'
  Button: 1 is mapped to macro '↕F2'
  Button: 2 is mapped to macro '↕F3'
  Button: 3 is mapped to macro '↕F4'
  Button: 4 is mapped to macro '↕F5'
  Button: 5 is mapped to macro '↕F6'
  Button: 6 is mapped to macro '↕F7'
  Button: 7 is mapped to macro '↕F8'
  Button: 8 is mapped to macro '↕F9'
  Button: 9 is mapped to macro '↕F10'
  Button: 10 is mapped to macro '↕F11'
  LED: 0, depth: rgb, mode: breathing, color: 00dcff, duration: 3000, brightness: 255
  LED: 1, depth: rgb, mode: breathing, color: 00dcff, duration: 3000, brightness: 255
Profile 2:
  Name: n/a
  Report Rate: 1000Hz
  Button: 0 is mapped to macro '↕F1'
  Button: 1 is mapped to macro '↕F2'
  Button: 2 is mapped to macro '↕F3'
  Button: 3 is mapped to macro '↕F4'
  Button: 4 is mapped to macro '↕F5'
  Button: 5 is mapped to macro '↕F6'
  Button: 6 is mapped to macro '↕F7'
  Button: 7 is mapped to macro '↕F8'
  Button: 8 is mapped to macro '↕F9'
  Button: 9 is mapped to macro '↕F10'
  Button: 10 is mapped to macro '↕F11'
  LED: 0, depth: rgb, mode: cycle, duration: 3000, brightness: 255
  LED: 1, depth: rgb, mode: off

I am also receiving the following errors in the service after I restarted the daemon.
stdout of sytemctl ratbagd status
● ratbagd.service - Daemon to introspect and modify configurable mice
     Loaded: loaded (/usr/lib/systemd/system/ratbagd.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: active (running) since Sun 2024-09-15 20:16:31 BST; 40s ago
   Main PID: 39204 (ratbagd)
      Tasks: 1 (limit: 19022)
     Memory: 760.0K
        CPU: 49ms
     CGroup: /system.slice/ratbagd.service
             └─39204 /usr/bin/ratbagd

Sep 15 20:16:31 nobara-pc systemd[1]: Starting ratbagd.service - Daemon to introspect and modify configurabl>
Sep 15 20:16:31 nobara-pc systemd[1]: Started ratbagd.service - Daemon to introspect and modify configurable>
Sep 15 20:16:33 nobara-pc ratbagd[39204]: ratbag error: Profile layout not supported: 0x05.
Sep 15 20:16:33 nobara-pc ratbagd[39204]: ratbag error: Logitech USB Receiver: error opening hidraw node (Op>
Sep 15 20:16:34 nobara-pc ratbagd[39204]: ratbag error: Profile layout not supported: 0x05.
Sep 15 20:16:34 nobara-pc ratbagd[39204]: ratbag error: Logitech USB Receiver: error opening hidraw node (Op>
Sep 15 20:16:34 nobara-pc ratbagd[39204]: ratbag error: Profile layout not supported: 0x05.
Sep 15 20:16:34 nobara-pc ratbagd[39204]: ratbag error: Logitech USB Receiver: error opening hidraw node (Op>

Any idea how to get around this?

I am unable to have piper or ratbagd see all 11 buttons, even with 11 buttons being listed in the device file and with changes made to have it pick up the mouse at all.

Thanks @MOVZX
I was tried to add device from hand but that didn't work.
But libratbag from ur repo works fine with my G502 X PLUS.
[mikszu@archlinux ~]$ ratbagctl list
hollering-marmot:    Logitech USB Receiver
[mikszu@archlinux ~]$ ratbagctl hollering-marmot info
hollering-marmot - Logitech USB Receiver
             Model: usb:046d:c547:0
       Device Type: Mouse
 Number of Buttons: 11
    Number of Leds: 1
Number of Profiles: 5
Profile 0: (active)
  Name: n/a
  Report Rate: 1000Hz
  Resolutions:
    0: 800dpi
    1: 800dpi
    2: 800dpi (active) (default)
    3: 800dpi
    4: 800dpi
  Button: 0 is mapped to 'button 1'
  Button: 1 is mapped to 'button 2'
  Button: 2 is mapped to 'button 3'
  Button: 3 is mapped to 'button 4'
  Button: 4 is mapped to 'resolution-alternate'
  Button: 5 is mapped to 'button 5'
  Button: 6 is mapped to 'wheel-left'
  Button: 7 is mapped to 'wheel-right'
  Button: 8 is mapped to 'profile-cycle-up'
  Button: 9 is mapped to 'resolution-up'
  Button: 10 is mapped to 'resolution-down'
  LED: 0, depth: rgb, mode: on, color: 23ebeb
Profile 1:
  Name: n/a
  Report Rate: 500Hz
  Resolutions:
    0: 800dpi
    1: 800dpi (active)
    2: 800dpi (default)
    3: 800dpi
    4: 800dpi
  Button: 0 is mapped to 'button 1'
  Button: 1 is mapped to 'button 2'
  Button: 2 is mapped to 'button 3'
  Button: 3 is mapped to 'button 4'
  Button: 4 is mapped to 'second-mode'
  Button: 5 is mapped to 'button 5'
  Button: 6 is mapped to 'wheel-left'
  Button: 7 is mapped to 'wheel-right'
  Button: 8 is mapped to 'profile-cycle-up'
  Button: 9 is mapped to 'resolution-up'
  Button: 10 is mapped to 'resolution-down'
  LED: 0, depth: rgb, mode: on, color: eb23cd
Profile 2: (disabled)
Profile 3: (disabled)
Profile 4: (disabled)


Mount service account tokens when required

Purpose

Ensure service account tokens are mounted where necessary

Codecov Report
Patch coverage has no change and project coverage change: +5.04% :tada:

Comparison is base (195f743) 27.42% compared to head (5ad6a2f) 32.46%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1605      +/-   ##
==========================================
+ Coverage   27.42%   32.46%   +5.04%
==========================================
  Files         250       76     -174
  Lines       29317     5057   -24260
  Branches     5110     2555    -2555
==========================================
- Hits         8040     1642    -6398
+ Misses      21007     3415   -17592
+ Partials      270        0     -270

Flag
Coverage Δ

adapter
?

common-controller
?

config-deployer-service
26.67% <ø> (ø)

idp-domain-service
80.10% <ø> (ø)

router
∅ <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 174 files with indirect coverage changes

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


Building on Gitlab CI requires disabling thumbnails.

This is part issue, part information for others. :)
It took me quite a while to get our presskit to build on Gitlab CI. Apart from the problem that some packages seem to be outdated (no wonder, as it has not been maintained since 2019), the sharp package requires python and one of its dependencies requires make.
I got the project to build (and deploy, but that most likely will be different for most users) using this config:
image: nikolaik/python-nodejs:python3.9-nodejs14-alpine

stages:
  - setup
  - build
  - deploy

cache:
  paths:
    - node_modules/

install_dependencies:
  before_script:
    - apk add --virtual build-dependencies build-base gcc
  stage: setup
  script:
    - npm i presskit

build_project:
  stage: build
  script:
    - npx presskit build --ignore-thumbnails
  artifacts:
    paths:
      - build/

deploy_project:
  stage: deploy
  only:
    - master
  before_script:
    - 'which ssh-agent || ( apk update && apk add openssh-client )'
    - mkdir -p ~/.ssh
    - eval $(ssh-agent -s)
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
    - echo "$SSH_PRIVATE_KEY" | ssh-add -
    - 'which rsync || ( apk update && apk add rsync )'
  script:
    - ls -la
    - rsync -hrvz --inplace --delete --delete-excluded build/* gitlabdeploy@HOST:/var/www/WEBSITE/presskit

However, I had to disable the thumbnail generation, as it silently failed the CI build. The runner reported a success, but no HTML files were generated:
$ npx presskit build
Starting directory: /builds/COMPANY/COMPANY-presskit
Finding data…
- company: "COMPANY" /builds/COMPANY/COMPANY-presskit/data.xml
- product: "PROJECT" /builds/COMPANY/COMPANY-presskit/PROJECT/data.xml
Generating HTML…
- "PROJECT" -> /builds/COMPANY/COMPANY-presskit/build/PROJECT/index.html
$ ls build/
PROJECT```

After disabling thumbnail generation, it now runs as expected.
Hope this helps anyone.

Thanks for the guide and for digging into the issue!
And while I'm here, I want to say that I cannot maintain the project (not enough time, not skilled enough in node.js), and my associate is not available either, but there's definitely a good update to be done on presskit.html... dependencies update, bug fixes, some new features, that kind of things. We're kinda stuck right now, sorry. :/

Thank's for dropping by!
I wonder i

I think updating the whole thing (node version, dependencies, etc) + resolving the issues would already be super nice.
I also think it would be nice to generate a game presskit page without requiring to have a company page. But the way the code is done right now doesn't make it very easy. Maybe a general revamp of the node side (keeping the clean rendering) would be better...


Enthusiast packs?

Where did they go? They used to have 1080p, 1440p, 4k packs...

https://slashiee.github.io/cemu_graphic_packs/


can't build project on mac m1 ue 5.2

I have error:
Undefined symbols for architecture arm64

On my windows pc, all good

I solved the problem. I rebuilt all the libraries and updated the dependency config so that it can be built on both intel and arm

Glad you figured it out. I don't have a mac computer with arm64 architecture, so I don't know how to compile code for multiple architectures on mac

Can you please tell me how can I get a binary string to use in my code. I want to keep protobuff but not use grpc.
I thought serializeToString() would work. But as I understand it, when converting it to FSTRING, the string is not converted correctly

I solved the problem. Do not convert to fstring)


Extracted data and rendered data of a PDF file is differ in PDF.js version 2.0.943

Configuration:

Web browser: Firefox
Operating system: macOS Mojave version 10.14.4
PDF.js version: 2.0.943
Is a browser extension: No

Steps to reproduce the problem:

Open developer tool in browser and attach debugger in _calculateMatch.
Click on Find in document button then enter word and search that word.
The controller will hit that debugger point now check the page content.

Expected behavior:
Render a pdf file in the browser using PDF.js as shown below.

Click on any word like I click on word “Chronic” then it will highlight that word.
Next when I am extracting that same page data in the background function _calculateMatch(Default PDF.js function) which is in file viewer.js that time the data which we are getting is not as it is shown on web browser. The some of the word are concatenated with other words. They are not separated out. But on web browser the word shown as separate single and that word is also represented as single in div if you inspect that word on web browser.

What went wrong:

As shown in above screenshot. In the left hand side the word “Chronic” is a single separate word. But in the left hand side for that same page the extracted page data is shown in blue coloured. In that the word “Chronic” is concatenated with previous line end word and shown as “DATE:01/09/2015Chronic”. What is the expected result is the word “Chronic” should be separated in extracted page data in left hand side.
What causes this to me:
My requirement is also to highlight the word but I am doing this not form “Find in Document” button but for that I have my custome code wil at the end use PDF.js functions. But I have some condition listed below:
The condition to highlight word or phrase is like
e.g. Requirement is highlight word “Chronic” word
Condition:
Word should be single
e.g Chronic pulmonary heart disease - Highlight this word
Word should be separate
e.g Chronic pulmonary heart disease - Highlight this word
Should not concatenated with any other word
e.g XYZChronic pulmonary heart - Do not highlight this
Should not be substring in any other word
e.g XYZChronicpulmonary heart - Do not highlight this
But as explained above in extracted page content the word “Chronic” is concatenated with previous line word my condition fails and that word is not getting highlighted.

This is most likely a duplicate of an existing issue (which I cannot find right now), but in any case it's not really meaningful to keep this open since it's not actionable without a test-case (it's missing the Attach (recommended) or Link to PDF file here: part of the ISSUE_TEMPLATE.md).


Add support for eden gRPC mempool service

📝 Summary
Add support for eden gRPC mempool service
⛱ Motivation and Context
Recommended way of connecting to Eden mempool service for best performance.
📚 References

✅ I have run these commands

[x] make lint
[x] make test
[x] go mod tidy

how would i test the grpc connection?


Responsive Carousel

Description
There is only 1 prop with <o-carousel :items-to-show="3">

Why Oruga need this feature
I need to only show 1 on a mobile device, 2 on a tablet and 3 on a desktop so there are no responsive settings

You could create your own computed property based on the width of the screen and calculate the items-to-show property based on the width.
Could this be a solution for you?


ETS_UNCACHED_ADDR redefined between rtc_io_reg.h and soc.h (IDFGH-10922)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.1 AND master commit:<PHONE_NUMBER>
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
Target: esp32s3
The permutation of these 2 include statements should be equivalent.
ulp/ulp_main_A.c
#include "ulp_riscv_gpio.h"
#include "ulp_riscv_utils.h"

int main(void) {
  ulp_riscv_gpio_output_level(GPIO_NUM_2, 0);
  return 0;
}

ulp/ulp_main_B.c
#include "ulp_riscv_utils.h"
#include "ulp_riscv_gpio.h"

int main(void) {
  ulp_riscv_gpio_output_level(GPIO_NUM_2, 0);
  return 0;
}

What is the actual behavior?
at build time, some redefinition warnings are triggered.
ulp/ulp_main_B.c No warnings
ulp/ulp_main_A.c Causes compilation warning
[...]
[1/5] Building C object CMakeFiles/ulp_main.dir/mnt/develdata/home/axel/Spear/main/ulp/ulp_main.c.obj
In file included from /mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_utils.h:15,
                 from /mnt/develdata/home/axel/Spear/main/ulp/ulp_main.c:6:
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:29: warning: "ETS_UNCACHED_ADDR" redefined
   29 | #define ETS_UNCACHED_ADDR(addr)     (RISCV_REG_CONV(addr))
      |
In file included from /mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/rtc_io_reg.h:18,
                 from /mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_gpio.h:13,
                 from /mnt/develdata/home/axel/Spear/main/ulp/ulp_main.c:5:
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:44: note: this is the location of the previous definition
   44 | #define ETS_UNCACHED_ADDR(addr) (addr)
      |
[...]

Steps to reproduce.

idf.py build using the example ULP code.

Build or installation Logs.
Build logs

Executing action: all (aliases: build)
Running ninja in directory /mnt/develdata/home/axel/Spear/build
Executing "ninja all"...
[1/14] Performing build step for 'bootloader'
[1/1] cd /mnt/develdata/home/axel/Spear/build/bootloader/esp-idf/esptool_py && /home/axel/.espressif/python_env/idf5.2_py3.11_env/bin/python /mnt/develdata/home/axel/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /mnt/develdata/home/axel/Spear/build/bootloader/bootloader.bin
Bootloader binary size 0x52d0 bytes. 0x2d30 bytes (35%) free.
[2/14] No install step for 'bootloader'
[3/14] Completed 'bootloader'
[4/14] Performing build step for 'ulp_main'
[1/5] Building C object CMakeFiles/ulp_main.dir/mnt/develdata/home/axel/Spear/main/ulp/ulp_main.c.obj
In file included from /mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_utils.h:15,
                 from /mnt/develdata/home/axel/Spear/main/ulp/ulp_main.c:6:
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:29: warning: "ETS_UNCACHED_ADDR" redefined
   29 | #define ETS_UNCACHED_ADDR(addr)     (RISCV_REG_CONV(addr))
      |
In file included from /mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/rtc_io_reg.h:18,
                 from /mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_gpio.h:13,
                 from /mnt/develdata/home/axel/Spear/main/ulp/ulp_main.c:5:
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:44: note: this is the location of the previous definition
   44 | #define ETS_UNCACHED_ADDR(addr) (addr)
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:38: warning: "REG_WRITE" redefined
   38 | #define REG_WRITE(_r, _v) ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:50: note: this is the location of the previous definition
   50 | #define REG_WRITE(_r, _v)  do {                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:43: warning: "REG_READ" redefined
   43 | #define REG_READ(_r) ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:55: note: this is the location of the previous definition
   55 | #define REG_READ(_r) ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:48: warning: "REG_GET_BIT" redefined
   48 | #define REG_GET_BIT(_r, _b)  ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:60: note: this is the location of the previous definition
   60 | #define REG_GET_BIT(_r, _b)  ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:53: warning: "REG_SET_BIT" redefined
   53 | #define REG_SET_BIT(_r, _b)  ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:65: note: this is the location of the previous definition
   65 | #define REG_SET_BIT(_r, _b)  do {                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:58: warning: "REG_CLR_BIT" redefined
   58 | #define REG_CLR_BIT(_r, _b)  ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:70: note: this is the location of the previous definition
   70 | #define REG_CLR_BIT(_r, _b)  do {                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:63: warning: "REG_SET_BITS" redefined
   63 | #define REG_SET_BITS(_r, _b, _m) ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:75: note: this is the location of the previous definition
   75 | #define REG_SET_BITS(_r, _b, _m) do {                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:73: warning: "REG_SET_FIELD" redefined
   73 | #define REG_SET_FIELD(_r, _f, _v) ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:85: note: this is the location of the previous definition
   85 | #define REG_SET_FIELD(_r, _f, _v) do {                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:101: warning: "WRITE_PERI_REG" redefined
  101 | #define WRITE_PERI_REG(addr, val) ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:113: note: this is the location of the previous definition
  113 | #define WRITE_PERI_REG(addr, val) do {                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:106: warning: "CLEAR_PERI_REG_MASK" redefined
  106 | #define CLEAR_PERI_REG_MASK(reg, mask) ({                                                                              \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:118: note: this is the location of the previous definition
  118 | #define CLEAR_PERI_REG_MASK(reg, mask)  do {                                                                           \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:111: warning: "SET_PERI_REG_MASK" redefined
  111 | #define SET_PERI_REG_MASK(reg, mask) ({                                                                                \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:123: note: this is the location of the previous definition
  123 | #define SET_PERI_REG_MASK(reg, mask) do {                                                                              \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:125: warning: "GET_PERI_REG_BITS" redefined
  125 | #define GET_PERI_REG_BITS(reg, bit_map, shift)    ((READ_PERI_REG(reg))&((bit_map)<<(shift)))>>shift
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:133: note: this is the location of the previous definition
  133 | #define GET_PERI_REG_BITS(reg, hipos,lowpos) ({                                                                        \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h:128: warning: "SET_PERI_REG_BITS" redefined
  128 | #define SET_PERI_REG_BITS(reg,bit_map,value,shift) ({                                                                  \
      |
/mnt/develdata/home/axel/esp/esp-idf/components/soc/esp32s3/include/soc/soc.h:138: note: this is the location of the previous definition
  138 | #define SET_PERI_REG_BITS(reg,bit_map,value,shift) do {                                                                \
      |
[2/5] Linking C executable ulp_main.elf
[3/5] Generating ulp_main.bin
[4/5] Generating ulp_main.sym
[5/5] Generating ulp_main.ld, ulp_main.h
[5/14] No install step for 'ulp_main'
[6/14] Completed 'ulp_main'

More Information.
The header file esp32s3/include/soc/soc.h:39 checks against ULP_RISCV_REGISTER_OPS
//Convenient way to replace the register ops when ulp riscv projects
//consume this file
#ifndef ULP_RISCV_REGISTER_OPS

//Registers Operation {{
#define ETS_UNCACHED_ADDR(addr) (addr)
#define ETS_CACHED_ADDR(addr) (addr)

Which is defined in components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_register_ops.h
// [...]
#pragma once
#define ULP_RISCV_REGISTER_OPS

// [...]

/*
 * When COCPU accesses the RTC register, it needs to convert the access address.
 * When COCPU accesses the RTC memory, dont need to convert the access address.
 */
#define RISCV_REG_CONV(addr)        (((addr&0xffff)<<3 & 0xe000) | (addr & 0x1fff) | 0x8000)
#define ETS_UNCACHED_ADDR(addr)     (RISCV_REG_CONV(addr))
// [...]

Given the change of definition of ETS_UNCACHED_ADDR(addr) this warning should either be an error (preferably explaining that you need to include ulp_riscv_utils.h first) or there shouldn't be 2 definitions for ETS_UNCACHED_ADDR. Same goes for a lot of the other macros in both files.

Thanks for bringing this to our notice @amrsoll. Yes indeed this should be handled in a better way such that the order of inclusion of the headers should not matter. We will work on adding a fix.

Thank you for taking care of it :)


Midocean University

Web site univsersity : https://midocean.ae/en/
Among the program : https://midocean.ae/en/master-of-artificial-intelligence/

@Anfani2069 lib/domains/km/edu/midocean/st.midocean.txt: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@Anfani2069 Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


Delete docs/LICENSE

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

Project coverage is 98.15%. Comparing base (1194440) to head (974978d).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #164      +/-   ##
==========================================
- Coverage   98.78%   98.15%   -0.64%
==========================================
  Files          45       32      -13
  Lines        1893      867    -1026
==========================================
- Hits         1870      851    -1019
+ Misses         23       16       -7

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


Small change to test GitHub workflow changes

Issue #540

Almost there!
I think you should try putting back the -Dsonar.projectKey=instancio_instancio parameter to mvn -B sonar:sonar in the sonar.yml file.
I moved it to the pom.xml when i was tweking the workflow but i didn't know that it was there for a very good reason sorry.

@EvaristeGalois11 almost there. Just need to figure out the zip file contents and hopefully that'll be it.

Error:  Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:<IP_ADDRESS>4:sonar (default-cli) on project instancio-parent: Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.

Wow that's annoying lol
I can try uploading every target directory as a single artifact to restore it later. This should contain all the .class files needed.
Given that a similar artifact will be very large I'm afraid it could fill up the storage space pretty quickly so I'll investigate the possibility to delete it right away without having to wait 24 hours for its expiration.
Stay tuned!

@EvaristeGalois11 to give us more time to investigate, I temporarily reverted the build workflow to the previous revision.

@EvaristeGalois11 looks good now! :rocket: Could try submitting a test PR from you fork?


#[derive(Message)] gives warning about implicitly using symbols from parent modules

EDIT: Sorry, I meant to create this issue on the actix-web repo. It can be deleted here.

I'm pretty sure you have the power to close issues. It doesn't need to be deleted.


Post transaction endpoint

This implements the post transaction endpoint by enabling endpoints to be defined as either GET or POST endpoints.

other than the one comment, +1

Thanks for the feedback!


Allow Popover to float on top, rather than forced to a side.

Describe the feature in detail (code, mocks, or screenshots encouraged)
Inspired by the input fields of a table in Notion, I want to be able to click on an element and then float an Input/Textarea on top of it.
Using the Popover element (through shadcn Svelte) I am able to achieve this by deliberately giving a wrong value to the size property.
<Popover.Content side="wrong" sameWidth={true} overlap={true} class="p-0">
  <Textarea bind:value={$form.name} class="p-0 no-scrollbar"/>
</Popover.Content>

Note: side="wrong" of course makes TS complain. However, it actually achieves the effect that I want in the browser! 🎉
Popover trigger:

Popover clicked:

I propose this 'bug' is turned into a feature. The side property should accept a value that makes it legal to place popovers on top of the triggered element.
What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
No response

I'll need to dig into the https://floating-ui.com/ docs to see what the best way to handle this is.

Without having tested it, I believe that the result of the compute position function can be ignored and the absolute coordinates of the reference element should be used. https://floating-ui.com/docs/computeposition

Closing as fixed in bits-ui@next via Popover.ContentStatic


Unintuitive sorting of LIMS plate ID's

Description
LIMS container ID's are of format 27-nnnnn which are sorted alphabetically by the transfer file parser because it contains the non-numeric - character. This is confusing when placing plates in the correct order on the robot because it's logical to assume 27-987 goes before 27-1234.
Solution
Implement a special case sort in transfer_lib.js when plate ID's match the LIMS format.

Solved with 40a4ae1 (master), 8edd47d (production), 00a7ea2 (hal).


BR Süd doesn't show the correct live stream

The configured live stream does always stream the same content, when it is selected. It is not the correct live stream. BR Nord does work correctly. A working BR Süd stream is available under this URL.

Thank you for your feedback! The url has been updated - you have to close and restart Zapp to continue watching BR Süd.


please merge qubes subfolder

Could you please move /qubes/systemd/corridor-data.service.d/qubes.conf directly into /qubes/systemd/corridor-data.service.d/qubes.conf? [Analogous for other similar files in /qubes/systemd/ folder.)
Alternatively /systemd/corridor-data.service.d/qubes.conf would also be very nice.

Would simplify the whole corridor package. (Less files, folders.)
Would simplify the systemd service.
Does no damage at any non-Qubes users having these settings.
Statements like After=qubes-iptables.service are simply ignored for non-Qubes users.
Would simplify the makefile and packaging (#10).

Also /qubes/corridor.d could be avoided and merged into the corridor.d if using the "if Qubes is detected" way.
# Setting this by default in Qubes only.
if command -v qubesdb-read >/dev/null 2>&1 ; then
   # Qubes specific config snippett
fi

Another argument for implementing this ticket. If corridor ends up in official Debian package sources...

#10
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829740

Then they would probably not use make install-qubes since that is irrelevant to plain Debian. Then the Debian repository version would not work for Qubes Debian templates, which would be a shame.

I'd really rather not litter people's installations with unneeded code. Today it is Qubes stuff, tomorrow it might be OpenWRT, etc. And every line is a cognitive burden for an admin who wants to check out how things work.
(About the the install-qubes target: When dealing with bureaucracies, it often seems to me that if the application of a particular interpretation of a rule introduces negative externalities for no good reason, then it is best to just charitably reinterpret it so that it does not to apply to the specific case...)


IndexOutOfBounds Error KCP command

Hi Karl! I got a new error message. I ran the KCP tool a couple of times and stumbled upon the following IndexOutOfBounds error. Running the KCP command again with different settings prompted the same error. The command had worked before with exactly these settings on the same archive so I have the feeling this emerges when run a couple of times.

This error is thrown when the archive unlocks after KCP is done and attempts to update the log. Essentially the method replaceText is called on the MarkdownTextArea and contains the log. This method should then call replace with a range 0 to getLength() and the entire log of the metadata record with the new text at the end (log message from recent KCP run).
Somehow it seems the range is not valid when this is done. This could be because somehow getLength() is not correct. So in the end this is entirely a UI issue and there appear to be do problem with KCP itself. In fact, I would expect other commands to also trigger this issue when updating the log.
I will attempt to fix this by directly calling replaceText(start, end, text) with a range. Calling replaceText(text) is actually calling an override version of the method in MarkdownTextArea that also attempt to properly manage the scrollbar to the correction position. Directly calling replaceText with the range should avoid this extra steps that might be triggering the error.
The only way yo replace the entire contexts of the TextArea is by calling replaceText there is no direct setText option as far as I can tell.

Just out of curiosity, @NadiaHuisjes did you have some search text entered in the log panel when this happened?

Ok, I don't think this is the fix. I just got the same error message again. I will keep investigating.

This error actually comes from reactfx, which is a project that richtextfx depends on. It is hard to understand what is causing this. The IndexOutOfBounds is not from the range of text added in the log message. it is a range for some other visual element.
In any case, simply clearing the textarea and then replacing the text with the update log appears to fix the problem in my tests.


Take screenshot

Remove protocol extensions for UsesCommandLine and UsesXcodebuild, and use composition instead
Refine the configure methods
Screenshot task needs to specify app and test schemes
Parse xcresult folder
Fix header search path for SPMUtility package
Update TestPuma workspace
Update README. Introduce Documentation folder
Support test plan in Xcode 11

@thii I merge this for now, let's tackle header comment in another PR


Discovery Call with New Mexico Department of Health

Problem Statement
As the Experience Team, we need to have a discovery call with the New Mexico department of health, so that we can understand how users are currently submitting flat files.

[x] call 1 w/ J

[x] call 2 with csv person, V (1/4)

[ ] call with IT person Jason

VLB is scheduling call with Carmela. Information on this research can be found: https://cdc.sharepoint.com/:f:/r/teams/USDSatCDC/Shared Documents/PRIME ReportStream/Team Documents/Experience Team/Experience Research/CSV flat file upload December 2021 ongoing/New Mexico discovery research flat file upload December 2021?csf=1&web=1&e=v0Ghd5

12/27 Scheduling with Carmela for this week or next TBC

Call with Carmela is 1/4 11:30 - 12:30 ET/9:30 MT/8:30 PT

Carmela and Jordyn will send us names of people for CSV pilot

Sent f/u on 1/12 with the Welcome email guide


Adding options to disable mouse wheel centering content

Hi, I resolved an issue I had where the using the mouse wheel would center content. The solution I found was to disable clampWheel when setting up the drag plugin. Since I'm not sure if this works in every case, I put it behind a clampWheel option that you can pass to the Scrollbox constructor.
Similarly, I found an issue where the mouse wheel events were not being stopped, and so the wheel was also scrolling the web page. I added an option passiveWheel to fix this.
For backwards compatibility, both options have default values so that the library works as before.
Hope you find this helpful!

Wow. That was super confusing (my code not your code). I changed the passiveWheel default to false (which stops propagation) because I think that covers more scrollbox scenarios. I went back and looked at pixi-viewport and it was just as confusing. I probably should have set this up better.
Thanks for the pull!


[Question]: I only want to retrieve the recalled documents through the API, not the content of the Q&A. What should I do?

Describe your problem
I only want to retrieve the recalled documents through the API, not the content of the Q&A. What should I do?

You can get document by "doc_id". Have a look at preview of file on web UI.

Yes, I have tried.But I can't get the result. My request is below:
base_url = "http://localhost/v1/api/dataset"
headers = {"Authorization":  MY_KEY}
paras = {
            "offset": 0,
            "count": -1,
            "orderby": "create_time",
            "desc": True
        }
res = requests.post(url=base_url, params=params, headers=headers)
``

The res.json() is
```
{'data': None, 'retcode': 100, 'retmsg': "<NotFound '404: Not Found'>"}
```

I don't how to solve it.

You can get document by "doc_id". Have a look at preview of file on web UI.

Yes, I have tried.But I can't get the result. My request is below:
base_url = "http://localhost/v1/api/dataset"
headers = {"Authorization":  MY_KEY}
paras = {
            "offset": 0,
            "count": -1,
            "orderby": "create_time",
            "desc": True
        }
res = requests.post(url=base_url, params=params, headers=headers)

The res.json() is
{'data': None, 'retcode': 100, 'retmsg': "<NotFound '404: Not Found'>"}

I don't how to solve it.

The base url seems to be wrong.
base_url = "http://localhost/api/v1/dataset"

The base url seems to be wrong. base_url = "http://localhost/api/v1/dataset"

The base_url I saw from the frontend is "http://localhost/v1/api/"

The base url seems to be wrong. base_url = "http://localhost/api/v1/dataset"

And when I change the base_url to "http://localhost/api/v1/dataset", Another error has occurred when I print res.json()
Traceback (most recent call last):
  File "/home/wangjian/.conda/envs/db-gpt/lib/python3.10/site-packages/requests/models.py", line 974, in json
    return complexjson.loads(self.text, **kwargs)
  File "/home/wangjian/.conda/envs/db-gpt/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/home/wangjian/.conda/envs/db-gpt/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/home/wangjian/.conda/envs/db-gpt/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/wangjian/workspace/KnowledgeQA/rangflow_test.py", line 25, in <module>
    print(res.json())
  File "/home/wangjian/.conda/envs/db-gpt/lib/python3.10/site-packages/requests/models.py", line 978, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

请问解决了么

i have the same question

same here


Update azure-application-gateway.md

Added the web link to documentation on app gateway infrastructure for subnet size details.

@greg-lindsay
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@asukumar22 - Your merge conflict needs to be resolved before we can take this further.

Hey there Aarthi, going to close this PR as abandoned.  If you'd like to reopen this, please see all of the above feedback that needs to be addressed.
#please-close


Gifs

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

Comparison is base (0756df8) 81.28% compared to head (a1f6b31) 81.28%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #59   +/-   ##
=======================================
  Coverage   81.28%   81.28%
=======================================
  Files          27       27
  Lines        2191     2191
=======================================
  Hits         1781     1781
  Misses        410      410

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


Stock filter for parts assemblies

Would be useful at our company :smiley:

This seems more than reasonable!


drbd-module-loader - drbd9-noble:v9.2.10: make not found

Hello!
Upon installing v2.5.2 of piraeus-operator on Ubuntu 24.04, the drbd-module-loader for satellite nodes is failing to run with the following error:
/entry.sh: line 152: make: command not found

Seems like the image doesn't have make installed, maybe due to the base ubuntu image not including it anymore?
Looking at the drbd Dockerfile, seems like they install make explicitly: https://github.com/LINBIT/drbd/blob/b1c9d2d793c9e24ea3673b69ad3957073eb01141/docker/Dockerfile.noble#L11

You are right. It is even listed in the other ubuntu variants, not sure why it did not make it into the Ubuntu 24.04 version. Updated images should be available soon.


Add PHP 7.4

@ADmad we can abandon this now. The same change had been merged a few days ago but we had a migration snafu that stomped on top of it, should be fixed now in #189 - sorry about that!

@alepauly No worries, have the changes in #189 been deployed?

@admad, it hasn't deployed and unfortunately we are in a deployment freeze due to the holidays so this won't make it out until the first week of January.


LEG-2673 fix for wifi download

Not sure why we need to do that.
Let start explaining details about every change in the commit comments so that people coming after us understand why things are done. We should do this for all commits whether they in our repos or forked ones.


[MAINT] add citation file and validation workflow

add a citation.cff file to the repo with metadata about contributors
add a workflow to make sure the file is valid

I do not have merge rights on this so @nikhil153 I will let you handle this

@Remi-Gau - Done!

Thanks


Change tooltip template

Hi,
I need to change style of tooltip only for this error handle.
bootstrap tooltip offer way to customize template, using option:
$().tooltip({
  template: '

'
})

But how to do this on your plugin?
thanks!

There are two ways.  Either setting the message value through jQuery Validation or setting the title value through Bootstrap.  Here is a fiddle with both examples: https://jsfiddle.net/thrilleratplay/8cgj5c3u/
Just be sure to enable the 'html' option in Bootstrap's Tooltip to render the HTML instead of displaying as a string.

Thank you!

It's possible to enable html for all fields?
Something like:
tooltip_options: {
html: true
}
Thanks

Yes.  Using the 'all' parameter.  Example: https://jsfiddle.net/thrilleratplay/8cgj5c3u/8/

Thank You for your awesome support.


use pkg/errors instead of juju/errors

pkg/errors can record the stack so we can output the error stack directly, no need to use errors.Wrap in every error return.

pkg/errors: https://github.com/pkg/errors
docs: https://godoc.org/github.com/pkg/errors

/cc @disksing @overvenus

Well, I am OK with it.
BTW, pkg/errors only traces top 32 stacks.
https://github.com/pkg/errors/blob/a887431f7f6ef7687b556dbf718d9f351d4858a0/stack.go#L124

I think 32 stacks is enough.