Internal data by axis instead of scale id

Relevant part of parseObjectData after babel:
pr
    for (i = 0, ilen = count; i < ilen; ++i) {
      index = i + start;
      item = data[index];
      parsed[i] = {
        x: xScale._parseObject(item, 'x', index),
        y: yScale._parseObject(item, 'y', index)
      };
    }

Locally run tests:

100 runs done in 15430ms. Average: 154ms, min: 92ms, max: 516ms, variation: 424ms
100 runs done in 16681ms. Average: 166ms, min: 87ms, max: 867ms, variation: 780ms

In plunker:

50 runs done in 6431ms. Average: 128ms, min: 87ms, max: 441ms, variation: 354ms

master
    for (i = 0, ilen = count; i < ilen; ++i) {
      var _parsed$i3;

      index = i + start;
      item = data[index];
      parsed[i] = (_parsed$i3 = {}, _defineProperty(_parsed$i3, xId, xScale._parseObject(item, 'x', index)), _defineProperty(_parsed$i3, yId, yScale._parseObject(item, 'y', index)), _parsed$i3);
    }

Locally run tests:

100 runs done in 19970ms. Average: 199ms, min: 118ms, max: 539ms, variation: 421ms
100 runs done in 22556ms. Average: 225ms, min: 109ms, max: 863ms, variation: 754ms

In plunker:

50 runs done in 8775ms. Average: 175ms, min: 118ms, max: 461ms, variation: 343ms

plunker
(all tests run on chrome 79)

If you have two y scales, y1 and y2, won't they both get parsed to y and the second one will override the data from the first?

The parsed is per dataset (unless parsing is disabled and supplying same data to multiple datasets)
(and a dataset is obviously bound to single y-scale)
The parsing: false case suffers from this, you can't have data like {time: 123414, line: 10, bar: 15} and just give the scales id:s 'time', 'line' and 'bar'

I'll check re-check docs etc on this, lets not merge yet.

Ok, ready for another review


Annotation for Specifying Non null

Hello,
After implementing #7 I realised there is no easy way to define non null fields on GraphQL objects.
E.g. for RelayConnection pageInfo is a Non null field and currently the only way to enforce this would be to create a type mapper to RelayConnection.
The most natural solution is probably another annotation e.g. GraphQLFieldNonNull (To avoid collision with the graphql-core non null).
There is probably merit in also making any primitives non null by default. (This solves the pageInfo difference from #7  nicely)
Thoughts?
Ciaran

Correct. Non-Null is something I hadn't gotten around to finishing. Shouldn't be difficult and it'd be nice to fully implement it by:

Adding it for primitives
Allow fields to be marked non-null with the annotation to modify the schema.

It seems that the annotation route may not be possible
Ciaran


[music.yandex.ru] Album URL not fully downloaded (extract errors)

[ x] I've verified and I assure that I'm running youtube-dl 2018.03.10
Before submitting an issue make sure you have:
[x ] At least skimmed through the README, most notably the FAQ and BUGS sections
[x ] Searched the bugtracker for similar issues including closed ones
[x ] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser
What is the purpose of your issue?
[ x] Bug report (encountered problems with youtube-dl)
Site support request (request for adding support for a new site)
Feature request (request for a new functionality)
Question
Other
Hi all.
Playlist URL https://music.yandex.ru/users/rdsrecords.ru/playlists/1002 not fully downloaded.
LOG (177 lines):
$ LANG=en_US.UTF-8 ydl -v https://music.yandex.ru/users/rdsrecords.ru/playlists/1002
[debug] System config: []
[debug] User config: ['--external-downloader', 'aria2c']
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://music.yandex.ru/users/rdsrecords.ru/playlists/1002']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.03.10
[debug] Git HEAD: 08250b6
[debug] Python version 3.6.4 (CPython) - Linux-4.15.8-1-zen-x86_64-with-arch
[debug] exe versions: ffmpeg 3.4.2, ffprobe 3.4.2
[debug] Proxy map: {}
[yandexmusic:playlist] 1002: Downloading missing tracks JSON
[download] Downloading playlist: Дискотека 80/90-х
[yandexmusic:playlist] playlist Дискотека 80/90-х: Collected 18 video ids (downloading 18 of them)
[download] Downloading video 1 of 18
[yandexmusic:track] 28132335: Downloading track JSON
[yandexmusic:track] 28132335: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s81f.storage.yandex.net/get-mp3/00290b621dba957b93f0ce2a659a72fd/00056745204bc51e/music/37/8/data-0.2:27247162298:6345246?track-id=41975435&from=service-10-track&similarities-experiment=default'
[download] Corona - The Rhythm Of The Night-28132335.mp3 has already been downloaded
[download] 100% of 6.05MiB
[download] Downloading video 2 of 18
[yandexmusic:track] 28132345: Downloading track JSON
[yandexmusic:track] 28132345: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s72myt.storage.yandex.net/get-mp3/3dc0327631f7fb4b07572c6e25eca7c9/0005674520739fbd/music/46/4/data-0.2:28025076801:5626774?track-id=41975445&from=service-10-track&similarities-experiment=default'
[download] Savage - Don'T Cry Tonight-28132345.mp3 has already been downloaded
[download] 100% of 5.37MiB
[download] Downloading video 3 of 18
[yandexmusic:track] 28132336: Downloading track JSON
[yandexmusic:track] 28132336: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s152man.storage.yandex.net/get-mp3/48a4c3f12bad343b2f96fe790ff3ac88/0005674520e749aa/music/54/6/data-0.3:37916468120:6132087?track-id=41975436&from=service-10-track&similarities-experiment=default'
[download] Ice MC - It's A Rainy Day-28132336.mp3 has already been downloaded
[download] 100% of 5.85MiB
[download] Downloading video 4 of 18
[yandexmusic:track] 28132344: Downloading track JSON
[yandexmusic:track] 28132344: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s79iva.storage.yandex.net/get-mp3/607692bf5025395cb0b4dd2391bcd886/00056745210f63d9/music/29/1/data-0.13:26945183548:5356564?track-id=41975444&from=service-10-track&similarities-experiment=default'
[download] Samantha - Call Me-28132344.mp3 has already been downloaded
[download] 100% of 5.11MiB
[download] Downloading video 5 of 18
[yandexmusic:track] 28132357: Downloading track JSON
[yandexmusic:track] 28132357: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s99iva.storage.yandex.net/get-mp3/733ae0b0af091114d8ac573201ea32a4/00056745213b93c8/music/3/3/data-0.14:13971560508:5730846?track-id=41975458&from=service-10-track&similarities-experiment=default'
[download] Whigfield - Sexy Eyes-28132357.mp3 has already been downloaded
[download] 100% of 5.47MiB
[download] Downloading video 6 of 18
[yandexmusic:track] 28132351: Downloading track JSON
[yandexmusic:track] 28132351: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s18man.storage.yandex.net/get-mp3/8878c085755ee7cb7a02b3be97d12619/00056745216a45a9/music/25/3/data-0.14:25460736485:5370983?track-id=41975451&from=service-10-track&similarities-experiment=default'
[download] 2 Unlimited - No Limit-28132351.mp3 has already been downloaded
[download] 100% of 5.12MiB
[download] Downloading video 7 of 18
[yandexmusic:track] 27395676: Downloading track JSON
[yandexmusic:track] 27395676: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s84iva.storage.yandex.net/get-mp3/860b25d5d5662db1e9638b26f6d52ed0/00056745219a2141/music/45/6/data-0.6:22337152136:6295718?track-id=40797558&from=service-10-track&similarities-experiment=default'
[download] Double You - You Are The One-27395676.mp3 has already been downloaded
[download] 100% of 6.00MiB
[download] Downloading video 8 of 18
[yandexmusic:track] 28132342: Downloading track JSON
[yandexmusic:track] 28132342: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s02vla.storage.yandex.net/get-mp3/4a1701420537f5f57024975d5112475c/0005674521c4bb13/music/55/2/data-0.58:6415321139:6669373?track-id=41975442&from=service-10-track&similarities-experiment=default'
[download] Savage - Radio-28132342.mp3 has already been downloaded
[download] 100% of 6.36MiB
[download] Downloading video 9 of 18
[yandexmusic:track] 25042647: Downloading track JSON
[yandexmusic:track] 25042647: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s18man.storage.yandex.net/get-mp3/bed450b72cfa23423c757137327c8ce5/0005674521ed7ba8/music/18/1/data-0.17:37104372607:5008612?track-id=37011840&from=service-10-track&similarities-experiment=default'
[download] Ice MC - Take Away The Colour-25042647.mp3 has already been downloaded
[download] 100% of 4.78MiB
[download] Downloading video 10 of 18
[yandexmusic:track] 28132346: Downloading track JSON
[yandexmusic:track] 28132346: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s30sas.storage.yandex.net/get-mp3/5acf9fcdc1d56092a5d213a63ba208f2/000567452219cacd/music/26/3/data-0.2:2565915048:5803571?track-id=41975446&from=service-10-track&similarities-experiment=default'
[download] Dana International - Diva'99-28132346.mp3 has already been downloaded
[download] 100% of 5.53MiB
[download] Downloading video 11 of 18
[yandexmusic:track] 27395672: Downloading track JSON
[yandexmusic:track] 27395672: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s109myt.storage.yandex.net/get-mp3/687ad3d68eca775c1bbee5e0c07efc25/00056745223fe80d/music/35/4/data-0.15:38067686453:5870653?track-id=40797554&from=service-10-track&similarities-experiment=default'
[download] 2 Unlimited - Let The Beat Control Your Body-27395672.mp3 has already been downloaded
[download] 100% of 5.60MiB
[download] Downloading video 12 of 18
[yandexmusic:track] 27395669: Downloading track JSON
[yandexmusic:track] 27395669: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s105myt.storage.yandex.net/get-mp3/d6f610b264eb92e6b787c8d9dc08e695/0005674522688bde/music/12/4/data-0.9:6658457007:5043721?track-id=40797551&from=service-10-track&similarities-experiment=default'
[download] Savage - I'm Loosing You-27395669.mp3 has already been downloaded
[download] 100% of 4.81MiB
[download] Downloading video 13 of 18
[yandexmusic:track] 28132349: Downloading track JSON
[yandexmusic:track] 28132349: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s153man.storage.yandex.net/get-mp3/8d7dac55c6cd3b183fb9bb4b5d3b1bab/000567452296c1c1/music/28/2/data-0.14:18093731763:4969115?track-id=41975449&from=service-10-track&similarities-experiment=default'
[download] Corona - Try Me Out-28132349.mp3 has already been downloaded
[download] 100% of 4.74MiB
[download] Downloading video 14 of 18
[yandexmusic:track] 28132358: Downloading track JSON
[yandexmusic:track] 28132358: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s49man.storage.yandex.net/get-mp3/493f946c66f49c87a9d189fcb561db73/0005674522bea7ce/music/34/2/data-0.2:27288286308:5597308?track-id=41975459&from=service-10-track&similarities-experiment=default'
[download] Double You - Dancing With An Angel-28132358.mp3 has already been downloaded
[download] 100% of 5.34MiB
[download] Downloading video 15 of 18
[yandexmusic:track] 28132370: Downloading track JSON
[yandexmusic:track] 28132370: Downloading track location JSON
WARNING: "release_year" field is not numeric - forcing int conversion, there is an error in extractor
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://s70iva.storage.yandex.net/get-mp3/73bc55b51ecab88912c296d2db7a261b/0005674522e90ee7/music/31/4/data-0.2:7180358975:5495117?track-id=41975472&from=service-10-track&similarities-experiment=default'
[download] Destination: Ann Lee - 2 Times-28132370.mp3
[debug] aria2c command line: aria2c -c --min-split-size 1M --max-connection-per-server 4 --out 'Ann Lee - 2 Times-28132370.mp3.part' --header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 (Chrome)' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --check-certificate=true -- 'http://s70iva.storage.yandex.net/get-mp3/73bc55b51ecab88912c296d2db7a261b/0005674522e90ee7/music/31/4/data-0.2:7180358975:5495117?track-id=41975472&from=service-10-track&similarities-experiment=default'
03/13 12:12:00 [NOTICE] Downloading 1 item(s)
[#69df1b 4.1MiB/5.2MiB(79%) CN:3 DL:637KiB ETA:1s]
03/13 12:12:08 [NOTICE] Download complete: /home/ydl/pop/Ann Lee - 2 Times-28132370.mp3.part
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
69df1b|OK | 690KiB/s|/home/ydl/pop/Ann Lee - 2 Times-28132370.mp3.part
Status Legend:
(OK):download completed.
[aria2c] Downloaded 5495117 bytes
[download] 100% of 5.24MiB
[download] Downloading video 16 of 18
[yandexmusic:track] 28132383: Downloading track JSON
[yandexmusic:track] 28132383: Downloading track location JSON
Traceback (most recent call last):
File "/home/ydl/.src/youtube-dl/youtube_dl/main.py", line 19, in
youtube_dl.main()
File "/home/ydl/.src/youtube-dl/youtube_dl/init.py", line 471, in main
_real_main(argv)
File "/home/ydl/.src/youtube-dl/youtube_dl/init.py", line 461, in _real_main
retcode = ydl.download(all_urls)
File "/home/ydl/.src/youtube-dl/youtube_dl/YoutubeDL.py", line 1989, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/home/ydl/.src/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/home/ydl/.src/youtube-dl/youtube_dl/YoutubeDL.py", line 995, in process_ie_result
extra_info=extra)
File "/home/ydl/.src/youtube-dl/youtube_dl/YoutubeDL.py", line 857, in process_ie_result
extra_info=extra_info)
File "/home/ydl/.src/youtube-dl/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/home/ydl/.src/youtube-dl/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/home/ydl/.src/youtube-dl/youtube_dl/extractor/yandexmusic.py", line 144, in _real_extract
return self._get_track_info(track)
File "/home/ydl/.src/youtube-dl/youtube_dl/extractor/yandexmusic.py", line 102, in _get_track_info
'url': self._get_track_url(track['storageDir'], track['id']),
File "/home/ydl/.src/youtube-dl/youtube_dl/extractor/yandexmusic.py", line 88, in _get_track_url
% (data['host'], key, data['ts'] + data['path'], storage[1]))
TypeError: unsupported operand type(s) for +: 'int' and 'str'

Playlist no longer available.


testing github action - expect fail

Commit that will break tests, to see behaviour of github action on PR

tests failed as expected - closing PR


route_installation_test.go

Hi,
We need to configure network instance type and router-id for BGP in Juniper. Below script needs to be updated with configuration for network instance type and router id.
I have used below configurations to run route_installation_test.go.
set openconfig-network-instance:network-instances network-instance DEFAULT config type DEFAULT_INSTANCE
set openconfig-network-instance:network-instances network-instance DEFAULT config router-id <IP_ADDRESS>
Thanks,
Prabha

Hi @cprabha thanks for reporting this issue.  Can you do some investigation and suggest a way to configure this via openconfig?   Then you can submit a PR to update the test to apply this openconfig.   For beginning your investigation, see:
https://github.com/openconfig/public/blob/179880ce3977cb167637ab753598ec9724a8a0a0/release/models/network-instance/openconfig-network-instance.yang#L1149-L1178

Hi Darren,
Thank you.
I have written and validated network instance configuration code.
Please let me know how to open PR.
Thanks,
Prabha

Hi,
I have updated code via https://github.com/openconfig/featureprofiles/pull/226.
Thanks,
Prabha


Include version in startup message in func main

Hi can I get assigned to this? Id like to contribute.

Sure, @rojanDinc! Thanks! Let me know if I can help in any way. 🙂

Fixed by 4c18f0fe1036582d90d334d75eaaadf14aaab6bd


operator project-quay (3.9.0-nightly.20230527)

Add 3.9.0-nightly.20230527 to community operators

/merge possible

/merge possible


quests system

1 - There's no way to click on quest
2 - When you complete a goal the goal symbol is not modified and continues as if it had not completed it
3 - When the quest has various goals and some of them are completed they are getting on top of each other

All fixed.


PostgresSql not generate foreignkey

Sails version: 1.0.0-37
Node version: v8.4.0
NPM version: 5.3.0
DB adapter name: sails-postgresql
DB adapter version: 1.0.0-12
Operating system: UBUNTU

Good afternoon!
can someone help me to generate the sails automigrate to generate the foreignkey as in the example below:
CONSTRAINT user_profile_id_profile FOREIGN KEY (id_profile)
REFERENCES public.profile (id) MATCH SIMPLE
ON UPDATE RESTRICT ON DELETE CASCADE,

Hi @mauriciorocha!  So the approach we usually recommend, when you're ready to go to production with a SQL database, is to switch to manual up/down migration scripts via a tool such as knex-migrate.  Then, in your second migration script (after the one for the initial setup), you can set up any physical-layer constraints you need/want.
Real-world example:
// some-app/db/migrations/20170926191322_add-constraints.js

exports.up = function(knex, Promise) {

  var constraints = [];

  //  ╔═╗┌─┐┌─┐┌─┐┌─┐┌─┐╔═╗┌─┐┬  ┬┌─┐┬ ┬
  //  ╠═╣│  │  ├┤ └─┐└─┐╠═╝│ ││  ││  └┬┘
  //  ╩ ╩└─┘└─┘└─┘└─┘└─┘╩  └─┘┴─┘┴└─┘ ┴

  constraints.push(knex.schema.table('accesspolicy', (table) => {
    table.foreign('group').references('group.id').onDelete('RESTRICT');
    table.foreign('vendingmachine').references('vendingmachine.id').onDelete('RESTRICT');
    table.foreign('createdBy').references('user.id').onDelete('SET NULL');
  }));

  // …

  return Promise.all(constraints);

};

cc @sgress454 (in case i missed anything)


Decide style system

See https://github.com/seamapi/react/pull/1/files/71d13b1c6193cf4c231324c546039744c14139b4#r1167358708
Evaluating These

https://theme-ui.com/theming

Moved https://github.com/seamapi/react/discussions/35


Please create a new release

Is your feature request related to a problem? Please describe.
Please create a new release, i.e. a git tag
Describe the solution you'd like
Having a new git tag
Describe alternatives you've considered
-none-
Additional context
There is interest of creating a g3log recipe for the C/C++ package manager Conan. It would be nice if we can package a newer version. The last version is from March 2018.
Thanks!

Sorry, I'm not sure what your issue is. You do know what a library is, correct? This has no purpose without a parent project to attach it too. If you are REALLY interested in just logging stuff to a disk, please use the included CMake build and test suites. Otherwise, you will need to manually integrate it to the Conan project you mentioned and build it yourself. If you are still confused, please reply back with further questions.

Projects do releases. The last release g3log has done is version 1.3.2 from March 2018.
I'm asking for a new one.

I understand that, but you can simply just fastforward the HEAD of which the project's submodules point at. Of which, you can dirty the submodule and push to arbitrary URLs for merging. Git has the tools to do this, I'm not sure why the hand-holding is required. If the project wishes to adopt g3log, they want a stable read to deploy logger, not some commits the team doesn't feel is ready for deployment.

@Croydon : I haven't done any new releases because since March 2018 there aren't any significant changes. There have been smaller changes on the master but not significant enough to warrant a new release.
I might still create a new release but I hadn't planned to do that before the summer.

Also. Sorry for the late reply @Croydon. ClassPass laid me and 53% of the workforce off recently. I think this issue was created before I changed my email on github so the notification was sent to my inaccessible email at ClassPass.

I’m sorry to hear you lost your job. I lost my job too in December.

@KjellKod Thanks for the answer and sorry to hear that you lost your job.
   For some reason my email is still messed up. I didn't see your replies at all. I need to figure out what's up. I dont' see the emails in my spam either.
I hope @gir489  you are landing something new soon.  I'm still looking :/

We were discussing the virtues of C++ at work today, and STL deprecation came up and reminded me of this project. I hope you also have found work too, @KjellKod. Best wishes.

Thanks @gir489
I have. I'm Head of Engineering at Flowhub, Colorado since the beginning of
August.
I'll update my github profile :)

Contact Information
Kjell Hedström
Mobile:  +1 -<PHONE_NUMBER>
E-mail<EMAIL_ADDRESS>
On Mon, Dec 28, 2020 at 8:15 AM gir489<EMAIL_ADDRESS>wrote:

We were discussing the virtues of C++ at work today, and STL deprecation
came up and reminded me of this project. I hope you also have found work
too, @KjellKod https://github.com/KjellKod. Best wishes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/KjellKod/g3log/issues/338#issuecomment-751745493, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACQ7XUUSFARVSCGL6BMGDDSXCOIHANCNFSM4MCTR3KQ
.

FYI: for anyone watching this closed issue.
We have released g3log and g3sinks a short while back with support for c++17


DO NOT MERGE/WIP: Kubernetes version bump to v1.0.6-v0.6.5

bump docker image version for CM.3 compat: latest k8s/dcos image
support custom Marathon resource-roles and labels

custom resource-roles: allows scheduling on public slave
custom labels: allows admin to tag things like VIRTUAL_HOST .. /cc @timfallmk

/cc @karlkfi @sttts
supercedes #13

@kensipe nothing groundbreaking has changed here w/ respect to certification, but this does allow us to run on mesos-0.24+

The package typos appear to be fixed. Tho it might be nice to also fix them in the old versions.

I'm really not concerned about the old versions, especially if they're
fixed here.
On Fri, Oct 9, 2015 at 2:45 PM, Karl Isenberg<EMAIL_ADDRESS>wrote:

The package typos appear to be fixed. Tho it might be nice to also fix
them in the old versions.
—
Reply to this email directly or view it on GitHub
https://github.com/mesosphere/multiverse/pull/20#issuecomment-146958592.

@kensipe ready for review PTAL

the docker image attached to this is questionable at this point. we're seeing some new problems come up and are troubleshooting. will update here with more info later.

based on last comment I will hold off review until I hear back

rebased

@kensipe this is ready for review PTAL

LGTM!  The multiverse requirements are met... merging.


Improve detection strategy of flip modifier

This PR is an attempt to solve the issue #78. There are two commits here.
The first one is solving "moving after target" problem. I.e. popper will behave like it doesn't have 'preventOverflow' modifier, but still will flip itself from the parent. It looks like this:
https://goo.gl/photos/H5QafmbZ1xjVuHeD6
Enabling this behaviour would look like this:
modifiers: {
    preventOverflow: {
        moveWithTarget: true
    }
}

The second commit is improving flipping behavior so that popper can also flip its position's variation ('start' to 'end' and vice versa). It looks like this:
https://goo.gl/photos/MtneBBm9nNd6Nynz6
modifiers: {
    flip: {
        flipVariations: true
    }
}

It looks cool, thanks!
The build has some problem with the authentication... No idea what changed, I'll take a look.
I have a flight for SF in an hour so I'll not be able to review this PR anytime soon, I'll work on it once I'm arrived.
Could you add some functional test to test the new behaviors you added?

Sorry about the formatting, too used to rely on linting for this kind of things :) I'll fix it tomorrow. Have a safe flight!

@FezVrasta updated according to your comments, sorry for the delay

Hey thanks! I'm still trying to figure out how to make the tests pass also on PRs, I'm going to try some suggestions from Sauce Labs in the next days. I'm sorry but I'm not very responsive these days due to the trip to SF, once I'll be back at home I'll be responsive as usual!

@nadiam84 I sent a PR to this PR (LOL) to make the tests pass here.
I'd say that once you merge it and some tests for this new behavior are added we can merge this into v1-dev!
In the next days I'm going to finish all the remaining work on v1 and I'll release the first beta

I was playing with the flipWithoutPreventOverflow.html visual test and it doesn't seem to work...

As you see, it follows the ref only on vertical scroll, on horizontal it stays between boundaries.

@FezVrasta did you build the js files before this? I haven't commited any build results as per your contribution guidlines :)
I'll write some tests today/tomorrow, completely forgot about them. Although the saucelabs tests are still not working.

I think I compiled them...
I'll check again shortly

Ah! You were right lol. Yes it seems to work 🙃
Need some tests to test the new functionalities, it's okay that the old tests still work but we must be sure that the new features are tested as well.

@FezVrasta updated the PR with tests. Locally they were green :D Checked in the latest Chrome, Firefox and Safari.

@FezVrasta gentle nudge

Yes sorry! Forgot about it. The tests are failing because of a problem with Sauce Labs... Going to merge this anyway.


Selecting an element using inspector changes cursor to mobile

Environment (please complete the following information):

OS (e.g., Windows 10): WSL2 (Ubuntu 20.04.4 LTS) on Windows 11 Pro
Extension version (e.g., 1.2.3): 2.1.0

Describe the bug:

Using the inspector to select an element in the dev tools browser causes the cursor to change to the round mobile emulation cursor.
Repro steps:

Select an element using the element inspector in dev tools.
https://user-images.githubusercontent.com/88877609/183004288-21d8817e-4f67-4418-8bb3-6bc658f95dcc.mp4
Expected behavior:

The cursor should not undergo any changes.
https://user-images.githubusercontent.com/88877609/183004395-b39b8a03-10b6-48e3-a6f7-aef888c6a3fc.mp4

Hello there, this happens because the browser window in the extension is in essence a screencast, much like when you use Device Emulation in the developer tools.
Thanks for bringing that up though, we might want to think about making this optional and not simulate a touch environment in the browser preview panel.

I had the same issue and solved(?) it by just commenting out setTouchMode(enabled) { } from around line 2070 to 2080 in ms-edgedevtools.vscode-edge-devtools-2.1.1\out\screencast\screencast.bundle.js.
This will break the mobile presets though so only really useful if you're not developing for mobile. (although the view itself does actually change if you click a preset and alt tab to something else and back to VSCode)


Refactor storage native

Refactor storage native before migration: Less redundancy, more consistency in filenames, only one item per file. Some elements remained duplicated in the backend. It is temporary until the migration. #9479
Validation
How did you test these changes?

[x] Built and ran the app
[ ] Tested the changes for accessibility

@d2dyno1

Now that we've switched to WinUI 3, these native pinvokes are not needed anymore and can be replaced with Vanara library. It'd be more beneficial if we instead refactored helper classes and only used what Vanara has to offer


pkg/system - Document exported functions and types

Problem
pkg/system - Document exported functions and types
Solution
The pkg/system package is used for portable low level functions throughout Docker code. It is meant to be reused by other applications, however it lacks documentation.
Add a README.md to the package, and code comments to the package's exported symbols.

@jfrazelle I think we now have Godoc in this pkg (#11952). it's just missing a README but do we really need that?


Remove explore endpoint

Features that rely on explore.spaces
Main page

Search
Filtering by category & network
Space ordering
Number of spaces

Space page

Number of members
Name and image
Proposals count

Delegation page

Space key validation
Network

Custom domains

Skin

TODO
HUB

[ ] Move ordering logic to the hub https://github.com/snapshot-labs/snapshot-hub/issues/226
[ ] Add query for loading spaces by a search string https://github.com/snapshot-labs/snapshot-hub/issues/227
[ ] Add query for loading spaces by category and network https://github.com/snapshot-labs/snapshot-hub/issues/228
[ ] Add total number of spaces to the spaces query https://github.com/snapshot-labs/snapshot-hub/issues/199
[x] Add total number of proposals to space query https://github.com/snapshot-labs/snapshot-hub/issues/238
[x] Add queries for plugins, validations, strategies, networks, skins
[x] Add followersCount to space query

Frontend

[x] Change how space loads initially https://github.com/snapshot-labs/snapshot/pull/1457

[x] #1458

[x] #1467
[x] Add query for space skin  (only on custom domain) https://github.com/snapshot-labs/snapshot/pull/1442
[x] #1498

Hey @samuveth! What's the status of this issue? I can see multiple PRs open, are they still relevant?

@zzuziak the status is that no one cares about making Snapshot.org great. Everything is about SX these days.

I only see open issues.

Yes, it's still relevant but they are all HUB related issues and it's nearly impossible to get stuff done on the HUB. Why you need to ask @bonustrack

Updated todo:

[ ] [hub] New endpoint to get metrics like total spaces, networks, strategies, and plugins
[ ] [UI] Use new endpoint for metrics
[ ] [hub] space query to return data using orderBy with rank by default

[ ] [hub] Use logic from here to rank space

[ ] [hub] space query should accept the category filter into the where clause
[ ] [hub] space query should accept the network filter into the where clause
[ ] [hub] space query should accept the id_contains filter into where similar to strategies_contains in the proposal query
[ ] [UI] Replace explore endpoint with space query.

[ ] [UI] Make sure the pagination is working well, with network and category filters

[ ] [hub] Remove explore endpoint

Future todo:

[ ] Add the total number of spaces to the spaces query https://github.com/snapshot-labs/snapshot-hub/issues/199
[ ] Add queries for strategies, validations, plugins, and networks so UI will always use graphql

@ChaituVR has there been any progress on this?


vscode: 1.6.1 -> 1.7.2

Motivation for this change
Updated version of vscode
Things done

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

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

See also https://github.com/NixOS/nixpkgs/pull/21033

Woops!


Bluebird fails to load in a nwjs (nodewebkit) app

It gives me the error:
[23637:0312/105955:INFO:CONSOLE(81)] "Uncaught TypeError: Cannot read property 'isStatic' of undefined", source<EMAIL_ADDRESS>(81)
[23637:0312/105955:ERROR:nw_shell.cc(335)] Error evaluating<EMAIL_ADDRESS>Uncaught TypeError: Cannot read property 'isStatic' of undefined
[23637:0312/105955:INFO:CONSOLE(2237)] "Uncaught Error evaluating<EMAIL_ADDRESS>Uncaught TypeError: Cannot read property 'isStatic' of undefined", source: file://.../dist/jspm_packages/system.src.js (2237)

I've shortened the filenames for readability.
I can confirm that it worked fine in bluebird version 2.9.3, but I'd say that after commit 98b025231501734096cb77d4d789362e780b16a0 the issue occurred.
Reading over the code in that commit, it seems to be because
typeof window === "undefined"
isn't part of the isNode check. If I add this line manually then my application runs.

Try with at least 2.9.6+

2.9.6 works. 2.9.13 fails.
I tried every version between 2.9.7 and 2.9.13 and each failed.

Does node webkit delete the global setImmediate function or something? That's what's being undefined ... that or process nextTick?
What does process.versions.node say in nw?

It gives me: "1.2.0"

That means global.setImmediate is undefined, why does nw delete it?

I found this old commit for nw.js https://github.com/nwjs/nw.js/issues/897
Sure enough if I add this line, bluebird will work.
if (typeof global !== "undefined") {
    window.setImmediate = global.setImmediate;
}

That's pretty unfortunate, as I'm not sure if it should be bluebird's problem to deal with that sort of issue.

Well promises should always use nextTick anyway, I am not sure what the reason for the check even was originally. setImmediate is macro task.


fix: patch local vitepress for docs build

Description
The local vitepress build for docs is failing because of the removal of vite/dynamic-import-polyfill in #2976. This PR patch vitepress to make the docs success. Later on when we released v2.3, we will also release a new version and vitepress then remove the patch.
Additional context

What is the purpose of this pull request?

[ ] Bug fix
[ ] New Feature
[ ] Documentation update
[x] Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the Pull Request Guidelines and follow the Commit Convention.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[ ] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

Alternative PR following our discussion here https://github.com/vitejs/vite/pull/3328


Write a Loki data migration HOW-TO

Enhancement Proposal
Would be very useful to have a HOW-TO that explains how to migrate the data stored in a working Loki instance (Loki-old) into a fresh new Loki deployment (Loki-new).
With @sed-i @selcem-artan came up with a tentative workflow:

Stop loki-old: $ juju ssh --container loki loki-old/0 /charm/bin/pebble stop loki
Stop loki-new: $ juju ssh --container loki loki-new/0 /charm/bin/pebble stop loki
In loki-new remove files and directories in /loki/
Copy from loki-old to loki-new the contents of /loki/
Fix the content's owners in /loki/: chown -R root:root /loki/*
Start loki-new: $ juju ssh --container loki loki-new/0 /charm/bin/pebble start loki

Another approach is to use Loki API:

https://community.grafana.com/t/exporting-and-importing-loki-database/102496
https://community.grafana.com/t/what-is-the-recommended-way-to-backup-or-export-loki-data/83371

Fixed with this post: https://discourse.charmhub.io/t/how-to-migrate-the-logs-stored-in-loki-to-another-instance/14561


Incorrect fullPage screenshot sizing

What is your Test Scenario?
To explain this issue, I created a dummy HTML page that is composed of 10 rows of 10 boxes, where every single box is 100px wide. So the tested page in total has a size of 1000px * 1000px. In this testcafe test the html page is opened, and the headless chrome browser is resized to a certain browser size (1050px, 768px). With this configuration the browser should be able to display the whole page without any line breaks. After the resizing a screenshot is taken with the parameter fullPage: true.
This issue is connected to this stackoverflow question.
What is the Current behavior?
Testcafe takes a screenshot, that is has a width of 1024px and a height of 1000px. This is the expected size for the screenshot, but the screenshot itself, the lines of boxes have a line break after 9 boxes. Due to the line break the whole page extends and not all the content is shown in the screenshot. Besides, there is a scrollbar in the screenshot, which I do not expect, if I take a screenshot with the fullPage configuration.
What is the Expected behavior?
I expect that the screenshot displays the full page with all 100 boxes and no scrollbar. This also means, that there should be no line breaks.
What is your web application and your TestCafe test code?

Your website URL (or attach your complete example):
https://github.com/YannikRudolph0108/testcafe-screenshot-sizing-issue

Your complete test code (or attach your test files):

test('Screenshot test', async t => {
  await t
    .resizeWindow(1050, 768)
    .takeScreenshot({
      path: '/dummy-screenshot' + new Date().getTime(),
      fullPage: true
    });
});

Your complete configuration file (if any):

No configuration file, only the test command
testcafe chrome:headless screenshot-test.js

Your complete test report:

 Running tests in:
 - Chrome 90.0.4430.93 / Windows 10

 Screenshot test suite
 √ Screenshot test (screenshots: C:\Users\USER\Workspace\testcafe-screenshot-sizing-issue\screenshots\dummy-screenshot1619680071553.png)

 1 passed (3s)

Screenshots:

Steps to Reproduce:

Go to my the project testcafe-screenshot-sizing-issue
Install dependencies with npm i
Run testcase with npm test
See broken screenshot in folder /screenshots

Your Environment details:

testcafe version: 1.14.0
node.js version: 14.16.1
command-line arguments: testcafe chrome:headless
browser name and version: Chrome 90
platform and version: Windows 10

Thank you for reaching out to us and submitting this issue. My attempts to replicate it, however, were unsuccessful. I followed your instructions and ran the test. Here's a screenshot of the test output:

I use TestCafe v1.14, Node 14.16.1, Chrome 90.0.4430.93 (Official Build) (64-bit) on Windows 10 20H2. Are there any additional steps I need to take in order to replicate this issue?


feat: watch and filter

Addressing https://github.com/influxdata/tubernetes/issues/1907. Filters watch of ResourceSyncs based on generation change. Removes automatic requeues on successful reconciles and instead adds an additional event source in which a custom watch is invoked on each ResourceSync's source and target in order to trigger reconciles on the associated ResourceSync only if the source/target was not last modified by Sinker. Watches are closed when ResourceSyncs are deleted.

I managed to solve the async issues by using separate contexts for each RemoteWatcherManager instead of using a shared parent. I guess it became impossible to get a lock on the mutex for the parent context once there were enough RemoteWatcherManagers running in parallel.

LGTM!

going to merge this as i'm anxious to resolve the sinker problems in prod with it regularly failing to keep up with its work. the image is hardcoded in the yamls so we can set this just in staging and test it out there.

this is working. i had to set a missing patch RBAC and increase the memory in staging. but it is working nicely it seems. promoting to prod.


Illustrate the concept that the user know what token they can get before purchase, 𝑛𝑜𝑡 𝑎𝑓𝑡𝑒𝑟

Is there a way for the user to know what token they will get before the transaction and not after? If you read through the paper (a lot of work to read, I know), you will notice that the cards (generated by the dapp browser) enjoy a different level of trust than the dapp below it. The user wants to know what tokens they can get because if a warranty is just promised, not given in the form of a token, the buyer might choose not to check out at all. In other words, a buyer must know both the input and output to make a decision. Imagine if you want to resell the product later, it will not fetch a good market value because it can only be resold with ebay which has a higher cost of the transaction due to the extra need to prove the availability of warranty.
Regarding "a buyer must know both the input and output to make a decision" you can see it the other way as "a buyer will only know the deliverable before he proceeds with payment since once payment is done, it is done. Atomicity is the key of the blockchain transactions, either the transaction is successful, and you get ALL THE TOKENS that represents your purchase, or your payment will be returned. This is DIFFERENT from traditional business, where Payment is made first, then, you may or may not get your deliverable, and if you don't get it, you can do a chargeback. You can't do a chargeback in blockchain without introducing huge infrastructure, so you need to see what tokens you can get. That's just how blockchain works.

Any update @farrahfazirah ?

Purchase without shipment token

Purchase with shipment token

This is a complicated concept very beautifully down! I know I can trust you to pull this off!
Can you

Make the expiry less alarming?
In your branch, save the two images in doc/img
Delete the two files doc/purchase-without-shipment-token.jpg and doc/purchase-with-shipment-token.jpg
Pull-request the result.

Thanks!

I'd like to add that they remind me of Apple and Stripe. Both companies known for great design!

I've done the necessary steps and changed the icon to a less alarming one. The change can be seen on the pull request here: https://github.com/AlphaWallet/TokenScript/pull/65


Fix an error when dragging nodes into built-in scripts because script does not inherit Node

Fixes #81294
Reload built_in script after create to allow drag nodes into it. Calling reload can compile the script and give it the inheritance info, thus can pass the check in drop_data_fw.

Reload built_in script after create to allow drag nodes into it. Calling reload can compile the script and give it the inheritance info, thus can pass the check in drop_data_fw.

This probably warrants a comment in the code, as it's not obvious why a script that has just been created would need to be reloaded. I also wonder if it's the right location for it or if it should be done after receiving script_created?

I also wonder if it's the right location for it or if it should be done after receiving script_created

As far as I can see, for no built_in scripts, it will get reloaded and compiled in Error err = ResourceSaver::save(scr, lpath, ResourceSaver::FLAG_CHANGE_PATH), rightly after it is created. But there might be other reasons why we can't do the same for built_in scripts that I do not know.

The comment might need rewording.

I will update it soon.

Thanks!


feat: support dp expressions

#66  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


Swap querystring with query-string

Swap query parser/formatter package & upgrading dev dependencies.

[x] Tests pass
[ ] Appropriate changes to README are included in PR

Hiya - can you clarify why this is beneficial?

First I'm honestly flattered that you are reviewing my PR.
 You might need to include https://www.npmjs.com/package/rollup-plugin-node-builtins

and thought, well it doesn't bundle querystring instead uses it as external dep listed in package.json dependencies. But querystring is 7 yrs old which is like ages in js world and it would probably be better to swap it with regularly maintained and up to date library like Sindre's query-string. What I failed to understand is that when running inside node external dependency will be shadowed by native querystring anyway which is a far better option than using external and potentially non-compliant implementation. But I already did the PR because I was typing faster than thinking 🤦♂
The rest of PR is just bumping dev dependencies or me impersonating @dependabot  and should be ok as is? I mean, no particular gains just keeping stuff up to date.
So do you want me to close it or to convert it to dev dependencies upgrade effort by removing querystring related part?


Extensible schema

Currently Validation could be ommited as a module, but validations option in field declaration is hardcoded:
https://github.com/vladfaust/core.cr/blob/6a4a9b4f15bcb97655fc316946cdf717e8f26c23/src/core/model/schema/fields.cr#L78
Need to find out a way to include dynamic options into INTERNAL__CORE_FIELDS, so schema could be extended (e.g. field :name, my_option: true).

This was an easy one :+1:


ScottPlot.Statistics.Histogram

Hi! This was in my mind as a first implementation. Please have a look.
Thanks!

This new histogram class is so much simpler to work with! I'm going to go all the way and update all Cookbook recipes to use this new class. The old code will still work, but I'd like to highlight this newer and simpler way to create and maintain histograms.
Soon I will put this PR down for tonight, but I'll keep working on it tomorrow and hopefully merge it in when all the Cookbook recipes and demo apps are using it 🚀

Hi! Good to see the progress! :) I think I will look into my old PhD thesis, and check some logarithmic binning in my old C codes. Logarithmic binning is very useful when for example you need to deal with incoming data following power law distribution (shows as a line in a log-log graph). One of the many examples is earthquake magnitude distribution: lots of small earthquakes, but very few large ones. Simple linear binning is not useful in such cases (the tail will look terrible), so in scientific papers it is common to use logarithmically growing X axis bins. I hope I can put together some example.

I hope I can put together some example.

Examples would be great! I have to be careful not to put too much stuff in this library though because it's a lot to maintain, and I want to keep ScottPlot focused as much as possible on plotting (there are already good statistics libraries out there). Perhaps copy/pasting useful code in an Issue or Discussion would be a good place to put it so it's searchable and can be found by those with similar needs, but doesn't have to be deployed and maintained as part of this core library.

Good to see the progress! :)

I'm very happy with this new histogram class because

It's way simpler to use, and the cookbook examples are now much better
It supports live data (I still need to create a demo)

I totally understand your point. Log binning is not really a usual stuff, so i agree not to put into the main code. But we could show a use case maybe. Anyway, ScottPlot does not really support log scales yet, which is another point why not include this log binning feature :)

Is it possible to address #2299 as part of this PR?

Is it possible to address #2299 as part of this PR?

That is not an issue anymore. The new Histogram method takes inputs min, max and binCount. Binsize is calculated, and not an input parameter.

I may have been too quick to say that https://github.com/ScottPlot/ScottPlot/pull/2403/commits/43d0664729ba20a3658af97e739c43a20579f74a fully resolved issue #2299
It's pretty close! The min is inclusive but the max is exclusive (values equal to it roll over into the next bin) so I think the returned data should have one extra bin that currently is not being accounted for... will fix in a follow-up commit

Mimicking numpy, I'll make all these methods return one more bin than asked for. This is a weird result of what happens when you need a bin to contain the max value, but bins are min inclusive but max exclusive 🙄
https://numpy.org/doc/stable/reference/generated/numpy.histogram.html

I'm now wondering if the default behavior should be changed. Should the bin size be automatically increased by 1 bin so that the max can get counted? This is the current behavior... which may be best... but it's not clear to me if this is the behavior most people would expect 🤔
var hist1 = ScottPlot.Statistics.Histogram.WithFixedSizeBins(min: 0, max: 10, binSize: 1);

hist1.BinEdges.Should().BeEquivalentTo(new double[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 });
hist1.Counts.Should().BeEquivalentTo(new double[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 });

hist1.Add(10); // since bins are max-exclusive, this counts as an outlier
hist1.Counts.Should().BeEquivalentTo(new double[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 });

I think either options are ok, if the behaviour is clearly explained to the user.
To my personal taste i would leave the thing max exclusive. I think asking for N bins, and getting N+1 is a bit strange, no? :)

I think either options are ok, if the behaviour is clearly explained to the user.

I agree!

I think asking for N bins, and getting N+1 is a bit strange, no? :)

True, but that's been the existing behavior in this library for a long time and changing it now could break others' code running in production 😅
I think a good compromise is to not change the existing static method behavior, but to provide more logical (and better documented) behavior for the new Histogram class.
I'm putting together a live demo now and it's feeling very natural to work with! I think this is landing in a great spot 🚀

I think this PR may be complete! I'll leave this PR open for another day to give @bukkideme or @Xerxes004 time to look it over in case they have any suggestions. Otherwise I'll merge it tomorrow evening.
Thanks again everyone for your hard work and great input on this!

There is this:
///
/// Upper edge of the last bin (exclusive)
///
public readonly double Max;
Maybe the help could be changed to:
"Upper edge of the last bin (exclusive if addFinalBin true, otherwise inclusive)" ?
Another thing, why the Add and AddRange methods are same? As i see, the Add method accepts an IEnumerable, and it's summary is the same as of the AddRange methods'.

True, but that's been the existing behavior in this library for a long time and changing it now could break others' code running in production 😅

Ironically, the current static function caused a bug in our production code. I was requesting buckets of size n, which I assumed (without checking 🙃) would make the edges exactly n apart from each other. We caught the bug when we noticed that the bucket size I displayed on screen was different than our actual exported data's bucket sizes. We were able to rejigger the math to make it work, but it just felt weird that the bucket size I requested was being ignored. We are doing some math so that there are x buckets per standard deviation, which gives us very nice-looking histograms regardless of the input data.
For the record, the way that feels the most correct for bucket size is to completely honor the user's bucket_size as the stride at which data is collected. This means that the number of buckets would be:
int NumBuckets(double min, double max, double bucket_size)
{
    return (int) Math.Ceiling((max - min) / bucket_size);
}

Ironically, the current static function caused a bug in our production code

Thanks for sharing your story @Xerxes004! I'm in a bind because on one hand the "surprising" behavior could cause production bugs, but changing behavior of the existing methods to produce the expected output will change behavior of code which may already be running in production, so the fix risks introducing new bugs 😝
Connecting some dots, this PR updates those static methods to use the ceiling strategy your comment demonstrates (resolving #2299)
I think I'll update this PR to mark those methods obsolete and direct people to the new Histogram class.
https://github.com/ScottPlot/ScottPlot/blob/a16fe2ce2457c510faafdad7fd5a47d5327ad393/src/ScottPlot4/ScottPlot/Statistics/Common.cs#L327-L332
https://github.com/ScottPlot/ScottPlot/blob/a16fe2ce2457c510faafdad7fd5a47d5327ad393/src/ScottPlot4/ScottPlot/Statistics/Common.cs#L342-L347

Note that my function above doesn't check the sanity of the input params. The real function should.

Good point! I'll add that in before merging.

Add() vs. AddRange()

@bukkideme I'm still deciding which API I prefer... an overload seems simplest, but I recognize IList uses AddRange() so I'll probably put it back to that

Maybe the help could be changed to: "Upper edge of the last bin (exclusive if addFinalBin false, otherwise inclusive)" ?

https://github.com/ScottPlot/ScottPlot/blob/a16fe2ce2457c510faafdad7fd5a47d5327ad393/src/ScottPlot4/ScottPlot/Statistics/Histogram.cs#L50-L53
I think this is confusing too, and for simplicity I think I can improve it by removing thee word "exclusive" from the existing XML comment

maybe the Histogram Demo could have a checkbox "Show normalized" too, it would look even better to have option to see normalized values on Y axis?

I thought about it, but then we might as well add CPH options and outlier options ... then in the effort to demonstrate all the cool things it can do we accidentally make it difficult to learn from 😅
I think I'll favor ultimate simplicity for these demo apps, and users can dig deeper by poking around the classes they instantiate (and also advanced features demonstrated in the cookbook)

I think the merge is good to go for me :)

woohoo! I'll merge it and make a new release very soon. Thanks again for getting this PR started! 🚀


v5: event vs. _event

Having both event and _event is IMHO confusing. Not a lot of people care about SCXML all that much for it to be so explicitly called out in our internal structures. Especially that our _event is not fully compliant with the SCXML one - in SCXML the type doesn't appear in the _event.data nor _event.data is bound to be an object (it can be just a string or whatever and there are SCXML tests using this, such as test179).
There might still be a value in those meta properties though and as trying to make things simple we probably don't want to wrap our event into this nested structure with the metadata. So what I would propose would be to either use a single object internally and unpack it accordingly when calling user-provided functions or keep both as separate objects but rename the _event and remove data from it. Such an object should focus solely on those "meta" properties.
This might complicate XState <-> SCXML conversion at times but I think it's worth it. It feels better to try to convert things explicitly, which allows us to have clear rules for such a conversion than to try squeezing rats into a mouse-sized hole.
Originally posted by @Andarist in https://github.com/statelyai/xstate/pull/2484#discussion_r727913319

_event was removed in https://github.com/statelyai/xstate/pull/3971


Update CSS Modules mock

Summary
The current CSS Modules mock is returning undefined for every class. This makes impossible to test if a component has a class defined. Using this implementation we can have a value for each class.
// Before
import styles from './Style.css'
styles.classA // undefined
styles.classB // undefined

// After
import styles from './Style.css'
style.classA // 'classA'
style.classB // 'classB'

I'm aware this solution is not 100% compatible with CSS Modules, i.e. if I import two different modules with the same class name I end up with the same value:
import stylesA from './StylesA.css'
import stylesB from './StylesB.css'
stylesA.label === stylesB.label // true, in CSS Modules it would be false

That said this implementation covers 90% of the testing needs for CSS Modules.

I'm assuming that second module.exports was supposed to be gone? :)

Yes, sorry about that

thank you!


Cannot obtain version information from hover build.

when is use to run hover doctor i dot issue
E:\project_flutter\examples-master\text_demo> hover doctor
hover: Cannot obtain version information from hover build. To resolve this, please go-get hover using Go 1.13 or newer.
when is use to run in project
E:\project_flutter\examples-master\text_demo> hover run
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel: flutter channel beta
hover: Building flutter bundle
hover: Using engine from cache
hover: Cannot obtain version information from hover build. To resolve this, please go-get hover using Go 1.13 or newer.
plz help me
thank you advance

The GO111MODULE=on must be set to 'on'
System-wide overwrite: go env -w GO111MODULE=on

i had tried but same error
C:\Users\sk>go env -w GO111MODULE=on
C:\Users\sk>hover version
hover: Cannot obtain version information from hover build. To resolve this, please go-get hover using Go 1.13 or newer.


feat(telemetry): track operators events

Description
Telemetry api should track the following events from Ethereum

RegisteredOperator
Stake updates
Metadata updates

Done in #1152


[Example] Create a customer OnBoarding Example app on appsmith

Describe the problem
We want to build a customer onBoarding example application to demonstrate the power of tools that can be built on appsmith. We can use this template as a guiding star on how the customer onboarding app should look
https://www.jetadmin.io/templates/customer-onboarding-tool
The app should be built on app.appsmith.com and be made public
The documentation and readme should be updated with the application

sir please assign this to me.

@CH-ND-N unfortunately this has already been assigned to someone. Please have a look at our other good first issues 😃

How can I fix this issue?

@krishguptadev sure, go for it and raise a pr with the exported application!

@Nikhil-Nandagopal I would like to know where am I supposed to add this, since I am new to this project

@krishguptadev you can start by building the app and Sharing it with us. In the meantime, I'll create a folder to check this in

Also, what do I have to recreate? Like I just see this page when I open the link:

Also, what do I have to recreate? Like I just see this page when I open the link:

Could you tell @Nikhil-Nandagopal

@krishguptadev it looks like the demo is not loading for you. I think you need to hit accept and refresh the page.

It loaded, but I think we should not clone this, since it is a template up for sale by someone

@krishguptadev the template is only a guiding star for the type of requirements a customer onboarding tool should have. Please don't replicate it but use it to understand the type of tool to be built :)

Hey @krishguptadev, this is a simple CRUD app that can be auto-generated from Appsmith. Can you try to add any other functionalities to this, as I mentioned above?

Hi @krishguptadev, maybe this isn't the best issue to work on then? Have you had a look at our other good first issues?

Hi @krishguptadev , this may be a better issue for you
https://github.com/appsmithorg/appsmith/issues/4468
Do leave a comment if you're interested in it

This issue can be tracked here
https://github.com/appsmithorg/appsmith/issues/9661


Console: mount a graph as a file system

It would be cool using the File System concepts in console against graph. We could support the following commands.
mount
Mount the graph as a filesystem
mount <name> <root-rid> [parent=<parent-attribute>]
  [children=<children-attribute>] [file=<file-class>] [directory=<directory-class>]

ls
Display children.
ls

cd
Move in the mounted graph.
cd [<path>]

Where path supports:

. = current node
.. = parent node
/ = children-node

mkdir
Create a vertex with directory class
mkdir <name> [set <field-name> = <field-vaue>]*

mkfile
Create a vertex with file class
mkfile <name> [set <field-name> = <field-vaue>]*

unmount
Unmount a filesystem
unmount <name>

Full example:
./console.sh
orientdb> mount fs (select from File where name = 'root') file=File directory=Directory parent=in_parent children=out_children
Virtual File system mounted

orientdb> mkdir test1
orientdb> mkdir test2
orientdb> ls
test1
test2

orientdb> cd test1
orientdb> unmount fs

```

Out of scope.


error: the following arguments are required: VIDEO_PATH

Can somebody help with this issue.. I can't seem to figure out the problem.
error: the following arguments are required: VIDEO_PATH

Rather than making changes to the code, just type it in front..
python3 demo_yolo3_deepsort.py MyVideo.avi


data: Text

This PR introduces Text in kyo-data to provide more efficient handling of String operations. The main optimization is representing substrings via a Cut wrapper instead of copying strings.
This is part of the work to introduce a new Parse effect in kyo-prelude using effect handling for a more convenient backtracking mechanism.

merging to post the PR with the new Parse effect


I made a simple surrealdb client using urllib

example of this:
from surrealdb import Client
client = Client.client("http://localhost:8000", "root", "root", "main", "main")
print(client.execute("SELECT * FROM name;"))

I agree with what @EnokiUN said;
Futhermore, this wrapper is actually being written in rust not python due to time efficiency. However, if you would like to contribute you could ask the discord server what you can do to help.

Actually, after some debate between myself, albedo and Tobie it was decided that it will be a native python wrapper, here's the message from Tobie.
I honestly think this pr should be closed and another one with proper aiohttp support should be opened.
Reopening #3 might not be a bad idea assuming Vincent fixes the issues that were pointed out.

I agree with what @EnokiUN said;
Futhermore, this wrapper is actually being written in rust not python due to time efficiency. However, if you would like to contribute you could ask the discord server what you can do to help.

Actually, after some debate between myself, albedo and Tobie it was decided that it will be a native python wrapper, here's the message from Tobie.
I honestly think this pr should be closed and another one with proper aiohttp support should be opened.
Reopening #3 might not be a bad idea assuming Vincent fixes the issues that were pointed out.

I'm very glad that its being written in python. In that case, #3 could be reoponed or a new pull request could be made


Fix Unit Tests

The unit tests are failing because there's no MySQL database connection when they run on GitHub Actions. I may need to create a connection while the tests are running.
Resources:

https://ovirium.com/blog/how-to-make-mysql-work-in-your-github-actions/
https://github.com/marketplace/actions/setup-mysql

Unit tests now run and pass on GitHub actions.


JSON Redirect Question

I have a question about refreshing using the redirectTo parameter.  I formatted my Google Sheets and used the Google Sheets Importer to create my JSON file.  On that page it states:

You can be redirected after refreshing by passing a redirectTo parameter to this URL.

I'm not a developer.  I tried to search for how to leverage this.  Can someone help me with some sample code?
Also, the page says:

Feeds that are not refreshed within 30 days are removed automatically.

Does using the "redirectTo" parameter keep my feed refreshing every time it's used?
Thanks in advance.

Thanks!  I've already made a copy of the Google Sheet for my group.  I can see where the redirectTo is in the LINK.  Currently it has AA San Jose's URL in there.  It looks like I need to update the script with my URL, which I just did.  Is there a way to automatically update all of the "LINKS" with the correct URL?

Looks like I need to update the slug which will trigger the LINK to update

That's right. The base URL is set in Extensions > App Script - right at the top

Thanks again Josh.

Josh, I would love to help with documentation for TSML.  I'm sure you get hit with a lot of questions.  I'd love to help document things to make it easier for others to implement TSML.  I also have a couple more questions.  If I'm going to ask them, why not document it for others?

Thanks! If you would like to recommend edits to make things clearer to users of the Sheets project and TSML UI, we have four "surfaces" where it would probably go.
https://tsml-ui.code4recovery.org is where we have information about how to get started with TSML UI. This is linked from a few places and is the "front door" for most users. This applies to people with all sorts of platforms, WordPress and otherwise. If they are interested in using a Google Sheet, they will see the link to:
https://sheets.code4recovery.org is where we have info to help people get started with Sheets. This probably is where we should document the baseUrl question in this thread.
https://github.com/code4recovery/tsml-ui is advanced config information for TSML UI, probably not relevant
Then we have the confirmation page, which is where you saw the original redirectTo mentioned.
Feel free to submit a new ticket with suggestions on how to clarify things, or submit a PR if you're comfortable doing that.
This stuff tends to get out of date rather quickly, so I don't want to have more sites than the above floating around. TSML, the WordPress plugin, has a bunch of them and it is not the ideal situation.


Timezone support

Hi,
is it possible to change the timezone of the container?
I tried the typical things like setting the TZ environment variable or mounting /etc/localtime or /etc/timezone but this does not wirk.
Any help appreciated.
thx for this great image :-)

Implemented in latest release.
This ticket can be closed ;)


Feature/claims validator

Current coverage is 88.02% (diff: 92.59%)

Merging #43 into master will decrease coverage by 0.19%

@@             master        #43   diff @@
==========================================
  Files            71         71
  Lines          2437       2455    +18
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           2150       2161    +11
- Misses          242        248     +6
- Partials         45         46     +1

Powered by Codecov. Last update 927ab2f...f541a63


Migrate pandas read_excel engine from xlrd to openpyxl.

Synopsis
FlowCal relies on pandas to read Excel files, and pandas is changing its underlying parsing engine to move away from a package that is no longer maintained (xlrd). Moreover, xlrd recently started throwing DeprecationWarnings in some use cases. This pull request establishes a preference in FlowCal for the actively maintained openpyxl engine over xlrd. xlrd is still retained, though, because it can parse old-format Excel files (.xls).
Background – xlrd, defusedxml, getiterator, and DeprecationWarning
xlrd throws a DeprecationWarning when it uses the defusedxml XML parsing library to read an Excel file in Python 3.8. defusedxml, which is installed with Anaconda since v5.3.0, emulates the standard Python XML parsing library (xml.etree.ElementTree) and additionally prevents malicious XML operations, making it the preferred parser of xlrd. The DeprecationWarning occurs because xlrd misunderstands defusedxml's incomplete emulation of xml.etree.ElementTree and resorts to a function (getiterator) that has been deprecated since Python 3.2 and started throwing a DeprecationWarning in Python 3.8. This decision occurs despite the availability of the recommended alternative (iter) because xlrd initially checks for an ElementTree class in the parsing library before checking for iter, and the xml.etree.ElementTree module contains this class whereas the defusedxml.ElementTree module does not. When xlrd later encounters a defusedxml-produced xml.etree.ElementTree.ElementTree, it uses getiterator() instead of iter(), thus resulting in the DeprecationWarning.
Proposed solution
To address the DeprecationWarning and the impending transition to openpyxl, I modified FlowCal to read Excel files first with openpyxl and then upon failure with xlrd. I also exposed the engine parameter so it can alternatively be specified explicitly.
I chose to retain xlrd because it's the only package available that can read old-format Excel files (.xls). I also added a unit test for this.
NOTE: The openpyxl version I selected for the requirements.txt file is the version associated with Anaconda v4.3.0, which is the lowest version of Anaconda we support (below it, matplotlib violates requirements.txt).
Unit test behavior before pull request (9cd83ef7fadf235e548bc6c1bb5ed22d4dde8416)
All unit tests pass with the following builds: Python 3.8, Anaconda 2020.02; Python 3.8, vanilla (no Anaconda, +openpyxl); Python 3.8, vanilla −openpyxl; Python 2.7, Anaconda 2019.10; Python 2.7, vanilla; Python 2.7, vanilla −openpyxl; Python 2.7, Anaconda 4.3.0 (oldest supported).
python -m unittest test.test_excel_ui throws a DeprecationWarning with Python 3.8, Anaconda 2020.02.
Unit test behavior after pull request (cfcf01265b5225eea5b5f1b614960770fb865714)
All unit tests pass with the same builds.
python -m unittest test.test_excel_ui no longer throws a DeprecationWarning with Python 3.8, Anaconda 2020.02.
Effects on performance
FlowCal reads Excel files ~50% slower with openpyxl than with xlrd in Python 3.8, Anaconda 2020.02:
Before pull request (9cd83ef7fadf235e548bc6c1bb5ed22d4dde8416) (xlrd):
>python -m timeit -n 1000 -s "import FlowCal as fc" "fc.excel_ui.read_table('./test/test_excel_ui.xlsx', sheetname='Instruments', index_col='ID')"
1000 loops, best of 5: 5.01 msec per loop

After pull request (cfcf01265b5225eea5b5f1b614960770fb865714) (openpyxl):
>python -m timeit -n 1000 -s "import FlowCal as fc" "fc.excel_ui.read_table('./test/test_excel_ui.xlsx', sheetname='Instruments', index_col='ID')"
1000 loops, best of 5: 7.81 msec per loop

This is a tolerable slow down in my opinion.

We might also consider using openpyxl as the ExcelWriter engine, which would eliminate the need for the XlsxWriter package. I don't know if openpyxl can do everything we're currently doing with XlsxWriter, but this should be explored in a separate issue.

We might also consider using openpyxl as the ExcelWriter engine, which would eliminate the need for the XlsxWriter package. I don't know if openpyxl can do everything we're currently doing with XlsxWriter, but this should be explored in a separate issue.

It definitely can. I'm using openpyxl as the only Excel engine in another package of mine.
The thing I don't like about openpyxl is that its API changes quite often. Although pandas is similarly fickle.

It definitely can. I'm using openpyxl as the only Excel engine in another package of mine.
The thing I don't like about openpyxl is that its API changes quite often.

Hmm, good to know.
Without openpyxl, I think xlrd is going to start actively failing with .xlsx files in Python 3.9 + Anaconda, so I still think incorporating openpyxl and trying it first is the best way to get ahead of this problem.

pandas is similarly fickle.

I still haven't forgiven them for sheetname -> sheet_name  😆  (although I sympathize with the underlying rationale).

I'm not completely convinced we need to keep xldr. The code to support both seems complex, especially inside excel_ui.read_table(), and may prove to be difficult to maintain in the future. I especially dislike how the error messages are being parsed to make decisions.
I'm ok with dropping xlrd completely even if it means no support for .xls (are people still using that?).

Superficially, I think having xlrd as a backup is superior to not having it, but I'm not especially tied to it (especially given that it's no longer maintained).
One thing to consider, though, is what dropping xlrd would do to our minimum package requirements. It looks like our minimum pandas requirement would go from 0.16.1 to 0.25.0, and pandas version 0.25.0 only supports Python 3. For Anaconda, the minimum version we would support out of the box for Python 3 would only be the current one (2020.02). And we would not support any Anaconda versions for Python 2 (the last one, 2019.07, has pandas version 0.24.2). So we'd have to rely on the requirements.txt file to manually update pandas for unsupported Anaconda versions, and I'm not even sure that would work for Python 2. It may therefore also be worth holding on to xlrd for Python backwards compatibility reasons. If we ever drop Python 2, that might be a good time to drop xlrd.

The decision-making on error messages was just me trying to be really precise in my error handling. I imagine most people would just except on the Errors (some of which are pretty general...) and then move on to their exception-handling code. We could fall back to that strategy if we wanted, which would be less vulnerable to changes in the error messages.

OK, let's leave xlrd. But if we ever have issues with excel_ui.read_table(), I suggest immediately dropping xlrd. While we're at it, I'm in favor of dropping support for Python 2 as soon as it becomes slightly annoying to maintain it.

Dropping xlrd or Python 2 at the first sign of trouble seems good to me. A bunch of projects actually already pledged to drop Python 2. It's likely some of our user base are not programmers, though, and may benefit from prolonged support of old tools, so I think we should keep Python 2 around for a little longer if convenient. Dropping it will also likely require some work to purge all the compatibility code (e.g. all the six package references).


ci: split build and publish workflows and set up cache

the new workflow introduced in #14685 takes quite some time to build (~5m). the gem stage is the culprit here as it takes almost 4m to build some native extensions. this PR introduces GitHub Cache backend for our workflows and now it takes ~37s to build: https://github.com/crazy-max/docker.github.io/runs/6492119592?check_suite_focus=true#step:4:1

also as discussed with @thaJeztah, split build workflow and create a dedicated publish one to have better separation of concerns.
Signed-off-by: CrazyMax<EMAIL_ADDRESS>

I guess it's green, but we need to update the config again 😂

Alright; let's get this one in


Fps limit

Fps limit is not working on my ryzen 5 3450u please fix this in a later update thank you.

Found the problem it was a skill issue


Help request: Twint -> formating and filtering csv giving error messages

Command Ran
import twint
import pandas
import nest_asyncio
nest_asyncio.apply()
c = twint.Config()
c.Search = "EURO2020"
c.Since = "2021-06-19"
c.Until = "2021-06-20"
c.Custom = ['time','username','tweet','likes','link']   ## <-- This is the problem line
c.Store_csv = True
c.Output = "Test_EM2020"
twint.run.Search(c)
Description of Issue
I am very new to all of this, lets just say that as a disclaimer. I want to scrape all tweets that happen during specific EURO 2020 football games. I tried my best to get everything working, but I have no idea what I am doing to be honest. the pandas, and asyncio line I got form a YouTube Channel, it doesn't seem to be working if I leave them out, so I kept them.
The general Scraping seems to work fine, but there are several things that I want to do that give me error messages:

When I try to slim the csv down by only scraping for the stuff i need (not much, see my c.Custom), I get the message "CRITICAL:root:twint.output:_output:CSV:Error:list indices must be integers or slices, not str list indices must be integers or slices, not str". I have no idea what that means, but I am confused because I am not asking anything new by my wanted parameters - they are in the csv when i do not filter, so it doesn't make sense to me why I get an error message when I look for less attributes.

I really want to keep only Englisch and German messages, but the c.Lang = "de" line doesn't seem to be doing anything, same as the Englisch one. I also do not know how I can combine the two, so looking only for "en" and "de"

Right now what I still need to do is go into Excel and re-format the first column with the seperators. That does work, but is an extra step that I am shure can be automated somehow - I just don't know how.

Any help on this would be greatly appreciated. I don't know if this is the right place to ask, but I found no "discussion" forum or something of the sort. Thanks for reading anyways!
Environment Details

Windows 10, Anaconda and Jupyter notebook

Hi @Felixkrell
Could you try this and see if it works?
import twint
import nest_asyncio

nest_asyncio.apply()

c = twint.Config()

c.Search = "EURO2020"
c.Since = "2021-06-19"
c.Until = "2021-06-20"

c.Custom["tweet"] = ["timestamp", "username", "likes_count", "link"]
c.Output = "Test_EM2020.csv" # optional, to save as a csv
c.Store_csv = True

twint.run.Search(c)

Where to look in the docs
I started using this recently as well and had some trouble understanding the documentation. I hope this helps! 😊
For the custom line, I got the format and customizable attributes from: https://github.com/twintproject/twint/wiki/Tweet-attributes
Example

Attributes

omh thank you so much! It works a lot better now!
I still can't filter out languages with the c.Lang command, and emmojis and special signs like ä, ö, üs only display in unicode, but I don't know if that can even be fixed with twint or in jupyter notebook or if it is an excel issue.
It is workeable now though, so thanks a ton!

Glad it works @Felixkrell! 😃
Ah I am having a similar issue. I wanted to translate all tweets to one language but it seems the source language would have to specified as well but that won't really work since there will be multiple source languages. See #1234 (hah the number sequence is satisfying!) for a bit more info.
Special signs and emoji should work just fine in a notebook, so that may be excel. You can remove strings (including emoji, probably) with pandas. For example you can filter out all links with something like links = df[df['message'].str.contains("https://")]. If you know regex, you can use that as well with this method. See their docs or this tutorial for more info on contains().


Measure computation submission delay

On top of the plain optimization, this measures the time it takes to submit the graph. This is typically the time it takes after hitting compute until the dashboard shows something.
This is likely skewed by caching as introduced in https://github.com/dask-contrib/dask-expr/pull/917 (the fsspec implementation also uses various caching layers) but I still believe this is added value

thx


Support Unreal Engine v4.27

Hopefully few changes are needed to the plugin, but we still need to do the following:

Test it.
Make our CI system build plugin packages for it, because I'm pretty sure binaries build for 4.26 won't work with 4.27.
Update our Marketplace listing to indicate support for 4.27.

Any update on when 4.27 will be supported?


[BUG] Konas Compatibility

Dont work with konas :/ crashing pls fix Uwu
1.3.1 was working but this not working

log

user error, stop using konass

user error, stop using konass


support for slurm upgrades (specifically for 15.08 to 16.05)

CgroupMountpoint needs to be changed when version is 16.05
some tasks are manual - slurmdbd upgrade can take an hour and needs to be run manually, shouldn't use systemd as it will timeout
documentation
update the yum repos with latest version of 16.05

One could have some tasks like:

"check if slurm is installed and if so put which version is installed in a variable"
if installed_slurm_version is not the same as "slurm_version" in the role (ie this is an upgrade - do some extra tasks)
but which tasks? A "pause" informing the user that they need to run the slurmdbd manually?

One could also have a task which includes a different variable file depending on which slurm version we are installing.

If a compute node gets updated to 16.05 before slurmctld(and maybe also slurmdbd?) then slurm will stop working on that node. First job could be submitted but it got stuck in COMPLETING.

Seems in the past our instructions 1 recommend draining the cluster completely so that's perhaps OK.
Begun working on instructions that include ansible:

Instructions are now in https://github.com/CSC-IT-Center-for-Science/ansible-role-slurm/blob/master/UPGRADE.md - more will be published in FGCI channels.


MINOR: Make Log.recordVersion private and other small cleanups

Couple small cleanups in this PR:

I've converted Log.recordVersion to be private, since it is used only inside Log class. I've also changed one of the call sites to reuse the same method.
In a few classes I've removed a redundant default parameter fileAlreadyExists = false in a call to LogSegment.open.

Tests:
Relying on existing unit & integration tests.

cc @junrao @ijuma @chia7712 for review

Thanks for the review @chia7712 ! I've addressed the comments in 2d2b4a2e732b42397df62da141df30856e5c88db.

@chia7712 if the change looks good to you, please could you merge it? thanks :)


ci

@homunkulus r+

:pushpin: Commit 08e9670 has been approved by japaric

:hourglass: Testing commit 08e9670e07a8e0634d34f1986fac9d0e58bb1563 with merge 01080b0b78c48e0ff55717b434435fa7958c15ea...

:sunny: Test successful - status-travis
Approved by: japaric
Pushing 01080b0b78c48e0ff55717b434435fa7958c15ea to master...


Skip vf configuration when not found in VF group

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 4 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 25.453%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/utils/utils.go
0
4
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
2334

Relevant Lines:
9170

💛  - Coveralls

created a test in https://github.com/k8snetworkplumbingwg/sriov-network-operator/pull/541 to show the issue. I added here as well. It should pass now.

OCP job passed (with new added test). There is a problem setting up the k8s job.


[FRONTEND WITH FRAMEWORK]: Angular(2.6) -> What is Two Way Data Binding?

Description 📜
What is Two Way Data Binding?
How it is different from One Way Data Binding?
How it works?
How it is implemented in forms?
Fixes # <3398>

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] Frontend Dev React/Angular/Vue

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

/assign


[cppmicroservices] Fix deps, configuration, fixup

For https://github.com/microsoft/vcpkg/pull/33825#issuecomment-1767671046.

@Hardold Please test these changes.
Notet that the port has vendored dependencies. They should be removed in additional commits.

any update ?

@GitJQ Did you test it?

... and from my comments, there are still the vendored dependencies. This takes time.

Resolved by #42720.


Generic Mapper for multiple Models

Hello,
I want to reuse code in my app, and I have created the next snippet to show how I parse data (in my Question Model).
static func parse(data: NSData) -> Question {
    var parseError: NSError?
    let parsedObject: AnyObject? = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.AllowFragments, error:&parseError)
    let result = Mapper<Question>().map(parsedObject)
    return result!
}

Instead of writing this method for each model in my app (for instance, replacing Question with Answers) I would want to create a Generic method for it. I have been trying it without success.
static func parse<T: Mappable>(data: NSData, toClass: T.Type) -> T {
    var parseError: NSError?
    let parsedObject: AnyObject? = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.AllowFragments, error:&parseError)
    let result = Mapper<T>().map(parsedObject)
    return result!
}

I would appreciate any help you might provide me.
thanks,

It looks to me like your code should work. Can you be more specific about the issue you are having?
One note:
You should be able to remove the toClass: T.Type section of the function definition. If you remove it, you will just have to define the type of the variable which this function assigns to so that the compiler can infer the type T. For example your code would look something like:
let answer: Answer = parse(data: someData)

instead of:
let answer = parse(data: someData, toClass: Answer.self)

If you are planning to use this code to parse HTTP calls into models, you might be interested in checking out https://github.com/tristanhimmelman/AlamofireObjectMapper. It is an extension to Alamofire which uses ObjectMapper to automatically convert your responses to objects. Hope this helps

Thanks!


Browser crashing on pdf generation and line cut off

Hi, currently im facing two issues using this:

Line cut off between the pages

When i click print browser crashes, throws that message which lets you to either quit the website or wait, if i click wait I eventually get a generated pdf... Any ways to prevent this from crashing? My options are already low:

export const pdfOptions: Options = {
  method: 'open',
  resolution: 2,
  page: {
    // margin is in MM, default is Margin.NONE = 0
    margin: Margin.MEDIUM,
    format: 'A4',
    orientation: 'landscape',
  },
  overrides: {
    pdf: {
      compress: true,
    },
  },
}

@Kimblis  Can you provide full code like implementation too.


feat: improve CLI input testability

Needs #8137
Description
To improve testability.

add InputOutput and MockInputOutput class to CLI

Checklist:

[x] Securely signed commits
[x] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[x] User guide updated
[x] Conforms to style guide

Have to come back to this one.

I love! A few comments and suggestions.

Adding declare(strict_types=1) shows a hidden type error.
There was 1 error:

1) CodeIgniter\Commands\Database\ShowTableInfoTest::testDbTableShowsDBConfig
TypeError: CodeIgniter\CLI\InputOutput::input(): Return value must be of type string, bool returned

/home/runner/work/CodeIgniter4/CodeIgniter4/system/CLI/InputOutput.php:51
/home/runner/work/CodeIgniter4/CodeIgniter4/system/CLI/CLI.php:259
/home/runner/work/CodeIgniter4/CodeIgniter4/system/CLI/CLI.php:296
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Commands/Database/ShowTableInfo.php:134
/home/runner/work/CodeIgniter4/CodeIgniter4/system/CLI/Commands.php:65
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Common.php:198
/home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/Commands/Database/ShowTableInfoTest.php:69

https://github.com/codeigniter4/CodeIgniter4/actions/runs/6757952382/job/18369383288?pr=7978

Nice strict catch! I'm surprised PHPStan didn't complain. Thanks for the changes, this is looking great.


Example not loading

Have copied the line chart example into my project but it apprears to not be loading. When I change it to a scatter graph with the example on chartjs website it shows the grid but not the data points. I have not added anything the systemJS as I am new to angular 5. Is this necessary and would this be the problem?
I npm installed systemjs into my program but can't seem to find the config file that it is referencing to. Sorry for the newb questions. I find it weird that it is able to load the graph with no data points though.

Unfortunately I have set my project up through the Cli and those instructions seem to not work :( does anyone have a demo on their github?

On 13 Feb 2018, at 10:21 pm, emn178<EMAIL_ADDRESS>wrote:
If you try to create new project, I recommend you use angular-cli. If you want to use SystemJS, make sure you set up this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

here is a sample

Thank you! It seems that it is the mat-card that I have surrounded seems to cause issues.

So this seems to have put me back to square one. I have removed the mat-card and it works fine until I swap it to a scatter graph using the example code given on chartjs. Is scatter a supported chart?

scatter has different data format. did you change it?

I changed it to the one given in the examples on the website, with options as a seperate variable

did you solve your problem?


Forgot Password

Hi,
Is there any option for forgot password, where user can enter email id to retrieve the password ?

CouchDB does not support this functionality, hence pouchdb-authentication does not support it, sorry.


Automation: Factory Reset

Verify all 3 factory reset -
Corresponding epic is @ https://github.com/openbmc/openbmc/issues/865

[ ] Network Factory Reset

[ ] BMC Factory Reset

[ ] Host Factory Reset

Please add TCs under MFGTest directory.

Energy scale will need to call reset to verify energy/power settings return to default.


More parsed personal player information

:P

Well done
I don't understand how avatars and achievements work, and what is a 'personal signature'?
I should merge this soon after testing. Do you want to add these new properties to the database as well?

Well done
I don't understand how avatars and achievements work, and what is a 'personal signature'?
I should merge this soon after testing. Do you want to add these new properties to the database as well?

if you're talking about achievements like CS:S, I never found any clue about this things
about player's avatar, title (serious, I also think this translate is little inappropriate, so I have thought of many words to express it, but... that's really what it's called

) and personal signature actually the person who made it was @CCasusensa, and I just did a little bit of work, like find out where it was saved, when i'm writing these words, I got his permission to publish these things, so I'll post it at the end.
about the personal signature, my expression may not be so good, so check the picture below:

about the database update, I'm not sure what part you want... because some of them seems useless, so I think still need you to complete this
serverinstance:
--             case PacketId.Aboutme:                 return this.users.onAboutmePacket(packet.getData(), sourceSocket)
packets\achieshared: (new file)
export enum AboutmePacketType {     SetMessage = 5,     SetTitle = 6,     SetAchIcon = 7, }
definitions:
--     Aboutme = 69,
usermanager:
`--
import { AboutmePacketType } from 'packets/achieshared'
import { InAboutmePacket } from 'packets/in/aboutme'
import { InAboutmeSetIcon } from 'packets/in/aboutme/seticon'
import { InAboutmeSetMessage } from 'packets/in/aboutme/setmessage'
import { InAboutmeSetTitle } from 'packets/in/aboutme/settitle'
public onAboutmePacket(AboutmeData: Buffer, sourceSocket: ExtendedSocket): boolean {
    const achPacket: InAboutmePacket = new InAboutmePacket(AboutmeData)
    const user: User = this.getUserByUuid(sourceSocket.uuid)

    if (user == null) {
        console.warn('Uuid %s sent a Aboutme packet without login', sourceSocket.uuid)
        return false
    }

    switch (achPacket.packetType) {
        case AboutmePacketType.SetMessage:
            const messageData: InAboutmeSetMessage = new InAboutmeSetMessage(achPacket)
            return this.onAboutmeSetMessage(messageData, user)
        case AboutmePacketType.SetTitle:
            const titleData: InAboutmeSetTitle = new InAboutmeSetTitle(achPacket)
            return this.onAboutmeSetTitle(titleData, user)
        case AboutmePacketType.SetAchIcon:
            const achiconData: InAboutmeSetIcon = new InAboutmeSetIcon(achPacket)
            return this.onAboutmeSetIcon(achiconData, user)
        default:
            console.warn('UserManager::onAboutmePacket: unknown packet type %i', achPacket.packetType)
    }

    return true
}

public onAboutmeSetMessage(messageData: InAboutmeSetMessage, user: User): boolean {
    const message: string = messageData.message
    // user.inventory.setAboutmeMessage(message)
    const updateMessage: Buffer = new OutUserInfoPacket(user.socket).fullUserUpdate(user)
    user.socket.send(updateMessage)
    console.log('Setting user "%s"\'s aboutme message %s', user.userName, message)
    return true
}

public onAboutmeSetTitle(titleData: InAboutmeSetTitle, user: User): boolean {
    const title: number = titleData.title
    // user.inventory.setTitle(title)
    const updateMessage: Buffer = new OutUserInfoPacket(user.socket).fullUserUpdate(user)
    user.socket.send(updateMessage)
    console.log('Setting user "%s"\'s aboutme title %s', user.userName, title)
    return true
}

public onAboutmeSetIcon(IconData: InAboutmeSetIcon, user: User): boolean {
    const icon: number = IconData.icon
    // user.inventory.setIcon(icon)
    const updateMessage: Buffer = new OutUserInfoPacket(user.socket).fullUserUpdate(user)
    user.socket.send(updateMessage)
    console.log('Setting user "%s"\'s aboutme icon %s', user.userName, icon)
    return true
}`

packets\in\aboutme: (new file)
`import { InPacketBase } from 'packets/in/packet'
import { AboutmePacketType } from 'packets/achieshared'
/**

incoming Aboutme packet

@class InAboutmePacket
*/
export class InAboutmePacket extends InPacketBase {
public packetType: AboutmePacketType
/**

parses the packet's data
*/
protected parse(): void {
super.parse()
this.packetType = this.readUInt8()
}
}
`

packets\in\aboutme\seticon: (new file)
`import { InPacketBase } from 'packets/in/packet'
/**

requests an user's setting aboutme icon
@class InHostSetAboutmeIcon
*/

export class InAboutmeSetIcon {
public icon: number
constructor(inPakcet: InPacketBase) {
    this.icon = inPakcet.readUInt16()
}

}
`
and setmessage, settitle use a same but little different words:
setmessage: read string, settitle: same with seticon except name.
user.inventory is a standalone update from us, so I annotated it, I did not had much experience with TS and JS, you should have notice it when I first time do PR, I even modifie the file multiple times just because of the weird space requirement of TS... sorry I can't help much about this...... :(

@dounai2333 Do you want to commit the packet definitions?
@CCasusensa do you want to co-author these commits with @dounai2333? If so post your email (or the no-reply email assigned to your account).

I've already posted it... "--" is an omission, because those are irrelevant ahh whatever
--
Host = 68,
Aboutme = 69,
Udp = 70,

branch packets type (packets\achieshared):
export enum AboutmePacketType {
    SetMessage = 5,
    SetTitle = 6,
    SetAchIcon = 7,
}


serviceMonitor problem upgrading helm chart to v0.8.0

Hi, 👋
I just tried upgrading to the external secrets helm chart v0.8.0.
I'm using Flux and my helm deployment is here:
https://github.com/onedr0p/home-ops/blob/f197c0cc1160bbe92190550ec6013258e6ba7bcc/kubernetes/apps/kube-system/external-secrets/app/helmrelease.yaml
Error:
Helm upgrade failed: error while running post render on files: may not add resource with an already registered id: ServiceMonitor.v1.monitoring.coreos.com/external-secrets-cert-controller-metrics.kube-system

Looks like you combined all the servicemonitors into one file but forgot to delete the separate files.
https://github.com/external-secrets/external-secrets/blob/main/deploy/charts/external-secrets/templates/cert-controller-servicemonitor.yaml
https://github.com/external-secrets/external-secrets/blob/main/deploy/charts/external-secrets/templates/webhook-servicemonitor.yaml
If installing with the helm chart and enabling servicemonitors, rhe chart is broken.

fixed in #2136

hey @onedr0p ! please confirm if 0.8.1 fixed this bug. Tried locally here, but I have a limited understanding of ServiceMonitor per se :)

It's working here, thanks!


hiding year

is there an option to hide year? i'm only interested in day and month and showing year in toolbar is confusing.

Because the picker parses its output to moment.js, it's necessary for the year to be present.
It would be possible to allow a default year to be passed in as a prop and the year picker then hidden/disabled, but even with that workaround the output from the form is still a moment object, not just a day and month. Are regular selects are better for your use case?

thanks jmauzy. client wants picker like this one so i made a dirty hack to hide year and will use customized version, but your idea with default year sounds great. think that moment object with default year wouldn't be a problem for anyone who care only for day and month.


Youtube

Can you add a feature to download youtube video files?

Can you add a feature to download youtube video files?

That would be cool.

yeah add a feature to download directly like idm

Hi there. Please follow this issue #9 for download streams.


yamllint

Add a Lint job in circleci, similar to what the Cloud Alchemy ansible roles are doing.

We typically use ansible-lint, rather than calling yamllint directly.


Add filtering to MergeJournalContext

What changes are proposed in this pull request?
Fix #14306
Why are the changes needed?
Without filtering, merge will batch and merge all inode operations, cause race condition
Does this PR introduce any user facing changes?
No

alluxio-bot, cherry-pick this to branch-2.6 please


Use Windows SID instead of the name Everyone for better system language compatibility

See #46 for all details

I will run into this issue again and again as long this is not merged. Any non-english system languague will have issues with the internal updater.
By the way, the bug is visible. If you look back at my comment: https://github.com/TheRandomLabs/Scoop-Spotify/issues/34#issuecomment-820766536, this part indicates the error:

Everyone: No mapping between account names and security IDs was done.

What do you need from me to get this merged?