[Youtube] ${channel_id} is wrongly populated when downloading channel's playlists linking to 3rd party videos

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.03.03
[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

$ ./ydl --verbose -o  "%(uploader)s-${channel_id}/%(upload_date)s_%(title)s/%(id)s.%(ext)s" --download-archive ydl_channel_archive-UCaP0HOgtOYxpTRWH2THAFVw http://www.youtube.com/channel/UCaP0HOgtOYxpTRWH2THAFVw
[debug] System config: []
[debug] User config: ['--limit-rate', '10M', '-f', 'bestvideo[height<=720]+bestaudio/bestvideo[width<=1920]+bestaudio/bestvideo+bestaudio/best']
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '-o', '%(uploader)s-/%(upload_date)s_%(title)s/%(id)s.%(ext)s', '--download-archive', 'ydl_channel_archive-UCaP0HOgtOYxpTRWH2THAFVw', 'http://www.youtube.com/channel/UCaP0HOgtOYxpTRWH2THAFVw']
[debug] Encodings: locale cp1251, fs mbcs, out cp1251, pref cp1251
[debug] youtube-dl version 2021.03.03
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-90389-g72bb955625-ffmpeg-windows-build-helpers, ffprobe N-90389-g72bb955625-ffmpeg-windows-build-helpers
[debug] Proxy map: {}
[youtube:tab] UCaP0HOgtOYxpTRWH2THAFVw: Downloading webpage
[download] Downloading playlist: Stranded3ru - Home
[youtube:tab] playlist Stranded3ru - Home: Downloading 2 videos
[download] Downloading video 1 of 2
[youtube:tab] Stranded3ru: Downloading webpage
[download] Downloading playlist: Stranded3ru - Videos
[youtube:tab] playlist Stranded3ru - Videos: Downloading 1 videos
[download] Downloading video 1 of 1
[youtube] bWVHU6UFxSI: Downloading webpage
[youtube] bWVHU6UFxSI: Downloading MPD manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1615001794/ei/YqRCYNjqHpmu1gK7saGICw/ip/2a01%3A4f8%3A212%3A2f1d%3A88%3A0%3A0%3A41/id/6d654753a505c522/source/youtube/requiressl/yes/playback_host/r1---sn-4g5edne7.googlevideo.com/mh/Hm/mm/31%2C26/mn/sn-4g5edne7%2Csn-5goeen7d/ms/au%2Conr/mv/m/mvi/1/pl/39/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/515000/vprv/1/mt/1614979716/fvip/1/keepalive/yes/fexp/24001374%2C24007246/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRQIhAPOVYY1is_5rtSWyz7AREiQ9Z7Sx5l-0XVHKp37olQMxAiA3GXlTiDJzylJ5kUR51dH83GS-OmPGch7p_KzahPp_vA%3D%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRgIhAMSTn8VP9sEeiMBifXVN-v9jmi2vdRWRqavkPoHZEk2mAiEAuO8JBliLmoN8_rDnIbjveb-F1R_MyrrABcsTMEhv7RE%3D'
[dashsegments] Total fragments: 2
[download] Destination: Stranded3ru-\20210305_Selfvideo-S3\bWVHU6UFxSI.f243.webm
[download] 100% of 59.45KiB in 00:01
[debug] Invoking downloader on 'https://r1---sn-4g5edne7.googlevideo.com/videoplayback?expire=1615001794&ei=YqRCYNjqHpmu1gK7saGICw&ip=2a01%3A4f8%3A212%3A2f1d%3A88%3A0%3A0%3A41&id=o-AL3SG6dsG-Jmp9fj8dJnGZGlpU6Ako-nIr6QQ4gzlhHV&itag=140&source=youtube&requiressl=yes&mh=Hm&mm=31%2C26&mn=sn-4g5edne7%2Csn-5goeen7d&ms=au%2Conr&mv=m&mvi=1&pl=39&initcwndbps=515000&vprv=1&mime=audio%2Fmp4&ns=IHMGU02YMM8C5hb6t14iRSkF&gir=yes&clen=73255&otfp=1&dur=4.481&lmt=1614978745239005&mt=1614979716&fvip=1&keepalive=yes&fexp=24001374%2C24007246&c=WEB&txp=6211222&n=NeQHetSPYsfMXy-Pwa&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cotfp%2Cdur%2Clmt&sig=AOq0QJ8wRAIgSjU-JLoyD2PQAn4v7Brgitn5k_lKAzBURZ0JHjdiRuQCIC5pI_wN4dk09SyLbwJn_12qeuZrxXmOMZcmS37yZcFe&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAMnd-wjag2KJHpJMbUGst4nAS5DIWwuifqjtkliMOWMHAiAonSdP5fCcFLUTWXj2M607c2mFXtVjFwrh1AuaxQzHuA%3D%3D'
[download] Destination: Stranded3ru-\20210305_Selfvideo-S3\bWVHU6UFxSI.f140.m4a
[download] 100% of 71.54KiB in 00:00
[ffmpeg] Merging formats into "Stranded3ru-\20210305_Selfvideo-S3\bWVHU6UFxSI.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Stranded3ru-\20210305_Selfvideo-S3\bWVHU6UFxSI.f243.webm" -i "file:Stranded3ru-\20210305_Selfvideo-S3\bWVHU6UFxSI.f140.m4a" -c copy -map "0:v:0" -map "1:a:0" "file:Stranded3ru-\20210305_Selfvideo-S3\bWVHU6UFxSI.temp.mkv"
Deleting original file Stranded3ru-\20210305_Selfvideo-S3\bWVHU6UFxSI.f243.webm (pass -k to keep)
Deleting original file Stranded3ru-\20210305_Selfvideo-S3\bWVHU6UFxSI.f140.m4a (pass -k to keep)
[download] Finished downloading playlist: Stranded3ru - Videos
[download] Downloading video 2 of 2
[youtube:tab] Stranded3ru: Downloading webpage
[download] Downloading playlist: Stranded3ru - Playlists
[youtube:tab] playlist Stranded3ru - Playlists: Downloading 2 videos
[download] Downloading video 1 of 2
[youtube:tab] PL6-A_JfN4QljewPx81OtOyiZj2KIJcstF: Downloading webpage
[download] Downloading playlist: ThirdPartyVideo-playlist
[youtube:tab] playlist ThirdPartyVideo-playlist: Downloading 1 videos
[download] Downloading video 1 of 1
[youtube] O_Uw1ms75nw: Downloading webpage
[youtube] O_Uw1ms75nw: Downloading MPD manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1615001797/ei/ZaRCYOivLMad8gOh3oTYCg/ip/2a01%3A4f8%3A212%3A2f1d%3A88%3A0%3A0%3A41/id/3bf530d66b3be67c/source/youtube/requiressl/yes/playback_host/r3---sn-4g5ednld.googlevideo.com/mh/E8/mm/31%2C26/mn/sn-4g5ednld%2Csn-5go7yner/ms/au%2Conr/mv/m/mvi/3/pl/39/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/515000/vprv/1/mt/1614979716/fvip/3/keepalive/yes/fexp/24001374%2C24007246/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRQIhAIcq8oqsz4pshGdii2Y8ENi11M7c9fETka2b28lTnPLhAiBzYTrXmOwmVAHgj60qrDxnstYWuw41nf46UF5uDOI4UQ%3D%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIgcYAn_rqrjIPCvQ6nXorViHM1V3NIcz4gOXgC_I2GYHkCIQCRGXgN2IOP0YOGpMtAaitmEJ6y6euaIkt1B4NRPRxX8Q%3D%3D'
[dashsegments] Total fragments: 23
[download] Destination: Unreal Software-\20191006_Stranded III Random Map Menu\O_Uw1ms75nw.f136.mp4
[download] 100% of 2.82MiB in 00:13
[debug] Invoking downloader on 'https://r3---sn-4g5ednld.googlevideo.com/videoplayback?expire=1615001797&ei=ZaRCYOivLMad8gOh3oTYCg&ip=2a01%3A4f8%3A212%3A2f1d%3A88%3A0%3A0%3A41&id=o-ABYs_AwqstReg67_ta2E6oeDswLya5ydqNMnwj7uC9TP&itag=251&source=youtube&requiressl=yes&mh=E8&mm=31%2C26&mn=sn-4g5ednld%2Csn-5go7yner&ms=au%2Conr&mv=m&mvi=3&pl=39&initcwndbps=515000&vprv=1&mime=audio%2Fwebm&ns=wNnKVVim9ypXEStTS32HDo8F&gir=yes&clen=1985453&otfp=1&dur=115.481&lmt=1570388209284690&mt=1614979716&fvip=3&keepalive=yes&fexp=24001374%2C24007246&c=WEB&txp=2211222&n=aUuILai27VzLJ6u4Gf&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cotfp%2Cdur%2Clmt&sig=AOq0QJ8wRAIgRqyWiHDAuFHSiGdRpQXtXVaGE2XAhQUj3LPnFMnW9oICIAs2FdD_EZybrJM0NgP1u1OxR9tHNzImdKcUFeY7Mi1a&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgawL8pxjvuJxepl4EMzXOn8y0rFBOkXctgPHsHzAHghYCIHwuhYsbJBG0ekcGl2_zyDZoEukAWs4hH5jngpBjKjZS'
[download] Destination: Unreal Software-\20191006_Stranded III Random Map Menu\O_Uw1ms75nw.f251.webm
[download] 100% of 1.89MiB in 00:00
[ffmpeg] Merging formats into "Unreal Software-\20191006_Stranded III Random Map Menu\O_Uw1ms75nw.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Unreal Software-\20191006_Stranded III Random Map Menu\O_Uw1ms75nw.f136.mp4" -i "file:Unreal Software-\20191006_Stranded III Random Map Menu\O_Uw1ms75nw.f251.webm" -c copy -map "0:v:0" -map "1:a:0" "file:Unreal Software-\20191006_Stranded III Random Map Menu\O_Uw1ms75nw.temp.mkv"
Deleting original file Unreal Software-\20191006_Stranded III Random Map Menu\O_Uw1ms75nw.f136.mp4 (pass -k to keep)
Deleting original file Unreal Software-\20191006_Stranded III Random Map Menu\O_Uw1ms75nw.f251.webm (pass -k to keep)
[download] Finished downloading playlist: ThirdPartyVideo-playlist
[download] Downloading video 2 of 2
[youtube:tab] PL6-A_JfN4Qlg3Vvz1JQ9kihXYdX9767jn: Downloading webpage
[download] Downloading playlist: Selfvideo-playlist
[youtube:tab] playlist Selfvideo-playlist: Downloading 1 videos
[download] Downloading video 1 of 1
[download] Selfvideo-S3 has already been recorded in archive
[download] Finished downloading playlist: Selfvideo-playlist
[download] Finished downloading playlist: Stranded3ru - Playlists
[download] Finished downloading playlist: Stranded3ru - Home

Description

If the channel's playlist points to videos uploaded by other channels, channel_id is still populated with parent channel ID (playlist holder), but the username (uploader) takes the name of the actual channel (video holder).
There's now playlist_uploader_id in format selection, it should be used instead for those interested.
My use case: download the entire channel for archival. If it points to playlists, I'd like still to have these videos saved in the following format: Channel-ID/videodetails.../videoname.ext, which I expect the chosen output template to do.
Folder structure looks like this:
Stranded3ru-UCaP0HOgtOYxpTRWH2THAFVw/
ydl_channel_archive-UCaP0HOgtOYxpTRWH2THAFVw.txt
Unreal Software-UCaP0HOgtOYxpTRWH2THAFVw/

You can see the conflict between name and channel ID right there.
You can currently use this as a testing channel. there's one video uploaded by the channel itself. And there're 2 playlists: One contains the video uploaded and another contains a 3rd party channel video.

${channel_id} is not a valid syntax for a sequence.


Remove DEV Newton/Newtown from prevalidation data

@AnneV-Learn
There is an entry for Devon to prevalidate Newton as Newtown. This is incorrect as there are 2 Newtons in Devon.
Please remove this entry from the prevalidation data.
Geoff

@geoffj-FUG I have now removed the revalidation propagation record (DEV Newton) as requested.

Thank you.
Geoff
From: Anne Vandervord @.>
Sent: Monday, 18 November 2024 9:29 PM
To: FreeUKGen/FreeCENMigration @.>
Cc: Geoff J @.>; Mention @.>
Subject: Re: [FreeUKGen/FreeCENMigration] Remove DEV Newton/Newtown from prevalidation data (Issue #1819)
@geoffj-FUG https://github.com/geoffj-FUG  I have now removed the revalidation propagation record (DEV Newton) as requested.
—
Reply to this email directly, view it on GitHub https://github.com/FreeUKGen/FreeCENMigration/issues/1819#issuecomment-2482772352 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKCPIFNQNWCD5USH6YDK5532BHFPZAVCNFSM6AAAAABR7J5FFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBSG43TEMZVGI .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AKCPIFLLJ2RRU46IYK5R5GT2BHFPZA5CNFSM6AAAAABR7J5FFKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUT7QMYA.gif Message ID: @.*** @.***> >

Done. Closing
Geoff


Add [Coinbase Deposits coinbase.com] #exchange #memo-required GC5PFA…WGWCFS

Address: GC5PFAXPL3BYIRHLMUFD3E353DINA6A52DXJIXLKQEVO2GA7WFWGWCFS
Tags: exchange memo-required
Title: Coinbase Deposits  Domain: coinbase.com
Requested by @cryptomavsly

How do I resolve this?

@CryptoMavSly
What are you resolving? If you forgot the memo you'll need to contact coinbase.

@stellar-expert-deploy We'd be happy to look into this for you.
Kindly file a support ticket here
https://forms.gle/xABEcR5MwDBJAm1c6

@CryptoMavSly Be very careful with people offering to help you.
Coinbase does not use a Google form to  report tech support issues. This post above is a good example of someone trying to scam you. They are asking you to give them your recovery phrase from your account.

@CryptoMavSly This is the real Coinbase Tech support page.


Clean up terms and conditions

Now terms and conditions has a placeholder text, and the footer link opens in the same tab.

@varkor could you review?

A good approach! Everything looks fine! 🚀


use noEmitHelpers: true & importHelpers: true

Inlining the helpers is causing bloat / issues with rollup builds:

Thanks for the report @jdanyow. I'll add them back in for next version

code moved to applicationinsight-js monorepo under vNext/channels/applicationinsights-channel-js


Add Object.fromEntries

Requesting support for Object.fromEntries. It is, at the time of filing this issue, in Stage 3, and Firefox currently has support for it.
https://github.com/tc39/proposal-object-from-entries
https://tc39.github.io/proposal-object-from-entries/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries

https://kangax.github.io/compat-table/esnext/#test-Object.fromEntries

Object.fromEntries() his has been added to Chrome 73/v8 7.3 as of February 7th.

Available at https://caniuse.com/#feat=mdn-javascript_builtins_object_fromentries


Provide a route to edit past responses.

Make a route that is a secret to everyone but the user who registered, e.g. it can be the base64-encoding of the user ID such as:
hack.gt/register/edit/124521141341aaffff

This will load the registration questions with the corresponding responses, and allow the user to submit again.

Closed by #15


How to switch on/off the GP LED's from code or node red

How to switch on/off the GP LED's from code or node red.
Cannot see this in the documentation.

Unfortunately the firmware and pi drivers are not done for this feature. I will let you know when they are.
Thank you for your patience.


Server side search - extra fields

How to change 'searchable fields'
Hi there,
Trying to use search function. But doesnt work as I expected.
I got two fields on database that; title and shortcode.
On datatable, I use only 'title' column.
But I want to use searching on 'shortcode' field too.
Actually, when user use 'quick search' I want it to search between title and shortcode fields.
But It doesnt search because there's no 'shortcode' field on datatable but also it is in database.

On you columns, add a hidden one for shortcode for it to be included in search
columns: [
  {data: 'title'},
  {data: 'shortcode', visible: false},
]


[SA] Access Violation in module imglimitadjuster.asi

When I attempt to launch the game I get that message (screenshot provided) than I proceed like normal, as if the game was vanilla. When I hit the loading screen after the main menu (I start a new game), the client loads to 100% and become non responsive.
the mods used as from this video of youtube: https://youtu.be/yWMWq3LlkCo
plus a downgrade, largeaddress (increase the ram usage for the game to 4gb)
and minus the screenshake, blood xf, and skin tweaks
I have tried changing both the mixsets.ini in the modloader folder limitadjuster.ini to accept 1024, 2048, 4096, 8192 and 100% for the memory settings.

i found the fix for this drop this exe into sa main folder
https://github.com/MrNiceGuy420/GTA-SA-1.0-HOODLUM-No-CD-Fix-exe/blob/master/GTA_SA.EXE
source of fix here
https://www.gtagarage.com/mods/show.php?id=19468
it sasy it only works with GTA San Andreas v1.0 [US] HOODLUM No-CD Fixed EXE:
hope this helps as i had the same thing happening

Thanks brother, you help me to solve the same problem!

i found the fix for this drop this exe into sa main folder
https://github.com/MrNiceGuy420/GTA-SA-1.0-HOODLUM-No-CD-Fix-exe/blob/master/GTA_SA.EXE
source of fix here https://www.gtagarage.com/mods/show.php?id=19468
it says it only works with GTA San Andreas v1.0 [US] HOODLUM No-CD Fixed EXE: hope this helps as i had the same thing happening

didnt work for me. i downloaded that exe and the limit adjuster 3.0 and deleted the previos one (IIIVCSAimglimitadjuster.asi and .ini) and i even added compatibility mode windows 8 and run as admin to properties and it still crashes when it loads up a new game, just when the cutscene is supposed to begin it crashes i tried running a save it loads halfway then the audio starts cutting out and eventually it freezes for 5 secs and crashes, same mods as the other dude pretty much and yes i have downgraded

İ have same issue anybody knows the fix


apigeetool dependency

Add "apigeetool" dependency to the package.json files under apiproxies folder.

@googlebot I fixed it

@googlebot I fixed it.


Add signum

Same as signum in Haskell.

signum
Returns 1 if n is positive, -1 if n is negative and 0 if n is 0. Otherwise returns NaN.
const signum = require('1-liners/signum');

signum(-5);         // => -1
signum(-Infinity);  // => -1

signum(10);         // => 1
signum(Infinity);   // => 1

signum(0);          // => 0
signum(-0);         // => 0

Spec
	•
	Source:  (n) => (n === 0 ? 0 : (n > 0 ? 1 : (n < 0 ? -1 : NaN)));

:checkered_flag:

Fair enough :+1:

:+1: thanks

Released in v0.3.5


[UI] Vocabulary Level - Add "Lock All" / "Unlock N" buttons

User request.

Notes:
For levels that are unlockable/lockable, the api includes a lock_url or unlock_url.
for levels above the user's profile, we just omit that
There is also a vocab count for all levels, so you can include a slider of how many to unlock.
 {
        "level": 2,
        "unlocked": false,
        "vocabulary_count": 94,
        "lock_url": "/api/v1/level/2/lock/",
        "unlock_url": "/api/v1/level/2/unlock/"
  },

Decided against - in favour of having a lessons feature for srs rank 0 items.


Bug Report: 'message' is missing in props validation

Where is the issue?
https://github.com/CodeHarborHub/codeharborhub/tree/main/courses/react-js/advanced-level/advanced-react-concepts/Component.js
Why is this an issue?
In JavaScript, props are typically passed as plain objects, which can lead to errors and confusion when working with components that have specific prop requirements. However, it lacks of type safety and clarity when passing props to components in a codebase.
By defining types for component props, developers can enforce type safety and provide clear documentation for the expected props of a component. This helps catch potential errors at compile-time. It also improves code maintainability by making it easier to understand how components should be used and what props they accept.
How can I fix it?
Noncompliant code example
import PropTypes from 'prop-types';

function Hello({ firstname, lastname }) {
  return
Hello {firstname} {lastname}
; // Noncompliant: 'lastname' type is missing
}
Hello.propTypes = {
  firstname: PropTypes.string.isRequired
};

// Using legacy APIs

class Hello extends React.Component {
  render() {
    return
Hello {this.props.firstname} {this.props.lastname}
; // Noncompliant: 'lastname' type is missing
  }
}
Hello.propTypes = {
  firstname: PropTypes.string.isRequired,
};
Compliant solution
import PropTypes from 'prop-types';

function Hello({ firstname, lastname }) {
  return
Hello {firstname} {lastname}
;
}
Hello.propTypes = {
  firstname: PropTypes.string.isRequired,
  lastname: PropTypes.string.isRequired,
};

// Using legacy APIs

class Hello extends React.Component {
  render() {
    return
Hello {this.props.firstname} {this.props.lastname}
;
  }
}
Hello.propTypes = {
  firstname: PropTypes.string.isRequired,
  lastname: PropTypes.string.isRequired,
};

Activity

[ ] Status Done / Not

More info
Documentation
React Documentation - static propTypes
Flow.js Documentation - React

I will like to work on this.
I recently worked on TypeScript https://github.com/AMISH-KHAN/TrendTales would love to explore more about it through this issue

@Ajay-Dhangar Please check pr #208


LivelyKernel/lively-vagrant doesn't work

the image for vagrant seems to be non-existent

Yes, sorry for that.  We moved to docker for server setups https://github.com/LivelyKernel/lively-docker.  You can also use this for local dev installs.


Refactor configurations

I think we should put command line options and configurations related code in one place.

Now I find that some cfg functions like setCfg is hard to understand because we use pointer in the config struct, if we can use this structure directly, we can reduce many pointer handling.
E.g
type struct Config {
    // not use pointer here, so we can copy the struct directly, no need to care whether pointer address is changed or not.
    BalanceCfg BalanceConfig `toml:"balance" json:"balance"`
}

Also we should consider atomic value to avoid race problem.

I wrote a demo:
package main

import (
	"fmt"
	"os"
	"time"

	"github.com/urfave/cli"
	"github.com/urfave/cli/altsrc"
)

func main() {
	cfg := Config{}

	app := cli.NewApp()
	app.Name = "PD"
	app.Usage = "Placement Driver for TiKV"
	app.Version = "0.0.1"
	app.Flags = append(cfg.NewFlags(),
		cli.StringFlag{
			Name:  "config, c",
			Usage: "Load config from `FILE`",
		},
	)
	app.Action = func(c *cli.Context) error {
		fmt.Println(cfg)
		return nil
	}
	app.Before = altsrc.InitInputSourceWithContext(app.Flags, altsrc.NewYamlSourceFromFlagFunc("config"))
	app.Run(os.Args)
}

type Config struct {
	ClusterID uint64
	Balance   BalanceConfig
}

func (cfg *Config) NewFlags() []cli.Flag {
	fs := []cli.Flag{
		altsrc.NewUint64Flag(cli.Uint64Flag{
			Name:        "cluster-id",
			Value:       0,
			Usage:       "Initial cluster `ID` fro the pd cluster",
			Destination: &cfg.ClusterID,
		}),
	}
	return append(fs, cfg.Balance.NewFlags()...)
}

type BalanceConfig struct {
	MaxStoreDownDuration time.Duration
}

func (cfg *BalanceConfig) NewFlags() []cli.Flag {
	return []cli.Flag{
		altsrc.NewDurationFlag(cli.DurationFlag{
			Name:        "max-store-down-duration",
			Value:       60 * time.Second,
			Usage:       "The max `DURATION` a store without heartbeats will be considered to be down",
			Destination: &cfg.MaxStoreDownDuration,
		}),
	}
}

It will generate this usage:
./test -h
NAME:
   PD - Placement Driver for TiKV

USAGE:
   test [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --cluster-id ID                     Initial cluster ID fro the pd cluster (default: 0)
   --max-store-down-duration DURATION  The max DURATION a store without heartbeats will be considered to be down (default: 1m0s)
   --config FILE, -c FILE              Load config from FILE
   --help, -h                          show help
   --version, -v                       print the version

And we can handle hot reload like this:
    var config Value // holds current server configuration
    // Create initial config value and store into config.
    config.Store(loadConfig())
    go func() {
            // Reload config every 10 seconds
            // and update config value with the new version.
            for {
                    time.Sleep(10 * time.Second)
                    config.Store(loadConfig())
            }
    }()
    // Create worker goroutines that handle incoming requests
    // using the latest config value.
    for i := 0; i < 10; i++ {
            go func() {
                    for r := range requests() {
                            c := config.Load()
                            // Handle request r using config c.
                            _, _ = r, c
                    }
            }()
    }

What do you think?

I think we should consider reload in the end.
No need to care atomic now.


Auto-casting for subdocument._id not work

I have a schema
{
...
windows: [{name:String}]
...
}
If I run Model.find({windows._id:'string'}) everything is ok, mongoose is sending query {"windows._id":ObjectId('string')} and returns records;
If I extend the schema somehow (ex. just {S_V:Number}),
find() do not return anything, because mongoose is sending query {'windows._id':'string'}, which searches for string-type _ids and fails to find any.
This issue contains more information and real code example: https://github.com/Automattic/mongoose/issues/3364#issuecomment-141353516

May have to fix the cloning stuff, I'll check that


🐛 Memory Leak on camera.takePhoto after 6 six shots.

What's happening?
I integrated latest RNVC 4.0.3 in my project.
After taking 6 photos correctly (I checked files are saved in cache folder of the device)
the takePhoto method get systematically stuck at the seventh execution (await props.camera.current.takePhoto does never end).
If I switch to another View and get back to the Camera View it resets and I can still get 6 goot photos before stucking again.
I tried to give some time from one shot and another but it does not change the issue. Fully reproducable Code is provided.
Devices: Motorola G84 5G
The error from LogCat at seventh shot is:
ImageReader-4080x3072f22m9-8855-21 waitForFreeSlotThenRelock TIMED_OUT dequeuedCount=0, acquiredCount=3, mMaxAcquiredBufferCount=9, mMaxDequeuedBufferCount=8
ImageReader-4080x3072f22m9-8855-21 dequeueBuffer: No free buffer is found!
getBufferLockedCommon: Stream 3: Can't dequeue next output buffer: Connection timed out (-110)
From the traces it look some buffer is not flushed after image acquisition.
Do I need to flush/empty some data ?
Reproduceable Code
import React, { useRef, useState, useCallback, useEffect } from 'react';
import Ripple from 'react-native-material-ripple';
import { View } from 'react-native';
import { Camera, useCameraDevice, useCameraPermission}  from 'react-native-vision-camera';

const CameraStyles = {
    containerPortrait: {flex: 1,backgroundColor: '#000000' },
    cameraWrapperPortrait: {flex: 1,justifyContent: 'center',alignItems: 'center',overflow: 'hidden' },
    cameraPortrait: { flex: 1, aspectRatio: 3/4 },
    buttonBarPortrait: { height: 90, padding: 10 },
    buttonsPortrait: { flexDirection: 'row',flex: 1, justifyContent: 'space-between', alignItems: 'center' },
    captureButton: { width: 40, height: 40, borderRadius: 20, backgroundColor: 'rgba(140, 140, 140, 0.3)', borderColor: 'white', borderWidth: 5}
};

function _TakePictureButton ( props){
    console.log("TakePictureButton Rendering...");
    const takePhoto = useCallback(async () => {
        console.log("takePhoto: started");
        try {
          if (props.camera.current == null) throw new Error('Camera ref is null!')

          console.log('Taking photo...')
          const photo = await props.camera.current.takePhoto({
            qualityPrioritization: 'quality',
            flash: props.flash,
            enableShutterSound: true,
          })
          console.log('Photo Taken!')
          props.onClick(photo, 'photo')
        } catch (e) {
          console.error('Failed to take photo!', e)
        }
      }, [props.camera, props.flash, props.flash]);

    return (
        <Ripple style={CameraStyles.captureButton}
            rippleColor='rgb(256, 256, 256)'
            rippleOpacity={1}
            rippleDuration={400}
            rippleCentered={true}
            rippleSize={78}
            onPress={takePhoto}
            >
        </Ripple>
    );
}
const TakePictureButton = React.memo(_TakePictureButton);

function App(props) {
    console.log("Rendering ...");

    const camera = useRef(null);
    const [orientation, setOrientation] = useState('Portrait');
    const { hasPermission, requestPermission } = useCameraPermission();

    useEffect(() => {
        async function getPermission() {
            const newCameraPermission = await requestPermission();
            console.log("getPermission returned: " + newCameraPermission);
            if (!newCameraPermission) {
                logger.error("getPermission returned: " + newCameraPermission);
            }
        }
        if (!hasPermission) {
            getPermission();
        }
    }, []);

    const [flash, setFlash] = useState('off');
    const device = useCameraDevice('back');

    // Camera callbacks
    const onError = useCallback((error) => {
        logger.error(error);
    }, []);

    const onInitialized = useCallback(() => {
        console.log('Camera initialized!');
    }, []);

    const onMediaCaptured = useCallback(
        async (media, type) => {
            try {
                console.log(`onMediaCaptured: Image captured. ${type} src=${media.path}`);
            } catch (err) {
                    logger.error("EXCEPTION: takePicture:", err);
            }
        });

    if (device != null ) {
        console.log(`Rendering TakePicture with camera device: "${device.name}" photo Flash: ${flash}`);
    } else {
        console.log('Rendering TakePicture without active camera');
    }

    return (
        <View style={CameraStyles.containerPortrait}>
            {device != null && (<>
                <View style={CameraStyles.cameraWrapperPortrait}>
                        <Camera
                            style={CameraStyles.cameraPortrait}
                            device={device}
                            isActive={true}
                            ref={camera}
                            onInitialized={onInitialized}
                            onError={onError}
                            onStarted={() => 'Camera started!'}
                            onStopped={() => 'Camera stopped!'}
                            orientation={orientation}
                            lowLightBoost={false}
                            enableZoomGesture={false}
                            exposure={0}
                            photo={true}
                            video={false}
                            audio={false}
                            torch={flash}
                        />
                </View>
                <View style={CameraStyles.buttonBarPortrait}>
                    <View style={CameraStyles.buttonsPortrait}>
                        <TakePictureButton
                            camera={camera}
                            onClick={onMediaCaptured}
                            flash={false}
                        />
                    </View>
                </View>
            </>
            )}

        </View>
    );
}
export default App;

Relevant log output
Log from the app:
==============================================
 LOG  Running "appname" with {"rootTag":61}
 LOG  Rendering ...
 LOG  Rendering TakePicture with camera device: "0 (BACK) androidx.camera.camera2" photo Flash: off
 LOG  TakePictureButton Rendering...
 LOG  Rendering ...
 LOG  Rendering TakePicture with camera device: "0 (BACK) androidx.camera.camera2" photo Flash: off
 LOG  TakePictureButton Rendering...
 LOG  Rendering ...
 LOG  Rendering TakePicture with camera device: "0 (BACK) androidx.camera.camera2" photo Flash: off
 LOG  Camera initialized!
 LOG  takePhoto: started
 LOG  Taking photo...
 LOG  Photo Taken!
 LOG  onMediaCaptured: Image captured. photo src=/data/user/0/com.appname/cache/mrousavy-6048323629045401133.jpg
 LOG  takePhoto: started
 LOG  Taking photo...
 LOG  Photo Taken!
 LOG  onMediaCaptured: Image captured. photo src=/data/user/0/com.appname/cache/mrousavy-5487193471359461827.jpg
 LOG  takePhoto: started
 LOG  Taking photo...
 LOG  Photo Taken!
 LOG  onMediaCaptured: Image captured. photo src=/data/user/0/com.appname/cache/mrousavy-1734632536699059492.jpg
 LOG  takePhoto: started
 LOG  Taking photo...
 LOG  Photo Taken!
 LOG  onMediaCaptured: Image captured. photo src=/data/user/0/com.appname/cache/mrousavy-8567952871727161939.jpg
 LOG  takePhoto: started
 LOG  Taking photo...
 LOG  Photo Taken!
 LOG  onMediaCaptured: Image captured. photo src=/data/user/0/com.appname/cache/mrousavy-3879283333994109308.jpg
 LOG  takePhoto: started
 LOG  Taking photo...
 LOG  Photo Taken!
 LOG  onMediaCaptured: Image captured. photo src=/data/user/0/com.appname/cache/mrousavy-1440988497951052873.jpg
 LOG  takePhoto: started
 LOG  Taking photo...
 LOG  takePhoto: started
 LOG  Taking photo...

LOGCAT OUTPUT: when the problem happens.
========================================================

2024-05-09 15:04:40.033  8855-10023 BufferQueueProducer     com.appname                  D  [ImageReader-4080x3072f22m9-8855-21](id:22970000002d,api:4,p:1476,c:8855) waitForFreeSlotThenRelock TIMED_OUT dequeuedCount=0, acquiredCount=3, mMaxAcquiredBufferCount=9, mMaxDequeuedBufferCount=8
2024-05-09 15:04:40.033  8855-10023 BufferQueueProducer     com.appname                  D  [ImageReader-4080x3072f22m9-8855-21](id:22970000002d,api:4,p:1476,c:8855) dequeueBuffer: No free buffer is found!
2024-05-09 15:04:40.034  1228-1477  SurfaceFlinger          surfaceflinger                       E  Permission Denial: can't access SurfaceFlinger pid=8855, uid=10521
2024-05-09 15:04:40.034  1476-19614 Camera3-OutputStream    cameraserver                         E  getBufferLockedCommon: Stream 3: Can't dequeue next output buffer: Connection timed out (-110)
2024-05-09 15:04:40.275  8855-19610 CameraView              com.appname                  I  invokeOnAverageFpsChanged(0.0)
2024-05-09 15:04:40.818  2684-2684  StatusBarIconController com.android.systemui                 D  ignoring old pipeline callback because the new wifi icon is enabled
2024-05-09 15:04:41.035  8855-8870  BufferQueueProducer     com.appname                  D  [ImageReader-4080x3072f22m9-8855-21](id:22970000002d,api:4,p:1476,c:8855) waitForFreeSlotThenRelock TIMED_OUT dequeuedCount=0, acquiredCount=3, mMaxAcquiredBufferCount=9, mMaxDequeuedBufferCount=8
2024-05-09 15:04:41.035  8855-8870  BufferQueueProducer     com.appname                  D  [ImageReader-4080x3072f22m9-8855-21](id:22970000002d,api:4,p:1476,c:8855) dequeueBuffer: No free buffer is found!
2024-05-09 15:04:41.036  1228-1477  SurfaceFlinger          surfaceflinger                       E  Permission Denial: can't access SurfaceFlinger pid=8855, uid=10521
2024-05-09 15:04:41.037  1476-19614 Camera3-OutputStream    cameraserver                         E  getBufferLockedCommon: Stream 3: Can't dequeue next output buffer: Connection timed out (-110)

Camera Device
{
  "formats": [],
  "sensorOrientation": "landscape-left",
  "hardwareLevel": "full",
  "maxZoom": 8,
  "minZoom": 1,
  "maxExposure": 24,
  "supportsLowLightBoost": false,
  "neutralZoom": 1,
  "physicalDevices": [
    "wide-angle-camera"
  ],
  "supportsFocus": true,
  "supportsRawCapture": false,
  "isMultiCam": false,
  "minFocusDistance": 10,
  "minExposure": -24,
  "name": "0 (BACK) androidx.camera.camera2",
  "hasFlash": true,
  "hasTorch": true,
  "position": "back",
  "id": "0"
}

Device
Motorola G84 5G
VisionCamera Version
4.0.3
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠ your issue might get ignored & closed if you don't try this)
Additional information

[ ] I am using Expo
[ ] I have enabled Frame Processors (react-native-worklets-core)
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

Motorola G84 5G (Android 14)
Same thing happens (6 photos good) seventh stucks  also on Android OnePlus Nord 3 (Android 14)

The issue does not show up in the CameraExample as it is....
BUT just removing the
format={format}
parameter passed to the Camera Component it happens exactly the same.

hm interesting.

Can you test again with VisionCamera 4.0.5?


Adding stable endpoint for config api

Description
This PR adds stable endpoint for config API. It also updates the unit tests to test both alpha1 and stable endpoint, and the e2e test to use the stable endpoint
Issue reference

Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[ ] Code compiles correctly
[ ] Created/updated tests
[ ] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

are there no changes in tests needed for HTTP api? specifically endpoint addition and mock api tests.

Added tests for http

/ok-to-test

LGTM overall, just some nit changes. Thanks 👏 !

/ok-to-test


Advanced BMI Calculator

I saw a BMI calculator on one of the repositories, but it only does metric, but mine does metric and imperial. So, I will like this added to this repository.
Steps Followed✅
Check the box with [x] If you followed all the steps.

[x] Is your feature request related to a problem? Please describe.
[X] Describe the solution you'd like
[X] Describe alternatives you've considered
[X] Additional context

Code of Conduct✅

[X] I agree to follow this project's Code of Conduct.
[X] I checked the current issues for the same problems.
[X] I have gone through the project README.

Closing this issue because we have the same project already. Feel free to work on a new issue


v1.6 backports 2020-03-19

#9649    cilium: encryption fixes for ipv6 and tear down
#10218  cilium: encryption + tunnel improvements and fixes
#10268  cilium: encryption, segfaults if existing non-Cilium xfrm policy without mark set exists
#10551  cilium: encryption, additional mtu fix for non-default 1500B MTU

Note: Only IPv4 support added from #9649 IPv6 is not included here, we can debate if we want fib IPv6 support backported somewhere else but its strictly speaking not a fix. This was really an error on my side in original PR to mix a fix with a feature.
Note: Scripts broke on this set of backports so did this by hand comparing manual and v1.6
Once this PR is merged, you can update the PR labels via:
$ for pr in 9649 10218 10268 10551; do contrib/backporting/set-labels.py $pr done 1.6; done

test-me-please

never-tell-me-the-odds

test-me-please

seems to be a real failure https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/18059/testReport/junit/Suite-k8s-1/10/K8sDatapathConfig_Transparent_encryption_DirectRouting_Check_connectivity_with_transparent_encryption_and_direct_routing/

I'll look into it. Agree, looks like a real failure.

test-me-please

provisioning error. I'll try again.

test-me-please

Failed again @jrfastab
/home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-Validated/k8s-1.10-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:420
Connectivity test between nodes failed
Expected
    <bool>: false
to be true
/home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-Validated/k8s-1.10-gopath/src/github.com/cilium/cilium/test/k8sT/DatapathConfiguration.go:193

https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/18268/testReport/junit/Suite-k8s-1/10/K8sDatapathConfig_Transparent_encryption_DirectRouting_Check_connectivity_with_transparent_encryption_and_direct_routing/

closing, tracking this in new PR https://github.com/cilium/cilium/pull/10638

closing, tracking this in new PR #10638

This is the current PR. New PR seems to be #11044.


Problem: Slider support only 80%

hi there,
i´ve test the last verison of release and i´ve problems with the slider.
The hardeware silder are up to 100% but the software silders in Windows are only 80% (at master).
If i change some application slider its only goes up to 62%.
Is it maybe a problem that i´m from EU?
Normaly the EU Speaker-Setting are more "powerful" (there is no/higher policy limit)..
Can someone help me?

My slider is not going to 80% but 99% even though the slider is at 100%

Download Korg Kontrol Editor Software (https://www.korg.com/us/products/computergear/nanokontrol2/) and check if the problematic slider values are set as"0 to 127".
127 means 100% volume.

thanks, it works!!


Function aliases

I often name my docblocks with the @function tag instead of @name or @alias. I guess there's nothing wrong with that – http://usejsdoc.org/tags-function.html
This PR makes us treat these tags just like @alias.

:+1: thanks!


Issue 4 - created new home page

Description
Created a new design for the home page of our website with the following:

responsive layout
dark & light mode

Other Changes:

changed site title in metadata to BuidlGuidl Batch 9
tweaked global colors to match the new theme

Future Scope:

add a builder page with check-in counter in similar design pattern.
add animations if required.

Additional Information

[x] I have read the contributing docs (if this is your first contribution)
[x] This is not a duplicate of any existing pull request

Related Issues
_Closes Issues #7 (Tweak Home Page) & #5 (Show Connected Wallet Info)
Your ENS/address: 0x5D56b71abE6cA1Dc208Ed85926178f9758fa879c
Screenshots:

@phipsae i have made all your requested changes. please review and see if everything looks good!

And I say it again: thanks for the really nice page :)


Token required even when request-signing-enabled

Apache Iceberg version
0.8.1 (latest release)
Please describe the bug 🐞
When attempting to read a table using s3.signer: S3V4RestSigner, pyiceberg throws an error if token and s3.session-token are not set. This is currently mitigated by putting placeholder values in the catalog configuration:
catalog = load_catalog(
    'lab',
    **{
        'uri': 'https://datalake.internal.redacted:19121/iceberg',
        'warehouse': 'lab',
        'header.X-Iceberg-Access-Delegation': 'remote-signing',
        'token': 'placeholder',
        's3.session-token': 'placeholder',
    }
)

table.io.properties
{
    ...
    "s3.endpoint": "https://s3.eu-central-1.amazonaws.com/",
    "s3.remote-signing-enabled": "true",
    "s3.signer": "S3V4RestSigner",
    "s3.signer.endpoint": "v1/main%7Clab/s3sign/H4sIAAAAAAAA...U9NuAQAA",
    "s3.signer.uri": "https://datalake.internal.redacted:19121/iceberg/",
    "s3.use-arn-region-enabled": "true",
    ...
}

Willingness to contribute

[ ] I can contribute a fix for this bug independently
[ ] I would be willing to contribute a fix for this bug with guidance from the Iceberg community
[X] I cannot contribute a fix for this bug at this time

From the code, S3V4RestSigner requires TOKEN in properties
https://github.com/apache/iceberg-python/blob/392c9ce0f05c43f92b649b4d1d79d34a2119cd70/pyiceberg/io/fsspec.py#L96-L99
This was first added here
Im not sure what the context is, lets wait for @Fokko to chime in

When I was trying this out, it gave the same error unless both s3.session-token and token were present.
In hindsight this could also have been due to a dirty environment.

"s3.session-token" is represented by S3_SESSION_TOKEN which is used by the S3 FileSystem
https://github.com/apache/iceberg-python/blob/392c9ce0f05c43f92b649b4d1d79d34a2119cd70/pyiceberg/io/fsspec.py#L140-L163

@EternalDeiwos Thanks for raising this, let's debug this together. What kind of catalog are you using? With remote signing, you need a token to authenticate yourself and get the signature from the catalog. So I would expect the token to be there, maybe you can share the redacted properties that you get back from the /config endpoint.

It looks like the authentication to the catalog is working fine, but when it triest to perform the scan. That's the first time it will go to the object store to fetch the manifest-list. Based on the configuration, PyIceberg will reach out to the catalog to sign the request to the object store, but there is not token. For me it feels like to login without a password, but I noticed that it is allowed on the Java side: https://github.com/apache/iceberg/blob/91a1505d09cebcd1d088ac53cd42732c343883de/aws/src/main/java/org/apache/iceberg/aws/s3/signer/S3V4RestSignerClient.java#L205
Let me create a PR to get this fixed 👍


fix(versions): update Activiti/activiti-cloud-dependencies versions into 7.0.x

UpdateBot pushed maven dependency: org.activiti.cloud.notifications.graphql:activiti-cloud-notifications-graphql-dependencies to: 7.0.20

UpdateBot commands:
updatebot push-version --kind maven org.activiti.cloud.notifications.graphql:activiti-cloud-notifications-graphql-dependencies 7.0.20


bisq-desktop: 1.7.2 -> 1.7.3

Motivation for this change
This is a bisq-desktop version bump. Here are the upstream release notes: https://github.com/bisq-network/bisq/releases/tag/v1.7.3
Things done

Built on platform(s)

[X] x86_64-linux
~[ ] aarch64-linux~
~[ ] x86_64-darwin~
~[ ] aarch64-darwin~

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages 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/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 136545 run on x86_64-linux 1

1 package built:

bisq-desktop


Add GmonDevice and Sycamore chip

Devices can now be found in https://github.com/quantumlib/Cirq/blob/master/cirq/google/devices/known_devices.py
Sycamore and Sqrt_iswap gate sets can be found here:
https://github.com/quantumlib/Cirq/blob/master/cirq/google/gate_sets.py#L34
Optimizers can be found here:
https://github.com/quantumlib/Cirq/blob/master/cirq/google/optimizers/optimize_for_sycamore.py#L76
These should all be accessible at the cirq.google namespace.
Documentation is newly committed at:
https://github.com/quantumlib/Cirq/blob/master/docs/google/devices.md
It should appear on readthedocs after the next documentation build.
Closing this ticket.


Add support to sharing from Arte's video to Kodi

Add support to sharing from Arte's video (The European Culture Channel) to Kodi, using the  Arte +7 plugin. maintained by @known-as-bmf
Two JUnit tests has beed added and runned on Travis CI.

This looks good, and worked fine in my tests.
I can't just merge this right now, because we have #719 in the pipeline, which was submitted before and is in the process of being merged right now, and once it is merged there will be a slight conflict with this PR (just a matter of moving lines, not code logic), and i will ask you to rebase this on top of that once it is merged, and resubmit. Thanks.

The other PR was merged, and as i said, there's a slight conflict with this one (i believe it's just a matter of moving some lines).
Could you please resubmit this, based on the latest branch.

@SyncedSynapse Sorry for taking so long to give news. Rebase and merge are done. Copyright of the helper's file has been updated.

Please consider switching from "plugin.video.arteplussept" ( https://github.com/xbmc/Kore/blob/master/app/src/main/java/org/xbmc/kore/utils/PluginUrlUtils.java#L38 ) which is broken with kodi19 ( https://github.com/known-as-bmf/plugin.video.arteplussept/issues/72 ) to plugin.video.tyl0re.arte which works fine with kodi19:
https://github.com/Collabsvito/REpo-AiO/tree/master/MATRIX/plugin.video.tyl0re.arte

I will be updating the add-on later today (UTC+2 timezone).

The add-on has been updated and a new version pushed to the official matrix repository.


Final Task do(code)

Here is the final list of activities for do(code):

[ ] Please prepare the granularity datasets to be compatible with our data frames. Follow the same structure of data frames as LibEST.
[ ] Although we do not need to run word2vec or doc2vec on the granularity datasets, it is important to generate a preprocessed version. There is a preprocessing notebook that you can employ for this task.
[ ] Please generate a causal model where the treatment is the granularity variability. You can analyze performance based on the outcomes of TC  Tracer (ICSE2020)
[x] Please explain the step-by-step of how to model and evaluate a causal model in a nbdev notebook.
added 0.0.0_howto_causal.ipynb

By "Follow the same structure of data frames as LibEST" do you mean include the same fields?

@scheurich-sarah Yes. Same fields and notebook. You need to create your own script to extract the info from the new sources though.

@danaderp I couldn't figure out the pre-processing bit, so apologies, but the first 3 check marks aren't done. I read predicted and ground truth links files they provided into dfs and aggregated them across all the projects, but that's all.


Fail DevWorkspaces when DevWorkspaceRouting controller sees error

What does this PR do?
Mark DevWorkspaceRoutings as failed if any of the sync operations returns an UnrecoverableSyncError rather than ignoring it and treating it as a transient error (i.e. retrying).
This allows workspaces to fail with a meaningful message more quickly, rather than waiting for timeout and failing then.
What issues does this PR fix or reference?
Closes https://github.com/devfile/devworkspace-operator/issues/1198
Is it tested? How?
To test, create a resource quota, then create workspaces that would violate that quota and ensure they fail.
For example, for services,

Create a resource quota specifying e.g. a maximum number of services in a namespace:apiVersion: v1
kind: ResourceQuota
metadata:
  name: resource-quota-services
spec:
  hard:
    count/services: "1"

Create two workspaces that have at least one endpoint (resulting in DWO attempting to create two services)
Workspace should fail with messageFailed to set up networking for workspace: services "workspace82736d3c797e4150-service" is forbidden: exceeded quota: resource-quota-services, requested: count/services=1, used: count/services=1, limited: count/services=1

We should verify that such quotas are respected for routes and ingresses as well, as applicable.
PR Checklist

[ ] E2E tests pass (when PR is ready, comment /test v8-devworkspace-operator-e2e, v8-che-happy-path to trigger)

[ ] v8-devworkspace-operator-e2e: DevWorkspace e2e test
[ ] v8-che-happy-path: Happy path for verification integration with Che

The Check sources GitHub action is failing due to a DWR test-case I wrote that was abusing the bug that this PR addresses.
IMO we should just remove the Gets Preparing status test case & the associated createsPreparingDWR() function.
@amisevsk let me know if you'd like me to add an extra commit to the PR for this.


I think I may have solved the Widevine installation problem in Kodi 18 on Raspbian

My Config: Raspbian Stretch Lite with vanilla LXDE and Openbix installed on top, Raspberry Pi 3B+, Kodi 18.0-1.
Prerequisites

The following instructions were tested in the Nautilus file manager, not LXDE's default PCmanFM. Install it with sudo apt-get install nautilus , then reboot to make sure all of the GNOME dependencies get loaded.

Inputstream.adaptive may be unavailable from the Kodi addon repository and need to be installed from the Terminal. To do that, open a terminal, and type sudo apt-get install kodi-inputstream-adaptive -y. If the package name can't be found, enter these commands in order, replacing stretch with the version name for whichever Raspbian version you're using if not Stretch: sudo echo "deb http://pipplware.pplware.pt/pipplware/dists/stretch/main/binary /" > /etc/apt/sources.list.d/pipplware_kodi18.list, wget -O - http://pipplware.pplware.pt/pipplware/key.asc | sudo apt-key add -, apt-get update && apt-get dist-upgrade -y. After all of these have completed, reboot and try sudo apt-get install kodi-inputstream-adaptive -y again.

If the helper throws the error "fdisk and parted not found on this machine," or something to that effect, run Kodi as root by typing sudo kodi in the terminal, then install the Netflix, Amazon, and/or Inputstream.adaptive addons as root.

Why the automatic way doesn't work, as far as I can tell
I downloaded the SPRING recovery image myself, and tried to convert it from a binary to an iso and mount it. bchunk failed because the file size was too large, so I looked up which other 32-bit ARM Chromebooks there are. It turns out there's an HP Chromebook, hwid "SKATE," whose recovery image is just under 600mb. I tried to convert and mount that, and it worked, So, here are the steps to get the widevine installer to download that image instead:
Instructions

Assuming you've already set everything up under a root instance of Kodi, closed it, and then opened Nautilus as root,  navigate to /root/.kodi/addons/script.module.inputstreamhelper/lib and open config.py in your text editor of your choice.

Change CHROMEOS_ARM_HWID = 'SPRING' to CHROMEOS_ARM_HWID = 'SKATE', then save the file.

Open Kodi as root again, configure the Amazon VOD or Netflix addon with your account information, and try to play any movie that you're fine with being in your watch history.

You will be prompted to install Widevine, accept all of the prompts and wait.

The installation will eventually fail, but before it failed, it was able to extract a working libwidevine.so. This is all you'll need from the installer anyway. Close Kodi.

Download the file recovery.conf from Google, using either the terminal command wget https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf or a web browser.

Navigate to /home/[your username]/[folder you put recovery.conf in], and rename it widevine_config.json, using the root Nautilus window that is still open. Copy it to /root/.kodi/cdm, /root/.kodi/userdata/addon_data/script.module.inputstreamhelper/cdm, and anywhere else under /root/.kodi/userdata/addon_data/script.module.inputstreamhelper/ where you can find a copy of libwidevine.so.

Launch Kodi again as root. You may now get the message "Netflix error" and be unable to open the Netflix app. If this happens, use Amazon VOD, or if you don't subscribe to that service, skip to step 10.

In the Amazon VOD app, attempt to play a movie. You will get prompted to update Widevine, but if you decline this prompt the movie will now play, and you shouldn't get asked again. If you ever are, just decline again.

If you haven't set up Kodi with Amazon VOD, Netflix, and inputstream.adaptive on your own user account, do so. If you have, skip this step.

In a root Nautilus window, copy libwidevine.so and widevine_config.json to the same folders you put them in during step 7, but under /home/[your username]/.kodi instead of /root/.kodi.

Repeating this step for every folder under /home/[your username]/.kodi that contains copies of libwidevine.so and  widevine_config.json, right-click on the folder and select "Properties." Under the permissions tab, select "Create and delete files" in all 3 dropdown menus. Select "Change permissions for enclosed files..." and do the same to these menus, here also selecting "Read or write" wherever applicable, then click "Change", wait a few seconds. and close both dialog boxes.

Open Kodi again, this time doing so under your own account either by simply clicking on "Sound & video > Kodi" in the main application/start menu, or entering the command kodi in the terminal. Widevine has been installed and configured, so Amazon VOD and Netflix should now work normally.

For future reference
Presumably you will need to actually update libwidevine.so and widevine_config.conf eventually, in which case you can find a more recent ARM 32-bit recovery image, change the HWID in config.py again, and repeat these instructions. Recovery images can be found here, or likely in a fresh copy of recovery.conf

Hi,
I had it much easier with installing today:

latest Raspbian Stretch Lite
No Linux-UI, only console
Kodi 18.0-1
Raspberry Pi 3B
SDCard wih 32Gb (and only 2Gb used so far)
/boot/config.txt tweaked with gpu_mem=256 (for reference, don't think it matters here)

So nearly the same setup, but with Pi 3 instead of 3B+ and no  grafical linux interface like LXDE.
I did:

aptitude install kodi-inputstream-adaptive libnss3 libnspr4
installed this "Amazon VOD" plugin
user under which kodi runs must have some rights to mount, unmount, ... .
My user is named "kodi" and so /etc/sudoers file must contain this:
kodi ALL=NOPASSWD:/bin/mount, /bin/umount, /sbin/losetup, /sbin/modprobe
started a film, kodi said, it had to activate and download from chrome OS, I accepted and waited
works!

My problems where that I had to add the entry in /etc/sudoers and install kodi-inputstream-adaptive, libnss3, libnspr4, I missed some of them out first place, but after that everything worked. I didn't have to copy files manually ...

The future probably looks more like #72 so we only need the diskspace to store the ZIP file.
But in the meantime we moved to the SPRING image. #60

The latest inputstreamhelper selects the Chrome OS image with the latest version and the smallest size dynamically. So this is no longer hard-coded. For instance today it would select:
Debug: [script.module.inputstreamhelper]: Find best ARM image to use from recovery.conf
Debug: [script.module.inputstreamhelper]: EXPRESSO<PHONE_NUMBER>) is smaller than BOB<PHONE_NUMBER>)
Debug: [script.module.inputstreamhelper]: BIG<PHONE_NUMBER>) is smaller than EXPRESSO<PHONE_NUMBER>)
Debug: [script.module.inputstreamhelper]: JERRY (12239.92.1) is newer than BIG (12239.92.0)
Debug: [script.module.inputstreamhelper]: MICKEY<PHONE_NUMBER>) is smaller than JERRY<PHONE_NUMBER>)


RDMO 1.8.3

Fix translation
Fix issues with empty questionsets

Coverage remained the same at 90.476% when pulling 1bf4a3484e9bee956648cc027e4dd73e9f11159d on dev into c6a930f6adfaa0fc5a3ce3fbd4fbac3c85cea2a1 on master.


Methods to make trades (not just get information)

Hey! Awesome work so far man,
I was wondering if you planned on supporting placing orders?
If not I wouldn't mind making some contributions to include that, but lmk either way.

Hey! I was planning on adding those features, but have been busy with other projects. It would be great if you wanted to add those features in!

@manesioz I am also very interested in that!
Let me know if you would like to collaborate on this.

@JonathanCauchon Awesome! I've been pretty busy lately as well so if you want to get started on that feel free :)

@manesioz @JonathanCauchon
Do you guys have any ideas on how to get the security_id
From dev tools -> JS fetch
let sellTwo = await fetch("https://trade-service.wealthsimple.com/orders", {
  "headers": {
    "accept": "application/json",
    "accept-language": "en-US,en;q=0.9",
    "authorization": "Bearer 1CkcahYFOOvwfBdHJDXzONgSDn1C-BARGE-J3IAm420",
    "content-type": "application/json",
    "sec-ch-ua": "\"Google Chrome\";v=\"87\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"87\"",
    "sec-ch-ua-mobile": "?0",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-site",
    "x-app-instance-id": "6277686b-420d-47f9-a836-00fd35462e49",
    "x-platform-os": "web",
    "x-websocket-id": "websocket-4905089f-foob-4d1a-a5ad-b57072e0d6fa"
  },
  "referrer": "https://my.wealthsimple.com/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "{\"account_id\":\"non-registered-t19bwiue\",\"quantity\":1,\"security_id\":\"sec-s-e90effe2699b47acbd69e96ffd0fea97\",\"order_type\":\"sell_quantity\",\"order_sub_type\":\"limit\",\"time_in_force\":\"day\",\"market_value\":1000,\"limit_price\":1000}",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

I think I'll be able to write the core code, but I sure as hell won't pass a code review haha.. also its a jupyter notebook

@manesioz @JonathanCauchon
Do you guys have any ideas on how to get the security_id
From dev tools -> JS fetch
let sellTwo = await fetch("https://trade-service.wealthsimple.com/orders", {
  "headers": {
    "accept": "application/json",
    "accept-language": "en-US,en;q=0.9",
    "authorization": "Bearer 1CkcahYFOOvwfBdHJDXzONgSDn1C-BARGE-J3IAm420",
    "content-type": "application/json",
    "sec-ch-ua": "\"Google Chrome\";v=\"87\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"87\"",
    "sec-ch-ua-mobile": "?0",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-site",
    "x-app-instance-id": "6277686b-420d-47f9-a836-00fd35462e49",
    "x-platform-os": "web",
    "x-websocket-id": "websocket-4905089f-foob-4d1a-a5ad-b57072e0d6fa"
  },
  "referrer": "https://my.wealthsimple.com/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "{\"account_id\":\"non-registered-FOOBAR\",\"quantity\":1,\"security_id\":\"sec-s-e90effe2699b47acbd69e96ffd0fea97\",\"order_type\":\"sell_quantity\",\"order_sub_type\":\"limit\",\"time_in_force\":\"day\",\"market_value\":1000,\"limit_price\":1000}",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

next issue I'm facing,
input
{'account_id': 'non-registered-FOOBAR',
 'quantity': 1,
 'security_id': 'sec-s-e90effe2699b47acbd69e96ffd0fea97',
 'order_type': 'sell_quantity',
 'order_sub_type': 'limit',
 'market_value': '123',
 'limit_price': '123',
 'time_in_force': 'day'}

output
{"error":"quantity is invalid."}
I think I'll be able to write the core code, but I sure as hell won't pass a code review haha.. also its a jupyter notebook

@alik604 Seems like the error is regarding quantity. Try:
{'account_id': 'non-registered-FOOBAR',
 'quantity': '1',
 'security_id': 'sec-s-e90effe2699b47acbd69e96ffd0fea97',
 'order_type': 'sell_quantity',
 'order_sub_type': 'limit',
 'market_value': '123',
 'limit_price': '123',
 'time_in_force': 'day'}

@manesioz I'll try that again. However, do I recall trying '1', 1 and for the sake of my sanity, one and 0x1 .

@alik604  @manesioz  I also got that error with quantity. Any hints on how to solve it?

@alik604  @manesioz  I also got that error with quantity. Any hints on how to solve it?

@notAmine Sorry I don't have any, if you figure it out please post it

@notAmine Sorry I don't have any, if you figure it out please post it

Also stuck on same issue... I've looked at the network trace and I don't see it missing anything. Any updates?

added comment to PR - https://github.com/seansullivan44/Wealthsimple-Trade-Python/pull/11
issue was the internal requests wasn't sending the data properly.

https://github.com/ahmedsakr/wstrade-api/blob/main/src/orders/submit.js#L39
I've had all orders types supported for quite some time. You can use that as a reference for supporting it with this library :)

See this for fix. I haven't tested, I ended this adventure after my last comment.


How to support multiple authorizations

Let say I had two realms and I wanna be able to authenticate users from both realms.
Is it possible to achieve this with this library, can you point me to an example or doc where can I find this?

You can override Authentication Scheme name by providing an argument:
https://nikiforovall.github.io/keycloak-authorization-services-dotnet-docs/api-reference/Keycloak.AuthServices.Authentication.KeycloakWebApiServiceCollectionExtensions.html?q=AddKeycloakWebApiAuthentication#Keycloak_AuthServices_Authentication_KeycloakWebApiServiceCollectionExtensions_AddKeycloakWebApiAuthentication_Microsoft_Extensions_DependencyInjection_IServiceCollection_Microsoft_Extensions_Configuration_IConfiguration_System_String_System_String_
Thank you can write a selector for auth scheme, ref:
https://code-maze.com/dotnet-multiple-authentication-schemes/
On Thu, Aug 15, 2024 at 6:11 AM Ernesto Ramos Rio @.***>
wrote:

Let say I had two realms and I wanna be able to authenticate users from
both realms.
Is it possible to achieve this with this library, can you point me to an
example or doc where can I find this?
—
Reply to this email directly, view it on GitHub
https://github.com/NikiforovAll/keycloak-authorization-services-dotnet/issues/132,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB5KIP6GF6MQAMS446FDOETZRQL7TAVCNFSM6AAAAABMRPBPUCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3DOMRYGQ2DANQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
.com>


VK_WHOLE_SIZE missing?

Ash does not seem to expose VK_WHOLE_SIZE at all. Is there a specific reason why it is not available?

VK_WHOLE_SIZE is a special value indicating that the entire remaining length of a buffer following a given offset should be used. It can be specified for VkBufferMemoryBarrier::size and other structures.
#define VK_WHOLE_SIZE                     (~0ULL)

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_WHOLE_SIZE.html

But it exists? https://docs.rs/ash/latest/ash/vk/constant.WHOLE_SIZE.html
You can even find it when searching for the entire VK_-prefixed symbol in the documentation, despite us not having doc(alias) yet: https://docs.rs/ash/latest/ash/vk/constant.WHOLE_SIZE.html?search=vk_whole_size

Thanks! Somehow I missed that. Seems to also be the only constant you'd commonly need.


Fix npm start on windows.

Coverage remained the same at 100.0% when pulling 78bdee99a1339457320eba7f50a6c1b01a6406a0 on foreggs:master into 93b1875794409dd39b70e94af409f39596ea889e on alexjoverm:master.


FEAT: Add Unraid container

Someone should pr the unraid template to add it
SEANVREE | Monitorr Dev, WindowsLast Tuesday at 4:25 PM
YES
for logarr?
Roxedus [NotDockerGuy]Last Tuesday at 4:26 PM
Both. So they look pretty in unraid
SEANVREE | Monitorr Dev, WindowsLast Tuesday at 4:26 PM
Yeah, I mean, I'm tracking the monitorr one works, but logarr doesn't have one
but yeah, for sure
Roxedus [NotDockerGuy]Last Tuesday at 4:26 PM
Then get it in CA, tron knows how
SEANVREE | Monitorr Dev, WindowsLast Tuesday at 4:27 PM
wurd
Roxedus [NotDockerGuy]Last Tuesday at 4:27 PM
It has nothing to do with the container, but unraid has a place to show icons for the dockers, while viewing

https://github.com/selfhosters/unRAID-CA-templates/blob/master/templates/logarr.xml

Publishing to CA:  https://forums.unraid.net/topic/57181-docker-faq/#comment-566084

Official Monitorr unRaid templates:
https://github.com/Monitorr/unraid-templates


NATS timeout errors when calling NatsJetStreamManagement

Observed behavior
As described in Slack channel https://natsio.slack.com/archives/CM3T6T7JQ/p1692790156946559 we´re sometimes seeing timeout errors when we try to fetch information from Jetstream.
We see that the request goes into the NATS server but the response is never received. Not 100% sure if this is a server or client issue. Please move to another repo if this one doesn´t match.
We even see these timeouts if we increase the timeout threshold to 10 or even 30 seconds.
As this is reproducable in small tests without a high load on the system, the system resources shouldn´t be the problem here.
Expected behavior
All requests against the NatsJetStreamManagement should be answered.
Server and client version
Experienced same behavior on different server (2.8.x / 2.9.x and 2.10.0) and client (jnats 2.14.x, 2.16.x) versions.
Host environment
Windows; NATS server running in Docker (Docker Desktop for Windows)
GKE cluster
Steps to reproduce
nats-timeout-reproducer.zip
The attached ZIP contains a simple reproducer:
container-starter
This module creates a Testcontainer starting the NATS server.
reproducer
A stripped down version of our code which creates a stream and registers subjects to it and also adds message consumers to them.
How to build
Simply do a mvn clean install -DskipTests in the parent folder.
After that, go into reproducer and execute the TimeoutReproducerTest.bat which starts the supplied test 25 times. A couple of executions will success, others will fail with the mentioned timeout error.
The log files of each test-run are placed under the ./logs folder.

@joachimglink Please see dm in slack.

I cannot run your example, but... my guess here is that this is an issue where you are making a management call in the handler for another message on the same connection. We've seen this before. The dispatcher makes a blocking call to post a message to a handler. The handler then makes an api call like a JetStreamManagement call that is a request under the covers. The request is made and the message comes in from the server, but the dispatcher is already busy delivering a message, so the 2nd request runs out of time.
The fix for this is the following: In the connection options add in
.useDispatcherWithExecutor()

This tells the dispatcher to run the delivery as a task from the Options executor service, which you can also supply with the option
.executor(ExecutorService)

Please let me know if this solves your issue. Otherwise, I will try again with your project, but I'm going to need to to run against a local server (not docker) with a more simplified project.

@joachimglink
I cannot run your example, but... my guess here is that this is an issue where you are making a management call in the handler for another message on the same connection. We've seen this before. The dispatcher makes a blocking call to post a message to a handler. The handler then makes an api call like a JetStreamManagement call that is a request under the covers. The request is made and the message comes in from the server, but the dispatcher is already busy delivering a message, so the 2nd request runs out of time.
The fix for this is the following: In the connection options add in
.useDispatcherWithExecutor()

This tells the dispatcher to run the delivery as a task from the Options executor service, which you can also supply with the option
.executor(ExecutorService)

Please let me know if this solves your issue. Otherwise, I will try again with your project, but I'm going to need to to run against a local server (not docker) with a more simplified project.

@joachimglink My guess is that you have some threading model that is trying to do something while handling another message and it ends up blocking. The useDispatcherWithExecutor might just be hiding the problem. The client generally works, but I see this from time to time. I had a customer with a the identical issue and we traced it down to his code did exactly as I just described. I suggested that they change that or maybe use another connection to do management like creating consumers.
Also, something I would suggest if you haven't already, is to get the latest library. We have done work to make sure all internal futures are properly terminated, something that ends up parking threads, which also may be a cause here.


Bug Report: Launching any song crashes the game

Please check for duplicates, similar issues or closed issues with the same problem, as well performing simple troubleshooting steps (such as deleting the export folder if it's an issue with compiling, reinstalling Kade Engine) before submitting an issue.
If you are playing a downloaded version of the game, what operating system are you using?
Windows (x86), Windows (x86_64), Linux, or macOS? Specify below.
Windows 10 (64 bit)
What version of the game are you using? Look in the bottom left corner of the main menu.
KE 1.8
Have you identified any steps to reproduce the bug? If so, please describe them below. Use images if possible.
Launch any song
Please describe your issue. Provide extensive detail and images if possible.
Launching any song causes the screen to black out and the game to subsequently crash.

having the same issue lol i cant play any songs in any capacity


Fix peer discovery for peers not in boot list.

Fix #30

Thanks for this!


DeletionPolicy ignored for LogGroup unless RetentionInDays is also specified

When creating a LogGroup the deletion policy is lost unless RetentionInDays is also specified:
from troposphere import Template, Retain
from troposphere.logs import LogGroup

t = Template()
t.add_version("2010-09-09")
t.add_description("Test DeletionPolicy for LogGroup")

t.add_resource(LogGroup(
    "LogGroupWithIgnoredDeletionPolicy",
    DeletionPolicy=Retain
))

t.add_resource(LogGroup(
   "LogGroupWithDeletionPolicyAndRetentionInDays",
   DeletionPolicy=Retain,
   RetentionInDays=7
))

print(t.to_json())

Output
{
    "AWSTemplateFormatVersion": "2010-09-09",
    "Description": "Test DeletionPolicy for LogGroup",
    "Resources": {
        "LogGroupWithDeletionPolicyAndRetentionInDays": {
            "DeletionPolicy": "Retain",
            "Properties": {
                "RetentionInDays": 7
            },
            "Type": "AWS::Logs::LogGroup"
        },
        "LogGroupWithIgnoredDeletionPolicy": {
            "Type": "AWS::Logs::LogGroup"
        }
    }
}

I don't think this is restricted to just LogGroup, I'm struggling to get S3 to work
from troposphere import Template, Retain, s3

t = Template()
t.add_version("2010-09-09")
t.add_description("Test DeletionPolicy for S3")

t.add_resource(s3.Bucket(
    "BucketWithIgnoredDeletionPolicy",
    DeletionPolicy=Retain
))

print(t.to_json())

Output
{
    "AWSTemplateFormatVersion": "2010-09-09",
    "Description": "Test DeletionPolicy for S3",
    "Resources": {
        "BucketWithIgnoredDeletionPolicy": {
            "Type": "AWS::S3::Bucket"
        }
    }
}


Replace most jQuery methods

A work in progress to replace jQuery. See https://github.com/intercom/ember-href-to/issues/2
I had to polyfill classList but perhaps this is where jQuery should be kept? Same with the click events.

@oskarrough thanks for working on this. I'm not sure if there is much value in removing jQuery however, especially as this addon is likely to be added to the ember framework at some point as url-for. I think the original issue should be closed.

Sure, I agree — feel free to close the pull request if you'd rather skip it. Otherwise I'll just change the const/let. Let me know.

Thanks, I'll close the issue and PR. Thanks for contributing :beers:


Add error message for PowerShell adapter without input

PR Summary
The PowerShell adapter requires a check whenever input is empty, it should return a proper error message. In this case, the default @{} was given as a parameter without converting it to JSON. Now it checks the JSON input and if empty, converts it still to an empty JSON string.

@anmenaga Can you review this PR?

A generic fix for this issue is in #525 .


[Bug Report] Datepicker saving wrong date to v-model

Element UI version
1.2.5
OS/Browsers version
Chrome version 56
Vue version
2.1.10
Reproduction Link
https://jsfiddle.net/stevepop/f9et5soz/
Steps to reproduce
Pick a date 28/3/2017 in the start_date field
Pick another date 31/3/2017 in the end date field
The dates picked will be printed under the datepicker inputs
What is Expected?
I expect that when I picked Start Date 28/3/2017 then I should have   Start Date: "2017-03-28T00:00:00.000Z" printed and when I picked 31/3/2017, I should have "2017-03-31T00:00:00.000Z" printed.
What is actually happening?
When I pick Start date  28/3/2017, What is saved in the v-model is "2017-03-27T23:00:00.000Z" and when I pick the end date 31/3/2017, what is saved in the v-model is 2017-03-30T23:00:00.000Z.
The implication is that my users always have the date saved as date - 1 day. We don't care about the time element but expect when we select a date, then that date should be saved.
Thanks!

It's time difference: https://jsfiddle.net/leopoldthecuber/f9et5soz/1/ . I suppose if you open this demo, the displayed date is always one hour earlier than your local time.

Hi @Leopoldthecoder, the datepicker is meant to select actual date, I don't care about the time element or else I would have used your datetimepicker.
This is really confusing to my users, so what is the solution to this please?

Any update on this?

Like I said, this is not a bug and totally normal. You can always format dates yourself: https://jsfiddle.net/leopoldthecuber/f9et5soz/2/ .

Maybe I'm missing something here. But see the pic: <input type="date"> and <el-date-picker type="datetime"> work as expected but not <el-date-picker type="date">.
Anyways, I switched to using <el-date-picker type="datetime"> so I'm ok now.
https://jsfiddle.net/CaCa/13zf9m1k/1/

my solution:

code in js

import dateUtil from 'element-ui/lib/utils/date';

......

methods: {
        handleDateChange(idx, date, ele) {
            if(date instanceof Date){
            	ele.date = dateUtil.format(date, 'yyyy-MM-dd');
            } else {
            	ele.date = date;
            }
        }
    }

code in html:
<el-date-picker type="date" format="yyyy-MM-dd" :value="scope.row.date" @input="handleDateChange(scope.$index, $event, scope.row)" placeholder="选择日期">
                  </el-date-picker>

I am facing same issue, is there any proper solution for this problem?

@mtilokani, I stopped using this component because the author does not believe this is a bug.

@naijaprizes Even I also now need to stop using. Need to look alternate solution for this.

@farcasmihai91
Why you given me a down? Is not a good idea?

@Leopoldthecoder have you tried changing your timezone to the UK to see the issue?
It appears that due to the clocks going forward and backwards it causes the date to return 1 hour behind which then means the date selected e.g. 21/06/2017 is returning 2017-06-20T23:00:00.000Z.
So regardless of your suggestion to .getDate() etc it would still say the wrong date.
To explain further our clocks went forward on the 26th March:

Our clocks go back on the 29th October:

This is a bug..

@Leopoldthecoder, everyone here can't be wrong and you are right. Clearly there is an issue with the Datepicker that clearly shows that it is a bug. The last post is a clear indication that something is wrong. This issue was opened by me since March and I've had to switch to another Datepicker component because you flatly refused to acknowledge that there is a bug here and have refused to respond to others who have confirmed that there is an issue.

Here's some clarification:
First I'd like to mention that the value of DatePicker is a Date object, not a string. So when you try to display it on the screen using {{ start_date }}, you are actually seeing its string representation. Generally browsers call toISOString to get a Date object's string representation, and toISOString always returns a string whose timezone is zero UTC offset: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString .
Back to DatePicker. When you click a day on the panel, you'll get a date in your local time. For example, if you click 21 of June 2017, Element simply assign the value to new Date(2017, 5, 21).

Note: Where Date is called as a constructor with more than one argument, the specified arguments represent local time. If UTC is desired, use new Date(Date.UTC(...)) with the same arguments.

So you'll get 2017-06-21 00:00:00 in your local time. And unless you're in +0 timezone, 2017-06-21 00:00:00 in your local time is different from its string representation, as the latter one is in UTC.
I assume @stevepop is in +1 timezone because he gets "2017-03-27T23:00:00.000Z" when he picks 03/28/2017. And as I'm in China (+8 timezone), I get "2017-06-20T16:00:00.000Z" (but 2017-06-21 00:00:00.000 in Beijing time) when I pick 06/21/2017. This is all intentional.
@stevepop , you said in your earlier response that the datepicker is meant to select actual date. In fact, DatePicker is giving you the actual date, and it's giving you the actual date in your local time. We chose local time over UTC because in most cases local time makes more sense for the end user. And if you do need UTC, you could convert it.
@rickbolton you have Summer Time in UK. UK Summer Time is one hour ahead of UTC, so when you pick a day in Summer Time, its string representation is one hour earlier. Outside the Summer Time, your local time is the same as UTC, so you'll get zero o'clock when you pick 26/03/2017 and 30/10/2017 .
I hope this clarifies some misunderstanding. I know it'll be more straightforward if the value is just a plain string, e.g. '2017-06-21'. But since it's a DatePicker, we think it's more reasonable if it gives you a Date object.

@Leopoldthecoder Is there any solution to get a correct date?

@mtilokani You can format a Date object regardless of what timezone you're in, as the getters are based on your local time:

The simplest way is to use toLocaleString: https://jsfiddle.net/f9et5soz/5/ . For more flexibility, you can use the above getters: https://jsfiddle.net/f9et5soz/6/
Plus, there are many date formatting libraries in the JavaScript community, like fecha and moment . If you prefer fecha: https://jsfiddle.net/f9et5soz/7/

https://jsfiddle.net/stevepop/f9et5soz/ This is definitely a wrong logic. Why not just return a string instead?

This issue keeps coming up even though the Author believes  it is not a bug.

amazing author.
You are right, but here, nobody don't know about Date of javascript.
What do you think why everybody use COMPONENT?
I don't wanna pull any date converting logic out to my component.
i just wanna believe date picker component will do pickup and converting.
and everyone will also do believe like that.
You don't know what is the component and why people encapsulate, reuse things.

Since

the value of DatePicker is a Date object, not a string.

I suggest use a object as a initial value in examples of element user manual. it confused me and maybe others.

@loopArray I don't know why these two guys gave you a down vote. Your solution works for me. Thanks.

@Leopoldthecoder please fix this. When I pick a date, it is pretty obvious that I want that exact date.

@JohsBerggren I've found the best way to deal with this issue is to use moment
moment(this.dateTime).format('YYYY-MM-DD HH:mm:ss')
I personally agree that it should return a string rather than giving you a date Object but hey ho

@rickbolton Awesome, thanks man.

I guess the issue will be solved by this http://element.eleme.io/2.0/#/en-US/component/date-picker#formatted-value

 yes, I guess that fixes this non issue haha

Yep, looks good in the new version 👍

The bug is still there. You pick one date, and it picks the previous date.

I think that the value-format should be checked in picker options too.

I am trying to save a date of birth (emphasis on date) into my PostgreSQL database.
PostgreSQL knows the difference between a date type and a timestamp with timezone, so the database column is defined as simply a date.
When I use this component to select a date, then send that date object to the database it inserts that date - 1 day. Because somehow, it is normal to have a time value on a date object, moreover that time is not even 00:00:00.
So you can surely see, that from an outside perspective this is ludicrous.
Now we do understand the technicality about why this is happening!
That was not the point, the point was that we are using the default el-date-picker, not a  el-date-picker with type="datetime".
Thank you!

I solved it by using the format and value-format attributes. Then, when sending the data back to the server just use something like new Date(this.modelName)
<el-date-picker
v-model="modelName"
type="datetimerange"
format="yyyy/MM/dd HH:mm A"
value-format="yyyy/MM/dd HH:mm A"
range-separator="To"
start-placeholder="Start"
end-placeholder="End"> </el-date-picker>

The thing is, I don't want to be handling every single datepicker value I have in my app. I want a centralized way of sorting it out so it works in the same way across the board. If I have to customize every single usage of the datepicker what's the point then?

attr value-format="yyyy-MM" works fine for type="month"

I am on GMT+3 timezone. The date-picker below, set wrong date for only the month February for month selection. When I select the February, it set model value as '2020-01-31 21:00', for the rest of months, the value is fine as '2020-mm-01 21:00'
mm*: selected month.
<el-date-picker           v-model="row.paymentDate"           :clearable="false"           :picker-options="datePickerOptions"           value-format="yyyy-MM-dd"           type="month"           format="MMM yyyy"           placeholder="Select Month"/>
From the inspiration of wongchance's comment, I changed as
value-format="yyyy-MM"
and it works now.

@stevepop  Format using moments: eg moment(this.form.start).format('YYYY-MM-DD h:mm:ss').

value-format="yyyy-MM-dd  hh:mm:ss" or what ever the format you like will format it to the right-one.


Avoid unneeded heap allocations in VM

https://github.com/antonmedv/expr/blob/a97d10e66a207bffb67f503fe58297fb14f3ee1c/vm/vm.go#L248
There are other similar heap allocations.  This could easily be replaced with a pre-allocated or stack allocated fixed array of some typical size, and if the callsite is bigger (if you happen to have some crazy number of arguments) then you could fall back to allocating.

Preallocated, meaning allocated before, not during the call

But what is no call will occur? Sorry I don’t understand how this should work.

#57

Duplicate of #58


Running Jest crash my Jenkins docker container

I am experiencing on almost each build (97%) a jenkins docker container crash when it comes to the task
npm run test which involve jest directly.
Jenkins fails silently, I have tried to add more CPU more RAM but it didn't change anything.
I have also tried to run the test with --runInBand.
Does anyone experience such issue ? I really don't know where to look at, jest? jenkins? npm?

Unfortunately this is not a reasonable bug report and we cannot act based on it. Please provide a full repro that we can try on our machines.

Is there a reason why jest task would fail and a settings I might be interested in ?

I have raised the RAM and CPU by twice the power, I still have my jest task crashing my jenkins.
This happen in all my project.
I am using the official jenkins image: https://hub.docker.com/_/jenkins/


Upgrade to new bundle build

Is your feature request related to a problem? Please describe.
Prefer to use the new Rollup bundle support
Describe the solution you'd like
Upgrade component build process
Prior to next major release
It is important that we communicate prior to the next major release that we will be changing the npm namespace. See https://github.com/AlaskaAirlines/auro-radio/commit/2e894a0af517b633a4b24cbc2b3156cd96487d1d for the update to be used.

remove dependency on legacy browser script
Use node 16
use new testing framework.
updates to new doc system

This issue is out of date. The update was applied with a previous MAJOR release.


Add walletconnect using web3modal

@rkalis Having a working version here.
Using web3modal since I am most familiar with this lib and its quirks.
Connect button is now Connect/Disconnect. Disconnect wipes the cached provider so you can easily switch wallets, or switch between MM/WalletConnect/CoinbaseWallet.
I have tested this on Ethereum mainnet with Coinbase Wallet and Polygon with WalletConnect.

I missed the ability to just drop an ENS name or address into the box when you dont have any web3 provider. Will add that functionality back in.
I will persist the provider so that you don't need to connect each time.
Will investigate this error!

Thanks for the fixes! I noticed some more things:

When switching the connected network in Metamask, nothing seems to change.
When refreshing the website (while connected to a different network than Ethereum mainnet), it connects to the fallback provider first and then to the injected provider, but it ends up with mostly Ethereum mainnet data.
It's probably nice if we display the connected ENS name / address separately from the connect button now that we have "disconnect" functionality.

I briefly tried to fix the network change issues locally but no luck.

Fixed network switching and problems with the fallback provider.
ENS name resolution doesn't seem to be working anymore since your latest updates with MultiCall. You can still enter an ENS name and get back token info, its just that when you enter an address, ensName never gets resolved.

Hey @thevolcanomanishere I made several changes, see the commits above:

Use a logo instead of text for network indicator (great call on having a network indicator though)
Display both the connected account AND a disconnect button
Don't use window.location.reload(), since that causes information (like the current input address) to be lost
Use the injected provider (if available) for READ-ONLY access, even when not connected through web3modal yet

Would love to get your input on whether these things make sense.

@rkalis looks great. Much nicer design with the combined logo, shortened address, and connect button.

Thanks so much for the contribution, great to finally have WalletConnect support in revoke.cash after like 3 years!
https://twitter.com/RevokeCash/status/1538146889190744066


Dutch translations

Thanks for contributing to Postleaf! 💙💚
Contributor License Agreement
We want Postleaf to remain free and open for everyone to use forever, so please don’t submit any code or content that is licensed or copyrighted without first getting written consent.
Before we accept your pull request, we ask that you agree to the following terms to ensure there are no conflicts with Postleaf’s license now or in the future.

I certify that the code I am contributing to this project is completely original or free of any known license or copyright.

I agree to allow the developer of Postleaf, A Beautiful Site, LLC, license or relicense my work at their discretion. By submitting this pull request, I agree to forfeit all copyrights, intellectual property rights, and royalties pertaining to my contribution.

By entering my name in the space provided below, I agree to all of the terms mentioned above.

Signed: KevIT
Date: 2016-08-15

Hi, thanks for contributing 👍
Looks like the first line is missing the opening <. Also, was this made against the latest English translation? It looks like there are about 20 terms missing.

@claviska Hey, sorry for the <, This was taken from the most recent "de-de.php" lanuage file, could you provide me the lines that are missing?

No worries. I just pushed some changes to master that remove some unused terms. If you compare to en-us.phpyou'll be up to the latest version.

@claviska I've updated the translations to the newest version of en-us.php.

Awesome. Looks like the last commit removed nl-nl.php though. Can you push the finished version so I can merge it? :)


Adapters under load fills up memory and start swapping

We have a test system with 1000 deployed applications. Each application is bound to its own syslog drain service.
Starting with 2 adapter VMs (2 cpu, 4gb ram) we gradually increased the number of logs sent by the test applications and we experienced some memory issues in the adapters.
Increasing the load caused an increase of the memory usage up to 100% and made the VM start swapping.
The expected behaviour would be to drop incoming logs before starting to swap.
Doppler are 2 VMs 2cpu, 4gb ram each.
This was tested on loggregator-release v99 (the one used for etcd-removal migration) and the 101.4 (the one in cf-deployment 1.9.0)

For each drain, two adapters will be assigned to read from the Loggregator system and write to the downstream drain.
This means with your cluster size of 2 adapters, each adapter will have a drain for each app. Each adapter uses a 10000 sized buffer for each drain:
1000*10000*256 =><PHONE_NUMBER>B

or

2.38 GiB per adapter

(This assumes a 256 byte average for envelopes)
This doesn't leave much room for other memory usage. If you scale up the number of adapters, it will resolve the issue.

Thanks for the info! I would close this in favour of #25 as you mentioned changing the logic under heavy load on both adapter and rlp.
Would be cool to have this numbers you mentioned about cached envelopes in the docs as well!
Thanks and regards,
Michael


Remove cross origin approach and detect parent document location

What
This is an alternative to the approach taken on #988 (which causes the cookie banner to flicker before removing it). This approach checks if the component is rendered in an iframe and the parent document location is a publishing domain (*.publishing.service.gov.uk) to prevent the cookie banner from being displayed.
Why
This behaviour is required for previewing GOV.UK pages from draft stack in Content Publisher without obstructing the view.
Visual Changes
No visual changes
Trello card

Nice one Alex 👍
I'm wondering if we need to check the hostname at all and it might be sufficient to just make the call that this message isn't shown in an iframe. Shouldn't really be an issue as only the draft stack can be embedded in an iframe.

@kevindew Updated to drop the domain checking.


Something has broken in displaying concordances on the Chant Detail Page

This is on the develop branch

For what it's worth the concordances tool doesn't work on OldCantus right now either (it has an
under maintenance" message and a somewhat frustrating link to the Index that doesn't really lead to that chant's ID page e.g. https://cantusindex.org/ci/006129?c=1) .

This seems to be a problem just on our develop branch - it was only occurring locally, and when I switched to the staging branch, things seem to be working fine...


Add support for two Panasonic ceiling lights

pmfbj.light.xsx340 and pmfbj.light.xsx341.

Thanks!

https://github.com/AlexxIT/XiaomiGateway3/releases/tag/v3.3.5


Fail fast on errors without waiting for code generation

Description:

Describe your problem(s)
Describe your solution(s)
Related Issues (optional):

https://github.com/ballerina-platform/ballerina-lang/issues/35097

Suggested Labels (optional):

Suggested Assignees (optional):

Closing since fixed with #35298

Issue created to track a possible improvement in the way the jballerinabackend fails.


Update incoming-call-notification.md

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

#sign-off

Hi @Bernice4Winners and @jasonshave - it looks like some changes have been made and merge since this PR was opened and now there are merge conflicts. Can you resolve these? thanks.

#hold-off
@jasonshave - after the conflicts are done, review again and sign off.

emailed author

@Bernice4Winners @jasonshave - can you resolve the merge conflicts? we can't review and merge this PR until the conflicts are resolved. thanks

@Bernice4Winners @jasonshave - can you resolve the merge conflicts? we can't review and merge this PR until the conflicts are resolved. thanks

@Jak-MS I don't see the resolve conflicts option in GH maybe because I don't have access:


LoginAssertion_Error

The login assertion error was resolved by updating the expected error message in the test to match the format returned by the user routes. Specifically, the assertion in the test_login_user_not_found was adjusted to align with the updated API response, ensuring consistency between the test and the actual error message provided by the login endpoint.


Compiled queries need to honor multi-tenancy

Related to #1891

It's not exactly what I thought. It's a parameter ordering problem.


Improved administration for Talk #66

Current coverage is 78.64% (diff: 0.00%)

Merging #74 into master will decrease coverage by 1.71%

@@             master        #74   diff @@
==========================================
  Files            19         19
  Lines           275        281     +6
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            221        221
- Misses           54         60     +6
  Partials          0          0

Powered by Codecov. Last update 854f294...6d87aa1


JavaScript Algorithms & Data Structures

Describe your problem and how to reproduce it:
This code challenge completes only if the given solution is done exactly. Alternative methods doesn't Work. Even the description isn't much clear. Please look into this.
Add a Link to the page with the problem:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-data-structures/iterate-through-the-keys-of-an-object-with-a-for...in-statement
Tell us about your browser and operating system:

Browser Name: Google Chrome
Browser Version: Version 81.0.4044.129 (Official Build) (64-bit)
Operating System: Ubuntu 20.04

What do you mean by alternative methods? Challenge specifically asks to use for in loop

Sorry This worked fine. My bad! I'll close the issue.


TODO: Benchmark with other similar repo

I don't think it matters. User experience matters. It is closed now.


Fixed generation of multiplatform jars

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


Cannot run migration script with prototypes that have not changed package name

Description of the issue

When running npx govuk-prototype-kit migrate in a prototype from v12 or older, users will likely get the following error:
npm ERR! could not determine executable to run

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npm-cache-test/_logs/2022-11-14T13_44_43_130Z-debug-0.log

Steps to reproduce the issue

Create new v12 prototype from release archive
Run npx govuk-prototype-kit migrate

Actual vs expected behaviour

Environment (where applicable)

GOV.UK Prototype Kit version: v13 beta 4

One workaround is to delete the package.json file before running the command, we could tell users to do this in our online instructions. Another alternative is to tell them to install the package globally first. Both of these feel a little icky though :(

Found another potential workaround: running npx govuk-prototype-kit@latest version results in npx looking for the package online (tested with npm 8.19.2).

Going to have a chat with @joelanman and @BenSurgisonGDS to check that we're happy to tell users to use the npx workaround, or another of the other workarounds, or to look for another solution.

We've agree to tell users to npx govuk-prototype-kit@latest migrate.
We could also try npx govuk-prototype-kit@13 migrate, although currently we can't test this.

I've updated the draft content in https://github.com/alphagov/govuk-prototype-kit/issues/1672, calling this ticket done.


chore: remove libudev-dev dependency  [WIP]

Motivation
Removes libudev-dev dependency.

Solution
Replaces hidapi for hidapi-rusb on both the ledger (PENDING) and trezor. It makes the hidapi backend to be libusb, which gets built by rusb.
NOTE: Had to bump yubihsm version because of incompatibilities on rusb versions. It added quite a few dependencies on the lock file...
The ledger dependency on the git repository is temporary.

PR Checklist

[ ] Added Tests
[ ] Added Documentation
[ ] Updated the changelog

Blocked on #617, so that we bump yubihsm to its latest version which uses the right rusb version

included in https://github.com/gakonst/ethers-rs/pull/617


fix flaky session test

Fixes #2161.

Codecov Report

Merging #2189 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2189   +/-   ##
=======================================
  Coverage   86.71%   86.71%
=======================================
  Files         104      104
  Lines        7450     7450
=======================================
  Hits         6460     6460
  Misses        737      737
  Partials      253      253

Continue to review full report at Codecov.

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