Preventing NPE on decode-body-headers when body is nil (e.g. HEAD request)

Also updated documentation to add the caveat that this option won't do anything if you use a HEAD request.

Merged, thanks!


feat: allow the DirectLink provider to provide/edit the VLAN while creating/updating the Provider GWs

PR summary

Fixes: <! -- link to issue -->
PR Checklist
Please make sure that your PR fulfills the following requirements:

[ ] The commit message follows the Angular Commit Message Guidelines.
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[ ] Build/CI related changes
[ ] Documentation content changes
[ ] Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

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


Adding support for new 1.1 switchbot API version

Also adding Lock device supprot with exact method entries

Thanks for your contribution! Because SwitchBot API version has been officially updated to 1.1, I think it is better to support only that API and bump up the version to 2.2.0. Could you please check my suggestions?

I think you are right and I agree with the proposed changes.
More than glad to help!

Hello,
I have a question related to Issue #14 because I don't have SwitchBot Lock device 😢 .
In your pull request, you assigned Lock.device_type_for to "Lock". However, according to the official document, it seems "Smart Lock" rather than "Lock".
If possible, could you check which one is correct?

Hello,
I have a question related to Issue #14 because I don't have SwitchBot Lock device 😢 .
In your pull request, you assigned Lock.device_type_for to "Lock". However, according to the official document, it seems "Smart Lock" rather than "Lock".
If possible, could you check which one is correct?

I am so sorry! I just saw the message.
It seems you already took care of that!


[Question] How to recreate traces chart?

I wonder, how could one plot traces'  Signature plot?  ?
I was wondering if the library has anything to do with the charts (as per the docs that is not the case) but seeing a couple of charts like that in the docs made me think that maybe producing that kind of charts is within the scope of the projects.

Good question! We intentionally want to keep charts out of traces, in the spirit of attempting to do one thing well. That particular image was made with traces and xmgrace.

oooh snap!


Revert version to 3.2

(Need to get builds for py36.)

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Update sqlparser to version 0.40.0

Part of https://github.com/sqlparser-rs/sqlparser-rs/issues/1030 (I forgot to update version of sqlparser in https://github.com/sqlparser-rs/sqlparser-rs/pull/1053)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 87.71%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
17992

Relevant Lines:
20513

💛  - Coveralls


Fix setting length property to 0

Though setting foo.length = []; also empties the array because it is not a numerical value I think the intention was to set it to 0

It was a typo. Thanks you, @TobiasKrogh :+1:


yazi stopped syncing its CWD to opened folder

What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
Alacritty 0.13.2
yazi --debug output
Yazi
    Version: 0.4.2 (6e1948e 2024-12-14)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.83.0 (90b35a62 2024-11-26)

Ya
    Version: ExitStatus(unix_wait_status(134)), "*** stack smashing detected ***: terminated\n"

Emulator
    Brand.from_env      : None
    Emulator.detect     : Emulator { kind: Right(Unknown { kgp: false, sixel: false }), light: false, cell_size: None }
    Emulator.detect_full: Ok(Emulator { kind: Right(Unknown { kgp: false, sixel: false }), light: false, cell_size: None })

Adapter
    Adapter.matches: Wayland

Desktop
    XDG_SESSION_TYPE           : Some("wayland")
    WAYLAND_DISPLAY            : Some("wayland-1")
    DISPLAY                    : Some(":0")
    SWAYSOCK                   : Some("/run/user/1000/sway-ipc.1000.2114.sock")
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

NVIM
    NVIM          : false
    Neovim version: No such file or directory (os error 2)

Variables
    SHELL           : Some("/run/current-system/sw/bin/fish")
    EDITOR          : Some("hx")
    VISUAL          : None
    YAZI_FILE_ONE   : None
    YAZI_CONFIG_HOME: None
    YAZI_ZOXIDE_OPTS: None
    FZF_DEFAULT_OPTS: None

Text Opener
    default     : Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block-create: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block-rename: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })

Multiplexers
    TMUX               : 0
    tmux version       : No such file or directory (os error 2)
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : 0.40.1

Dependencies
    file          : 5.45
    ueberzugpp    : No such file or directory (os error 2)
    ffmpeg/ffprobe: 6.1.2 / 6.1.2
    pdftoppm      : No such file or directory (os error 2)
    magick        : No such file or directory (os error 2)
    fzf           : No such file or directory (os error 2)
    fd/fdfind     : No such file or directory (os error 2) / No such file or directory (os error 2)
    rg            : No such file or directory (os error 2)
    chafa         : No such file or directory (os error 2)
    zoxide        : No such file or directory (os error 2)
    7z/7zz        : No such file or directory (os error 2) / No such file or directory (os error 2)
    jq            : No such file or directory (os error 2)

Clipboard
    wl-copy/paste: 2.2.1 / 2.2.1
    xclip        : No such file or directory (os error 2)
    xsel         : No such file or directory (os error 2)

Describe the bug
Yazi no longer syncs its CWD to the currently opened folder. This breaks workflows like opening a new terminal window in the same CWD in Alacritty and other terminals.
Minimal reproducer
Open yazi in your ~. Navigate to some other folder. Find yazi's PID and observe that ls -la /proc/<pid>/cwd points to the ~ and not to the folder you navigated into.
Anything else?
No response
Checklist

[X] I tried the latest nightly build, and the issue is still reproducible
[X] I updated the debug information (yazi --debug) input box to the nightly that I tried
[X] I can reproduce it after disabling all custom configs/plugins (mv ~/.config/yazi ~/.config/yazi-backup)

I apologize very much. The nightly works. I can't reproduce it using my own reprosteps. I must had been executing another binary or something before.


Retry and cycle validators when REST requests fail.

Through our build and testing of finding active validators to accept REST API requests, there are many instances where a Validator is believed to be active but in fact is not. See #9 as a reference.
This is causing many failed tests and issues with scripts. There needs to be a method to take failed REST requests and attempt different believed active validators to avoid process failure.

#19 is attempting to introduce a client to help track this. Will need tests to ensure this is working as intended.

Now that this has been approved and merged we need to roll it out to all network functions to be able to take advantage of the new functionality.
We should also be sure that the ability to specify a single Node IP also be available since there is some overhead to perform the network crawl.

The websocket client could use this too. Sometimes a sentry allows REST requests(Port 5001) but deny was connections(Port 5000)

#25 is the implementation of the functionality introduced in #19

This is complete at this point from a network crawler perspective. I believe the WS retry functionality needs to be added.


Date Range with single DatePicker

Is this at all possible? The example for date range is exactly the functionality I would want, but it would be best if the user is selecting the range on a single calendar, not through 2 separate inputs.

Yep, it's possible -- you'll need to define your own way of setting startDate and endDate based on onChange events.

@rafeememon sweet! thanks for the quick response. How about the hover styling, to show the range. It seems like that is controlled by selectsStart and selectsEnd

Check out the example on the demo page

Actually, I don't think we currently support having selectsStart and selectsEnd on the same picker.  Not sure how the semantics of this would work, but PRs to support this are welcome.

Looking forward for the best solution.

would love to see this feature too

I agree, would love to see if someone could diff up a PR.

probably its better to use https://github.com/airbnb/react-dates :)

Ok, it's possible through the setting startDate and endDate, but how can I display two dates at one input field? It seems that I can only display one date at one time

May be it helps someone in the future:
Get weekStartDay and weekEndDay:
const weekStartDay = startOfWeek(currentDate, { weekStartsOn: 1 })
const weekEndDay = endOfWeek(currentDate, { weekStartsOn: 1 })
Prepare inputValue range dates output:
const inputValue = format(weekStartDay, "dd/MM/yyyy") + ' - ' + format(weekEndDay, "dd/MM/yyyy")_
Pass formatted inputValue to Datepicker's value:
<DatePicker selected={weekStartDay} highlightDates={highlightDates} onChange={setCurrentDate} locale="enGB" value={inputValue} />
For me it works.

Recently came across this use-case. This can be implemented as follows:

  handleChange = date => {
    const { format } = this.props
    if (date) {
      if (!this.state.date) {
        return this.setState({ date })
      }
      this.setState({
        endDate: date,
        rangeDate: `${this.state.date.format(format)} -> ${date.format(format)}`
      })
      return this.props.onDateChange(
        this.state.date.format(format),
        date.format(format)
      )
    }
    this.props.onDateChange(null)
  }

  render () {
        <RDatePicker
          selected={date}
          dateFormat={format}
          onChange={this.handleChange}
          selectsEnd: Boolean(rangePicker && date),
          minDate: date,
          startDate: date,
          endDate: endDate,
          shouldCloseOnSelect: Boolean(rangePicker && date),
          customInput:
{this.state.rangeDate || 'Select Date Range'}

        />
  }

Thanks @vedadeepta for the starting point. This method works perfectly for what I need. Hopefully will help anyone else looking for this.
  const [startDate, setStartDate] = useState(undefined);
  const [endDate, setEndDate] = useState(undefined);
  const [selectionComplete, toggleSelectionComplete] = useState(false);

  const handleDateChange = date => {
    if (!selectionComplete && !startDate) {
      //on first date selection, set the start date

      setStartDate(date);
      return;
    }

    if (!selectionComplete && startDate && !endDate) {
      //on second date selection, set the end date

      setEndDate(date);
      toggleSelectionComplete(true);

      //do stuff with date range

      return;
    }

    if (selectionComplete && startDate && endDate) {
      //on third date selection, begin selection of a new date range
      //reset the start date and clear the end date.

      setStartDate(date);
      setEndDate(undefined);
      toggleSelectionComplete(false);
      return;
    }
  };

  return (
    <DatePicker
      selected={startDate}
      onChange={handleDateChange}
      selectsEnd={Boolean(startDate)}
      startDate={startDate}
      endDate={endDate}
      inline
    />
  );

Seems like need pull request to enable this feature (selectRange props maybe)

Thanks @DeanHand for your demo 👍  Here's my two cents: a simple range demo, I've pasted only useful stuffs. Hope it'll help someone out there:
export function DemoDatePicker() {
  // range demo
  const [startDate, setStartDate] = useState(null);
  const [endDate, setEndDate] = useState(null);

  function handleDateChange(date) {
    // initial change start by setting the startDate
    if (!startDate && !endDate) {
      setStartDate(date);
      // startDate has been set, set the end date
    } else if (startDate && !endDate) {
      setEndDate(date);
    }

    // user is choosing another range => set the start date
    // and set the endDate back to null
    if (startDate && endDate) {
      setStartDate(date);
      setEndDate(null);
    }
  }

  return (

      <DatePicker
        onChange={(date) => handleDateChange(date)}
        selectsStart={true}
        selected={startDate}
        startDate={startDate}
        endDate={endDate}
        inline={true}
      />

  );
}

I wanted to show 2 month calendar on openToDate to select two dates with date range functionality and show the dates selected on the input field.
Here is what I did with 2 months shown for Date Range: has the openToDate attribute, has placeholderText ("Select custom date"), moment to format, and I set the value with the custom inputValue that holds startDate and endDate:
const [startDate, setStartDate] = useState(new Date());   const [endDate, setEndDate] = useState(null);   const onChange = (dates) => {     const [start, end] = dates;     setStartDate(start);     setEndDate(end);   };   const inputValue =     moment(${startDate}).format('MM/DD/YYYY') +     ' - ' +     moment(${endDate}`).format('MM/DD/YYYY');
return (
<DatePicker
selected={null}
onChange={onChange}
placeholderText="Select Custom date"
startDate={startDate}
endDate={endDate}
selectsRange
monthsShown={2}
openToDate={new Date()}
value={!endDate ? new Date() : inputValue}
/>
);`
This worked for what I wanted to accomplish. I hope it helps.

I am getting an issue while implementing this
16171819202122

Following is my code
`
const [startDate, setStartDate] = useState(subDays(new Date(), 10));
const [endDate, setEndDate] = useState(new Date());
const onDateChange = (dates) => {
const [start, end] = dates;
setStartDate(start);
setEndDate(end);
};
<DatePicker
selected={startDate}
startDate={startDate}
endDate={endDate}
onChange={onDateChange}
className={classes.datePicker}
todayButton="Today"
inline
selectsRange
selectsEnd={true}
selectsStart={true}
openToDate={new Date()}
maxDate={new Date()}
monthsShown={2}
/>
`

The issue I am having with the selectsRange prop without inline is that the calendar closes after selecting the start date, meaning users have to reopen the calendar to select the end date.
What's the best method for keeping the calendar open until an end date is selected? Is it even possible?

The issue I am having with the selectsRange prop without inline is that the calendar closes after selecting the start date, meaning users have to reopen the calendar to select the end date.
What's the best method for keeping the calendar open until an end date is selected? Is it even possible?

Yup, came across the same problem as @dextermb. It took me a while until I noticed that inline is the culprit. They also have it in the docs.
This is a bug, right? Otherwise, it should be mentioned in the docs that inline is required for some reason to work with selectsDate

Yup, came across the same problem as @dextermb. It took me a while until I noticed that inline is the culprit. They also have it in the docs.
This is a bug, right? Otherwise, it should be mentioned in the docs that inline is required for some reason to work with selectsDate

suggest using shouldCloseOnSelect to solve this problem @josias-r

Thank you. That should be the right answer. But seem complex :D :D
There are some difference with the document
https://reactdatepicker.com/#example-date-range-using-input-with-clear-button

update to verson "react-datepicker": "^4.6.0" resolved my issue


[SDL 0211]-Service Status Update to HMI

Proposal: Service Status Update to HMI

This proposal is about adding a new RPC called 'OnServiceUpdate' which will be used by the HMI layer to know the status of certain services from SDL Core.

Review: https://github.com/smartdevicelink/sdl_evolution/issues/641
Steering Committee Decision:

The Steering Committee voted to accept this proposal with revisions on 2018-12-18. The author is to update the proposal to include both the Audio and RPC services discussed in this comment and adding an optional 'appID' parameter to the OnServiceUpdate RPC as noted in this comment.

Revisions were made on 2018-12-20

It was determined updates to sdl_java_suite are not required for this feature, as it only makes changes to the hmi_api and core.


Add a color argument to Container.

It's common to just want a simple colored box. Simple thing should be simple,
so this patch adds a convenience argument to Continer for creating a box
decoration that is just a color.
Fixes #5555

/cc @HansMuller @xster


pip install celescope failed!

after python version upgraded to 3.9.0, there is an error below!
ERROR: Could not build wheels for sorted-nearest, pyrle, which is required to install pyproject.toml-based projects

I guess you are trying to use celescope 1.8.0 because version 1.8.0 upgraded python from 3.6 to 3.9
There are many reasons why build wheels failed, such as low gcc or pip version. A complete error log is required to solve this problem.
The easiest solution is to create another conda environment and reinstall celescope1.8.0.

Thanks a lot! I figure out that the gcc version is not paired. I installed celescope after i uninstalled the gcc whose version is 9.4.0.

Hi, there,
I got an error when executing pip install celescope --index https://pypi.tuna.tsinghua.edu.cn/simple :
In file included from pysam/libchtslib.c:133:
/.../anaconda3/envs/celescope/include/python3.9/Python.h:44:10: fatal error: crypt.h: No such file or directory
44 | #include <crypt.h>
|          ^~~~~~~~~
compilation terminated.
error: command '/.../anaconda3/envs/celescope/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pysam
Building wheel for session-info (setup.py) ... done
Created wheel for session-info: filename=session_info-1.0.0-py3-none-any.whl size=8023 sha256=52cc15b8b4c106fa9b5ba7445863ea26fdab5e3b82ec90dc8f86bc263d64c4db
Stored in directory: /home/.../.cache/pip/wheels/6b/dd/79/ab42241fe1ba983661c59857e321da80daa6cc45c6d1807f69
Successfully built session-info
Failed to build pysam
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pysam)
And, before this, the following commands have been successfully executed:
wget https://raw.githubusercontent.com/singleron-RD/CeleScope/master/conda_pkgs.txt
conda create -n celescope -y --file conda_pkgs.txt
source activate celescope

So, how can I handle this error?

Hi, there,
I got an error when executing pip install celescope --index https://pypi.tuna.tsinghua.edu.cn/simple :
In file included from pysam/libchtslib.c:133: /.../anaconda3/envs/celescope/include/python3.9/Python.h:44:10: fatal error: crypt.h: No such file or directory 44 | #include <crypt.h> | ^~~~~~~~~ compilation terminated. error: command '/.../anaconda3/envs/celescope/bin/gcc' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pysam Building wheel for session-info (setup.py) ... done Created wheel for session-info: filename=session_info-1.0.0-py3-none-any.whl size=8023 sha256=52cc15b8b4c106fa9b5ba7445863ea26fdab5e3b82ec90dc8f86bc263d64c4db Stored in directory: /home/.../.cache/pip/wheels/6b/dd/79/ab42241fe1ba983661c59857e321da80daa6cc45c6d1807f69 Successfully built session-info Failed to build pysam ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pysam)
And, before this, the following commands have been successfully executed:
wget https://raw.githubusercontent.com/singleron-RD/CeleScope/master/conda_pkgs.txt
conda create -n celescope -y --file conda_pkgs.txt
source activate celescope

So, how can I handle this error?

You can try to install pysam with conda first, then using pip to install celescope. On some platforms, using pip to install pysam will cause errors which is hard to fix.

It works, thanks for your help!


Fix Issue #343 "Insert correct language attribute in html tag"

You're opening a pull request? Awesome!
Please make sure though you did the following (tick off everything you
already did):

[√] Run the tests and see them pass
[√] Rebase your branch on top of develop
[?] Include tests for features you introduced / bugs you fixed

This issue fixes #343

Hi, thanks for working on #343.
Any reason for not using negotiate_locale or Locale.negotiate from Babel? The first one returns a just the matched locale string and the second a Locale object. Those functions do already do all the work and are probably (more) correct.
It can be used in a localeselector from Flask-Babel as follows:
@babel.localeselector
def get_current_locale():
    return negotiate_locale(request.accept_languages.values(), ['de', 'en'], sep='-')

Instead of returning matched_locale, the result of get_locale should be passed to the template and used, because it reflects the language we're actually using. A user might explicitly use a different language, then the one we've derived from the Accept-Language header. Our locale selector already handles this and prefers a locale stored in the session over the one derived from the Accept-Language header.
The localeselector of sipa is defined in sipa/base.py. Mabe @lukasjuhrich knows why it isn't defined in sipa/babel.py. Maybe there is no real reason and it can be moved to babel.py or the other way round.

@sebschrader
Thanks for the response. I merely worked off of the functions available in babel.py and found that a localeselector wasn't implemented there nor what the default language returned should be.
Secondly I found that the babel.local_preferences function has a weird behavior as to injecting ````'en'Locale prior torequest.accept_languages``` thus if I pull results from locale_preferences to run through possible_locale, the first locale matched will always be English.
I can make changes like you mentioned above if you want me to rework my solution. My goal was to change as few files as possible due to not knowing the system.

Secondly I found that the babel.local_preferences function has a weird behavior as to injecting 'en' Locale prior to request.accept_languages thus if I pull results from locale_preferences to run through possible_locale, the first locale matched will always be English.

Yup, you're right, locale_preferences is a bit weird. Besides, it is only used once and negotiate_locale can be used for this case as well. I removed the function and replaced it with negotiate_locale in #345. You can do the changes we discussed and move the localeselector to babel.py, you can ignore my PR #345 it should not interfere with yours.

I would suggest using negotiate_locale as well.
@sebschrader there is no real reason for the selector to be defined in base.py instead of babel.py. I have to confess the project structure is a bit inconsistent.


Add Roman number to integer solution

Question link:
https://www.interviewbit.com/problems/roman-to-integer/

I have also tested my latest code on Interviewbit and it solves all the test cases.

Thanks, @sank8dalvi
Your contribution is much appreciated.

Thank you for fixing my issues and merging!


CloudFlare DNS Challenge

Not sure how to route the certs to the backend of Nginx-Proxy-Manager but I can confirm that running this stack will allow LetsEncrypt/CertBot to do a DNS challenge via CloudFlare for wildcard certs.

Docker Image for build 1 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-151-amd64

sorry to be a bit of a dunce here... but after adding the LE docker and the conf and Env configured... how do i utilize this?

Any status on this PR? This would be a great addition IMO.

@jodfie makes a good point, I'd be happier to merge this if there was a new readme file in the doc folder specifically for Cloudfare DNS Challenge setup.

Also, please change this PR to the develop branch.

Hey @OhHeyAlan, can you make these changes? Would love to see this committed.

bumping this again to ask @OhHeyAlan if he can correct this so it can be implemented and also how to set it up?...

@jc21 is there any chance this will be merged or re-implemented soon?. DNS-Challenge would be awesome, as a lot of us don't publish our Proxy as it is part of our home/internal network.

I've been checking this PR.
It only adds the necessary code to launch another container to do the DNS-Challenge and to download the certificates, but it doesn't add any value to NPM itself using the app as the certificate manager using DNS Challenge. We already can download the certificates via multiple ways using externals tools (the container used in this PR, acme.sh, certbot installed locally...), which is what this PR is doing.
I've been also checking the NPM repo and if I could follow the code properly (I'm not a Node/Javascript person) I've not seen an automatic way to import .pem/.crt&.key from a directory.
Maybe, if there would be a way to do it, this PR (or other tools) could work as we could share/use volumes to share the data between the certificates downloader and NPM.
Is there a way to import certificates from a directory?.

No there isn't a way to do this - but a bash script that curl's the NPM API would be enough to add or update certs.
But yes I agree, adding another container to the stack doesn't really solve the root cause: the interface and flow doesn't support dns challenges well at all.


Fix issue in source code view when there is no samples

Show 0.00 % if there isn't any sample.

I think we misunderstood each other. If there is no data available (the returned optional  has no value, then we want to show nothing.) we only want to show a number if we have data available.


How to integrate Backpack with Passport?

I have trouble integrating Backpack with Passport, I tried this in Postman and it's not working:
{"error":"invalid_client","message":"Client authentication failed"}
How can i solve this?
This is my postman code
POST /oauth/token HTTP/1.1
Host: voom.be
cache-control: no-cache
Postman-Token: e4aceae3-7d5c-4617-aeb5-e1b5b87422bc
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="grant_type"
authorization_code
Content-Disposition: form-data; name="client_id"
2
Content-Disposition: form-data; name="client_secret"
UkodP8yjyUd45T2gJZPzWZvJJWLtlZSW3u2DLowM
Content-Disposition: form-data; name="username"
[EMAIL]
Content-Disposition: form-data; name="password"
[PASS]
Content-Disposition: form-data; name="scope"

Content-Disposition: form-data; name="redirect_uri"
http://voom.be:12008/auth/callback
------WebKitFormBoundary7MA4YWxkTrZu0gW--

Don't pass data through Body try to pass them as normal POST parameters

thanks for your advice but that didn't work....
Met vriendelijke groeten,
Matthias Vanooteghem
Op ma 22 okt. 2018 om 13:18 schreef Mokhlas Hussein <
<EMAIL_ADDRESS>
Don't pass data through Body try to pass them as normal POST parameters
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Laravel-Backpack/CRUD/issues/1663#issuecomment-431801746,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEIdKZZWkDj0txjQ-TSHCLyVvHndTS-Nks5unamRgaJpZM4XzKwx
.

can you show me your config/auth.php content, config/backpack/base.php and your AuthController please ?

config.auth
 [
        'guard' => 'web',
        'passwords' => 'users',
    ],

    /*
    |--------------------------------------------------------------------------
    | Authentication Guards
    |--------------------------------------------------------------------------
    |
    | Next, you may define every authentication guard for your application.
    | Of course, a great default configuration has been defined for you
    | here which uses session storage and the Eloquent user provider.
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    |
    | Supported: "session", "token"
    |
    */

    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'api' => [
            'driver' => 'passport',
            'provider' => 'users',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | User Providers
    |--------------------------------------------------------------------------
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    |
    | If you have multiple user tables or models you may configure multiple
    | sources which represent each model / table. These sources may then
    | be assigned to any extra authentication guards you have defined.
    |
    | Supported: "database", "eloquent"
    |
    */

    'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\User::class,
        ],

        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Resetting Passwords
    |--------------------------------------------------------------------------
    |
    | You may specify multiple password reset configurations if you have more
    | than one user table or model in the application and you want to have
    | separate password reset settings based on the specific user types.
    |
    | The expire time is the number of minutes that the reset token should be
    | considered valid. This security feature keeps tokens short-lived so
    | they have less time to be guessed. You may change this as needed.
    |
    */

    'passwords' => [
        'users' => [
            'provider' => 'users',
            'table' => 'password_resets',
            'expire' => 60,
        ],
    ],

];

config backpack/base.php

 'Backpack',

    // Menu logos
    'logo_lg'   => 'Backpack',
    'logo_mini' => 'Bp',

    // Developer or company name. Shown in footer.
    'developer_name' => 'Cristian Tabacitu',

    // Developer website. Link in footer.
    'developer_link' => 'http://tabacitu.ro',

    // Show powered by Laravel Backpack in the footer?
    'show_powered_by' => true,

    // The AdminLTE skin. Affects menu color and primary/secondary
colors used throughout the application.
    'skin' => 'skin-purple',
    // Options: skin-black, skin-blue, skin-purple, skin-red,
skin-yellow, skin-green, skin-blue-light, skin-black-light,
skin-purple-light, skin-green-light, skin-red-light, skin-yellow-light

    // Date & Datetime Format Syntax: https://github.com/jenssegers/date#usage
    // (same as Carbon)
    'default_date_format'     => 'j F Y',
    'default_datetime_format' => 'j F Y H:i',

    /*
    |--------------------------------------------------------------------------
    | Registration Open
    |--------------------------------------------------------------------------
    |
    | Choose whether new users/admins are allowed to register.
    | This will show up the Register button in the menu and allow access to the
    | Register functions in AuthController.
    |
    | By default the registration is open only on localhost.
    */

    'registration_open' => env('BACKPACK_REGISTRATION_OPEN',
env('APP_ENV') === 'local'),

    /*
    |--------------------------------------------------------------------------
    | Routing
    |--------------------------------------------------------------------------
    */

    // The prefix used in all base routes (the 'admin' in admin/dashboard)
    // You can make sure all your URLs use this prefix by using the
backpack_url() helper instead of url()
    'route_prefix' => 'admin',

    // Set this to false if you would like to use your own
AuthController and PasswordController
    // (you then need to setup your auth routes manually in your
routes.php file)
    'setup_auth_routes' => true,

    // Set this to false if you would like to skip adding the dashboard routes
    // (you then need to overwrite the login route on your AuthController)
    'setup_dashboard_routes' => true,

    // Set this to false if you would like to skip adding "my account" routes
    // (you then need to manually define the routes in your web.php)
    'setup_my_account_routes' => true,

    /*
    |--------------------------------------------------------------------------
    | Authentication
    |--------------------------------------------------------------------------
    */

    // Fully qualified namespace of the User model
    'user_model_fqn' => \Backpack\Base\app\Models\BackpackUser::class,

    // The classes for the middleware to check if the visitor is an admin
    // Can be a single class or an array of clases
    'middleware_class' => [
        \Backpack\Base\app\Http\Middleware\CheckIfAdmin::class,
    ],

    // Alias for that middleware
    'middleware_key' => 'admin',
    // Note: It's recommended to use the backpack_middleware() helper
everywhere, which pulls this key for you.

    // Username column for authentication
    // The Backpack default is the same as the Laravel default (email)
    // If you need to switch to username, you also need to create that
column in your db
    'authentication_column'      => 'email',
    'authentication_column_name' => 'Email',

    // The guard that protects the Backpack admin panel.
    // If null, the config.auth.defaults.guard value will be used.
    'guard' => null,

    // The password reset configuration for Backpack.
    // If null, the config.auth.defaults.passwords value will be used.
    'passwords' => null,

    // What kind of avatar will you like to show to the user?
    // Default: gravatar (automatically use the gravatar for his email)
    // Other options:
    // - placehold (generic image with his first letter)
    // - example_method_name (specify the method on the User model
that returns the URL)
    'avatar_type' => 'gravatar',

    /*
    |--------------------------------------------------------------------------
    | File System
    |--------------------------------------------------------------------------
    */

    // Backpack\Base sets up its own filesystem disk, just like you would by
    // adding an entry to your config/filesystems.php. It points to the root
    // of your project and it's used throughout all Backpack packages.
    //
    // You can rename this disk here. Default: root
    'root_disk_name' => 'root',

    /*
    |--------------------------------------------------------------------------
    | License Code
    |--------------------------------------------------------------------------
    |
    | If you, your employer or your client make money by using
Backpack, you need
    | to purchase a license. A license code will be provided after purchase,
    | which you can put here or in your ENV file in staging & production.
    |
    | More info and payment form on:
    | https://www.backpackforlaravel.com
    |
    */

    'license_code' => env('BACKPACK_LICENSE', false),
];

Authserviceprovider

 'App\Policies\ModelPolicy',
    ];

    /**
     * Register any authentication / authorization services.
     *
     * @return void
     */
    public function boot()
    {
        $this->registerPolicies();

       Passport::routes();
    }
}

Met vriendelijke groeten,
Matthias Vanooteghem

Op ma 22 okt. 2018 om 19:12 schreef Mokhlas Hussein <
<EMAIL_ADDRESS>
> can you show me your config/auth.php content, config/backpack/base.php
> and your AuthController please ?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> ,
> or mute the thread
>
> .
>

Hi @oozone ,
Haven’t done this myself, so I’m afraid I can’t help much.
But it could be useful to mention that soon Backpack\Base will use our own guard, auth provider and password broker… backpack - when this PR gets merged - https://github.com/Laravel-Backpack/Base/pull/293
It’s a breaking change, so there will be an upgrade guide and everything.
Cheers!


document query string parameters in -h usage docs

I've specified query string parameters in my openapi document:
 /jobs/{id}/results:
    get:
      description: Get a list of results for a job
      operationId: listJobResults
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          schema:
            type: integer
        - name: direction
          in: query
          required: false
          schema:
            type: string
            enum: [forward, reverse]

It would be nice if in this case, "cursor" and "direction" were available as flags to be passed to the api. I know I can pass them with the -q flag, but there isn't any documentation about the query string params when printing usage docs with -h.

I'm seeing these show up in the help text now, so I believe this issue has been fixed:


Evaluating brax environments other than brax-ant. Terminates with error.

Information
Issue is with running brax environments other brax-ant. The included humanoid, half cheetah and fetch environments are affected.
Couldn't find any references to this issue in the repo. I could have missed something.
Expected Behavior
/home/<USER>/anaconda3/envs/evojax/bin/python /home/<USER>/evojax/scripts/benchmarks/train.py -config configs/PGPE/brax_halfcheetah.yaml
brax: 2022-06-16 20:41:01,954 [INFO] EvoJAX brax
brax: 2022-06-16 20:41:01,954 [INFO] ==============================
absl: 2022-06-16 20:41:02,137 [INFO] Unable to initialize backend 'tpu_driver': NOT_FOUND: Unable to find driver in registry given worker:
absl: 2022-06-16 20:41:02,221 [INFO] Unable to initialize backend 'tpu': INVALID_ARGUMENT: TpuPlatform is not available.
MLPPolicy: 2022-06-16 20:41:03,747 [INFO] MLPPolicy.num_params = 3974
brax: 2022-06-16 20:41:03,787 [INFO] use_for_loop=False
brax: 2022-06-16 20:41:03,825 [INFO] Start to train for 1 iterations.
brax: 2022-06-16 20:41:56,024 [INFO] [TEST] Iter=1, #tests=1, max=-9.7476, avg=-9.7476, min=-9.7476, std=0.0000
brax: 2022-06-16 20:41:56,087 [INFO] Training done, best_score=-9.7476
brax: 2022-06-16 20:41:56,093 [INFO] Loaded model parameters from ./log/PGPE/brax/default.
brax: 2022-06-16 20:41:56,093 [INFO] Start to test the parameters.
brax: 2022-06-16 20:42:03,478 [INFO] [TEST] #tests=1, max=-9.9009, avg=-9.9009, min=-9.9009, std=0.0000

Current Behavior
brax: 2022-06-16 20:26:04,657 [INFO] EvoJAX brax
brax: 2022-06-16 20:26:04,657 [INFO] ==============================
absl: 2022-06-16 20:26:04,833 [INFO] Unable to initialize backend 'tpu_driver': NOT_FOUND: Unable to find driver in registry given worker:
absl: 2022-06-16 20:26:04,920 [INFO] Unable to initialize backend 'tpu': INVALID_ARGUMENT: TpuPlatform is not available.
MLPPolicy: 2022-06-16 20:26:06,465 [INFO] MLPPolicy.num_params = 3974
brax: 2022-06-16 20:26:06,504 [INFO] use_for_loop=False
brax: 2022-06-16 20:26:06,541 [INFO] Start to train for 10 iterations.
Traceback (most recent call last):
  File "/home/<USER>/evojax/scripts/benchmarks/train.py", line 88, in <module>
    main(config)
  File "/home/<USER>/evojax/scripts/benchmarks/train.py", line 64, in main
    trainer.run(demo_mode=False)
  File "/home/<USER>/evojax/evojax/trainer.py", line 152, in run
    scores, bds = self.sim_mgr.eval_params(
  File "/home/<USER>/evojax/evojax/sim_mgr.py", line 258, in eval_params
    return self._scan_loop_eval(params, test)
  File "/home/<USER>/evojax/evojax/sim_mgr.py", line 355, in _scan_loop_eval
    scores, all_obs, masks, final_states = rollout_func(
  File "/home/<USER>/evojax/evojax/sim_mgr.py", line 202, in rollout
    (obs_set, obs_mask)) = jax.lax.scan(
  File "/home/<USER>/anaconda3/envs/evojax/lib/python3.9/site-packages/jax/_src/traceback_util.py", line 165, in reraise_with_filtered_traceback
    return fun(*args, **kwargs)
  File "/home/<USER>/anaconda3/envs/evojax/lib/python3.9/site-packages/jax/_src/lax/control_flow.py", line 1630, in scan
    _check_tree_and_avals("scan carry output and input",
  File "/home/<USER>/anaconda3/envs/evojax/lib/python3.9/site-packages/jax/_src/lax/control_flow.py", line 2316, in _check_tree_and_avals
    raise TypeError(f"{what} must have identical types, got\n{diff}.")
jax._src.traceback_util.UnfilteredStackTrace: TypeError: scan carry output and input must have identical types, got
(State(state=State(qp=QP(pos='ShapedArray(float32[16384,8,3])', rot='ShapedArray(float32[16384,8,4])', vel='ShapedArray(float32[16384,8,3])', ang='ShapedArray(float32[16384,8,3])'), obs='ShapedArray(float32[16384,18])', reward='ShapedArray(float32[16384])', done='ShapedArray(float32[16384])', metrics={'reward_ctrl_cost': 'ShapedArray(float32[16384])', 'reward_forward': 'ShapedArray(float32[16384])'}, info={'first_obs': 'ShapedArray(float32[16384,18])', 'first_qp': QP(pos='ShapedArray(float32[16384,8,3])', rot='ShapedArray(float32[16384,8,4])', vel='ShapedArray(float32[16384,8,3])', ang='ShapedArray(float32[16384,8,3])'), 'steps': 'ShapedArray(float32[16384])', 'truncation': 'ShapedArray(float32[16384])'}), obs='ShapedArray(float32[16384,18])', feet_contact='DIFFERENT ShapedArray(int32[16384,3]) vs. ShapedArray(int32[16384,4])'), PolicyState(keys='ShapedArray(uint32[16384,2])'), 'ShapedArray(float32[16384,3974])', 'ShapedArray(float32[37])', 'ShapedArray(float32[16384])', 'ShapedArray(float32[16384])').

Exact Error:
feet_contact='DIFFERENT ShapedArray(int32[16384,3]) vs. ShapedArray(int32[16384,4])')

Failure Information
Context
Based on commit history, this appears to be due to the changes introduced in #33 .
Manually altering variable feet_contact variable from method reset_fn in file evojax/evojax/task/brax_task.py allows for the other environments to be run.
Setup details related to the hardware are irrelevant since error occurs on the hosted colab notebook as well.
brax                         0.0.13
evojax                       0.2.11
flax                         0.4.0
jax                          0.3.1
jaxlib                       0.3.0+cuda11.cudnn82

Steps to Reproduce
Please provide detailed steps for reproducing the issue.

Run evojax/scripts/benchmarks/train.py using a modified evojax/scripts/benchmarks/configs/<ES> file using non-ant brax environment.
Modify feet_contact array size and test.

Thank you very much for raising the issue, let me confirm the problem and get back to you.

Hi @lerrytang any updates on this issue ?.

Sorry for the delay, I've confirmed the error, thanks for the detailed report.
The error is due to the fixed number of legs for contact detection. I should have extended the state to include feet_contact ONLY when the task is Ant and the user chooses to use map-elites.
Since you discovered the bug and the fix is straightforward, will you be interested in sending a PR to us?

Thanks for the update. I'll get a PR ready and send it once it's done.

bug fixed in #39


[xstate-wallet] fix xstate visualizer

It would be nice to be able to use https://xstate.js.org/viz/ again. At the moment:

Navigate to https://xstate.js.org/viz/.
Run HUB_DESTINATION=0x0000 yarn generateConfigs
Copy contents of monorepo/packages/xstate-wallet/src/workflows/virtual-funding-as-leaf.config.js into the visualizer.
Observer Cannot read property 'indexOf' of undefined errors.

When I updated the approve-budget-and-fund workflow, I managed to get the xstate visualization displaying in xstate dev tools. This leads for a nicer dev experience, as you can make changes to the workflow and see it reload live. It should be possible to do this with the other workflows too.


more robust abstract global variable assignment

The idea is to use AbstractInterpreter's approximated slot types
for abstract global variable assignment.
JET will transform toplevel abstract global symbols into Slots,
and the typeinf_local will compute the approximated type of them
at the end of inference, and JET will use those information for
virtual global assignments.
This approach enables more robust approximation of toplevel execution
than the previous set_virtual_globalvar! logic.

Codecov Report

Merging #119 (8dfcfa2) into master (5a63003) will decrease coverage by 6.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #119      +/-   ##
==========================================
- Coverage   81.28%   75.18%   -6.11%
==========================================
  Files          11       11
  Lines        1010     1076      +66
==========================================
- Hits          821      809      -12
- Misses        189      267      +78

Impacted Files
Coverage Δ

src/virtualprocess.jl
97.02% <ø> (-0.15%)
:arrow_down:

src/JET.jl
49.70% <100.00%> (+7.67%)
:arrow_up:

src/abstractinterpretation.jl
98.70% <100.00%> (+1.20%)
:arrow_up:

src/abstractinterpreterinterface.jl
65.90% <100.00%> (+2.49%)
:arrow_up:

src/reports.jl
87.28% <100.00%> (+1.65%)
:arrow_up:

src/typeinfer.jl
100.00% <100.00%> (ø)

src/print.jl
0.00% <0.00%> (-78.00%)
:arrow_down:

Continue to review full report at Codecov.

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


Feature request: Shuffle support for playlists

It would be good to be able to play a shuffled playlist.
Today I'm using the server playlist method to get access to the playlist. Then I pass that playlist off to the client playMedia method.
playlist = plex.playlist("Jazz Playlist")
client.playMedia(playlist)

I have no way to specify that I would like that playlist to be shuffled.
Inside the client playMedia() method a PlayQueue is created using createPlayQueue. The PlayQueue.create() method supports an option for setting shuffle=1. But there is not way to pass the option to the create() method.
current...
    def playMedia(self, media, **params):
        if not self.server:
            raise Unsupported('A server must be specified before using this command.')
        server_url = media.server.baseurl.split(':')
        playqueue = self.server.createPlayQueue(media)
        self.sendCommand('playback/playMedia', **dict({
            'machineIdentifier': self.server.machineIdentifier,
            'address': server_url[1].strip('/'),
            'port': server_url[-1],
            'key': media.key,
            'containerKey': '/playQueues/%s?window=100&own=1' % playqueue.playQueueID,
        }, **params))

I could use the PlayQueue class to create a PlayQueue instance directly.
But, I can't pass playlist to the client playMedia() method.
The basic feature request is to be able to shuffle, repeat, etc. a playlist when played on a client.
The broader request might be to decouple the PlayQueue from the playMedia method. Or offer a new playMediaQueue (or some reasonable name) method.
Please let me know if I'm missing something and there is already a way to do this.

My current thinking is to add a new argument to playMedia() named something along the lines of playqueue_options where you could arbitrarily include kwargs that would in turn get passed through to PlayQueue.create(). These options would essentially be meaningless if playing a single media item, but shouldn't cause anything to break.

@mjs7231 - That will work. A dictionary argument where it spelled out these are for the queue that is automatically created.
But, it doesn't allow a developer to create their own PlayQueue then play it view the Client class.
Do you think it might also make sense to have a Client method for playQueue(queue) (or some reasonable name)? That way the developer can create, modify, etc. a queue. Then they could easily have a client play that queue with this method. I know you may not want to confuse the developer with two different ways to play content. To me this just seems more powerful.
Thanks.

Makes sense to me, good idea.

Can't we just have a shuffle method and use random.shuffle to and pass that to play media?

I can confirm that setshuffle works.

However, I don't think we have the ability to start playlist is shuffle mode if a user wishes.

this commit allow you to manually set a playerque. This way you can shuffle on everything https://github.com/mjs7231/python-plexapi/pull/115/commits/53c12502569c97c9ba675127fda67fdb1875ac87

commit 5e18776ee2a42c4bcee28127f52a0900a30c965c
Author: Hellowlol<EMAIL_ADDRESS>Date:   Tue Feb 14 22:12:56 2017 +0100
add support to shuffle to createplayqueue and playlist.playqueue
See the tests for examples.
commit e93829f881f654fc20b322acfd440ccd3324c253
Author: Michael Shepanski<EMAIL_ADDRESS>Date:   Wed Feb 15 00:37:02 2017 -0500
Allow passing a playqueue to client.playMedia(); Default all mtype arguments to video.


Added Trusted email validation functionality in Signup form

PR Description: Implemented Email Domain Validation in Signup Form
Fixes #250

Added validation to allow only trusted email domains: gmail.com, outlook.com, yahoo.com, protonmail.com, icloud.com, tutanota.com, and more.
Displays an alert message if the email is from an untrusted domain and blocks submission.
Ensures data integrity by filtering spam and temporary emails.

@Vimall03
Pls add level, gssoc-extd.

@Vimall03 Pls check and merge my PR.

@Vimall03 pls merge my PR.


I cannot play deezer playlist

Please describe your problem in as much detail as possible: when i execute my command to play a song and i enter the link of the deezer playlist, the bot report me the following error : "An error encountered: DisTubeError [YTDLP_ERROR]: Cannot get stream URL of a entire playlist" i think you need to update it
*Further information: everything is above

Plugin version: 1.0.0
DisTube version: 4.1.1
discord.js version: 14.14.1
Node.js version: 18
Operating system: Pterodactyl server

Please provide your link and your code of your DisTube contrustor new DisTube(...)

Is that what you want?
client.config = config;
client.player = new DisTube(client, {
  leaveOnStop: config.opt.voiceConfig.leaveOnStop,
  leaveOnFinish: config.opt.voiceConfig.leaveOnFinish,
  leaveOnEmpty: config.opt.voiceConfig.leaveOnEmpty.status,
  emitNewSongOnly: true,
  emitAddSongWhenCreatingQueue: false,
  emitAddListWhenCreatingQueue: false,
  plugins: [
    new SpotifyPlugin(),
    new SoundCloudPlugin(),
    new YtDlpPlugin(),
    new DeezerPlugin(),
  ],
});

if the link you wish to have is the playlist link, then here is: https://deezer.page.link/g6gxzGqVnZFbmcPm9

ytdlp plugin must be the last plugin in the plugins array, I will update in its docs later.

If I put it like this, does it solve the problem?
client.config = config;
client.player = new DisTube(client, {
  leaveOnStop: config.opt.voiceConfig.leaveOnStop,
  leaveOnFinish: config.opt.voiceConfig.leaveOnFinish,
  leaveOnEmpty: config.opt.voiceConfig.leaveOnEmpty.status,
  emitNewSongOnly: true,
  emitAddSongWhenCreatingQueue: false,
  emitAddListWhenCreatingQueue: false,
  plugins: [
    new SpotifyPlugin(),
    new DeezerPlugin(),
    new SoundCloudPlugin(),
    new YtDlpPlugin(),
  ],
});

Hey, I did what you told me to do and I still have the same problem!
Do you have another solution?

deezer.page.link is
not a deezer link. It redirects to a deezer.com link which is a deezer link and supported by the plugin.

Yes but that’s what deezer gives me when I click on the music and then on share so how do I do it?


turbo

It would be nice to include turbo https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html

Thank you! I didn't know this colormap and it looks very useful


Add asynchronous save_event method to database.rs

This commit introduces an asynchronous save_event function within database.rs in the nostr-sdk-js bindings. This new method enhances the previous 'inner' save_event functionality by offering improved error handling.

Description

Notes to the reviewers

Changelog notice

Checklists
All Submissions:

[x] I followed the contribution guidelines
[x] I ran just precommit or just check before committing

New Features:

[x] I've added tests for the new feature
[ ] I've added docs for the new feature

Bugfixes:

[ ] This pull request breaks the existing API
[ ] I've added tests to reproduce the issue which are now passing
[ ] I'm linking the issue being fixed by this PR

thanks!


Possibility to set the selected date

I haven't been able to figure out how to set the selected date manually.
In my case I'd like to be able to handle a swipe gesture in another view to change the day displayed in my CVCalendarView.
If anyone has figured it out, I'd be happy.
Thanks
Corentin

Hi, I guess this is what you need:
 var calendarView:CVCalendarView? //init somewhere func changeDay(nDate:NSDate) {         self.calendarView.toggleViewWithDate(nDate)     }

Perfect! Thank you!

I have kind of a problem...
I always have a week view, and when I toggle to a date that is in the next week, it doesn't change the week view...

@Nitner0C please open a new issue.


Release of SLIM Java Starterkit Sample Project

Purpose

Release of a unified Java sample project starterkit that automates build, release and publishing to Maven Central for OSS consumption.

Proposed Changes

NOTE: Build instructions are inline with the project README.
Introduction of a feature rich Java project template that provides the following:

Dependency tracking and easy version updating using property placeholders
Project inheritance via shared settings in the parent-ammos POM
Maven CI-friendly build tooling

Developer responsibility for Major/Minor/Patch version numbering
Implement chain-of-custody tracking with hash/version/build markers from repository to release
Version is stamped into a file named version in the top-level of produced artifacts, such as JARs or WARs
Fast, efficient: Eliminate redundancy of Release Plugin

GitHub Action publishing end-to-end on PR push to main branch.

Tag and release and upload to Maven Central occurs without further manual intervention.

Tooling for continuous integration, continuous testing and security scanning on different platforms, including Jenkins and GitHub Actions.
Instructions for both local development installations and build/package/release installations.

Issues

NASA-AMMOS/slim#23: Universal Jenkinsfile templates tested for continuous integration.
NASA-AMMOS/slim#24: Example unit testing using JUnit standard setup.
NASA-AMMOS/slim#25: Security scanning automation using NASA SCRUB.
NASA-AMMOS/slim#104: Code coverage automation using NASA SCRUB.
NASA-AMMOS/slim#110: Sample continuous testing implementation for JUnit 4 unit tests.
NASA-AMMOS/slim#127: This is the culmination of the Java starterkit template.

Testing

Local build and installation
Successful execution of tag/release cycle on local Maven repository
Validation of expectations in GitHub Actions build cycle

Notification will be sent when converted from draft status.


Add failover support without db mirroring configured

I would like to use the JDBC failoverPartner in an application that uses Azure SQL Databases.
Our scenario is this:
Set up Database X with geo-replication on primary server A, secondary B.
In JDBC, set server=A,failoverPartner=B
If server A goes down, stop the geo-replication, and application will automatically connect to B.
Azure SQL Databases do not support database mirroring, and thus they don't send metadata at connection time about their partner. JDBC expects this metadata to be received and throws an exception if not.
I modified the code to just use the database mirror if no failoverPartner is provided by the server it connects to. This might not be right per Database Mirroring specifications, but I would like to propose it anyways to be useful in other setups than database mirroring. Maybe a flag could be introduced that will allow it, or we could go with this and issue a warning if the server does not provide a partner.

We have the same issue here, I wanted to do a similar patch ;)

You are correct, the failoverPartner is not supported in Azure SQL Database. To achieve this you will need transparent failover. This is not yet public but if you'd like immediate access to this functionality you can enroll into the private preview.
Pls email to sashan at microsoft.com if interested.

Closing this PR since failoverPartner is set to release for Azure SQL Database.


goerli: snowballs are being launched from the wrong point of the avatar

Explorer Alpha build versions:
v0.21.0
Issue Description:

On the snowball field on Goerli, after grabbing the snowball and throwing it, we can see that the point from where is being launched is incorrect.
STR:

/goto-local 80,-1
Grab a snowball and throw it
Observe the trajectory

Expected behaviour:
The snowball launchs from the avatar's hand
Current behaviour:
The snowball is being launched from other points of the avatar
Evidence:
https://github.com/user-attachments/assets/93291eed-064c-45b1-9b1e-374e9da675ca
Additional Notes:

Confirmed with Nico E., not a bug


Work through list of usual suspect READMEs

[ ] https://github.com/stateful/runme.dev/blob/main/README.md
[ ] https://github.com/stateful/vscode-runme/blob/main/examples/README.md
[ ] https://github.com/stateful/vscode-runme/blob/main/examples/vercel/README.md
[ ] https://github.com/stateful/vscode-runme/blob/main/examples/k8s/README.md

Look into automation: https://github.com/stateful/vscode-runme/issues/55
Readme Rollcall for

[ ] @christian-bromann
[ ] @sourishkrout
[ ] @admc
[ ] @adambabik

Guessing the language fails for https://github.com/micro/micro/blob/41203a045376fa15aa4ac29cedf69e6f2634a39e/README.md.

Guessing the language fails for https://github.com/micro/micro/blob/41203a045376fa15aa4ac29cedf69e6f2634a39e/README.md.

Little more specific please @adambabik?

@sourishkrout I found the issue:
--- a/src/extension/languages.ts
+++ b/src/extension/languages.ts
@@ -61,6 +61,9 @@ export default class Languages {

   // todo(sebastian): too naive; should really consider probabilities
   public static weighted(platform: string, results: ModelResult[]): string | undefined {
+    if (!Array.isArray(results) || !results.length) {
+      return
+    }

Great. What didn't work though? The readme's fairly long

@sourishkrout I didn't pin-point it to a specific code snippet yet. I will try to isolate it and paste it here.

@sourishkrout I didn't pin-point it to a specific code snippet yet. I will try to isolate it and paste it here.

Thank you!

Done. Released v0.3: https://github.com/stateful/vscode-runme/releases/tag/0.3.0


[Feature Request] Enable optimistic updates for related models

Currently, optimistic updates only seem to work for hooks within the same model. We have a use case that would benefit from optimistic updates that is between 2 models.
For example, we have the following two modes:
`model Class extends BaseWithCuid {
name              String
shortDescription  String?             @db.VarChar(100)
longDescription   String?
module            Module              @relation(fields: [moduleId], references: [id], onDelete: Restrict)
moduleId          String
userClassProgress UserClassProgress[]
order             Int
published         Boolean
metadata          Json? // TODO link to a class video model?
documents         DocumentClassJoin[] // Keeps track of documents associated with this class, with any required metadata
category          String? // For UI - can separate classes by their category
// tags
@@unique([order, category, moduleId])
// Access policy
@@allow('all', true)
}`
`model UserClassProgress  extends Base {
user          User          @relation(fields: [userId], references: [id], onDelete: Cascade)
userId        String
class         Class         @relation(fields: [classId], references: [id], onDelete: Cascade)
classId       String
watched       Boolean
progressState ProgressState
@@id(name: "userClassProgressId", [userId, classId])
@@allow('all', true)
}`
We are using the useFindManyClass to retrieve some Classes along with the related UserClassProgress rows (query below). We are then using the useUpsertUserClassProgress hook to update some of the UserClassProgress rows. Optimistic update doesn't work in this case even if I include the id's of the UserClassProgress in the useFindManyClass hook.
Proposed solution
Ideally we would like for optimistic update to work with hooks across models.
Additional context
For reference, this is the query I am using in the useFindManyClass:
const { data, isLoading, error } = useFindManyClass({     where: { moduleId },     select: {       id: true,       name: true,       longDescription: true,       metadata: true,       order: true,       userClassProgress: {         where: {           userId,         },         select: {           userId: true,           classId: true,           progressState: true,           watched: true,         },       },       documents: {         select: {           id: true,           order: true,           document: {             select: {               displayName: true,               storageRef: true,               type: true,               size: true,             },           },         },       },     },   })
And this is the query used in the upsert hook:
mutate({         where: { userClassProgressId: { userId: "4bb0822c-9642-466d-81f0-50dada230c2f", classId: "cm2vtha9o000pfy55olraqnlq" } },         create: {           watched: true,           progressState: ProgressState.OKAY,           user: { connect: { id: "4bb0822c-9642-466d-81f0-50dada230c2f" } },           class: { connect: { id: "cm2vtha9o000pfy55olraqnlq" } },         },         update: { progressState: ProgressState.OKAY },       })

Fixed in 2.9.0


[new article] how does work issues creating in Github

describe experience with github issue tracker

Closing ticket.

accepted


GlossaryView OMAS navigation add search capability and endpoints.

Issue:
GlossaryCategory without Glossary are not reachable through the API.
GlossaryTerms without GlossaryCategory Glossary  are not reachable through the API.
Basically if there is no Glossary in the repos no term and/or category is reachable.
Proposal solution:
Add endpoint method for all the GlossaryCategory.
Add endpoint method for all the GlossaryTerms.
Add filtering by name / displayName , description, qualified name (not sure how useful would be)

Issue:
GlossaryCategory without Glossary are not reachable through the API.
GlossaryTerms without GlossaryCategory Glossary are not reachable through the API.
Basically if there is no Glossary in the repos no term and/or category is reachable.
Proposal solution:
Add endpoint method for all the GlossaryCategory.
Add endpoint method for all the GlossaryTerms.
Add filtering by name / displayName , description, qualified name (not sure how useful would be)

If I understand correctly, then GlossaryCategory without a Glossary and GlossaryCategory without a Glossary cannot because it their hierarchy and they depend on each other. But endpoint method for all the GlossaryCategory and all GlossaryTerms make necessary.
If by filtering you mean a search by the necessary properties, then such a change will need to be made for the getAllGlossaries method as well. I can try to implement this.

Hi @bogdan-sava
While I can offer you endpoints without filtering - https://github.com/odpi/egeria/pull/3169

@immmus. Thanks,
Yes that's fine.

@immmus. Thanks,
Yes that's fine.

Well), you are welcome)


fix loading issue?

@jiwalker-usgs review?  I can't recreate the loading problem locally, but this doesn't break it at least.    The problem looks to be the slider object not existing.
Or should it be just if(slider){ ?

#107


Add categories

Enhancements
We are going to append the categories

Astrophysics (astro-ph)
Condensed Matter (cond-mat)

Add all to Bluesky on 2024-09-16

add Mathematics


Allow ios & android icons

Ionic version:  (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ...  (check one with "x")
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
iOS and android use the same icons
Expected behavior:
to have the ability to specify an ios icon, and android icon
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Your system information:

 ordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 0.0.47
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.1
Xcode version: Not installed

Just use:
<ion-icon name="ios-ICONNAME"></ion-icon>
<ion-icon name="md-ICONNAME"></ion-icon>

My apologies. I meant application icons.
Currently you can have icon.png, and it will generate ios and android icons, which are the same.

Put your android source files under resources/android and your iOS source files under resources/iOS.  If you want the same sour files used for both put the source files directly under /resources.

@ghenry22 Thanks! I was not aware of this!


Security finding: Please update grafana container to 6.7.4

Describe the bug
Teslamate is using Grafana 6.7.3 currently. This release has a major security finding, see here:
https://grafana.com/blog/2020/06/03/grafana-6.7.4-and-7.0.2-released-with-important-security-fix/?utm_source=grafana_news&utm_medium=rss
Can you please bump the container to 6.7.4?
** Rest of bug report not applicable **

Released v1.19.4


Ubuntu-latest stopped running Node.Js script in Actions

Description
My Actions stopped working a few days ago (e.g.: see "Run main script" job) and I realized Actions using Ubuntu 22.04 and not 20.04. It is related to https://github.com/actions/runner-images/issues/6399. The main script just simply not executed. There is no error msg.
Reverting back to Ubuntu-20.04 solved the issue: https://github.com/theDavidBarton/koronavirus.gov.hu-scraper/actions/runs/3666215143/jobs/6197790588
Note: it won't fail the job, it will only silently skips script execution.
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[X] Ubuntu 22.04
[ ] macOS 10.15
[ ] macOS 11
[ ] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
20221204.2 https://github.com/theDavidBarton/koronavirus.gov.hu-scraper/actions/runs/3666162585/jobs/6197707490
Is it regression?
20221204.2 https://github.com/theDavidBarton/koronavirus.gov.hu-scraper/actions/runs/3666215143/jobs/6197790588
Expected behavior
It should run the Node.Js script with 22.04 as before with 20.04.
Actual behavior
The Node.Js script is not executed.
Repro steps

Run scrape job here https://github.com/theDavidBarton/koronavirus.gov.hu-scraper/actions/workflows/scrape.yml with an ubuntu-latest
It won't run the Node.Js script but goes to the next job immediately

This probably is related to https://github.com/actions/runner-images/issues/6698

@igorboskovic3
minimal repro steps
prequisities:
package.json
{
  "dependencies": {
    "puppeteer": "^5.3.0"
  },
  "engines": {
    "node": "16.x"
  }
}

index.js
const puppeteer = require('puppeteer')

const runScrape = async () => {
  const browser = await puppeteer.launch()
  const page = await browser.newPage()
  await page.goto('https://koronavirus.gov.hu')
  console.log('the Node.Js script is launched successfully)
  await browser.close()
}
runScrape()

.github/workflows/scrape.yml
name: scrape

on:
  schedule:
    - cron: '30 9 * * *'
  workflow_dispatch:

jobs:
  scrape-and-publish:
    runs-on: ubuntu-latest
    environment:
      name: production

    steps:
      - uses: actions/checkout@v3
      - name: Use Node.js 16.x
        uses: actions/setup-node@v3
        with:
          node-version: 16.x
      - name: Install project
        run: yarn
      - name: Run main script
        run: node index.js

available here as well. I removed everything irrelevant from the point of view of the Ubuntu issue: https://github.com/Crocodiles-in-the-Basement/koronavirus.gov.hu-scraper
steps:

trigger a workflow dispatch in Actions (https://github.com/Crocodiles-in-the-Basement/koronavirus.gov.hu-scraper/actions/workflows/scrape.yml)
it will not run the Node.Js script with Ubuntu-latest (https://github.com/Crocodiles-in-the-Basement/koronavirus.gov.hu-scraper/actions/runs/3679654093/jobs/6224349730#step:5:2)

Hi @theDavidBarton, your issue is probably due MongoDB, which isn't installed on ubuntu-latest. You can see here that we don't have MongoDb on that image, I would recommend that you use ubuntu-20.04 image. Feel free to reach us if you have additional questions.

hi @igorboskovic3,
thanks for the heads up. however, I am 100% sure it is not related to Mongo, see my minimal repro steps in my latest comment: https://github.com/actions/runner-images/issues/6738#issuecomment-1347316250 which was not using MongoDB at all. also, that should have an error message in Actions, the current issue is rather the lack of errors (the script silently not executed via Node.Js) 🤔
indeed, I needed to downgrade to ubuntu-20.04 image manually, but I hope it will be fixed later on as I am afraid I will be stuck with a non-supported version in a few years. 🙏

Hello @theDavidBarton
In fact there are bunch of problems in the script.
The first one it looks like puppeteer instead of using preinstalled google-chrome has to download it. This can be solved with const browser = await puppeteer.launch({executablePath: '/usr/bin/google-chrome'})
@igorboskovic3 I suppose the problem above caused the images has not most-recent version of google-chrome and puppeteer tries to download another. So, probably, you should consider to update runner image for ubuntu 22.04
The second problem is the script does not wait for the google-chrome to be downloaded(see https://github.com/nodejs/node/issues/22088 and according to the script works as expected - node exits before the await , that is a wrapper around a promise), returns.)
It can be workarounded with adding a callback that makes nodejs to wait for it
const puppeteer = require('puppeteer')

let READY = false // <==== exit condition

const runScrape = async () => {
  console.log('await puppeteer.launch()')
  const browser = await puppeteer.launch({executablePath: '/usr/bin/google-chrome'})

  console.log('await browser.newPage()')
  const page = await browser.newPage()

  console.log('await page.goto')
  await page.goto('https://koronavirus.gov.hu')

  console.log('the Node.Js script is launched succesfully')
  await browser.close()
  READY = true // <==== set exit condition
}

runScrape()

// now wait while condition is set
function wait () {
  if (!READY) {
        setTimeout(()=>{console.log('ready')}, 1000);
  }
};
wait();
console.log('end script')

And finally, when i tried to wait for the downloading of the recent google-chrome (i.e. omit {executablePath: '/usr/bin/google-chrome'}) i got pupper timeout, so there's another problem to download the google-chrome i can not resolve being not well known with pupper internals.
Does it help?

hi @dsame,
thank you very much for your extraordinary efforts on the issue. yes, with the information you provided I found out that puppeteer v5.3.0 gave a warning: warning<EMAIL_ADDRESS>< 18.1.0 is no longer supported during npm install and it seems it means Ubuntu 20.04 still handles this version while 22.04 has the above issue.
simply upgrading to puppeteer v18.1.0 solves my issue with ubuntu-latest image. https://github.com/Crocodiles-in-the-Basement/koronavirus.gov.hu-scraper/actions/runs/3782984220/jobs/6431168530
it was a project maintenance dept on my side, thanks @dsame and @igorboskovic3 for your time spent with the resolution.

I suppose the problem above caused the images has not most-recent version of google-chrome and puppeteer tries to download another. So, probably, you should consider to update runner image for ubuntu 22.04

I think this is not needed, as the issue resolves by upgrading project dependencies based on the npm warnings.


pykoplenti CLI tool not executable

I have an issue getting pykoplenti to run on my system. Python version is 3.8.10. Am I doing something wrong or is there incompatibility with certain Python versions?
I start by creating a venv:
olli@nucserver:~/src$ python -m venv ./venv-pykoplenti
olli@nucserver:~/src$ cd venv-pykoplenti/
olli@nucserver:~/src/venv-pykoplenti$ source ./bin/activate

Installation of pykoplenti is successful:
(venv-pykoplenti) olli@nucserver:~/src/venv-pykoplenti$ pip install pykoplenti[CLI]
Collecting pykoplenti[CLI]
  Using cached pykoplenti-1.2.2-py3-none-any.whl (20 kB)
Collecting pydantic~=1.10
  Using cached pydantic-1.10.18-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)
Collecting pycryptodome~=3.19
  Using cached pycryptodome-3.21.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB)
Collecting aiohttp~=3.8
  Using cached aiohttp-3.10.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
Collecting prompt-toolkit>=3.0; extra == "cli"
  Using cached prompt_toolkit-3.0.48-py3-none-any.whl (386 kB)
Collecting click>=7.1; extra == "cli"
  Using cached click-8.1.7-py3-none-any.whl (97 kB)
Collecting typing-extensions>=4.2.0
  Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting aiohappyeyeballs>=2.3.0
  Using cached aiohappyeyeballs-2.4.3-py3-none-any.whl (14 kB)
Collecting yarl<2.0,>=1.12.0
  Using cached yarl-1.15.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (319 kB)
Collecting aiosignal>=1.1.2
  Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting attrs>=17.3.0
  Using cached attrs-24.2.0-py3-none-any.whl (63 kB)
Collecting frozenlist>=1.1.1
  Using cached frozenlist-1.5.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243 kB)
Collecting async-timeout<5.0,>=4.0; python_version < "3.11"
  Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Collecting multidict<7.0,>=4.5
  Using cached multidict-6.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (129 kB)
Collecting wcwidth
  Using cached wcwidth-0.2.13-py2.py3-none-any.whl (34 kB)
Collecting idna>=2.0
  Using cached idna-3.10-py3-none-any.whl (70 kB)
Collecting propcache>=0.2.0
  Using cached propcache-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213 kB)
Installing collected packages: typing-extensions, pydantic, pycryptodome, aiohappyeyeballs, idna, propcache, multidict, yarl, frozenlist, aiosignal, attrs, async-timeout, aiohttp, wcwidth, prompt-toolkit, click, pykoplenti
Successfully installed aiohappyeyeballs-2.4.3 aiohttp-3.10.10 aiosignal-1.3.1 async-timeout-4.0.3 attrs-24.2.0 click-8.1.7 frozenlist-1.5.0 idna-3.10 multidict-6.1.0 prompt-toolkit-3.0.48 propcache-0.2.0 pycryptodome-3.21.0 pydantic-1.10.18 pykoplenti-1.2.2 typing-extensions-4.12.2 wcwidth-0.2.13 yarl-1.15.2

However, I cannot execute even the help functionality:
(venv-pykoplenti) olli@nucserver:~/src/venv-pykoplenti$ ./bin/pykoplenti -h
Traceback (most recent call last):
  File "./bin/pykoplenti", line 5, in <module>
    from pykoplenti.cli import cli
  File "/home/olli/src/venv-pykoplenti/lib/python3.8/site-packages/pykoplenti/__init__.py", line 1, in <module>
    from .api import (
  File "/home/olli/src/venv-pykoplenti/lib/python3.8/site-packages/pykoplenti/api.py", line 19, in <module>
    from .model import (
  File "/home/olli/src/venv-pykoplenti/lib/python3.8/site-packages/pykoplenti/model.py", line 7, in <module>
    class MeData(BaseModel):
  File "/home/olli/src/venv-pykoplenti/lib/python3.8/site-packages/pykoplenti/model.py", line 13, in MeData
    permissions: list[str] = Field()
TypeError: 'type' object is not subscriptable

(venv-pykoplenti) olli@nucserver:~/src/venv-pykoplenti$ python3 --version
Python 3.8.10

Yes, I have a bug which prevent it from running with 3.8. I have prepared a PR #18 (not integrated yet), which fixes it for 3.9. I dropped support for 3.8 because it is already end of life (https://devguide.python.org/versions/#versions).
So, please try with 3.9 or higher and take the branch from #18 until it is integrated.

Tried with 3.9 and the version in that branch. Seems to work ok.


deserialization_fix

deserialization_fix bug fix

Will this fix works for nexted level models . Like model inside model Notification model  having a Ticket model.

Will this fix works for nested level models . Like model inside model Notification model having a Ticket model.

yeah that's already fixed in serialisation but some how i missed that in deserialisation


fix locale/ja.js

Hi, I had a error when importing dist/locale/ja.js.
I've fixed locale/ja.js to get around this problem.
Uncaught ReferenceError: isDefinedGlobally is not defined

thanks, I missed adding it to this locale it seems.


Erratic behaviour with istio mixer objects

Bug description
I'm experiencing problems setting up whitelisting with mixer objects :

The bookinfo as described in istio documentation works if you strictly follow it, but if I delete the handlers/rule/instance, error 403 persists for about 2-3 minutes.
I tried to expose a test service : "monitoring/grafana" with IP whitelisting, using gateway "istio-system/ingressgateway" and couldn't find a logical solution for where to put the handlers/rule/instance objects :

it seems like it never works (never throw 403) if I create handlers/rule/instance objects in monitoring namespace, creating a gateway in monitoring namespace doesn't change
it seems to work if objects are in istio-system namespace BUT takes a loooong while ~5 minutes) to switch from 200 to 503 (and back).
Adding / Deleting handlers/rule/instance works and is faster for default namespace (see bookinfo exemple), even if I use istio-system/gateway instead of bookinfo-gateway

It's unclear whether those objects should be in the same namespace as the gateway, or as the service.
[ X] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[X ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Expected behavior
Should throw 200/503 depending whether I activate the handler/rule/instance or not
Steps to reproduce the bug
$ cat virtualService.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  namespace: monitoring
  name: grafana
spec:
  hosts:
  - grafana.dev
  gateways:
  - istio-system/ingressgateway
  http:
  - route:
    - destination:
        host: grafana.monitoring.svc.cluster.local

---
apiVersion: config.istio.io/v1alpha2
kind: handler
metadata:
  name: whitelistip
  namespace: monitoring
spec:
  compiledAdapter: listchecker
  params:
    # providerUrl: ordinarily black and white lists are maintained
    # externally and fetched asynchronously using the providerUrl.
    overrides: ["<IP_ADDRESS>/16"]
    blacklist: false
    entryType: IP_ADDRESSES
---
apiVersion: config.istio.io/v1alpha2
kind: instance
metadata:
  name: sourceip
  namespace: monitoring
spec:
  compiledTemplate: listentry
  params:
    value: source.ip | ip("<IP_ADDRESS>")
---
apiVersion: config.istio.io/v1alpha2
kind: rule
metadata:
  name: checkip
  namespace: monitoring
spec:
  match: source.labels["istio"] == "ingressgateway"
  actions:
  - handler: whitelistip
    instances: [ sourceip ]

Version (include the output of istioctl version --remote and kubectl version and helm version if you used Helm)
$ istioctl version --remote client version: 1.4.1 control plane version: 1.4.1 data plane version: 1.4.1 (9 proxies)
$ kubectl version Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-19T11:13:54Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.8", GitCommit:"1da9875156ba0ad48e7d09a5d00e41489507f592", GitTreeState:"clean", BuildDate:"2019-11-14T05:19:20Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
$ helm version version.BuildInfo{Version:"v3.0.1", GitCommit:"7c22ef9ce89e0ebeb7125ba2ebf7d421f3e82ffa", GitTreeState:"clean", GoVersion:"go1.13.4"}
How was Istio installed?
kubectl apply -f <$(istioctl manifest generate -f manifest)
---
apiVersion: install.istio.io/v1alpha2
kind: IstioControlPlane
spec:
  # Old API using helm, should be migrated
  values:
    prometheus:
      enabled: false
    tracing:
      enabled: true
    kiali:
      enabled: true
      dashboard:
        jaegerURL: "http://jaeger-query:16686"
        grafanaURL: "http://grafana.monitoring:3000"
    gateways:
      istio-ingressgateway:
        loadBalancerIP: <IP_ADDRESS>
    pilot:
      policy:
        enabled: true
    global:
      disablePolicyChecks: false
      proxy:
        accessLogFile: "/dev/stdout"
  # New incomplete IstioControlPlane API
  security:
    enabled: true
    components:
      certManager:
        enabled: true

Environment where bug was observed (cloud vendor, OS, etc)
Azure AKS

A few things to note:

there is caching behavior for policy enforcement. this can lead to delays in config pushes to k8s propagating out to various proxies in the form of enforced policies.
namespace of the policies matters. if you don't have a proxy in front of grafana and are trying to enforce policy to it from the istio-system gateway, the policy must be in the istio-system namespace.


Requesting help debugging a default installation

Hi,
I'm trying to test CVMFS automounts with the default deployment before modifying it to configure for another CVMFS repository.
I am testing this on a Kubernetes cluster in the Jetstream2 Openstack environment with a containerd runtime. I used the Helm chart to deploy the latest version of cvmfs-csi and am trying to test automounting CVMFS repositories as instructed in https://github.com/cvmfs-contrib/cvmfs-csi/blob/master/docs/how-to-use.md.
However, I keep getting a no such file or directory error when I try to access the cern.ch CVMFS repositories from the cvmfs-demo pod:
/ # ls -l /my-cvmfs/atlas.cern.ch
ls: /my-cvmfs/atlas.cern.ch: No such file or directory
I can verify that all the cvmfs-csi resources are running and do not see any errors in the nodeplugin or controllerplugin pods:
ubuntu@terraform-ubuntu20-leader:~$ kubectl get all
NAME                                                    READY   STATUS    RESTARTS   AGE
pod/cvmfs-cvmfs-csi-controllerplugin-5648d9b87d-hmsqc   2/2     Running   0          23s
pod/cvmfs-cvmfs-csi-nodeplugin-4jzwj                    2/2     Running   0          23s
NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP   <IP_ADDRESS>            443/TCP   79m
NAME                                        DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
daemonset.apps/cvmfs-cvmfs-csi-nodeplugin   1         1         1       1            1                     23s
NAME                                               READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/cvmfs-cvmfs-csi-controllerplugin   1/1     1            1           23s
NAME                                                          DESIRED   CURRENT   READY   AGE
replicaset.apps/cvmfs-cvmfs-csi-controllerplugin-5648d9b87d   1         1         1       23s
Could you please point me to any troubleshooting steps I can perform to check why the repositories cannot be accessed? I have also tried other versions (2.0.0 and 2.1.0) of the Helm chart and run into the same issue.
Thanks!

Hi,
Nevermind, i was able to figure it out and get it to work with our CVMFS repository. I had to have the right config files in /etc/cvmfs/config.d for our particular repository.
Thanks!


Make tests f-string py3.7 compatible

Tests are failing due to f-string formatting f"{cmd=}"
downgrade formatting for python 3.7 compatibility

Perhaps, passing tests in py3.8 is just as valid and we don't need to tailor to depreciated version.


You have an older version of PackageManagement known to cause issues with the PowerShell extension. Would you like to update PackageManagement (You will need to restart the PowerShell extension after)?

Prerequisites

[X] I have written a descriptive issue title.
[X] I have searched all issues to ensure it has not already been reported.
[X] I have read the troubleshooting guide.
[X] I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
[X] I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.

Summary
After installing (as Admin) PowerShell extension I got a warning: "You have an older version of PackageManagement known to cause issues with the PowerShell extension. Would you like to update PackageManagement (You will need to restart the PowerShell extension after)?"
After clicking "Yes":

PackageManagement updated, If you already had PackageManagement loaded in your session, please restart the PowerShell extension.
PackageManagement\Get-PackageSource : Unable to find repository 'PSGallery'. Use Get-PSRepository to see all available repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\<IP_ADDRESS>\PSModule.psm1:4489 char:35

... ckageSources = PackageManagement\Get-PackageSource @PSBoundParameters

               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (Microsoft.Power...etPackageSource:GetPackageSource) [Get-PackageSource], Exception
FullyQualifiedErrorId : SourceNotFound,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackageSource

I restart Visual Studio Code, and warning occur again:
1.You have an older version of PackageManagement known to cause issues with the PowerShell extension. Would you like to update PackageManagement (You will need to restart the PowerShell extension after)?
2. PackageManagement updated, If you already had PackageManagement loaded in your session, please restart the PowerShell extension.
3. PackageManagement\Get-PackageSource : Unable to find repository 'PSGallery'. Use Get-PSRepository to see all available repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\<IP_ADDRESS>\PSModule.psm1:4489 char:35

... ckageSources = PackageManagement\Get-PackageSource @PSBoundParameters

               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (Microsoft.Power...etPackageSource:GetPackageSource) [Get-PackageSource], Exception
FullyQualifiedErrorId : SourceNotFound,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackageSource

After all of that if I run my scripts they work just fine but error occur every time I launch VSC.
Also I don't know if problem isn't related to fact, that I'm using proxy in my company and maybe VSC can face problem to connect to some server to download neccesery repos.
PowerShell Version
Name                           Value
----                           -----
PSVersion                      5.1.19041.1237
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1237
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Visual Studio Code Version
1.62.3
ccbaa2d27e38e5afa3e5c21c1c7bef4657064247
x64

Extension Version
<EMAIL_ADDRESS>
Steps to Reproduce

Install Visual Studio Code for Windows 10
Install Power Shell Extension
Problem should occur

Visuals
No response
Logs
No response

Thanks @DawidGrzejek! Did you try any of the mitigation fix in the https://aka.ms/psgallerytls url?
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12  Install-Module PowerShellGet -RequiredVersion 2.2.4 -SkipPublisherCheck

Sorry @StevenBucher98  Yes I did:
WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'PowerShellGet'. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\<IP_ADDRESS>\PSModule.psm1:1809 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Her is a result for Invoke-WebRequest 'https://www.powershellgallery.com/api/v2/'
Invoke-WebRequest : <!DOCTYPE html>

  <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <title>McAfee Web Gateway - Notification</title>

  <link rel="stylesheet" href="/mwg-internal/de5fs23hu73ds/files/default/stylesheet.css" />

      Authentication Required

      You must be authenticated to access this URL.

      URL:

      For assistance, please contact your system administrator.

      generated 2022-01-11 08:00:30 by McAfee Web Gateway

      client ip: <IP_ADDRESS>, proxy server: MWG1B

      Mozilla/5.0 (Windows NT; Windows NT 10.0; pl-PL) WindowsPowerShell/5.1.19041.1320

At line:1 char:1
+ Invoke-WebRequest 'https://www.powershellgallery.com/api/v2/'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Thanks for trying that @DawidGrzejek! We believe this might be an issue with your proxy, we believe you will need to use the -Proxy and -ProxyCredential paramters.
Also do you have this issue outside of VSCode extension experience?

@StevenBucher98 Perfoming Install-Module PowerShellGet in Windows PowerShell ISE:

WARNING: Version '<IP_ADDRESS>' of module 'PowerShellGet' is already installed at 'C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.
0.0.1'. To install version '2.2.5', run Install-Module and add the -Force parameter, this command will install version '2.2.5' in side-by
-side with version '<IP_ADDRESS>'.

After that I did perfom comand Install-Module PowerShellGet -RequiredVersion 2.2.4 -SkipPublisherCheck on PowerShell ISE. And It seems like I worked:
PS C:\WINDOWS\system32> Get-InstalledModule

Version    Name                                Repository           Description
-------    ----                                ----------           -----------
1.4.7      PackageManagement                   PSGallery            PackageManagement (a.k.a. OneGet) is a new way to discover and in...
2.2.4      PowerShellGet                       PSGallery            PowerShell module with commands for discovering, installing, upda...
<IP_ADDRESS>    PSWindowsUpdate                     PSGallery            This module contain cmdlets to manage Windows Update Client.

I'll try to set my proxy in VSCode right and it should work.

Great! @DawidGrzejek we will close this issue and reopen if you have any further difficulty.


⚠ Bofrost.fr has degraded performance

In 5b1f080, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 928 ms

Resolved: Bofrost.fr performance has improved in 8f8e1f8 after 6 minutes.


Improve consistency of tmctl brokers command, expecting e.g. tmctl list brokers

Based on multiple people's feedback during our mini hackathon today

if we follow kubectl we could have a get command -not a list and have:

get brokers
get sources
get targets

so that we can see them as a list per type and potentially get a single one.
It does feel a bit redundant compared to describe

Closing for now as we haven't converged on anything.


Disabling individual area coords.

Is your feature request related to a problem? Please describe.
It is not a big problem but I think a bool disabled function would be great as sometimes on site-plans, I want to disable certain sold-out area.
Describe the solution you'd like
Probably something like disable boolean that we can add when we declare the map const.
Describe alternatives you've considered
Currently I am updating the id to empty so that users cannot click on that certain area. But this is not the best solution because users can technically still click on it. It is just that it is not linked to that id because I removed it. A disable boolean would be a better way to do it.

Great Feature, I am willing to add that feature to my project

Awesome! Thank you very much. Great work!

I am planning to add active: true | false in JSON.
If you are passing active: false in a specific area it will not highlight that specific area.
it will give similar results to that https://img-mapper.github.io/react-docs/?path=/story/examples-area--show-highlighted-area

That's perfect!

Hello @meljason
Please upgrade your version to v1.0.3
Here is the docs https://img-mapper.github.io/react-docs/?path=/story/examples-area--in-array-show-highlighted-area
Thanks

Hey @NishargShah I did
{
      "coords" : [ 416, 296, 437, 245, 454, 247, 501, 246, 427, 308 ],
      "id" : "22",
      "name" : "22",
      "preFillColor" : "rgba(255, 255, 255, 0.70)",
      "shape" : "poly"
      "active": "false"
    },

But it seems like it is still highlighting, am I doing something wrong?

did you upgrade the package to v1.0.4?

@NishargShah Yes it works now. I just forgot to restart my localhost. Thank you!


fix Golems

Iron & Snow Golem got new IDs, which makes now 3 differnt variants across all Minecraft versions.

I do not like the way I have implemented the (again) changed name for Snow Golems.
In the next days I will try to find a better solution.


Create Participations in Disposition

Fixes #228

Coverage decreased (-0.6%) to 79.309% when pulling 870740b4b236e83cfa73dc397c3fe95f1648f4e7 on feature/create_participations_in_disposition into 589f3ad3c782dac91bf7626ff98788b98e5ed417 on main.

Coverage decreased (-0.6%) to 79.309% when pulling 870740b4b236e83cfa73dc397c3fe95f1648f4e7 on feature/create_participations_in_disposition into 589f3ad3c782dac91bf7626ff98788b98e5ed417 on main.

Also fixes #251

Also fixes #251

Is the weird vertical alignment intended?
I think I'd prefer to have the select field below the heading on desktop

Is the weird vertical alignment intended?
I think I'd prefer to have the select field below the heading on desktop


Release 0.2.0

Codecov Report

Merging #8 (39581e5) into master (1689e19) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #8   +/-   ##
=======================================
  Coverage   75.00%   75.00%
=======================================
  Files           2        2
  Lines          16       16
=======================================
  Hits           12       12
  Misses          4        4

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 1689e19...39581e5. Read the comment docs.


Fix GetCustomAttribute that shouldn't be called on a return parameter

Another thing that make the lib crashing under mono.
Apparently .net framework/core is more permissive than what the doc is saying, because this method shouldn't be called on return parameter, .net fw/core is just returning null, but mono is crashing instead of throwing an exception... lol...
Anyway, this small fix makes everyone happy, specially me! :)

It seems that Mono has its own peculiarities on such kind of corner case 🌚
So I will also include this change in the next release.

When thinking this again, I don't think Mono should crash at all because actually .NET allows you to specify custom attributes on return parameters.
class C1
{
    [return: MarshalAs(UnmanagedType.SysInt)]
    public int F(double x)
    {
        return 10;
    }
}

I won't say what I think about mono....
Well, it's a tough thing to do, that's for sure.