Discovery+ not working

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2022.09.01 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
have used yt-dlp on discovery+ for awhile, but for 3 weeks it hasn't worked at all, i have subscription and can watch the videos in any browser jus won't work in yt-dlp
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
C:\Users\janna>C:\Users\janna\Downloads\yt-dlp\yt-dlp.exe --verbose --cookies C:\Users\janna\Downloads\yt-dlp\discoveryplus.com_cookies.txt -f "bestvideo[height<=480]+bestaudio/best[height<=480]" "https://www.discoveryplus.com/video/on-the-case-with-paula-zahn/jennys-story"
[debug] Command-line config: ['--verbose', '--cookies', 'C:\\Users\\janna\\Downloads\\yt-dlp\\discoveryplus.com_cookies.txt', '-f', 'bestvideo[height<=480]+bestaudio/best[height<=480]', 'https://www.discoveryplus.com/video/on-the-case-with-paula-zahn/jennys-story']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.09.01 [5d7c7d6] (win32_exe)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-108101-gf1b35fc8f0-20220911 (setts), ffprobe N-108101-gf1b35fc8f0-20220911
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1670 extractors
[debug] [DiscoveryPlus] Extracting URL: https://www.discoveryplus.com/video/on-the-case-with-paula-zahn/jennys-story
[debug] Using fake IP <IP_ADDRESS> (US) as X-Forwarded-For
[DiscoveryPlus] on-the-case-with-paula-zahn/jennys-story: Downloading JSON metadata
[DiscoveryPlus] 4923613: Downloading JSON metadata
[DiscoveryPlus] on-the-case-with-paula-zahn/jennys-story: Downloading MPD manifest
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 4923613: Downloading 1 format(s): dash-video=247000+dash-audio_eng=125000
[debug] Invoking dashsegments downloader on "https://dplus-northamerica.media-edge.prod-vod.h264.io/286ac188-ebc4-4611-867f-1f7c4c0370ca/dash_clear_fmp4/edge-cache-token=Expires=1663619014&KeyName=media-edge-key-prod-northamerica-200d417&Signature=KNS8ZiOpZJiOW2RSq9SMex0fE6GGtdIv5Yzy3DXO6OIFvLqHVhlw5CMiriRuLatz8PYeZUW13brjozdZ9FJtAg/master.mpd"
[dashsegments] Total fragments: 636
[download] Destination: Jenny's Story [4923613].fdash-video=247000.mp4
[debug] File locking is not supported. Proceeding without locking
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (1/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (2/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (3/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (4/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (5/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (6/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (7/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (8/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (9/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (10/10)...
[download] Got error: HTTP Error 403: Forbidden. Giving up after 10 retries
  File "yt_dlp\__main__.py", line 18, in <module>
  File "yt_dlp\__init__.py", line 962, in main
  File "yt_dlp\__init__.py", line 954, in _real_main
  File "yt_dlp\YoutubeDL.py", line 3293, in download
  File "yt_dlp\YoutubeDL.py", line 3268, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1448, in extract_info
  File "yt_dlp\YoutubeDL.py", line 1459, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1556, in __extract_info
  File "yt_dlp\YoutubeDL.py", line 1614, in process_ie_result
  File "yt_dlp\YoutubeDL.py", line 2712, in process_video_result
  File "yt_dlp\YoutubeDL.py", line 3153, in process_info
  File "yt_dlp\YoutubeDL.py", line 2895, in dl
  File "yt_dlp\downloader\common.py", line 443, in download
  File "yt_dlp\downloader\dash.py", line 54, in real_download
  File "yt_dlp\downloader\fragment.py", line 373, in download_and_append_fragments_multiple
  File "yt_dlp\downloader\fragment.py", line 517, in download_and_append_fragments
  File "yt_dlp\downloader\fragment.py", line 463, in download_fragment
  File "yt_dlp\utils.py", line 5794, in __iter__
  File "yt_dlp\downloader\fragment.py", line 460, in error_callback
  File "yt_dlp\downloader\common.py", line 388, in report_retry
  File "yt_dlp\utils.py", line 5801, in report_retry
  File "yt_dlp\downloader\common.py", line 391, in <lambda>
  File "yt_dlp\YoutubeDL.py", line 994, in report_error
  File "yt_dlp\YoutubeDL.py", line 923, in trouble

ERROR: fragment 1 not found, unable to continue
  File "yt_dlp\__main__.py", line 18, in <module>
  File "yt_dlp\__init__.py", line 962, in main
  File "yt_dlp\__init__.py", line 954, in _real_main
  File "yt_dlp\YoutubeDL.py", line 3293, in download
  File "yt_dlp\YoutubeDL.py", line 3268, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1448, in extract_info
  File "yt_dlp\YoutubeDL.py", line 1459, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1556, in __extract_info
  File "yt_dlp\YoutubeDL.py", line 1614, in process_ie_result
  File "yt_dlp\YoutubeDL.py", line 2712, in process_video_result
  File "yt_dlp\YoutubeDL.py", line 3153, in process_info
  File "yt_dlp\YoutubeDL.py", line 2895, in dl
  File "yt_dlp\downloader\common.py", line 443, in download
  File "yt_dlp\downloader\dash.py", line 54, in real_download
  File "yt_dlp\downloader\fragment.py", line 373, in download_and_append_fragments_multiple
  File "yt_dlp\downloader\fragment.py", line 518, in download_and_append_fragments
  File "yt_dlp\downloader\fragment.py", line 482, in append_fragment
  File "yt_dlp\YoutubeDL.py", line 994, in report_error
  File "yt_dlp\YoutubeDL.py", line 923, in trouble

[debug] Invoking dashsegments downloader on "https://dplus-northamerica.media-edge.prod-vod.h264.io/286ac188-ebc4-4611-867f-1f7c4c0370ca/dash_clear_fmp4/edge-cache-token=Expires=1663619014&KeyName=media-edge-key-prod-northamerica-200d417&Signature=KNS8ZiOpZJiOW2RSq9SMex0fE6GGtdIv5Yzy3DXO6OIFvLqHVhlw5CMiriRuLatz8PYeZUW13brjozdZ9FJtAg/master.mpd"
[dashsegments] Total fragments: 638
[download] Destination: Jenny's Story [4923613].fdash-audio_eng=125000.m4a
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (1/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (2/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (3/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (4/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (5/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (6/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (7/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (8/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (9/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (10/10)...
[download] Got error: HTTP Error 403: Forbidden. Giving up after 10 retries
  File "yt_dlp\__main__.py", line 18, in <module>
  File "yt_dlp\__init__.py", line 962, in main
  File "yt_dlp\__init__.py", line 954, in _real_main
  File "yt_dlp\YoutubeDL.py", line 3293, in download
  File "yt_dlp\YoutubeDL.py", line 3268, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1448, in extract_info
  File "yt_dlp\YoutubeDL.py", line 1459, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1556, in __extract_info
  File "yt_dlp\YoutubeDL.py", line 1614, in process_ie_result
  File "yt_dlp\YoutubeDL.py", line 2712, in process_video_result
  File "yt_dlp\YoutubeDL.py", line 3153, in process_info
  File "yt_dlp\YoutubeDL.py", line 2895, in dl
  File "yt_dlp\downloader\common.py", line 443, in download
  File "yt_dlp\downloader\dash.py", line 54, in real_download
  File "yt_dlp\downloader\fragment.py", line 373, in download_and_append_fragments_multiple
  File "yt_dlp\downloader\fragment.py", line 517, in download_and_append_fragments
  File "yt_dlp\downloader\fragment.py", line 463, in download_fragment
  File "yt_dlp\utils.py", line 5794, in __iter__
  File "yt_dlp\downloader\fragment.py", line 460, in error_callback
  File "yt_dlp\downloader\common.py", line 388, in report_retry
  File "yt_dlp\utils.py", line 5801, in report_retry
  File "yt_dlp\downloader\common.py", line 391, in <lambda>
  File "yt_dlp\YoutubeDL.py", line 994, in report_error
  File "yt_dlp\YoutubeDL.py", line 923, in trouble

ERROR: fragment 1 not found, unable to continue
  File "yt_dlp\__main__.py", line 18, in <module>
  File "yt_dlp\__init__.py", line 962, in main
  File "yt_dlp\__init__.py", line 954, in _real_main
  File "yt_dlp\YoutubeDL.py", line 3293, in download
  File "yt_dlp\YoutubeDL.py", line 3268, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1448, in extract_info
  File "yt_dlp\YoutubeDL.py", line 1459, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1556, in __extract_info
  File "yt_dlp\YoutubeDL.py", line 1614, in process_ie_result
  File "yt_dlp\YoutubeDL.py", line 2712, in process_video_result
  File "yt_dlp\YoutubeDL.py", line 3153, in process_info
  File "yt_dlp\YoutubeDL.py", line 2895, in dl
  File "yt_dlp\downloader\common.py", line 443, in download
  File "yt_dlp\downloader\dash.py", line 54, in real_download
  File "yt_dlp\downloader\fragment.py", line 373, in download_and_append_fragments_multiple
  File "yt_dlp\downloader\fragment.py", line 518, in download_and_append_fragments
  File "yt_dlp\downloader\fragment.py", line 482, in append_fragment
  File "yt_dlp\YoutubeDL.py", line 994, in report_error
  File "yt_dlp\YoutubeDL.py", line 923, in trouble

It has been fixed in https://github.com/yt-dlp/yt-dlp/commit/7657ec7ed6318dd66dd72cc100ba7bc5b911366e, try using master or wait for the next release
Duplicate of https://github.com/yt-dlp/yt-dlp/issues/4187

i'm so grateful for your response but this is all so new to my senior citizen brain, i  just don't know what to do next to get my yt-dlp up n running again

Well, in the meantime you can download an unofficial daily build from https://github.com/ytdl-patched/yt-dlp/releases
That should fix this error, but please do not open issues using that version.

omg that worked a charm tytyty so very much!!!

Does this fix the issue of not pulling the subtitles also?

Does this fix the issue of not pulling the subtitles also?

Subtitles can be downloaded in dash mp4 format only. Be aware that this subtitle format is not supported by ffmpeg. So they can't be embedded or converted to another format using yt-dlp or ffmpeg.
However, using mp4box
mp4box -raw 1 subtitle.en.mp4

The output is subtitle.en.vtt

I will try that ty
On Mon, Sep 19, 2022, 6:59 PM Mr-Jake @.***> wrote:

Does this fix the issue of not pulling the subtitles also?
Subtitles can be downloaded in dash mp4 format only. Be aware that this
subtitle format is not supported by ffmpeg. So they can't be embedded or
converted to another format using yt-dlp or ffmpeg.
However, using mp4box
mp4box -raw 1 subtitle.en.mp4
The output is subtitle.en.vtt
—
Reply to this email directly, view it on GitHub
https://github.com/yt-dlp/yt-dlp/issues/4964#issuecomment-1251654019,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADYTADIMM4XD74I5FQR6T4DV7DV6BANCNFSM6AAAAAAQPS3TMU
.
You are receiving this because you commented.Message ID:
@.***>


Multiple CPU not being utilized

I specified the use of 75 cores using the option --cpu (supercomputer has 88 cores). When I run top to check cpu usage, only one core is being utilized.
See the full code chunk below:
tools/my_interproscan/interproscan-5.65-97.0/interproscan.sh --cpu 75 -f TSV -i firmicutes_genomes.faa -o all_firmicutes_interproscan.tsv

This was caused by threads exceeding the maximum java heap space set in the InterProScan source code (error - java.lang.OutOfMemoryError: Java heap space). This was remedied by editing the interproscan.sh file to increase the maximum RAM allowed for java:
Originally specified in the interproscan.sh file with this line:
-Xmx9216M


Multiple resources per event

Hi
This is an awesome component, thanks! I'd like to be able to assign multiple resources to a single event and then render this in the resource view.
In my events object, I have an array of ids for each resource linked. This seems to prevent the event from rendering. If I change this to a single ID string it works fine.
Has anyone managed to make this work?
Cheers
Alex

Could this please be implemented?
I have also had to iterate thru my events and create multiples based on resources in an event. seems crazy to have to duplicate data this much.

As I'm also interessted in allocating multiple resources to an event, i started changing the code.
Basically what i did, I modified the groupEvents(events) method in src/utils/Resources.js to
    groupEvents(events) {
      // console.log("groupEvents",events);
      const eventsByResource = new Map()

      if (!resources) {
        // console.log("no resources");
        // Return all events if resources are not provided
        eventsByResource.set(NONE, events)
        return eventsByResource
      }

      events.forEach(event => {
        const id = accessors.resource(event) || NONE

        //split up if it is an array
        if (Array.isArray(id)) {
          id.forEach(item => {
            let resourceEvents = eventsByResource.get(item) || []
            resourceEvents.push(event)
            eventsByResource.set(item, resourceEvents)
          })
        } else {
          let resourceEvents = eventsByResource.get(id) || []
          resourceEvents.push(event)
          eventsByResource.set(id, resourceEvents)
        }
      })
      // console.log("eventsByResource", eventsByResource);
      return eventsByResource
    },

this allows then to show the event in all allocated resources. This then works for both, events with resources as id or array of ids:
    {
      id: 2,
      title: 'Team lead meeting',
      start: new Date(2018, 0, 29, 8, 30, 0),
      end: new Date(2018, 0, 29, 12, 30, 0),
      resourceId: [3,2],
    },

Any other suggestions?
    {
      id: 11,
      title: 'Birthday Party',
      start: new Date(2018, 0, 30, 7, 0, 0),
      end: new Date(2018, 0, 30, 10, 30, 0),
      resourceId: 1
    },

@jquense or @cutterbl Any chance my latest PR to this issue (https://github.com/jquense/react-big-calendar/pull/2405) could be reviewed? Very much appreciated!

Hello team is it possible resource group scheduler timeline view events using react big calendar like below view

if has any possiblity can some provide links with react big calendar pls

@Lavanya-ipro As of now, no one has yet submitted a PR that would allow for a horizontal resource view


Failing tests for the identifier parser

While extending the identifier parser identifier parser tests I found the following test cases that I thought should pass.
If someone can confirm that they should pass, I'll try to fix the parser.

@sjakobi It would be nice to rebase this onto the 8.8 branch. I'm pretty sure almost all of these would now pass (except perhaps 'foo.bar' - but even fixing that should be now be pretty easy).
If you want to wait until after 8.8 is released, that's OK too (building all the deps is a pain...).

Hi, thank you for this PR, but Haddock now lives full-time in the GHC repository!
Read more at https://discourse.haskell.org/t/haddock-now-lives-in-the-ghc-repository/9576.
Let me know if you feel it is still needed, and I'll migrate it. :)


Implement expand measurements

Description of feature
A function that takes all numerical values (or specified var_names) and readds them as min/avg/max to the AnnData object in X.
It's not clear to me how we can implement this because we're not storing several measurements in X. @Imipenem how do we do this?

We think that that we need some kind of aggregation column which has e.g. the patient ID to group the corresponding measurements together for specific features.


Rebuild local pods

I have 2 pods, that I'm working on locally (bottom ones):
# Cocoapods
app.pods do
  pod 'pop', '~> 1.0'
  pod 'VBFPopFlatButton'
  pod 'DACircularProgress'
  pod 'UIImage+DecompressAndMap', '0.1.0'
  pod 'SwipeView', :path => 'vendor/LocalPods/SwipeView'
  pod 'IDMPhotoBrowser', :local => 'vendor/LocalPods/IDMPhotoBrowser'
end

Problem is, that they I have to do 'rake pod:install', each time I edit their files, to get them to rebuild. How can I make local pods rebuild automatically, if I edit their files?

Any suggestions?

Still no suggestions? It can't be true, that there's no possibility to edit a local pod and then rake the project again and see the result? How in the world would you edit pods in a project then?

This seems to work fine in XCode,but having the same issue so ... bump

The older motion-cocoapods and CocaPods will try to update Cocapods's repository by rake pod:intall and it take a long time to update repository.
Please use latest motion-cocoapods and CocaPods, they do not update repository by default.


Calling of avail from Stellarator/IFE does not take into account iavail

In GitLab by @timothy-nunn on Jan 25, 2022, 11:21
As per discussion in !601, IFE/Stellarator call the availability model. However, they both call the avail subroutine without taking into account the iavail flag. However, other calls to availability models take into account the iavail flag:
if cv.iavail > 1:
    self.avail_2(output)  # Morris model (2015)
else:
    self.avail(output)  # Taylor and Ward model (1999)

Is this intended behaviour or should they be calling availabilities run method and allowing it to run the appropriate model based upon the switch?

For the ife module their is dedicated inertial fusion conditions in the avail routine that is ran. Though these just turn off parts of the routine that represent components not seen in inertial fusion eg (DEMO styled blankets).
For the stellarator module the avail routine is run as well. Though I don't see why it couldn't run the avail_2 routine.
Most availabilities are just calculated as a time require to reach a certain fluence when operating at a certain fusion power so should be goof enough as a proxy for estimating lifetimes.

Issue closed as per:
https://github.com/ukaea/PROCESS/pull/3037


beginner's guide for migrating a WebFaction site to HTTPS

I've written up a guide on using this tool for migrating a WebFaction site to HTTPS, including the steps needed for configuration and testing, to help friends who might not be sufficiently expert to follow the README alone. If it's useful, please feel free to link from the README or the wiki docs: http://bcc.npdoty.name/directions-to-migrate-your-WebFaction-site-to-HTTPS
Also, corrections or feedback would be welcome; I'm happy to update it.
Apologies for creating a Github issue for this. I would add this to the wiki, but GitHub doesn't allow forks/pull requests on wiki documentation, alas.

Added here: https://github.com/will-in-wi/letsencrypt-webfaction/wiki
Good idea on the affiliate link. I might borrow that and add mine to this project. I hope that isn't too self serving…
Thanks!

Incidentally, do you mind if I use some of what you wrote to bulk up/clarify the readme? I'll make sure to reference you in the commit. If you want to, you can fork the project and help clarify the readme.

Yeah, please use it in whatever way is useful to improve documentation. I'm not sure everyone will want a README at the level of detail I used (many people reading through github readme's are relative experts), but where it can help, great. I'm probably not going to fork/pull-request the readme in any extensive way at the moment.
I think it's fine to add your affiliate link somewhere in the docs. I wouldn't expect to get a lot of money that way (I'm certainly not), but if it's clear, I think that's a totally appropriate way to receive a benefit from those who use these docs and decide to do business with WebFaction.

Based on https://community.webfaction.com/questions/19988/using-letsencrypt, it sounds like they are actively working on control panel integration for cert installation (woot!), so I'm going to hold off on any major reworking of the docs in case this tool is obsolete (or needs to be rewritten) in a month.


nixopsUnstable: 1.7pre2764_932bf4 -> 2.0.0-pre

Motivation for this change
This is a an early draft of what NixOps 2.0 plugin management could look like based on https://github.com/NixOS/nixops/pull/1256.
This adds a new top-level attribute nixops2Unstable that has a function called withPlugins.
To build NixOps with the AWS plugin enabled (the only one packaged so far) you'd use this expression:
nixops2Unstable.withPlugins (
  ps: [
    ps.nixopsaws
  ]
)

Where ps is the pythonPackages set created for nixops2Unstable.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

cc @grahamc @AmineChikhaoui

Can this PR be reviewed please?

@adisbladis  I was wondering what would be required to build nixops 2.0 in Hydra? Would we need to bring back the 'release.nix'?

@adisbladis  I was wondering what would be required to build nixops 2.0 in Hydra? Would we need to bring back the 'release.nix'?

I'd expect these files to go in pkgs/applications/networking/cluster/, alongside terraform and docker-machine.
A clustered networking application isn't super accurate, but at least consistent with similar apps. NixOps certainly isn't a package management tool.
Perhaps it needs a lockfile update because it's been six months
Other than these two things it looks good to me.

I'd expect these files to go in pkgs/applications/networking/cluster/, alongside terraform and docker-machine.
A clustered networking application isn't super accurate, but at least consistent with similar apps. NixOps certainly isn't a package management tool.
Perhaps it needs a lockfile update because it's been six months
Other than these two things it looks good to me.

I'd expect these files to go in pkgs/applications/networking/cluster/, alongside terraform and docker-machine.

Indeed that makes more sense. I'll keep the old (nixops1) around where it is, but I'll move this new attribute elsewhere.

Thank you @adisbladis :heart:

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/tweag-nix-dev-update-7/11552/1


delete two old jupyternotebooks

@fridlind @yijias33 Hang tight on approving this PR, I'm working these changes into my fix right now.

@fridlind @yijias33 All, this has been fixed. Please see this commit: https://github.com/ARM-Development/comble-mip/commit/39b806f42c84be320706ab0dac297c5bfc21c353

Many thanks for that！
Timothy Juliano @.***> 于2023年11月30日周四 13:46写道：

@fridlind https://github.com/fridlind @yijias33
https://github.com/yijias33 Hang tight on approving this PR, I'm
working these changes into my fix right now.
@fridlind https://github.com/fridlind @yijias33
https://github.com/yijias33 All, this has been fixed. Please see this
commit: 39b806f
https://github.com/ARM-Development/comble-mip/commit/39b806f42c84be320706ab0dac297c5bfc21c353
—
Reply to this email directly, view it on GitHub
https://github.com/ARM-Development/comble-mip/pull/24#issuecomment-1834361684,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWW3NW4SZPFPP4ALAXB26XTYHDICFAVCNFSM6AAAAABABUDLLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGM3DCNRYGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Documentation typo, Example Part 3

Part 3 of the example on the index page of the repo (https://github.com/AzureAD/microsoft-authentication-library-for-js) appears to contain an typo of a misplaced parentheses,
// interaction required
if(error.indexOf("interaction_required" != -1)) {
should isntead be:
if(error.indexOf("interaction_required") != -1){

PR submitted

Fixed


update-metadata flag for generate command

An --update-metadata would be useful for development purposes, since a locally linked template might be update many times during development.

This will be deprecated by #19


Adding GetValue support

Work in progress

@lukasmittag @rafaeling @argerus
My first PR with substantial Rust changes. Seems to do what it shall but we could discuss how we want subscribe to react if the is no valid value - should you get a value first when there actually is a value, i.e. never receive notAvailable?
As I am a Rust beginner feel free to propose changes that makes the rust look more compact or improves reuse.

@rafaeling - shall this one be changed to target https://github.com/eclipse-kuksa/kuksa-databroker/tree/feature/databroker-api-v2 instead? Did you discuss any of the changes proposed in this PR or in comments, I can update it on Monday

Replaced by https://github.com/eclipse-kuksa/kuksa-databroker/pull/75


Pass checker parameters in config file

Since we are going to have an automated submission starting from the 2.0 round, it is a very good idea for all submitters to run the checkers with the same command line parameters.
In the previous 2 submissions submitters varied "at least" the --rcp_bypass and the --rcp_bert_train_samples parameters. So these two should be placed in a config file that will be made part of the submission. The package checker will look for the config file and if it is found, then it will apply the param values specified there.  The config file will likely be a json file.

Done


Add middleware that closes connections on responses to Connection: close header

If we respond to a request with Connection: close, we should send a response with Connection: close and then close it ourselves.
This works around buggy clients that send Connection: close and never close the connection themselves.

Closing this issue as behaviour of connection header depends on transport layer. HTTP/1.1 vs HTTP/2


Tag v1 hasn't been updated since 2021

Looks like v1 tag is still pointing to the really old code (2021) which is really confusing as in your documentation you are using it.
      - name: Load secret
        id: op-load-secret
        uses: 1password/load-secrets-action@v1

Would be great if you could tag the latest version (v1.1.1 or even v1.1.2 with a fix from #20). My assumption is that v1 will include all the non-breaking changes.

Hey @jannaspam,
Thank you so much for spotting this. Indeed, the v1 tag was no longer pointing to the latest version of the action (which is currently v1.1.2). I've just updated the tag to point to it.
Let me know if this addresses your issue and I will make sure that this v1 tag update will become a part of our release process for the upcoming versions. 😄

Looks great, thank you for really prompt response :)


[BEAM-4376] Add Nexmark events generation based on ParDo

R: @kennknowles
CC: @jkff
Hi, I ping you guys because I found something weird and I am not sure if it is a direct runner issue or a issue with ParDo (or a Nexmark thing that I didn't identify). I added this new generation mode for Nexmark to be able to test the PortableRunner. However when the Nexmark executions produce different results.
I print the generated events (the input of the different queries) and both (the ParDo based and the Source generator) produce exactly the same output (I validate this in EventGeneratorDoFnTest#testGeneratesSameEvents).
Do you have any idea why this can be wrong? am I missing something that can change the results?
As a reference to execute this I do:
./gradlew :beam-sdks-java-nexmark:run \
    -Pnexmark.runner=":beam-runners-direct-java" \
    -Pnexmark.args="
        --runner=DirectRunner
        --streaming=false
        --suite=SMOKE
        --manageResources=false
        --monitorJobs=true
        --enforceEncodability=true
        --enforceImmutability=true --useParDoGenerator=true"

You can change useParDoGenerator to false to see the different results.

The execution output (the Results column is the one that's weird)
Source version
==========================================================================================
  Conf  Runtime(sec)    (Baseline)  Events(/sec)    (Baseline)       Results    (Baseline)
  0000           5.3                     18786.4                      100000
  0001           3.0                     33123.6                       92000
  0002           1.1                     89686.1                         351
  0003           2.1                     47892.7                         462
  0004           1.0                      9842.5                          40
  0005           3.9                     25713.6                          12
  0006           0.9                     11123.5                         401
  0007          12.7                      7846.8                           1
  0008           1.9                     51975.1                        6000
  0009           1.0                     10142.0                         298
  0010          17.2                      5821.7                           1
  0011           3.0                     33178.5                        1919
  0012           2.0                     50658.6                        1919
==========================================================================================

ParDo Create.of(Void)+ParDo version
==========================================================================================
  Conf  Runtime(sec)    (Baseline)  Events(/sec)    (Baseline)       Results    (Baseline)
  0000           5.1                     19512.2                      100000
  0001           5.6                     17825.3                       92000
  0002           5.2                     19120.5                         351
  0003           5.8                     17143.8                         389
  0004           7.8                      1282.5                          83
  0005          13.0                      7687.6                         237
  0006           7.2                      1387.9                         365
  0007          31.9                      3137.4                         100
  0008           4.1                     24224.8                         992
  0009           7.9                      1270.8                         263
  0010          21.8                      4590.1                         100
  0011          12.6                      7934.6                       15529
  0012          11.4                      8795.8                        1919
==========================================================================================

Taking a peek. I know also @akedin and @apilloud have seen Nexmark code somewhat recently.

The Result column appears to be querying a counter metric. So perhaps the new runner does not implement them quite right? Also, it may be that the actual things counted there are nondeterministic in various ways.
Query3 - uses an event count trigger, so is nondeterministic generally
Query4 - should be deterministic, uses hot key fanout FWIW
Query5 - ditto, uses hot key fanout too
Query6 - trigger nondeterminism
Query7 - fanout and side input (maybe weird?)
...
These are just guesses. Ultimately the least trustworthy bit seems most likely to be the metrics / counters implementation. I would do direct counts with a Count transform and compare.

Hi thanks for your comments in the queries, they highlight some valid issues. I just want to clarify one thing. Both executions were done against the normal DirectRunner but one used a synthetic generator based on the Source API and the other a new one based on Create.of(Void)+ParDo.  I validated and both are producing exactly the same 'Inputs' so that's where I am lost, I expected some queries to eventually vary but this goes beyond all my expectatives, in particular for queries like query 11.

Yea the numbers are pretty wild.

We have turned on autoformatting of the codebase, which causes small conflicts across the board. You can probably safely rebase and just keep your changes. Like this:
$ git rebase
... see some conflicts
$ git diff
... confirmed that the conflicts are just autoformatting
... so we can just keep our changes are do our own autoformat
$ git checkout --theirs --
$ git add -u
$ git rebase --continue
$ ./gradlew spotlessJavaApply

Please ping me if you run into any difficulty.


Game Request: Unturned

Module Request
Game Information:

Put your game information here
Game title: Unturned
Can be found on Steam
Windows, linux, Mac
As far as I'm aware it has a console and does support Rcon
I confirm:

[X] that I have searched for an existing module request for this application.
[X] that the server is an official server distributed by the games publishers/developers.
[X] that the server is available to the general public.
[X] that the server can be run headless (without a GUI).

The Lost Development Team is actively working on a module for Unturned.  Unfortunately, the game doesn't natively support RCON and we are unable to get the console output on Windows.  Due to this, the module has been put on a back-burner for the time being.  We also have no intentions to release any modules under our development that aren't functional.  Keep in mind that this does not mean it will be abandoned; it simply means that we will shift our focus elsewhere until a solution has been found.

Disclaimer: Just a heads up, The Lost Development team has no affiliation with CubeCoders.

Just to add to this Game Request the Unturned Dedicated Server depot can be found by going to this link https://steamdb.info/app/1110390/depots/.
However rcon access does require an additional module within Unturned which would be RocketMod. That is what most Server Owners use for rcon access and all of the other available tools which which come available with the tool.

A problem with Rocket's implementation of RCON is that its unstable and will not be a native part of the utility moving forward.  I've spoken with their developers in the past and am not sure it would be a viable option.

From what I'm aware of they are making newer versions of RocketMod to support upcoming updates, RCON isn't really unstable, nor is it unsecure if they use decent enough login credentials.


Update TOC to remove  CLI preview

Graph CLI is now GA

Hi @CarolKigoonya I found the same file in api-reference\v1.0\toc.yml and api-reference\beta\toc.yml with the preview label. Could you please remove the label from those files too?
Thanks,
Csilla

Hi @CarolKigoonya I found the same file in api-reference\v1.0\toc.yml and api-reference\beta\toc.yml with the preview label. Could you please remove the label from those files too? Thanks, Csilla

Good catch, @csmulligan


[2.0.0][Berlin/UK] Upgrade the Base MySQL Helm Chart Version

Description:
Currently, MySQL based WSO2 Helm charts use version 1.6.7. This needs to be upgraded.

Fixed.

Fixed.


Ability to multi-select census tracts on the map to get rollup information about those tracts

Summary data to show for selected census tracts:

Going to just start with percent of population in selected tracts that live in DAC tracts.


Ignore Passport-generated OAuth keys

Reasons for making this change:
Ignore Passport-generated OAuth keys.
Links to documentation supporting these rule changes:
reason: https://github.com/laravel/laravel/commit/f7a79a33cfa1627938deec5d2d3c0075cc86f3fb
ref: https://github.com/laravel/laravel/blob/master/.gitignore#L3

@appleboy thanks!


possible to add url link within field template?

like,
nga.field('Download', 'template')
            .template((entry) => `<a href="http://testurl.com/${entry.values.id}" />`),

aim to have a link in showView, can lead user to down some file from the server. Or alternative way to go?

Yes it is. Just format a valid tag such as:
nga.field('Download', 'template')
-    .template((entry) => `<a href="http://testurl.com/${entry.values.id}" />`)
+    .template((entry) => `<a href="http://testurl.com/${entry.values.id}">Download</a>`),

I make it work in a Plunker snippet (see Users list).
I close the issue, feel free to ask your next questions on StackOverflow with the tag ng-admin.


laravel-filemanager "Laravel 5.5" cannot upload png and jpg

extensions like gif, svg ... gets uploaded successfully.
but the extention png and jpg me return "invalid request upload".
OS Archlinux,
php-gd installed,
php-exif installed

Hi @anasmorahhib
What version of laravel-filemanager do you use?
Would you please provide us your lfm.php config file and related error logs here?

I have the same problem.
Laravel 5.5.19, Filemanager v<IP_ADDRESS>.
Cannot get detailed logs, just have following json response:
["Invalid upload request"]
  0: "Invalid upload request"

when sending data to /laravel-filemanager/upload

problem solved
I reinstall GD

In localhost (homestead) not have the problem but production has error.
The solution is install gd:
sudo apt-get install php7.0-gd

In my case I uses php7.0, you change by your version of php
Next reload your server web (apache or nginx)
And ready.

Spanish:
En mi entorno local me funcionaba todo  al subir a producción fallaba, solo me dejaba subir gif y svg sin problemas.
La solución fue instalar gd
sudo apt-get install php7.0-gd

En mi caso tengo php7, depende de tu versión.
Luego reiniciar tu servidor web (apache o nginx)
Y listo


No data parameter in requests.delete()

The requests.delete() method does not support having a data parameter. The HTTP spec for DELETE does not give much guidance about whether this is allowed, but in practical situations, it is often used. There is currently no way to access such services using requests.
(In particular it's worth noting that curl -X DELETE -d "data" works without issue)

According to the HTTP spec, "The DELETE method requests that the origin server delete the resource identified by the Request-URI."
This would seem to negate the usefulness of passing data in the request body, as the resource should be solely identified by the Request-URI.

I agree that a theoretical discussion can be had about this, and I'd probably be on your side, @sergedomk. However, we cannot ignore that, in reality servers can and do use data in the request body even for DELETE requests, and other standard tools (like curl) support this.
If you want an example, here's the first one that comes to mind: http://docs.gnip.com/w/page/23733233/Rules Methods Documentation#deleterules

I'd say this is a point for theoretical discussion.
Submitting a DELETE with data is already possible using requests.
requests.request('DELETE', url, data="data")
So the discussion is whether or not it should be included in the DELETE method as well. It's a question of where to draw a boundary on adhering to the spec vs. not.
curl is a great example of this as it has no adherence to the HTTP spec at all. curl -V FOOBAR -d "data" also works perfectly fine. And FOOBAR is definitely not a HTTP method.

Oh, interesting. I didn't know about requests.request. That certainly mitigates my issue, and makes me agree with you even more.
I'm okay with closing this issue if @kennethreitz is.


Where is the teleop source code of video and audio encoding?

Hi, guys:
I am reading the teleop source code related, But only found some status code in dreamview/backend/teleop, where is the other complete source code like about remote control communication, video/audio encoding
BTW， I found the apollo-teleop folder in dev_start.sh#301, How to get the code of folder?
Some scripts like run_teleop_video_decoderX.bash, run_teleop_router.bash, run_teleop_voip_encoder.bash
How to find them ?
Thanks, waiting for your response.

please check this README to see if it helps answer your question https://github.com/ApolloAuto/apollo/tree/master/modules/dreamview/backend/teleop

Got it, so it just seems like a propaganda feature in V6.0.


Remember last several searches

I always do the same searches and I always need to type in the channel name and choose "last 10 results".
Would it be possible to save the last several searches and show them underneath the search box so I can just click on one of them instead of typing?

The defaults for the whole dialog can be set in the preferences. That eliminates setting "last 10" every time.
As for different channel names, please see my answers from #113
Keeping the whole history of the search input is a cool thing, but honestly, I don't know, when to do that considering more important issues like #46 or #174 and the fact that I am currently building a house :D
Another thing would be the compatibility between versions (if the input dialog changes). So this issue is not trivial. I'll put it on my non-official feature list and close this one here.

Understood. Another idea which would work for me is a screen which shows recent broadcasts of all the people i follow on twitch.

That would require me to authenticate TL to your account (same as downloading sub-only VODs). The API-information who you follow is non-public. The thing is, I'd like to keep TL as smooth as possible without requiring authentication. To many users authenticating is a hassle and has a fishy touch to it because they quickly think I steal their account info or email address or something like that. I want to avoid popups that tell you to log in as much as possible.
You cannot argue objectively on that matter, it's just how users work :)

OK, I can appreciate that. KISS is a good rule to follow. All in all, these are all minor nitpicks on my side. You've made a great tool which makes my life easier. Thanks.


DM generates false positives in the dark

Describe the bug
DM is generating false positives in the dark.   This happens on the highway with very few cars around me.  It should be a fairly clean situation.
When I put on dark-rimmed glasses, the false positives go away.  After I take the glasses off, the DM false positives start approximately 10 seconds after glasses removal.
When I drive the same route in daylight, the false positives also go away,
Dark route with and without glasses:  056c5ef17a9c253b|2023-10-27--05-37-13--0
Daylight route: 056c5ef17a9c253b|2023-10-29--08-37-07--0
Dongle id:  056c5ef17a9c253b
Provide a route where the issue occurs
056c5ef17a9c253b|2023-10-27--05-37-13--0
openpilot version
0.9.4
Additional info
No response

@ZwX1616 can you take a look at this?


Bindings to change volume of audio

hi i have went through the whole godoc lol but have yet to figure out a way to change my bot's volume.
is there any solutions?
btw im using ffmpeg ;)

Use ffmpeg --volume to manage the volume discordgo just send the audio without interpret it.


Android TF Error: Not found: Op type not registered 'Const'

Hello,
I'm trying to run a dummy inference model I built in TF with python.
The model takes an input vector (size 3x200) and multiply (component-wise) it with a variable vector of the same size whose values were randomized. so output_node = input_node * variable_node
Then there is a reduce_sum to a final value.
The model was generated with this procedure:
`
checkpoint_prefix = "mygraph.ckpt"
checkpoint_state_name = "mygraph.ckpt"
input_graph_name = "input_graph.pb"
output_graph_name = "output_graph.pb"
def dummy_model(input):
    with tf.Graph().as_default():
        sess = tf.Session()
        with sess.as_default():

        variable_node = tf.Variable(tf.random_normal([3, 200], stddev=0.35), name="variable_node")
        input_node = tf.Variable(input, name="input_node")
        output_node = tf.reduce_sum(tf.mul(variable_node, input_node, name="output_node"), axis=1)
        init_op = tf.global_variables_initializer()

        #init = tf.global_variables_initializer()
        sess.run(init_op)

        saver = tf.train.Saver(write_version=2)
        checkpoint_path = saver.save(sess, checkpoint_prefix, global_step=0, latest_filename=checkpoint_state_name)
        tf.train.write_graph(sess.graph, "./", input_graph_name)`

After generating the model files (and renaming them) I made the process of freezing and optimizing the graph for inference on android using the script in the python\tools folder (freeze_graph.py, optimize_for_inference.py, print_selective_registration_header.py). In the end of this process I get the optimized graph 'my_optimized_graph.pb' and the ops_to_register.h' header which is used to tell tensorflow (bazel) what kernels to register when you add the "SELECTIVE_REGISTRATION" flag to the build rule.
My problem is, when I load the model in android I get the following errors occurred after the session->create() call:

E/native: op_kernel.cc:925 OpKernel ('op: "_Send" device_type: "GPU"') for unknown op: _Send
E/native: op_kernel.cc:925 OpKernel ('op: "_Recv" device_type: "GPU"') for unknown op: _Recv
E/native: op_kernel.cc:925 OpKernel ('op: "_Send" device_type: "CPU"') for unknown op: _Send
E/native: op_kernel.cc:925 OpKernel ('op: "NoOp" device_type: "GPU"') for unknown op: NoOp
E/native: op_kernel.cc:925 OpKernel ('op: "_Recv" device_type: "CPU"') for unknown op: _Recv
E/native: op_kernel.cc:925 OpKernel ('op: "NoOp" device_type: "CPU"') for unknown op: NoOp
E/native: op_kernel.cc:925 OpKernel ('op: "Placeholder" device_type: "GPU"') for unknown op: Placeholder
E/native: op_kernel.cc:925 OpKernel ('op: "Placeholder" device_type: "CPU"') for unknown op: Placeholder
E/native: op_kernel.cc:925 OpKernel ('op: "Const" device_type: "CPU"') for unknown op: Const
E/native: tensorflow_inference_jni.cc:138 Could not create Tensorflow Graph: Not found: Op type not registered 'Const'

It seems like the kernels did registered but the ops are unknown.
I searched a lot the forum and couldn't find solution for this issue.
Did anyone succeed in compiling TF on Android with SELECTIVE_REGISTRATION and running a custom graph model other than the "inception" model which used in the demo?

Can you post the generated ops_to_register.h file?

Closing due to inactivity. Provided new information, I will re-open.


Implement model quantization to reduce memory usage during inference

When running the gradio demo (just gradio), the model currently requires approximately 32GB of memory to load and perform inference. While this can be reduced to around 20GB with the --data_type float16 option, implementing 8-bit, 6-bit, or 4-bit quantization could further reduce the memory requirements.

See #8 for details of our existing work on this. I'll take another look at it now though.


Details page accordions don't re-open properly

Package version (if known): 9.1 (locally and on demo site)
Describe the bug
After closing a file accordion on a record's details page and clicking to re-open it, it doesn't re-open properly:
Initially (open)

After closing/minimizing the accordion and trying to re-open it

Steps to Reproduce

Upload a record with files
Click on the files accordion - the image is minimized
Click on the files accordion again
See error

Expected behavior
The accordion would open and close correctly.

And a video:
https://user-images.githubusercontent.com/8138663/189943120-0a8cb9b8-258c-4a85-b7fb-bd8501cc7e61.mov

This seems to be an issue with Firefox, as it is working properly with Chrome.
See also the demo page and https://github.com/Semantic-Org/Semantic-UI/issues/7087

As of v11 (even on firefox), this seems to have been resolved.


Port gax helper methods

There's an unrelated lint error blocking this, I sent https://github.com/GoogleCloudPlatform/google-cloud-python/pull/4250 to fix. Can you verify that nox -s "unit_tests(python_version='3.6')" works locally? if so, I'm happy to merge this as-is without waiting to rebase.

That command ran successfully.


[4188] Payment schedule view bugs

Context
https://trello.com/c/dN9vrcwM/4188-payment-schedule-view-bugs
Changes proposed in this pull request

Add header to empty state page
Fix typo in para on empty state page
Add space between minus sign and currency delimiter

Guidance to review
Note: page title changed in this PR https://github.com/DFE-Digital/register-trainee-teachers/pull/2392

View a funding payment schedule and check the above points

Important business

[ ] Does this PR introduce any PII fields that need to be overwritten or deleted in db/scripts/sanitise.sql?
[ ] Does this PR change the database schema? If so, have you updated the config/analytics.yml file and considered whether you need to send 'import_entity' events?

NB: Please notify the #twd_data_insights team and ask for a review if new fields are being added to analytics.yml

 Payment schedule view bugs

I know this wasn't on the ticket and we must have missed it in snagging - but I've just noticed that the payment schedule table caption isn't displaying the full month - could we fix this? e.g. Jun => June, Aug => August

Another thing we missed from the snagging - 'Predicted Payments' title should be 'Predicted payments' i.e. no capital 'p' on payments

@HettieS extra bits added in this commit: https://github.com/DFE-Digital/register-trainee-teachers/pull/2393/commits/5c0b6c072f3f6c0a3539c0dc48af2da4dc9f1de6
Full month:

Capitalisation:

No-wrap:


Missing enum value

in PlacesResultTypeEnum.cs, need to add
    [EnumMember(Value = "light_rail_station")]
    LightRailStation

I confirm this issue.

Hello, how do you solve this issue, please ? I got the same.


Clone and Build the Application, Will I Get a Girl Friend?

never!

Code is Girl Friend！！！！

"Girlfriend" / "Boyfriend" has the same words with "Object" in Chinese.
so you ... can not find object? LoL
keep the following suggestions:
1.

2.

3.

4.

then, you'll be in love with chrysanthemum.

so sad.


What will happen if the loader thread terminates due to an error?

When loaders are moved off the main thread, what will happen if the loader thread crashes / terminates?  Could be due to an uncaught error, code erroneously calling process.exit(), or any other reason I didn't think of.
Supposing the main thread makes a blocking / synchronous request to the loader thread using postMessage and Atomics.wait.  We need to guard against hanging the main thread indefinitely in the event the loader thread crashes.  The motivation is running a compiler in the loader thread and also querying the same compiler within synchronous require() hooks on the main thread.
In past threading work, I've done this with a watchdog thread and a worker thread, where the watchdog checks for the worker to terminate and wakes up the main thread, preventing the main thread from hanging.
If loaders are spec-ed such that any termination of the loader thread is guaranteed to crash the node process, then this watchdog may not be needed.  However, if "crash the node process" means waiting for the main thread to respond to a process.on('unhandledException') or something like that, then we've still got the problem of a hanging main thread.

If loaders are spec-ed such that any termination of the loader thread is guaranteed to crash the node process

Yes, I would imagine node should crash. Perhaps @bmeck has more insight though?

This is now live. The answer is: it crashes.


Replacement of the query

Update all references to query and query_result

[x] query and .query_result removal
[x] data.inline removal

The only references to query, .query_result, and data.inline are now only in documentation. Perhaps #199 can take care of updating them @traut ?

for sure, I'll take care of updating the docs


Check request body to correct method from GET to POST if it's not empty

It's rare case where we have GET request with body content
This MR don't handle case where we send only file in POST request
should resolve: https://github.com/TracerBench/tracerbench/issues/243

Looks good thanks!


Implement projects gallery carousel

Right now this is not a priority and the design in #ferreiroV3 has changed since this issue was posted. So I'm closing this now :)


Update Configure-User-Certificate-Authentication.md

replace netsh http add sslcert ipport=<IP_ADDRESS>:{your_certauth_port} certhash={your_certhash} appid={your_applicaitonGUID}
with
netsh http add sslcert ipport=<IP_ADDRESS>:{your_certauth_port} certhash={your_certhash} appid={your_applicaitonGUID} certstorename=MY sslctlstorename=AdfsTrustedDevices
please loop<EMAIL_ADDRESS>if you need more information or confirmation he is our Service Technical Advisory for ADFS

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


install fails: build error

I'm relatively new to npm so I'm not sure how to debug this sort of error:
../src/file.h:6:10: fatal error: 'groove/groove.h' file not found
#include <groove/groove.h>
^
1 error generated.
make: *** [Release/obj.target/groove/src/groove.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/geoffguidetti/Documents/Git/audio-experiment/node_modules/groove
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--save" "groove"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.5
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the groove package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls groove
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/geoffguidetti/Documents/Git/audio-experiment/npm-debug.log

Typically when you see that ______.h file not found (in this case groove.h) then you are missing the associated library. Take a peek at the libgroove installation instructions (if you have debian or ubuntu then it's already in apt-get).

Oh, I completely missed that! Thank you. Isn't npm supposed to take care of dependencies? That is confusing to me, I thought that was the point of it, shouldn't it grab those first?

Normally, yes. However in this situation libgroove depends on libav/ffmpeg, which is a library so huge that it makes more sense to install it globally on your system and link against that than to bundle it in an npm package.
So what ends up happening is that libgroove is bundled up in a way that depends on libav/ffmpeg (as well as some other C libraries), so you end up relying on your system's packaged up version of those libraries which contains patches and fixes that are relevant to your system. This is a little inconvenient in terms of getting all dependencies from npm, but it ends up being more convenient in the long run, avoiding a bunch of subtle problematic conditions.

Thanks! That helps a lot.

Oh, and I noticed you're on OSX, so you can install libgroove via homebrew and that will pull in all the dependencies you need.

Sweet! Thanks.


pint ureg

from the readme:
import pint

u = pint.UnitRegistry()
U = Unit = u.Unit
Q = Quantity = u.Quantity

from unit_parse import parser

# your code from here…

Are you aware of pint's application registry? it was made for this purpose.
pint.set_application_registry(u)
pint.get_application_registry() # returns u

I was not aware. I did some looking at the docs and their use is still not clear to me.
Can I use pint.get_application_registry() in my 'unit_parse' package to get a registry that has already been defined (or get new one if none have been previously defined)?

Can I use pint.get_application_registry() in my 'unit_parse' package to get a registry that has already been defined (or get new one if none have been previously defined)?

yes


Unable to find a matching set of capabilities

Hi,
I am running sample.py on Amazon Linux AMI 2017.09.1 and install the package with "pip install -r requirements.txt". Then I download and set the geckodriver path and got following error when running. Any idea how to fix this?
waiting for QR
Traceback (most recent call last):
File "sample.py", line 4, in
driver = WhatsAPIDriver()
File "/home/WebWhatsAPI/webwhatsapi/init.py", line 66, in init
self.driver = webdriver.Firefox()  # trying to add proxy support: webdriver.FirefoxProfile().set_proxy()) #self._PROXY))
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 158, in init
keep_alive=True)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 154, in init
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 311, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 237, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities

how do you solved that?


Website: Complex bug verification process

Acceptance Criteria:

Author a page with the following content and publish on our design system website
The page should be located: Get started -> Developers -> Bug verification process

This story is best suited to @twjeffery since it will require some translation of the page content/layout in Confluence to the website.

@Spark450 I created a second version of the content for your review.

@asikinack I like your "version 2" lets go ahead with that content. Thanks for the thoughtful revisions.


Fix Incompatibility with Python 3.12

According to the Python docs for the random module (here):
Changed in version 3.12: Automatic conversion of non-integer types is no longer supported. Calls such as randrange(10.0) and randrange(Fraction(10, 1)) now raise a TypeError.
Python 3.12 will no longer automatically cast these floats to ints, making padelpy incompatible with 3.12. This patch should fix it.

@tjkessler @FanwangM I can't request your review, but this is ready for review. Thanks for building and maintaining padelpy!

@JacksonBurns thanks for the fix! I'll merge, new version will be 0.1.16.


JSON Serialization Errors From Activity Responses Fail Silently

Expected Behavior
When an Activity tries to return a non-serializable type (such as an error), an error should be presented in the worker logs.
Actual Behavior
Currently the error is not output to logs, however it is possible to discover the issue by visiting the Temporal web app and inspect the Workflow execution history.
Steps to Reproduce the Problem

Return a struct with an error type attached to it from an Activity (make sure the response is an error and not nil).
See the Workflow fails
See there is no logging output in the worker logs.

If you wish, I made a repo with a branch to repro this issue here: https://github.com/DannyHinshaw/go-temporal-sandbox/tree/issue/bad-json-silent-failure
You can clone that, run docker-compose up -d and then hit the endpoint GET http://localhost:8080/workflow to trigger a workflow that shows the issue. From there you can inspect the system logs and Temporal web app.

I've debugged this a bit and it looks like the problem is with default json converter, that returns no error if you marshal a struct with an error field into json, but then fails to unmarshal it back.
Consider following test code (passes):

	pc := NewJSONPayloadConverter()

	wt := testStructWithError{Name: "qwe", Error: errors.New("some error")}
	payload, err := pc.ToPayload(wt)
	require.NoError(t, err) // Should this be an error since it's impossible to deserialize?

	var deserialized testStructWithError
	err = pc.FromPayload(payload, &deserialized)
	require.Error(t, err)
	assert.Equal(t, "unable to decode: json: cannot unmarshal object into Go struct field testStructWithError.Error of type error", err.Error())

So the reason why this doesn't produce any message when you complete an activity is because underlying json serializer succeeds and we successfully ship bytes back to the server, and it fails only when we try to process subsequent workflow task, which fails to deserialize the payload. I'm not sure if there is a good general solution to this issue, but there seem to be a work-around for passing an error described here.

I'm going to resolve this issue for now, please reopen if you have more questions or find response unsatisfactory.


background parrallax too heavy

don't prematurely optimize, but SpaceParallaxSystem currently has massive off screen tile over draw... with 5 layers the cost is massive. too many textures
1280x720 we only need 3-4 x and 2-3 y  ->  6 - 12 tiles max. currently there are 35 per layer for a total of 175?! bad!
1920x1080 currently there are 63 per layer for a total of 315?! terrible!
2560x1440 currently there are 91 per layer for a total of 455?! absurd!
4k must be an absolute disaster...

might be better off replacing with a shader but not sure how to achieve similar effect in a shader...

asprof says com/spaceproject/systems/SpaceParallaxSystem.drawParallaxTiles is too heavy (~43% @ 1440p)!
rendering tiles is calling switchTexture and batch flush
./asprof -d 30 -f /tmp/flamegraph.html


Windows fails to launch

Upon trying to launch, I get the error: java.sql.SQLException: path to '/usr/data/gaps.db': 'C:\usr' does not exist
I attached the entire msg displayed if it helps.
full.txt

You'll need to use this YML file to launch, rather than the Linux/Mac version
https://github.com/JasonHHouse/gaps/blob/master/GapsWeb/src/main/resources/application-windows.yaml
Just have to change the directory's.

How do I use the YML file to launch? As far as I know, you need docker to run them and I am using option 2 without docker.

The yml file and jar all need to be in the same folder. You just need to edit yours in a text editor. Find the line with /usr/data/gaps.db and change it to the folder your running in like C:\users\{username}\gaps, for example.
Everything is packed up in the zip. https://github.com/JasonHHouse/gaps/releases/tag/v0.9.3

Thank you. In order to get it working I had to change "/usr/data/gaps.db" like you said. However, changing it to the folder did not work, I had to change it to "C:\Users\jacob\gaps\gaps.db" for it to work. Glad it is working though, and thanks for the help. For future reference though, I am a little confused as to what the application-windows.yaml does? The only way it worked for me was by editing application.yaml. It did not matter if application-windows was present whatsoever.

Ah, I'm sorry. Yes, you would need the gaps.db at the end. I'm glad you go it working.
Spring is supposed to look for all application.yml files including sub yaml files which can override the base application.yml. This is assuming they are both in the same folder. I'm not sure why that didn't work for you. But I'm glad it is now.


Downloads from Reddit result in video with artifacts not present in source

Checklist

[ x ] I'm reporting a broken site support
[ x ] I've verified that I'm running youtube-dl version 2019.05.20
[ x ] I've checked that all provided URLs are alive and playable in a browser
[ x ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[ x ] I've searched the bugtracker for similar issues including closed ones

Verbose log
$ ./youtube-dl -v "https://www.reddit.com/r/PublicFreakout/comments/bulu4s/this_man_is_literally_on_fire/"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.reddit.com/r/PublicFreakout/comments/bulu4s/this_man_is_literally_on_fire/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.05.20
[debug] Python version 3.7.3 (CPython) - Linux-5.1.0-rc6-x86_64-with-arch-Arch-Linux
[debug] exe versions: ffmpeg 4.1.3, ffprobe 4.1.3, rtmpdump 2.4
[debug] Proxy map: {}
[RedditR] bulu4s: Downloading JSON metadata
[Reddit] ri48ogn3o7131: Downloading m3u8 information
[Reddit] ri48ogn3o7131: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://v.redd.it/ri48ogn3o7131/HLS_360_v4.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 15
[download] Destination: This man is literally on fire-ri48ogn3o7131.fhls-1385.mp4
[download] 100% of 9.78MiB in 00:04
[debug] Invoking downloader on 'https://v.redd.it/ri48ogn3o7131/audio'
[download] Destination: This man is literally on fire-ri48ogn3o7131.fdash-AUDIO-1.m4a
[download] 100% of 1.26MiB in 00:01
[ffmpeg] Merging formats into "This man is literally on fire-ri48ogn3o7131.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:This man is literally on fire-ri48ogn3o7131.fhls-1385.mp4' -i 'file:This man is literally on fire-ri48ogn3o7131.fdash-AUDIO-1.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:This man is literally on fire-ri48ogn3o7131.temp.mp4'
Deleting original file This man is literally on fire-ri48ogn3o7131.fhls-1385.mp4 (pass -k to keep)
Deleting original file This man is literally on fire-ri48ogn3o7131.fdash-AUDIO-1.m4a (pass -k to keep)

Description
Downloaded videos from Reddit result in severe artifacts not present in the source video. Seems to happen about every 6 seconds.
It is the same bug report as this https://github.com/ytdl-org/youtube-dl/issues/21034 except it was closed as duplicate without any mention of the actual duplicate issue.
I believe this original bug report was probably mistakenly closed.

@dstftw Please tell us what issue this is a duplicate of.


How to use ReaderT

Can you please share any example of how to use ReaderT monad transformer like below Scala example gist?
https://gist.github.com/noorulhaq/d620f750eafb0e9cd8496ce99b52ac2e
The objective is to avoid extra map required for extracting value from Future.

Hey @noorulhaq I haven't had time to look at this yet - I'll play around with it next week and see if it can be done with what is available in 1.x. Might have a few questions also :)

I think the best thing to do is to use 2.x for this. I'm working on adding Kleisli impl directly there. There is a work in progress PR here if you want to take a look :- https://github.com/aol/cyclops-react/pull/510/files
It will include Kleisli & Cokleisli, also Coreader, Writer, State & ReaderWriterState aswell as a type-safe ReaderT implementation.
I will also add in For Comprehensions in a number of places.

Functions class (for comps for working directly with j.u.Function)
Fn1 (for comps for working with Fn1 which extends j.u.Function)
Kleisli (for comps for Kleisli instances)
ReaderT (for comps of ReaderT instances)

If ReaderT and Kleisli extend from Fn1 and j.u.Function then 1+2 would allow us to run a for comprehension across both or 3 /4 can be used in cases where we choose one over the other.
I would imagine a release with this in it would be ~2 weeks away, if that is ok for you?

In v1, I think you could use ReaderTValue (which drops the Future type, but still let's us know we got a value type) and then use the for comprehensions in For.Values

The only issue I have is that I have to wait for the new release. But I hope you understand the necessity of it. As soon as you start to compose different monads the functional programming starts to become awkward. Especially cases where you want to compose Monadic effects having different dependencies. As an example, consider composing functions that use Reader monad but each one requires different repositories. I still could not find a better of achieving that even in Scala. Let me know if you had experienced any such issue.

hey @noorulhaq you can pull the Kleilsli impl from the PR into your own code and play around with it against the current v2 now if you like. I'll keep it updated and add for comps soon.
I definitely see the value of ReaderT / Kleisli when working with a nested stack of monads (even one layer inside a Reader can be gnarly).  I'm not sure how it can help with composing functions with different inputs (I presume that different repos corresponds to different inputs) though @jbgi might be able to suggest something.

Well, the reason I want to compose functions with different repositories is because I want to thread the composition into single a transaction context.
And thanks for directing me to Kleilsli implementation.
Waiting for @jbgi comment on repository concern.

The flatMap on the Kleisli implementation has been improved and for comprehensions aded.

A couple of ideas / questions -
Would something like a local function (https://github.com/scalaz/scalaz/blob/series/7.3.x/core/src/main/scala/scalaz/ReaderWriterStateT.scala#L195) help?  I think as long as the type of output extracted from the repositories matches the actual repository lookup could be abstracted away inside the function passed to local.
Or alternatively & a little bit hacky, could we make the core input type a Tuple and wrap the calls to the functions we are composing. Inside the wrapper extract the relevant repo before passing it on?

Hey @noorulhaq is this example from Debasish Ghosh's Functional and Reactive Domain Modelling? Does the book also describe the wider challenge, and if yes any potential solutions? I think being able to leverage the patterns described in that book in Java would be a good goal for the cyclops / cyclops-react projects.

Yes you are right. The example is from Debasish book. That is what I am trying nowadays. I am trying to convert the examples from the book into Java, to demostrate how similar kind of functional style can be achieved in java. Unfortunately, the books does not give any description about this challenge. Infact transaction management is not even covered in the book.

2.0.0-MI4 should be available on Maven Central. I think this is a rough equivalent of the Scala example
public class AccountService{
        public Kleisli<Witness.future,AccountRepository,Account> debit(String no, Amount amount){
            return repo -> Future.of ( ()-> debit account   ).anyM();
        }

        Kleisli<Witness.future,AccountRepository,Account> credit(String no, Amount amount){
            return repo -> Future.of (  ()->credit account   ).anyM();
        }
        public Kleisli<Witness.future,AccountRepository,Tuple2<Account,Account>> transfer(String from, String to,  Amount amount) {
          return debit(from,amount).forEach2(i->credit(to,amount),Tuple::tuple);

    }


Inspecting 'response.ok' with non-ascii HTTP status "reason" content causes UnicodeDecodeError

Duplicate bug disclaimer: this is related to other Unicode + header issues, however, those all focus on errors raised while generating an outbound request. This applies only to inbound requests. (See also: #1082, #400, and to a lesser extent, #390, #409, #421, and #424; if this is already covered by another bug, sorry for bugging you guys. Thanks!)
When inspecting responses with Unicode-encoded non-latin content trailing the HTTP status header in the response, requests raises UnicodeDecodeError.
(requests) marmida@loquat:~$ python
Python 2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> resp = requests.get('http://jp.apps.gree.net/ja/1604')
>>> resp.ok
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/marmida/venvs/requests/local/lib/python2.7/site-packages/requests/models.py", line 623, in ok
    self.raise_for_status()
  File "/home/marmida/venvs/requests/local/lib/python2.7/site-packages/requests/models.py", line 837, in raise_for_status
    http_error_msg = '%s Server Error: %s for url: %s' % (self.status_code, self.reason, self.url)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 23: ordinal not in range(128)

The content causing the problem, fetched via curl:
$ curl -v 'http://jp.apps.gree.net/ja/1604'
* Connected to jp.apps.gree.net (<IP_ADDRESS>) port 80 (#0)
> GET /ja/1604 HTTP/1.1
> Host: jp.apps.gree.net
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 503 AKB48ステージファイター
< Server: nginx

In the stack trace above, formatting http_error_msg as a string won't work, because self.reason contains non-ascii unicode.
Requests version: 2.9.1
Run from a fresh virtualenv with only requests installed.

I think the best way for this to be solved is for us to switch the format specifier for the reason phrase from %s to %r. Given that RFC 7230 tells us that a client should basically ignore the reason phrase anyway, we should avoid trying to interpret it.

:+1:

Extra datapoint, I've been bitten by this too while interacting with the API of a Spanish-language server. The correct fixes here are, I believe:

Properly decode the HTTP Reason Phrase field as described by @denis-ryzhkov in #1181 for header values.

According to RFC2616, Reason Phrase is TEXT which defaults to latin1 and supports other characters under RFC2047.

Store the .reason attribute as unicode.
In .raise_for_status use %r as @Lukasa suggests (since exception messages are supposed to be bytestrings).

@erydo Changing the decoding of the reason phrase is beyond the scope of requests: that is handled entirely by httplib, and we can't change it. Generally speaking that works in a way that is acceptable: it misbehaves only in a few situations on Python 2.

(Please note also that RFC 2616 is superseded by RFC 7230 in this case, which defines the reason phrase as HTAB/SP/VCHAR/obs-text, which basically allows the printable US-ASCII characters and octets from 0x80 to 0xFF. The easiest way to handle such a field is just to let it stay as bytes.)

@Lukasa I would expect that RFC obsolescence to apply more to developers of new servers rather than consumers of them.
Apache Tomcat, for example, sends down unicode reason phrases for non-en locales, and that is not a rarely-encountered server.

The RFC obsolescence applies to all developers always. RFC 7230-7233 are the specification of HTTP/1.1. RFC 7230 codifies the current best practice for deploying HTTP/1.1 and deviating from it is unwise.
In this case, as long as Tomcat is sending UTF-8 encoded data it is not deviating from RFC 7230 (though using any ABNF labelled "obsolete" is rarely a good sign). However, if Tomcat issues data using something like UTF-16 that is clearly unwise. So I think we can agree that Tomcat's behaviour could be bad depending on encoding choices.
Using bytes outside of printable US-ASCII in the HTTP header block is exceedingly unwise. Tomcat can do whatever they feel like, but I don't think that represents a sensible choice, and I'd be happy to express that opinion to any Tomcat developer who cares to ask.

Sorry, I updated my comment which I misstated: Tomcat sends the phrase down in latin1 encoding, not utf8 or utf16. It conforms correctly to RFC2616. RFC7230 has this to say:

Historically, HTTP has allowed field content with text in the ISO-8859-1 charset [ISO-8859-1], supporting other charsets only through use of [RFC2047] encoding.  In practice, most HTTP header field values use only a subset of the US-ASCII charset [USASCII]. Newly defined header fields SHOULD limit their field values to US-ASCII octets.  A recipient SHOULD treat other octets in field content (obs-text) as opaque data.

Which agrees with your preference to keep it as bytes.
However, the "header values" it refers to are not for typically for human consumption. The Reason Phrase is explicitly for the user; so you have to be able to decode it somehow. Given that:

The explicit purpose of the Reason Phrase is to be shown to the user.
RFC2047 offers no useful guidance on how to interpret the Reason Phrase for non-ASCII characters.
RFC2616 does offer useful guidance for how to do that for non-ASCII characters, and in a way that is not incompatible with RFC2047.
Common, in-production servers send responses conforming with RFC2616.

I still believe the correct action here is decode it.

#3034 proposes a solution to this with more detail on my reasoning behind it. Specifically, I believe RFC2047's recommendation about the treatment of obs-text (which only discusses headers) without excluding Status Reason is a bug in the specification. To treat Status Reason as "opaque data" while simultaneously recommending that servers localize it and clients display it to the user is contradictory, especially given the existence of a previous specification that addresses those needs.
I'll go hands off on this for now though, if anyone on the team would like to take a look. If rejected I can run an internally patched version, it isn't the end of the world for us of course.

It conforms correctly to RFC2616

Please stop trying to justify the wrong behaviour by saying it conforms to an obsoleted specification. You're not convincing us of anything as we've been working towards conforming with the new set of HTTP/1.1 specifications as best we can while dealing with httplib.
I also don't understand why you're referring to sections in the RFC when the ABNF clearly states (as @Lukasa has already shown) that the reason phrase should be HTAB, SP, VCHAR, and obs-text.

I believe RFC2047's recommendation ... is a bug in the specification.

Then please file errata against the RFC to address that. Please also note that 2047 is not the latest RFC on the topic.

Regardless, I have to agree with @Lukasa that the reason string should be treated as opaque bytes. I don't understand why you think your decision to run an internally patched would sway us, since you can decode the raw reason bytes before using the reason string.

This seems to have been resolved by https://github.com/kennethreitz/requests/pull/3385

You're right. Thanks @olivierlefloch


Add certificate update to Dockerfile

Fixes #3 using instructions from this SO answer:
https://stackoverflow.com/a/33353762/8016079

if you'd like to keep the change even more minimal, this works, as well:

ENV SCREENIE_VERSION=1.1.0

RUN apk add --no-cache fontconfig curl ca-certificates \
    && curl -Ls "https://github.com/dustinblackman/phantomized/releases/download/2.1.1/dockerized-phantomjs.tar.gz" | tar xz -C / \
    && npm install -g screenie-server@$SCREENIE_VERSION \
    && apk del curl \
    && rm -rf /tmp/*

EXPOSE 3000

CMD update-ca-certificates && /usr/local/bin/screenie

Basically, I like your minimal version better. Just wondering if we can run the update-ca-certificates command during build, instead of when starting the server.

Thanks for the patch and the update! A new Docker image built from this is pushed to the Docker hub. :)


Define and document: What Keptn means by "healthy"

Consider this scenario:

I rollout a deployment
The pod(s) start correctly and are Running
A KLT post-deploy evaluation is created which demands some criteria (SLI) is <10
The actual value is 12 so the post-deploy evaluation fails

Should the workload be considered healthy (the pod is running) or unhealthy (the pod is running but, according to your quality criteria, it is actually unhealthy)?
What about KeptnTasks?
If I have a post-deploy task and an evaluation, what should I consider the workload if:

The evaluation passes but a task fails?
I have n tasks and one of them fail?
I have n evaluations and one of them fail?

Hey @agardnerIT thanks for the questions, I'll try to answer them here:

Should the workload be considered healthy (the pod is running) or unhealthy (the pod is running but, according to your quality criteria, it is actually unhealthy)?

the latter, you should consider the workload unhealthy since it doesn't fulfill your criteria for quality

The evaluation passes but a task fails?

The evaluation is not triggered if the task fails.

I have n tasks and one of them fail?

The whole pre- or post-task phase is considered to be failed

I have n evaluations and one of them fail?

The whole pre- or post-evaluation phase is considered to be failed


is_analyzer_complete raising self.CommandNAKedError when using custom analyzer

s = saleae.Saleae()
index = s.get_analyzers()[0][1]
s.set_capture_seconds(0.25)
s.capture_start()
while not (s.is_analyzer_complete(index)):
time.sleep(0.1)
Traceback (most recent call last):
File "", line 1, in
File "/Users/zach/Docmuents/developer/lib/python3.7/site-packages/saleae/saleae.py", line 1035, in is_analyzer_complete
resp = self._finish()
File "/Users/zach/Docmuents/developer/lib/python3.7/site-packages/saleae/saleae.py", line 224, in _finish
ret = self._cmd(', '.join(self._to_send))
File "/Users/zach/Docmuents/developer/lib/python3.7/site-packages/saleae/saleae.py", line 257, in _cmd
ret = self._recv(expect_nak=expect_nak)
File "/Users/zach/Docmuents/developer/lib/python3.7/site-packages/saleae/saleae.py", line 248, in _recv
raise self.CommandNAKedError
saleae.saleae.Saleae.CommandNAKedError

From the Saleae documentation: https://github.com/saleae/SaleaeSocketApi/blob/master/Doc/Logic Socket API Users Guide.md#get-analyzers

This function will return a list of analyzers currently attached to the capture, along with indexes so you can access them later.
Note, the indices may not be sequential, and are unlikely to be so. It's also unlikely that they will start at zero, even if only one analyzer is present. Indices can change between captures. Be sure to always check analyzer indices when calling other analyzer specific APIs.

(Emphasis mine): You need to call get_analyzers after starting the capture; and may need to parse the returned list to make sure that it's the analyzer you want.

I'm going to close this as I don't think it's a bug in this python wrapper. Feel free to re-open if there is an issue related to the Python wrapper.


 Candidates:
  \(A::Union{LowerTriangular, UpperTriangular}, B::AbstractMatrix{T} where T) in LinearAlgebra at /Applications/Julia-1.6.app/Contents/Resources/julia/share/julia/stdlib/v1.6/LinearAlgebra/src/triangular.jl:1668
  \(x::AbstractMatrix{T} where T, y::KeyedArray{T, 2, AT, RT} where {T, AT, RT}) in AxisKeys at /Users/molet/.julia/packages/AxisKeys/VS8DQ/src/functions.jl:302
Possible fix, define
  \(::Union{LowerTriangular, UpperTriangular}, ::KeyedArray{T, 2, AT, RT} where {T, AT, RT})
Stacktrace:
 [1] top-level scope
   @ REPL[435]:1

Dispatch is tricky... it would be possible to add more methods here to catch this:
https://github.com/mcabbott/AxisKeys.jl/blob/master/src/functions.jl#L287-L303
I wish there was a better approach though. For scalars, Base has clever promote_rule logic which avoids having to make ever more specific 2-arg dispatches for every new type.
Note that NamedDims isn't handling this at all:
julia> @which U \ KA.data
\(A::Union{LowerTriangular, UpperTriangular}, B::AbstractMatrix{T} where T) in LinearAlgebra at /Applications/Julia-1.6.app/Contents/Resources/julia/share/julia/stdlib/v1.6/LinearAlgebra/src/triangular.jl:1668

The reason that has names is that it calls similar and (in what I think is a bug) that preserves names if the ndims happens to match. I think that since U has no names, the correct result would probably be to remove the name from the first dimension, as * does (or would do):
julia> similar(KA.data, Float64, (3,3))
3×3 NamedDimsArray(::Matrix{Float64}, (:features, :time)):
            → time
↓ features  2.30671e-314  2.30662e-314  2.30662e-314
            0.0           0.0           0.0
            2.30667e-314  2.30667e-314  2.30667e-314

julia> U.data * KA.data
3×5 NamedDimsArray(::Matrix{Float64}, (:_, :time)):
     → time
↓ _   0.159297   -0.197652    0.148984   0.0314685  -0.139759
      0.109955    0.0518916   0.29245    0.0456527   0.02327
     -0.0539889   0.138935   -0.0532439  0.0170399   0.0963143

julia> U * KA.data
ERROR: MethodError: *(::UpperTriangular{Float64, Matrix{Float64}}, ::NamedDimsArray{(:features, :time), Float64, 2, Matrix{Float64}}) is ambiguous. Candidates:
  *(a::AbstractMatrix{T} where T, b::NamedDimsArray{var"#s14", var"#s15", 2, A} where {var"#s14", var"#s15", A<:AbstractMatrix{var"#s15"}}) in NamedDims at /Users/me/.julia/dev/NamedDims/src/functions_math.jl:79
  *(A::LinearAlgebra.AbstractTriangular, B::AbstractMatrix{T} where T) in LinearAlgebra at /Applications/Julia-1.6.app/Contents/Resources/julia/share/julia/stdlib/v1.6/LinearAlgebra/src/triangular.jl:1652
Possible fix, define
  *(::LinearAlgebra.AbstractTriangular, ::NamedDimsArray{var"#s14", var"#s15", 2, A} where {var"#s14", var"#s15", A<:AbstractMatrix{var"#s15"}})

Just adding that this is also the case for Diagonal.
julia> Diagonal(rand(3,)) \ KeyedArray(rand(3,), features=[:a, :b, :c]);
ERROR: MethodError: \(::Diagonal{Float64, Vector{Float64}}, ::KeyedArray{Float64, 1, NamedDimsArray{(:features,), Float64, 1, Vector{Float64}}, Base.RefValue{Vector{Symbol}}}) is ambiguous. Candidates:
  \(x::AbstractMatrix{T} where T, y::KeyedArray{T, 1, AT, RT} where {T<:Number, AT, RT}) in AxisKeys at /Users/bencottier/.julia/packages/AxisKeys/MhCtB/src/functions.jl:302
  \(x::AbstractMatrix{T} where T, y::KeyedArray{T, 1, AT, RT} where {T, AT, RT}) in AxisKeys at /Users/bencottier/.julia/packages/AxisKeys/MhCtB/src/functions.jl:302
  \(D::Diagonal, b::AbstractVector{T} where T) in LinearAlgebra at /Applications/Julia-1.6.app/Contents/Resources/julia/share/julia/stdlib/v1.6/LinearAlgebra/src/diagonal.jl:627
Possible fix, define
  \(::Diagonal, ::KeyedArray{T, 1, AT, RT} where {T<:Number, AT, RT})
Stacktrace:
 [1] top-level scope
   @ REPL[16]:1

Maybe we should add a few more cases if they are useful?
I think the long-term solution is (1) to upgrade LinearAlgebra to work with OffsetArrays, by propagating axes(A) not size(A) every time, and (2) then do #6 so that these hold this package's information. The information is per-axis, so I think trying to re-arrange more things to dispatch on axes, not on whole arrays, would simplify matters.

Bump

I have added a few more methods in https://github.com/mcabbott/AxisKeys.jl/commit/7919f127dba3397bb238a78c5cb5a0b187df5ff7 , so the examples on this page should (I think) now work.
We are up to 180 methods now for *. Some of which don't have NamedDims counterparts:
julia> count(m -> contains(string(m), "KeyedArray"), methods(*))
180

julia> NamedDimsArray(rand(3,3), (:a, :b)) * UpperTriangular(rand(3,3))
ERROR: MethodError: *(::NamedDimsArray{(:a, :b), Float64, 2, Matrix{Float64}}, ::UpperTriangular{Float64, Matrix{Float64}}) is ambiguous.


Position compose typeaheads near cursor

As noted in https://github.com/zulip/zulip/pull/29882#issuecomment-2091736796, we should place compose box typeahead near the cursor.
We should be able to to use a library like textarea-caret to get the current caret position.
Blockers:

#29882

The position of the typeahead in now near the cursor in #30141. Utilized textarea-caret library as suggested.


arch: arc: optimize the float support

enable float support
implement z_arch_float_disable
add arc support in fp_sharing test

Note: for ARC, maybe k_float_enable(z_arch_float_enable) is needed, as there is no automatic way to enable float, e.g. through exception.
Signed-off-by: Wayne Ren<EMAIL_ADDRESS>Fixes #16770

It looks to me as a k_float_enable() would be required if threads need dynamic switching of FPU use. No other way to enable again. Who/when is the disable called? Only by application thread code that doesn't need FPU anymore, or are there other (kernel?) callers?

It looks to me as a k_float_enable() would be required if threads need dynamic switching of FPU use. No other way to enable again. Who/when is the disable called? Only by application thread code that doesn't need FPU anymore, or are there other (kernel?) callers?

I think k_float_enable/z_arch_float_enable is requried for arch which doest support automatically floating point enable through exception, e.g. ARCv2.
I just add the implementation of z_arch_float_enable for future use, e.g. k_float_enable..
High level implemntation of k_float_enable will impact arch like x86, ARM, so  i didn't change here.
@ioannisg @andrewboie  are better candidate to do that.

A side comment, @vonhust ; you need to send a patch to update Zephyr documentation, if FLOAT is, now, to be properly supported by ARC, as well.

@ioannisg already update the doc about arc

@ruuddw , i add specific handling for accl regs (r58, r59). So if no other problems, this PR can be merged


Not getting the type for the grpc response

The type of response in the following code is Unknown.
statement = exchange_statement_pb2.ExchangeStatement(title="JohnDoe")
with grpc.insecure_channel("alba:50051") as channel:
    stub = alba_pb2_grpc.AlbaStub(channel)
    response = stub.TagStatement(statement)

Is that expected?
I'd expect a typed TagReply since my proto looks like this
service Alba {
    rpc TagStatement (ExchangeStatement) returns (TagReply) {}
}

message TagReply {
    repeated string tags = 1;
}

Hiya, thanks for the report. Just to check

Are you using mypy-protobuf? It isn't automatic. You have to add flags to your protoc invocation as per here: https://github.com/dropbox/mypy-protobuf#grpc

What does Alba and TagReply look like in your exchange_statement_pb2.pyi and alba_pb2_grpc.pyi?

To help you debug, mypy has a feature called reveal_type which can help you debug what's going on. https://mypy.readthedocs.io/en/stable/common_issues.html#reveal-type

Yes and all types works except the response type. I use the following command for generating

python -m grpc_tools.protoc --proto_path=protos --python_out=. --mypy_out=. --grpc_python_out=. --mypy_grpc_out=. protos/greeter.proto

I've made a small toy example instead where response is Unknown.

greeter.proto
syntax = "proto3";

service Greeter {
    rpc HelloWorld (Request) returns (Response) {}
}

message Response {
    repeated string tags = 1;
}

message Request {
    string title = 1;
}

client.py
import grpc
import greeter_pb2
import greeter_pb2_grpc

request = greeter_pb2.Request(title="abc")

with grpc.insecure_channel("alba:50051") as channel:
    stub = greeter_pb2_grpc.GreeterStub(channel)
    response = stub.HelloWorld(request)

Note greeter_pb2.Request and greeter_pb2_grpc.GreeterStub are perfectly fine typed but it seems issues arise with stub.HelloWorld - I get the named inputs but they are all Unknown and the output is also Unknown (see screenshot). It seems stub.HelloWorld is typed with UnaryUnaryMultiCallable[global___Request, global___Response]

I reproduced the issue by creating your test case. When running mypy - I see this
➜  greeter_test mypy client.py
greeter_pb2_grpc.pyi:8: error: Skipping analyzing ".greeter_pb2": found module but no type hints or library stubs
greeter_pb2_grpc.pyi:8: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
...

I am not totally sure why, but it doesn't seem to be resolving the relative import of .greeter_pb2 from greeter_pb2_grpc.pyi
we definitely have tests confirming the types here
https://github.com/dropbox/mypy-protobuf/blob/main/test/test_grpc_usage.py#L61
and negative test here
https://github.com/dropbox/mypy-protobuf/blob/main/test_negative/negative_3.8.py#L24
So there's clearly some difference in configuration between the testsuite and the repro that you've provided.
I added a couple of reveal_type to test/test_grpc_usage.py to show that it's working there.
➜  mypy-protobuf git:(main) ✗ mypy test/
test/test_grpc_usage.py:61: note: Revealed type is "testproto.grpc.dummy_pb2.DummyRequest"
test/test_grpc_usage.py:62: note: Revealed type is "testproto.grpc.dummy_pb2.DummyReply*"

I was able to repro the issue in the testsuite by removing test/generated/testproto/grpc/__init__.py, so my guess is that the __init__.py file is critical for the relative import to work.
test/generated/testproto/grpc/dummy_pb2_grpc.pyi:9: error: Skipping analyzing ".dummy_pb2": found module but no type hints or library stubs  [import]
test/generated/testproto/grpc/dummy_pb2_grpc.pyi:9: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

From this - I was able to get your testcase to work by adding an __init__.py next to greeter_pb2.py
Sadly protobuf itself does absolute imports (https://github.com/protocolbuffers/protobuf/issues/881) - and doesn't produce __init__.py files.
I will consider using absolute imports similarly in the .pyi files for grpc after consulting with the others. With absolute imports this problem doesn't so much arise - since mypy looks for the top level on the path. Then your original plan will work without __init__.py files.

Wow great investigative work. Thanks for that!


js-tasks breaks gulp chain on error

JavaScript Errors on minifying or compiling JavaScript assets could break the gulp-chain and require a task restart.

i can no longer reproduce this.


add a extension plugin sample with widget

Suggested new feature or improvement
i want write my  widget plugin
Scenario
App launch
Additional details
No response

microsoft/devhomegithubextension is a Dev Home extension that provides several widgets.


Move keystone defaults to a data only role

We need the keystone defaults in multiple roles, but we don't want to go
through all the keystone tasks in each role, so move the defaults to its
own role.
This should fix the keystone-setup task when it writes out
keystone-paste.ini so that it has all the right information for the
conditionals.

:+1:


Fix bug in canonical due to for loop on set

Changelogs

fixes #15 caused by iteration on set even for canonical encodings
various typos in docs fixed

Checklist:

[ ] Add tests to cover the fixed bug(s) or the new introduced feature(s) (if appropriate).
[ ] Update the API documentation if a new function is added, or an existing one is deleted. Eventually consider making a new tutorial for new features.
[x] Write concise and explanatory changelogs below.
[x] If possible, assign one of the following labels to the PR: feature, fix or test (or ask a maintainer to do it for you).

This PR fixes the #15  for canonical SAFE strings, which was caused by failure to account for order in sets.

can confirm that this fixes the issue! Thanks for the fast turnaround!


Proof of Concept

The ultimate goal for the next few months is to have a "working" proof-of-concept that demonstrates that executing WebAssembly in ring 0 is reasonably performant and safe. Development is moving much more quickly than I initially thought it would, but there's still quite a ways to go.
Here's what needs to happen:

[ ] Design a process and threading model.
[x] Implement signature checking on external calls.
[ ] Design an abi interface between SIPs and the kernel.
[ ] Benchmark and fuzz it!

I'll create issues for each of these when they come up.

Just implemented signature checking. Much easier than I thought it would be!


Bhavani/styling button

I have added a new elevated button style ( with border side and width)

The Button design does not adds on  something new to the existing button that we have .Also ,it not matching to our theme .So, closing this PR. Till then you can find some bug or other enhancement in the app. Happy coding .


Livereload + lots of changes = bad times

Not sure if this is a livereload issue or middleman-livereload issue, but I have not experienced this when using livereload in any other context.
When I make a bunch of changes, say, switching from one branch to another where I have moved a folder with 100+ files in it, livereload kicks off a page reload per file, which usually results in me having to launch activity monitor and kill ruby, otherwise it will reload 100+ times in a row. Terminating the middleman process via ctrl + c doesn't stop it.
I haven't seen anyone else complaining about it, so it's possible I'm just not configured properly.

I'm doing some issue-gardening 🌿🌷🌾 and came across this issue.
Sorry that this has lingered for quite a while! I'd suggest either closing this issue or submitting a PR with an implementation or at least a failing test.
(this repo is maintained by a few people contributing their free time, unfortunately we can't solve every issue on our own, so help from others is needed for some of the more exotic issues that crops up)

This doesn't appear to be a big issue for most people, and I no longer have this use-case anymore so I'm happy to prune this issue :)


Add a Test-Path around the line which auto-imports modules into runspaces

Describe the Bug
When you have modules like Oh-My-Posh (OMP) installed, and you have Pode's auto-module importing enabled, you can run into issues because OMP will generate randomly name internal modules which don't actually exist. When Pode tries to import one of these, it fails and crashes out the starting of any runspaces.
Primarily, here:
https://github.com/Badgerati/Pode/blob/d26db35abedaf0ae3ce5b8cb41d1edbd7ef2cd40/src/Private/Helpers.ps1#L937-L942
Steps To Reproduce

Have Pode's auto-module importing enabled
Have OMP installed, and imported
Attempt to start any Pode server

Expected Behavior
The server should start successfully.
Platform

OS: Windows
Browser: N/A
Versions:

Pode: 2.10.0
PowerShell: 7.4.2

The commit above also includes a fix for a stack overflow issue when converting $using: scoped variables, which was commonly seen when using Pode 2.10.0 with Pode.Web 0.8.3