[✨] add serviceWorker$

Is your feature request related to a problem?
No
Describe the solution you'd like
A service-worker hook. For example serviceWorker$(…)
A hook that can be used anywhere in the project similar to worker$ or server$, but for the current service-worker ( qwikcity). The hook / wrapper function would act as a means for the optimizer to bundle the functions in it, to be ran on the service worker.
export const mySWFunc = serviceWorker$(()=> /* some function/s that will be bundled with the service worker. And executed on the service-worker when called, could be chunked and have their own QRL to be fetched later on when they are needed (same as normal $ but execute on the service-worker)
*/)
Describe alternatives you've considered
Currently adding functions to the service-worker.ts file.
Additional context
Currently there are no hooks to the optimizer / bundler. Adding a listener directly onto service-worker.ts does not take into account the current (built into setupServiceWorker() ) listener which could cause conflicts in the order of execution.
The service-worker does all the fetching for the chunks, acting as a proxy, if something is already cached in the service-worker , there is no entry point or “interception” point to modify the request between the main thread and the service-worker. Nor is there a mechanism to bundle code that should be executed on the service-worker… for example say a normal QRL $
The service-worker has a chunk for that, fetches it as needed, let’s say you want to manipulate it first on the service-worker, wrap it first…
  const domFunc = serviceWorker$(()=> {
  /* this runs on service-worker scope / thread,
     can do some “work” on the service-worker
     before returning its QRL
  */
    return $(()=> {
      /* this would run on the main thread
         Doesn’t have to be $ can just be an
         object with data or anything that
         can be serialized…
      */
    });
  });

  onClick$={domFunc}

There is currently an event$() in qwik that is similar to the above that is a QRL that returns a QRL with an implicit first arg which could be a similar way to set the serviceWorker$ … the key difference would be the “scope” of en vocation
Since it’s a QRL it’s not needed right of way…
First func$:
runs on service worker if it returns a QRL… it will need to be fetched before the main thread QRL is needed, so it can do its work before the main thread QRL is fetched and stay in an “awaiting” state to finish and returns the second (main thread) QRL
Second func$:
runs in main thread
I think this is a sort of callback but the callback is present on the service-worker so the second func$ can do some main thread work and return to the service worker

@PatrickJS
Maybe I can pick this.
looks a bit complicate,

This is an enhancement, the service worker story is changed during this month
Here is the new implementation
The output to solve this issue should be a cookbook example and not a new core API.
@JerryWu1234 feel free to play with this. Thanks

You can take inspiration from this I guess https://www.npmjs.com/package/@builder.io/qwik-worker?activeTab=code

yeah @JerryWu1234 feel free to experiment I was thinking we can pass make a fetch request and in the service worker detect this and run the code in service-worker and return the results rather than returning the code

it would be better to have this which is similar to server$ but worker$ might be closer
const getDataFromServiceWorker = serviceWorker$((args) => {
  // do a thing
  return data
});

<button
  onClick$=[
    $(() => {

      const data = await getDataFromServiceWorker(args)
    })
  ]}
>
  Click
</button>

You can take inspiration from qwik-worker I guess

yeah the qwik worker$ last time i saw it did something similar... of event$
that is has a first arg and returns another function... ( if i remember correct)
...
but the worker$ is fine it can work universally ...
the only thing I remember * was that worker$ was using a ref off the q:container?? to "message"
but if we hone it down... that yes random worker$ ref whatever to spawn a new worker...
but IF qwik-city is the micro framework for routing THEN hook into that instead of q:container (or w.e it is) but thats not good enough... as worker$ should / could be worker$({...}:{type:'service-worker" | "worker" | "shared";  port?; , client?; etc..?;   }
similar to worker$ it autos to q:container ?? as its ref, but for service-worker it refs off the qwik-city service-worker ? qwik-city[sw] : q:container

its hard to explain, like if there is qwik city and there is a qwik city service-worker (throw it on there )... unless its specified to put it on a specific "port" or "client"or worker which behind the scenes would be an object of | worker , service-worker, shared-worker | whatever it is in "worker" lingo
so... its not changing anything to how it works now. its hooking into how it works now, and inject  it as a ref based on the object its referencing

like take a class for example... I cant serialize this class across $ boundries... and I dont need this class or module to run right now... but I do  need it to run eventually... i can defer it , or like party-town I can just dump it to ?? some random fault ,,, and scoop it up later... but we already HAVE the service worker already its already doing things... but at the same time that its doing things it can do alllot more things... its no like the service worker is any different than any other thread...
it can pump out just as much work as any other thread... the key is not clogging up the main thread which is the UX ... but now think about the class barrier problem , its not that the class cant be broken across the $ barrier because I can make a type of string and call it
type MyStringType= string;...  and its going to complain ( bad example) but not really because all the web3 stuff complains because of a custom Hex type it cant serialize between that... for whatever reason... ( its a lint or w/e debacle) but they are both just strings
so the idea is okay forget about the hard part of figuring all that out ... lets just let the service worker to do it for us
class MyClass  ... constructor...
its not going to serialize and there are 10000000s of libs like this that people spend 10000 of hours making but we cant use them in qwik ( we can the opt easy out no serialize method and useVisibleTask method ... but whats the point then...
but if we use the service worker it can hold alll that and it can hold it all in a stateful manner""
the page can change but the scope to the service worker doesn't
so it can run all that class madness back there in that thread.. while still being scoped to signals and all the serialized methods qwik uses, the difference is the SSR is not SSR but SWSR

probably should copywrite that SWSR ... thats the extra$ for the  sause$

Thanks everyone for the thoughtful discussion!
Our plan is to switch to the newer service worker implementation that can be updated with new graph data over time.
Until we'll be done with V2, we won't have time to allocate for a proper design for a feature like serviceWorker$
but we'll definitely get back to it after V2 is out (which is coming soon).
So writing this here just so you know we're not ignoring this, we're just pausing... and later we'll resume 😊

We moved this issue to qwik-evolution repo to create a RFC discussion for this.
Here is our Qwik RFC process thanks.


add vlan2500 to ls-fwdr01 so it can be used for ccs development

I see a problem... not ready for merge.

This PR is ready for review/merge.


added contact form section

fixes #1216

Nice work @MoofyWoofy !
If you wish, you can give another PR for the generated website (due this update) on the gh-pages branch.

I'm sorry, I don't understand what do you mean by give another PR?


Dart Analyzer, high CPU, massive log file

I'm regularly (several times a day) going through a cycle of VS Code becoming unusable due to the Analyzer using all the CPU. I have the log file enabled, and it quickly writes multi-gigabyte log files.
I don't have a clean reproduction of this at this moment — I'll look at that later.
When it starts going wrong, the log file looks like this: (I manually split the lines to make this appear readable in github)
1602504045559:Noti:{"event"::"completion.availableSuggestions","params"::{"changedLibraries"::
[{"id"::0,"uri"::"package::projectname/sync/database.dart","items"::
[{"label"::"$ItemsTable","declaringLibraryUri"::"package::projectname/sync/database.dart","element"::
{"kind"::"CLASS","name"::"$ItemsTable","location"::{"file"::"/Users/steve/code/companyname/projectname-
app/projectname/lib/sync/database.g.dart","offset"::20093,"length"::0,"startLine"::614,"startColumn"::7},"flags"::0},"relevanceTags"::
["ElementKind.CLASS","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart:
:::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$Item
sTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable",
"package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","packa
ge::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::proj
ectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectnam
e/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/
database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/databas
e.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart:::
:$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$Items
Table","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","
package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","packag
e::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::proje
ctname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname
/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/d
atabase.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database
.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::
$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsT
able","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","p
ackage::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package:
:projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::project
name/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/s
ync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/dat
abase.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.d
art::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$It
emsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTab
le","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","pac
kage::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::p
rojectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectn
ame/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sy
nc/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/data
base.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.da
rt::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$Ite
msTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTabl
e","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","pack
age::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::pr
ojectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectna
me/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/syn
c/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/datab
ase.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dar
t::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$Ite
msTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTabl
e","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","pack
age::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::pr
ojectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectna
me/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/syn
c/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/datab
ase.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dar
t::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$Ite
msTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTabl
e","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","pack
age::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::pr
ojectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectna
me/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/syn
c/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/datab
ase.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dar
t::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$Ite
msTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTabl
e","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","pack
age::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::pr
ojectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectna
me/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/syn
c/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/datab
ase.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dar
t::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$Ite
msTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTabl
e","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","pack
age::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::pr
ojectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectna
me/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/syn
c/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/datab
ase.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dar
t::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$Ite
msTable","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTabl
e","package::projectname/sync/database.dart::::$ItemsTable","package::projectname/sync/database.dart::::$ItemsTable","pack
age::projectname/sync/database.dart::::$ItemsTable:

The line goes on a lot longer than this.
I am using https://pub.dev/packages/moor, which uses generated code at database.g.dart and creates things like $ItemsTable as part of its functioning.

VS Code version: 1.49.3
Dart extension version: 3.15.0
Dart/Flutter SDK version: Dart SDK version: 2.10.0 (stable) (Mon Sep 28 09:21:23 2020 +0200) on "macos_x64"

The log says "location"::{"file"::"/Users/steve/code/companyname/projectname- app/projectname/lib/sync/database.g.dart","offset"::20093,"length"::0,"startLine"::614,"startColumn"::7}. That's this generated code:
class $ItemsTable extends Items with TableInfo<$ItemsTable, Item> {
  final GeneratedDatabase _db;
  final String _alias;
  $ItemsTable(this._db, [this._alias]);
  final VerificationMeta _baseMeta = const VerificationMeta('base');
  GeneratedIntColumn _base;
  @override
  GeneratedIntColumn get base => _base ??= _constructBase();

This issue is making it painful to develop a flutter app. I get about 5 minutes of use from the analyzer before I need to restart it.
Is there anything I can do to work around the problem? Or anything I can do to help towards a fix?

I have the same issue in Android Studio and VSC.

Same issue in VSCode and IDEA. Any IDEs open with the Dart plugin active, regardless of whether there are active debugging sessions or not, steadily take up more and more CPU usage until they become unusable after a few minutes.
Dart SDK version: 2.10.3 (stable) (Tue Oct 27 14:44:30 2020 +0100) on "macos_x64

Can anyone reproduce this in a small sample project that can be shared?

I've been trying to do this — unfortunately, my project is not currently suffering from this, and I don't have a straightforward way to go back to a state that does reproduce.
When I next experience the problem, I'll take a copy of the project tree, and try to pare it down to a reproducible test case.
Unfortunately I cannot say when I'm able to do this, as I need to see when I start experiencing this problem again.

I've been unable to reproduce the issue in all except one of my repos. It's a Flutter desktop project, but using go-flutter & hover rather than the official desktop-embedding (I'm not sure if that info helps).
I saw another thread in which the following information was requested, so I'm dumping it in. Anything else I can look for log-wise?

code --status
Version:          Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f, 2020-11-11T01:11:34.018Z)
OS Version:       Darwin x64 19.6.0
CPUs:             Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2200)
Memory (System):  16.00GB (1.99GB free)
Load (avg):       5, 6, 5
VM:               0%
Screen Reader:    no
Process Argv:     --crash-reporter-id 79b16596-d9b7-4bf8-9ba2-da74fa5e7016
GPU Status:       2d_canvas:                  enabled
flash_3d:                   enabled
flash_stage3d:              enabled
flash_stage3d_baseline:     enabled
gpu_compositing:            enabled
metal:                      disabled_off
multiple_raster_threads:    enabled_on
oop_rasterization:          enabled
opengl:                     enabled_on
protected_video_decode:     unavailable_off
rasterization:              enabled
skia_renderer:              disabled_off_ok
video_decode:               enabled
webgl:                      enabled
webgl2:                     enabled
CPU %   Mem MB     PID  Process
2      115   41470  code main
3       66   41473     gpu-process
0       33   41475     utility
0       98   41538     shared-process
0        0   42160       /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
9      262   41561     window (hovering_attach_options.dart — desktop-app)
0        0   41562       /bin/zsh -l
0       16   41646         hover run
6     1016   41899           ./go/build/outputs/darwin/worldr
0        0   41911           bash /Users/sean/SDK/flutter/bin/flutter attach --target lib/main_desktop.dart --device-id flutter-tester --debug-uri http://<IP_ADDRESS>:50300/
1      213   41928             /Users/sean/SDK/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev --packages=/Users/sean/SDK/flutter/packages/flutter_tools/.packages /Users/sean/SDK/flutter/bin/cache/flutter_tools.snapshot attach --target lib/main_desktop.dart --device-id flutter-tester --debug-uri http://<IP_ADDRESS>:50300/
0      623   41958               electron_node config.js
0       98   41566       extensionHost
80      180   41574         /Users/sean/SDK/flutter/bin/cache/dart-sdk/bin/dart /Users/sean/SDK/flutter/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot --client-id=VS-Code --client-version=3.16.0
0        0   41575         bash /Users/sean/SDK/flutter/bin/flutter daemon
0      147   41594           /Users/sean/SDK/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev --packages=/Users/sean/SDK/flutter/packages/flutter_tools/.packages /Users/sean/SDK/flutter/bin/cache/flutter_tools.snapshot daemon
0        0   41631             /usr/bin/script -t 0 /dev/null xcrun xcdevice observe --both
0       33   41632               /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice observe --both
0      557   41567       watcherService
0       33   41568       searchService
0        0   42083       /bin/zsh -l
0        0   42143         bash /usr/local/bin/code --status
17       33   42153           electron_node cli.js
Workspace Stats:
|  Window (hovering_attach_options.dart — desktop-app)
|    Folder (desktop-app): 4862 files
|      File types: pcm(755) timestamp(610) svg(400) d(242) dia(237) o(237)
|                  dart(157) hmap(150) h(141) otf(64)
|      Conf files: launch.json(1)
|      Launch Configs: dart(2)

@seanmc86 I think the most useful thing would be a project that repros it. Are you able to duplicate your project that has this and strip out anything you can't share to see if it still occurs in a form you could share?

Because it was so project-specific in my case, I was quite certain it must be something to do with either the files in that project's folder or the type of project files I was working with.
Turns out that that deleting the project folder and recloning it resolved the issue in the short term, though I do see instances of the usage starting to slowly creep up again over time. I'm not sure if it's a git thing or some other hidden files being created by the hot reloads/restarts I'm unaware of, but either way it doesn't seem to be a dart sdk issue.

This seems stale and unactionalble.


Fixed resourceType value and added new example

The resourceType value specified for virtualMachine in  all the examples had the wrong casing, that causes deployment failures when the examples are used verbatim. This update should hopefuly save some folks the frustrations I went through.
The first tag filter example has also been replaced with a new resourceName parameter example as the existing example looked redundant when there is an entire section about resource tags which followed next.

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


Fix relative difference scala

Description
Fix #14402 where division by zero occurs in relative difference calculation, making arange tests fail.
Solution: if diff is near 0f, i.e < Float.MinPositiveValue just return it instead of dividing by norm.
Also increase number of test cases to 10000. Test is not flaky anymore.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

#14413 @lanking520 @perdasilva

Thanks a lot for your contribution - nice catch!

Oops


Handle p and q arms

Currently we plot a large gap at the start of chromosomes when we're on the q arm. We should detect the first and last sites then plot with a little bit of padding on either side of this.

Closed in #12


Making sure MSOL connects to ONLY the tenant you are deleting

Now:
Create or use a managed admin account from the tenant that you want to delete. For example<EMAIL_ADDRESS>Update to : If you are deleting a test/dev other tenant NOT your home tenant
Create a managed admin account from the tenant that you want to delete. For example<EMAIL_ADDRESS>Be sure to check you are in the correct tenant
Connect-msolservice
Get-MsolCompanyInformation
DisplayName                              :
[Enter feedback here]

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: ea77d5a9-6619-0f31-9567-6085b7a4b5a2
Version Independent ID: f4cf720d-60dd-f086-3ace-1ff17e427757
Content: Delete an Azure Active Directory tenant - Microsoft Entra
Content Source: articles/active-directory/enterprise-users/directory-delete-howto.md
Service: active-directory
Sub-service: enterprise-users
GitHub Login: @barclayn
Microsoft Alias: barclayn

@debaxtermsft
Thanks for your feedback! We will investigate and update as appropriate.

@debaxtermsft
Thanks for reporting this! We have created a PR for this issue and the changes should go live soon.


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v5.10.47",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ca0e1fefbb534cc86296d9e5d116b0bf49084112"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "ca0e1fefbb534cc86296d9e5d116b0bf49084112",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "net: qed: Fix memcpy() overflow of qed_dcbx_params()\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.10.47 by commit ca0e1fefbb534cc86296d9e5d116b0bf49084112. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1001127


Make Cigar a PyVarObject and write into it directly at BAM parsing time.

Checklist

[ ] Pull request details were added to CHANGELOG.rst
[ ] Documentation was updated (if needed)

Codecov Report

Merging #13 (4095b93) into develop (0459eb6) will increase coverage by 0.07%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop      #13      +/-   ##
===========================================
+ Coverage    25.60%   25.67%   +0.07%
===========================================
  Files            2        2
  Lines          332      331       -1
===========================================
  Hits            85       85
+ Misses         247      246       -1

Impacted Files
Coverage Δ

src/htspy/bgzf.py
19.07% <0.00%> (+0.10%)
:arrow_up:

Continue to review full report at Codecov.

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


plugins/cordova-plug…w/permissions.js:38                  Uncaught SyntaxError: Unexpected token ':'

Please change semi colon to equal on line
this.BLUETOOTH_CONNECT:

i regonized the same issue.


dev: Refactor stop-timer components / codes

Separate components from entry point (index.js).

Done.


national agent file fails on national DB

national agent file fails to run fully on the national level database. Individual states seem to work fine.

When using the agent file "agent_df_base_res_national_revised.pkl" and the national dgen_db.sql backup, an issue occurs because building ID 580 is listed as being in state LA in the agent file and MO in the database file. Specifically, in financial_functions.py, the load_profile_df may be returned as an empty df because the sql lookup returns nothing, resulting in an error when assigning the load profile data to the pv dataframe. The files were downloaded on 1/26

When using the agent file "agent_df_base_res_national_revised.pkl" and the national dgen_db.sql backup, an issue occurs because building ID 580 is listed as being in state LA in the agent file and MO in the database file. Specifically, in financial_functions.py, the load_profile_df may be returned as an empty df because the sql lookup returns nothing, resulting in an error when assigning the load profile data to the pv dataframe. The files were downloaded on 1/26

@ajgong This is a known issue within the agent file and has been resolved, however, we're waiting for the agent file to be updated in the OEDI data catalog. For now I've put this agent file in https://github.com/NREL/dgen/tree/master/dgen_os/agents.

@ajgong This is a known issue within the agent file and has been resolved, however, we're waiting for the agent file to be updated in the OEDI data catalog. For now I've put this agent file in https://github.com/NREL/dgen/tree/master/dgen_os/agents.

This has since been resolved. The new national residential agent file has been uploaded to OEDI and is called: agent_df_base_res_national_revised_v2.pkl


Set Revision on AllowCategoryAsync()

Bugfix: When the user comes on your page the first time and does not use the modal window to accept the cookies, but the default  or the AllowCategoryAsync() methode the cookie is created with revision "-1"
Added the revision to AllowCategoryAsync() to fix that.
btw. I love this repo ;-) good work!

Hi, thanks for your PR! Glad you're finding this library useful :)
I've pushed your fix to nuget as version 1.0.10 👍


Parse error on link whose name contains @ symbol.

version
current latest commit (https://github.com/am-kantox/md/commit/051efbc643178afaa084ba6ba6f532ff47c6ecf9).
reproducing the error
iex> Md.parse("[admin@example.com](mailto:admin@example.com)")
#Md<[
  path: [],
  ast: [
    {:span, %{class: "empty-anchor"},
     [
       "admin",
       {:a,
        %{
          href: "https://twitter.com/example.com%5D%28mailto%3Aadmin%40example.com%29"
        }, ["@example.com](mailto:admin@example.com)"]}
     ]}
  ],
  payload: nil,
  internals: [mode: [:finished], indent: [], stock: [], deferred: []]
]>

It seems that the @ symbol causes it to be parsed as a Twitter handler.
the expected result
iex> Md.parse("[admin@example.com](mailto:admin@example.com)")
#Md<[
  path: [],
  ast: [{:a, %{href<EMAIL_ADDRESS><EMAIL_ADDRESS>  payload: nil,
  internals: [mode: [:finished], indent: [], stock: [], deferred: []]
]>

Hi @c4710n!
Thanks for reporting this. I will take a look ASAP.

Thank you for fixing that. ;)

Package published to https://hex.pm/packages/md/0.10.4
(3973df82a13352a1f66217fdcd574a9017b6da156917ae7ff7902554ef1ef370)

The issue there was the conflict of magnet (@twitter_handler) and the anchor tag. While the simplest workaround would have been to escape an ampersand (admin\@example.com,) I surely agree we should ignore magnets within pairs.


Top padding not applied to button-link-, menu-button-link-, and view-button-link-*

The top padding should be proportional to the element height so that common font sizes are vertically centered in the styled anchor.

Fixed.


Unresolved reference: rememberAnimatedNavController

Thanks for the awesome library!
I am trying to change the bottomsheet animation. This documentation says we need to use rememberAnimatedNavController but I am not able to import it. Can you please help?
https://composedestinations.rafaelcosta.xyz/styles-and-animations/#animations--bottom-sheet-setup

Hi!
I’m sorry, you can ignore that and just use normal one since animations is now part of official navigation, there’s no distinction anymore.
I’ll update the docs. Thanks 🙏


feat(TPG >=4.77)!: add support for continuous backup

Fix #22

@bharathkkb can you plz review this PR?


Feature request: event on wifi network available / unavailable

I would like to change profiles when a certain wifi network becomes available:
* when my home wifi network is in range, I want to change my profile to Quiet
* when my home wifi network is not in range, I want to change my profile to
Normal

I used to have Llama that has areas based on network cells, but my work is so
close to my home now that Llama does not see the difference between my home or
office. Llama cannot base location on wifi networks.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 13 Aug 2014 at 11:55

Currently working on this feature. Merge request will follow once it’s finished (and once #218 is merged, which is required to get this to build in the first place).

Progress report: it works on my private branch, but only if the screen is on. If the screen is off while wifi connectivity changes, then the respective events do not fire—I suspect the ConnectivityManager.CONNECTIVITY_ACTION intent is not sent during sleep. Will investigate...

Ran some more tests: right after the screen goes dark, speech announcement (another feature in my branch) works when the wifi is out of range. On other occasions, there is no announcement—my suspicion is that the device has different levels of “sleep”, and during deep sleep, either the event or the action are inhibited.

Sounds like a lot of work has gone into this already. Any idea when or if this issue will be resolved and available on f-droid? I'm looking for a way to launch and kill a specific app based on connection to WiFi SSIDs. It's okay if it isn't totally reliable (sounds like the connect event sometimes doesn't go through). A little automation will save me time and battery.


[WIP] Make sure to change the UUID of the package before building and testing it

Codecov Report

Merging #28 (ab6524b) into master (ff2f1bb) will increase coverage by 26.12%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master      #28       +/-   ##
===========================================
+ Coverage   66.66%   92.79%   +26.12%
===========================================
  Files           3        3
  Lines         681      666       -15
===========================================
+ Hits          454      618      +164
+ Misses        227       48      -179

Impacted Files
Coverage Δ

src/print.jl
95.28% <0.00%> (+26.47%)
:arrow_up:

src/parser.jl
92.15% <0.00%> (+26.61%)
:arrow_up:

Continue to review full report at Codecov.

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

On Julia nightly on Ubuntu, here's what the lcov.info file looks like for this PR:

Thanks a lot for tracking this down!

The fix is now visible in Codecov on master:


onKeyDown callback issue

Your Environment

flatpickr version used: 4.5.1
Browser name and version: Chrome 67 stable
OS and version: Any (eOS 4.1 Loki)

JSFiddle
https://jsfiddle.net/p5tc0mg3/1/
Current behavior
onKeyDown callback is being called on every key press from keyboard
Expected behavior
The onKeyDown callback should be called only when flatpickr is doing something internally, for example, close on escape or set value on enter.
Steps

Pass a onKeyDown callback in config options

onKeyDown: function(selectedDates, dateStr, instance) {
    console.log('onKeyDown: ', selectedDates);
  }

Open dev tools -> console
Press any key on keyboard
Notice that onKeyDown callback is being called

What happened to this issue? how was it resolved? I'm experiencing the same where if the onKeyDown event is configured, it will end up getting executed on every key press regardless of being in the date picker or not.

I also agree this should be reopened and fixed, this a huge problem and is not following good practice of separation of concerns. The fix should have been following what was written in this other issue #1387 and I also wrote the some concern in that issue

This should be reopen and should have been followed according to the original proposition, the current keyDown event is bound to window.body and this is crazy bad, that means that even if the element is not a Flatpickr element, it will still go through that onKeyDown handler, this is bad, bad and is not following the separation of concerns, this is considered leak... and it slows down someone's Angular App using my lib (Flatpickr is a dependency of my lib Angular-Slickgrid) as shown in this post

bind(window.document.body, "keydown", onKeyDown);

I have created PR #2329 to fix this since current code is causing too much performance downgrade (the more Flatpickr input we create, the more time it will re-execute the onKeyDown listener which is a real killer in perf).


BUG: Navigating to the likes section music stops and changes

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
Navigating to the liked music sections pauses the ongoing played music. It should not change or pause the music instead keep playing the music
Record

[X] I agree to follow this project's Code of Conduct
[X] I have checked the existing issues
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

How are you gonna implement it ?

It can be done by keeping the music playing section static across pages like we implement sidebars and appbars.

@haseebzaki-07 go ahead

I’ve noticed that navigating to the liked music sections in the app currently causes the ongoing music to pause. Ideally, the music should continue playing uninterrupted while users browse their liked tracks.
I’m very interested in working on this issue and would like to contribute a fix. Could you please assign me to this task or provide guidance on how to get started? I’m eager to help improve the user experience and ensure seamless music playback.

Hey @saurabhsingh720 please review this pr


Need search count generated objects

Need generated service methods to return count(*) from search criteria

done in april 2023


Thrift endpoint in the next release?

From discussions with SnappyData, I learned there are plans for exposing the thrift endpoint. There is a WIP c++ client in the repository. What is the status / timeline of this?

While we still don't have a precise timeline we intend to get on this
project in the next few weeks. We will know the magnitude of work soon.
Lets us know if you would like to contribute also.

Jags
SnappyData blog http://www.snappydata.io/blog
Download binary, source https://github.com/SnappyDataInc/snappydata
On Wed, Feb 10, 2016 at 9:54 AM, K. S. Ernest (iFire) Lee <
<EMAIL_ADDRESS>wrote:

From discussions with SnappyData, I learned there are plans for exposing
the thrift endpoint. There is a WIP c++ client in the repository. What is
the status / timeline of this?
—
Reply to this email directly or view it on GitHub
https://github.com/SnappyDataInc/snappy-store/issues/20.

I can probably help test the endpoint via a client. Not familiar with thrift internals.
Feel free to release instructions and provide progress updates.

thanks, Ernest.

sumedh, he is evaluating the work that will be required here.

Jags
SnappyData blog http://www.snappydata.io/blog
Download binary, source https://github.com/SnappyDataInc/snappydata
On Wed, Feb 10, 2016 at 2:31 PM, K. S. Ernest (iFire) Lee <
<EMAIL_ADDRESS>wrote:

I can probably help test the endpoint via a client. Not familiar with
thrift internals.
Feel free to release instructions and provide progress updates.
—
Reply to this email directly or view it on GitHub
https://github.com/SnappyDataInc/snappy-store/issues/20#issuecomment-182608212
.

@sumwale

@fire: thrift driver itself is fairly tested, so one can get going on testing it as of now. Most of the work remaining is in the ODBC and JDBC drivers that have been built on top of this thrift driver. I will send snippets of thrift usage soon.

Great!

@sumwale @jramnara @fire has gotten into the thrift internals in GemXD and tried to connect and run into some issues with openConnection(). Please take a look at the following gist: https://gist.github.com/fire/b1c41c884e2fad80d90c

@fire See snappy-tools/README-thrift.md. A full java example is in snappy-tools/src/test/java/io/snappydata/app/TestThrift.java
There is an update to snappy-store to fix the openConnection() issue you have noted. Either update it separately (snappy/master branch) or when using submodules use "git spull" (which is an alias for "git pull && git submodule sync --recursive && git submodule update --init --recursive")

Reading the document, was wondering if Snappy uses TFramedTransport - Sends data in frames, where each frame is preceded by a length. This transport is required when using a non-blocking server?

Are your instructions correct?
-thrift-server-address seems to work, your instructions don't.

@fire: Snappy-store has its own hybrid non-blocking selector-based server impl that does not require TFramedTransport. Also a direct buffer based socket impl (GfxdTSocket) that avoids copying as far as possible. TFramedTransport also places a limitation of the max size of frame which was not desirable for a generic implementation (apart from the additional copy into the frame buffer).
You are correct about "-thrift-server-address" option. Will correct the README.

Plan is to have ODBC driver based off the thrift driver for the upcoming 0.5 release. So the thrift driver itself will become supported and can be accessed directly.

I wasn't able to start the locator using:
snappydata.<IP_ADDRESS>.xip.io  -client-bind-address=<IP_ADDRESS> -J-Duser.timezone=UTC -J-Djava.net.preferIPv4Stack=true -thrift-server-address=snappydata.<IP_ADDRESS>.xip.io -heap-size=1024m -thrift-server-port=1530
Is the configuration wrong?
This is on centos 7 and git sha 56ecf8e6b4acad07155f5b6aa5daf455909fdcb9.

I was able to access the thrift endpoint.


Custom Domains and HTTPS Enforcing

Hey Guys, I have a problem with SSL not being enforced on a custom domain only on the platformDomain, is there a way to makes sure that HTTPS is enforced on custom domains too?

@pixeleet did you provide a cert for the custom domain in question and attach it to that domain?

A cert is attached with deis certs:attach star-custom-domain sub.custom.domain

star-custom-domain | *.custom.domain   | *.custom.domain,custom.domain           | 4 Jul 2017 (in 1 year)    | BC:27[...]D9:60 | sub.custom.domain,another.custom.domain

I did replace the client's domain to custom.domain through the examples but this is the output I have from deis certs pasted above.


Error #11

What can this error mean?

Looks like the SQLite database got corrupted for some reason.

Is it possible to somehow collect it, that this did not happen?

It can happen for several different reasons, it's theoretically possible to fix it though if you don't want to go through the trouble then you can always replace it with a new database and your miners will then reappear.

Is it enough to delete a file to create a new database?

You can do it by removing the unamwebpanel.db files (including db-shm and db-wal) inside the db folder, and then just place a fresh unamwebpanel.db file there https://github.com/UnamSanctam/UnamWebPanel/releases and it should work.


No longer seeing the icon after craft 5.5?

Just me or am I no longer seeing the icon after craft 5.5?

@tibbis Thank you! Fixed in v3.0.2


Add MaxLifeTime option

Sets the maximum amount of time a worker(goroutine) may be reused, apply some jitter on it.

Change it to ResetInterval.


Trouble to get bytearray from database

I am wondering what I didn't get right (I query a database with id as a string and a Bytea as the value associated with the id
// correctly filled but for obvious reasons I removed the values
Map credentials = {'PSQL_ADDRESS' : '',
    'PSQL_PORT' : ,
    'PSQL_USERNAME' : ''
    'PSQL_PASSWORD' : ''
    'PSQL_DBNAME' : ''
  };

Future<Uint8List> GetPdfFromPsqlDB(final String id) async {
    print('query bytes');

    var connection = new PostgreSQLConnection(
        credentials['PSQL_ADDRESS'], credentials['PSQL_PORT'],
        credentials['PSQL_DBNAME'], username: credentials['PSQL_USERNAME'],
        password: credentials['PSQL_PASSWORD']);
    await connection.open();

    var sqlQuery = "SELECT * FROM pdfs WHERE id = @id";
    List<List<dynamic>> results = await connection.query(sqlQuery, substitutionValues: {
        "id" : id
    });
    print(results[0][1]);
    return results[0][1];
}

results[0][1] is a unique result with bytearray value.
This function is not working and I did not figure out why. Are Uint8List and ByteA compatible?
Is it because id is a String and not an int ?
Any help strongly appreciated!!

What's the SQL type of pdfs.id?
What's the exception you are getting?

pdfs.id is of type varchar(32)
I do not get any exception, would you mind providing a code snippet with my code to get the Exception?

I use
GetPdfFromPsqlDB(id).catchError((e) {
      print("Got error: ${e.error}");

but nothing is displayed

I do not get any exception

In that case what's the issue? You don't get any result back?

no there is definitely some error because the print statement that follow my query is not executed

Just to test the connection is open, execute the following statement right after open:
final rs = await connection.query("SELECT 1");
print('got: $rs');

also add a small, 5-seconds timeout to the query, just in case...

Ok thank you very much, I was able to fix it thanks to your hints (was calling the wrong db_name and using encode(pdf, 'hex') while data was already in bytes)


Add PHP-CRUD-API

I would love to see my project added. Thank you.

LGTM

Thank you very much for the PR!


[WIP] Add a few includesRepository.close()s to AssociationsFeature do not merge

This might help with the memory "leak".

DO NOT merge this. Ran into a problem where the app could not start once we started using a snapshot with this code. Currently investigating.

Closing, as this didn't help with our memory leak either.


fix(Select): forward ref properly

Description
Select component does not forward ref to the NativeSelect and NonNativeSelect components although they handle that properly. Attempt to pass ref to the Select results in the following error:

How to test
Try to pass a ref to the Select component, something like:
import React, { useEffect, useRef } from "react";
import { Select } from "@toptal/picasso";

const TestComponent = () => {
  const ref = useRef<HTMLInputElement>(null);

  useEffect(() => {
    console.log(ref.current);
  }, [ref]);

  return <Select options={[]} ref={ref} />;
};

Development checks

[x] Add changeset according to guidelines (if needed)
[x] Read CONTRIBUTING.md and Component API principles
n/a Annotate all props in component with documentation
n/a Create examples for component
[x] Ensure that deployed demo has expected results and good examples
[x] Ensure that all PR checks are green
[x] Ensure the changed/created components have not caused accessibility issues. How to use accessibility plugin in storybook.
[x] Self reviewed
Covered with tests

Breaking change

codemod is created and showcased in the changeset
test alpha package of Picasso in StaffPortal

PR commands

List of available commands:

@toptal-bot run all - Run whole pipeline
@toptal-bot run build - Check build
@toptal-bot run deploy:documentation - Deploy documentation
@toptal-bot run package:alpha-release - Release alpha version

PR Review Guidelines

When to approve? ✅
You are OK with merging this PR and

You have no extra requests.
You have optional requests.

Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌
You are not OK with merging this PR because

Something is broken after the changes.
Acceptance criteria is not reached.
Code is dirty.

When to comment (neither ✅ nor ❌)
You want your comments to be addressed before merging this PR in cases like:

There are leftovers like unnecessary logs, comments, etc.
You have an opinionated comment regarding the code that requires a discussion.
You have questions.

How to handle the comments?

An owner of a comment is the only one who can resolve it.
An owner of a comment must resolve it when it's addressed.
A PR owner must reply with ✅ when a comment is addressed.

@toptal-bot run package:alpha-release


helm does not reliably detect the completion of jobs/pods

Output of helm version:
on Linux:
version.BuildInfo{Version:"v3.4.0", GitCommit:"7090a89efc8a18f3d8178bf47d2462450349a004", GitTreeState:"clean", GoVersion:"go1.14.10"}

on macOS (install via brew):
version.BuildInfo{Version:"v3.4.0", GitCommit:"7090a89efc8a18f3d8178bf47d2462450349a004", GitTreeState:"dirty", GoVersion:"go1.15.3"}

(issue is platform independent)
Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T18:49:28Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.13-gke.401", GitCommit:"eb94c181eea5290e9da1238db02cfef263542f5f", GitTreeState:"clean", BuildDate:"2020-09-09T00:57:35Z", GoVersion:"go1.13.9b4", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.): GKE
We have various helm charts that are upgraded regularly as part of our CD pipeline and that use job/pod pre/post install hooks. Helm waits for these pods/jobs to complete but often does not seem to see them complete, causing the upgrade to time out. We've seen an increasing number of spurious timeouts ever since upgrading to k8s 1.16.x although I believe the issue was already there in 1.14.x and earlier.
Here's a typical example:
$ helm3 upgrade --install --wait --debug --timeout 15m --kube-context xxx foo <chart> --namespace=xxx -f values.yaml
history.go:53: [debug] getting history for release foo
show.go:173: [debug] Original chart version: ""
upgrade.go:121: [debug] preparing upgrade for foo
coalesce.go:199: warning: destination for peer_clusters is a table. Ignoring non-table value <nil>
upgrade.go:129: [debug] performing update for foo
upgrade.go:301: [debug] creating upgraded release for foo
client.go:255: [debug] Starting delete for "foo-init" Job
client.go:284: [debug] jobs.batch "foo-init" not found
client.go:109: [debug] creating 1 resource(s)
client.go:464: [debug] Watching for changes to Job foo-init with timeout of 15m0s
client.go:492: [debug] Add/Modify event for foo-init: ADDED
client.go:531: [debug] foo-init: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:492: [debug] Add/Modify event for foo-init: MODIFIED
client.go:531: [debug] foo-init: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
upgrade.go:360: [debug] warning: Upgrade "foo" failed: pre-upgrade hooks failed: timed out waiting for the condition
Error: UPGRADE FAILED: pre-upgrade hooks failed: timed out waiting for the condition
helm.go:81: [debug] pre-upgrade hooks failed: timed out waiting for the condition
UPGRADE FAILED
main.newUpgradeCmd.func2
	/private/tmp/helm-20201027-30538-ndhvcx/cmd/helm/upgrade.go:156
github.com/spf13/cobra.(*Command).execute
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950
github.com/spf13/cobra.(*Command).Execute
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main
	/private/tmp/helm-20201027-30538-ndhvcx/cmd/helm/helm.go:80
runtime.main
	/usr/local/Cellar/go/1.15.3/libexec/src/runtime/proc.go:204
runtime.goexit
	/usr/local/Cellar/go/1.15.3/libexec/src/runtime/asm_amd64.s:1374

So here the upgrade started this foo-init job, which allegedly timed out after 15 minutes. Yet the job completed in 3 seconds. Here's the output of kubectl --context=xxx -n xxx get po -w with timestamps added:
Nov 08 02:49:25,066 foo-init-xrf9j                               0/2     Pending     0          0s
Nov 08 02:49:25,086 foo-init-xrf9j                               0/2     Pending     0          0s
Nov 08 02:49:25,157 foo-init-xrf9j                               0/2     Init:0/1    0          0s
Nov 08 02:49:26,069 foo-init-xrf9j                               0/2     Init:0/1    0          1s
Nov 08 02:49:27,026 foo-init-xrf9j                               0/2     PodInitializing   0          1s
Nov 08 02:49:27,978 foo-init-xrf9j                               1/2     Running           0          2s
Nov 08 02:49:29,010 foo-init-xrf9j                               0/2     Completed         0          3s

We have seen so many cases of this, and the issue is to easily reproduced now with k8s 1.16 that I am convinced there is a bug in Helm. We even hacked the code in pkg/kube/client.go (see aristanetworks/helm@bc4fa156cf1df9ad617aefff0ac05e283639e7af) to poll the k8s apiserver instead of using a watch, and this made the problem reliably go away. You'll see that our hack only kicks in when if kind == "Job" and we recently added a post upgrade hook in one of our charts that's a Pod instead, and boom the problem is back reliably. So I can create a fork of the release 3.4 branch and port our patch over there and change our hack to kick in regardless of whether kind is Job or Pod, but we may as well just figure out what the bug is and fix it once and for all.

Just wanted to add that the issue isn't specific to helm3, we had it with helm2 as well. With helm2 we could pass --debug -v 9 and get the super verbose logs from the k8s client but I don't know how to get those with helm3. The logs would show typically a watch firing upon completion of the job, just like in the output above helm3 logs Add/Modify event for foo-init: MODIFIED when the first pod in the job completes (happens simultaneously with to the line 1/2     Running from the kubectl pod watch output) but it doesn't react when the job completes (at least not reliably, sometimes it does work, but more often than not it doesn't).

Is this the same issue as #5948? There is a PR in for it at #8363.

ping

Closing with the assumption that this is a duplicate of #5948. Thanks for hunting that down @mattfarina.


pillager patrols dont seem to be affected by lowered despawn distance

blue sphere is my set despawn distance (100), red sphere is vanilla
from the little testing i did, it seems like they in fact despawn only when you are around 150 blocks away
server log: https://mclo.gs/Vvu1A6T

PatrolEntity.class :
public boolean canImmediatelyDespawn(double distanceSquared) {
        return !this.patrolling || distanceSquared > 16384.0D;
    }

(16384 = 128²)
This is Minecraft's intantional behaivor for mobs on duty. What did you expect?

BTW there already is a check on the SpawnGroup's value before this check, so you can increase the radius with the settings, but not decrease it below 128 as it is double-checked for some reason.

PatrolEntity.class :
public boolean canImmediatelyDespawn(double distanceSquared) {
        return !this.patrolling || distanceSquared > 16384.0D;
    }

(16384 = 128²) This is Minecraft's intantional behaivor for mobs on duty. What did you expect?

well, i expected the mod to reduce the despawn radius

To keep the simplicity, I will not fix vanilla Minecraft bugs


TimeGPT

I know this project is not about advertising non open source products. However it's worth to mention... at least in the issues:
Recently I've watched some videos (Time GPT Live Demo, TimeGPT Launch | Max Mergenthaler Introduces TimeGPT, ) about TimeGPT. Here is the Medium release post "TimeGPT: The Frist Foundation Model for Time Series Forecasting". The ecosystem is open source. The pre-trained model is not of course :) There is a Python SDK for connecting to the pre-trained TimeGPT model via Python called nixtla. The model can give you forecasting and anomaly detection predictions without the need for training a model yourself. The data (100B data points) which was used for training the model does not include weather data (domains included: finance, electricity, web traffic, retail, tourism, IoT, healthcare, transport, economics). I'm pretty sure this product will have some significant impact on the time series forecasting / anomaly detection domain.
The model could be re-trained with weather data (or whatever else could be of interest for sustain tech as well) and speed up sustain tech research significantly.

The contribution guidelines do not determine that the entire project is open source, but only larger parts of it. So from that perspective, that's fine. What is really missing is an open source application in the field of sustainability or the written goal for sustainability purposes.
Thanks for the links anyway. Very interesting technology. The whole area is developing so quickly that it often seems difficult to check all the possibilities.
Within this project we also have very good use cases for LLMs and NLP: #145


PWA

https://github.com/lnbits/lnbits/pull/2199

black in CI is failing
please run poetry run black . to fix the issue

Done.
All done! ✨ 🍰 ✨


Vulnerability roundup 100: mpd-0.22.6: 2 advisories [9.8]

search, files

[ ] CVE-2020-7465 CVSSv3=9.8 (nixos-unstable)
[ ] CVE-2020-7466 CVSSv3=7.5 (nixos-unstable)

Scanned versions: nixos-unstable: 1f77a4c8c74.
Cc @astsmtl
Cc @ehmry
Cc @fpletz
Cc @tobim

Those vulnerabilities affect the FreeBSD PPP daemon.


New feature: Support for Unique columns

It would be useful to be able to define one or more columns as unique so that saving such data would not be allowed by the DB.

+1


Benchmark update

PR to benchmark all pallets on reference machine.

/bench runtime pallet amm

/bench runtime pallet amm

/bench runtime pallet exchange

/bench runtime pallet exchange

/bench runtime pallet transaction_multi_payment

/bench runtime pallet transaction_multi_payment

Benchmarks done for all pallets on the reference machine as part of this PR.

Benchmarks done for all pallets on the reference machine as part of this PR.


No output and program stuck when calling fsays without arguments

Hello,
Maybe I am using the binary in a wrong way..
If I call it without any arguments, nothing happens and it appears to be stuck.
I've looked a bit at the code because I was interested and the program appears to be stuck in the following section
at line 106 of main.rs
  let reader = BufReader::new(stdin.lock()).bytes().fold(
      Ok(Vec::new()),
      |a: Result<Vec<u8>>, b| {
          if let Ok(mut a) = a {
              a.push(b.chain_err(|| INPUT)?);
              Ok(a)
          } else {
              a
          }
      },
  )?;

I'm nowhere nearly experienced yet to know hat is happening here. I've printed a in the closure and it appears to fill some vector with everything I type, but it does not react to something like a newline. Do you have any idea what might cause this?
Also, is there a way to build the binary from the root of the crate in some way? I need to navigate into fsays to run cargo run , which builds the project binary in the root, but I can' t run cargo build --bin fsays from the root

Hey @robamu maybe you know what I'm about to type, maybe you don't. This is more just some information about unix in general and why the binary is working correctly and probably just you using it incorrectly. Maybe you're not though so correct me if I'm wrong here!
In unix we have 3 specific files that every process uses stdin, stdout, and stderr. The last two are just your outputs in a terminal that are in rust println/eprintln respectively. They are just files at the end of the day that get data input to them. With stdin it's kind of the same. It's a "file" that can be printed to for the program to read from. You see this in commands where you'd use pipes in unix systems like so:
❯ echo "foo\nbar\nbar\nfoo" | sort
bar
bar
foo
foo

The echo command writes the data into the stdin of the sort program. Which is exactly is what happens here with fsays:
❯ echo "This is a test" | cargo run -p fsays
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/fsays`
 ________________
< This is a test >
 ----------------
        \
         \
            _~^~^~_
        \) /  o o  \ (/
          '_   -   _'
          / '-----' \

So why does the above work and not what you did? I suspect it's because you're not actually sending an EOF (end of file) character over stdin:
❯ cargo run -p fsays
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/fsays`
testing one two three
 _______________________
< testing one two three >
 -----------------------
        \
         \
            _~^~^~_
        \) /  o o  \ (/
          '_   -   _'
          / '-----' \

This is ctrl-d on unix of ctrl-z on windows. So what's happening here is that your program is taking input, but is waiting for all of it to be done before printing out. It would be bad if it printed out before it had everything! When you pipe a command into another in unix this will send the EOF to tell the program to close the handle to stdin. So our stdin reader here is thinking "There's still more data so just keep reading until I get the signal otherwise". The program is working as is expected, but if you're unfamiliar with how unix systems or cli tools work with stdin in general it's really confusing and weird. Frankly I wish we had a better interface for command line programs rather than something cooked up in Bell Labs in the 70s but here we are 🤷🏻♂
Hopefully this answers your question! If not let me know and I can expand more on it here. I'll keep the issue open until you're satisfied with an answer and understand what's going on. 😄
If you want to run the binary you'll need to use cargo build --package fsays or the shorthand cargo build -p fsays since the binary is part of the workspace and not an individual bin file. You can find the relevant documentation on workspaces here. The reason this is the case is due to https://github.com/mgattozzi/ferris-says/issues/19 which also links the relevant commits that changed this behavior if you're curious as using cargo build --bin fsays was the original behavior.

Thanks for the excellent explanation, definitely learned a few things, and cowsay actually behaves exactly the same :+1:
You can close this.


Public JS API Improvements

Prism currently depends on Graphite, which is public only because it has to be. We'd like to make that private again, and free Prism from its Graphite reliance.
Background
There was interest in removing the loader, but now that we are about to release v3.0 we cannot just rip it out. Let’s add an other way to do things, which supports passing in an array of http-spec objects, and keep the loader in place as a convenience method.
We can deprecate it later and remove, but we do not need to make decisions about that now.
This is a great chance for us to make a new and improved createInstance function in the core factory. Our instance has a whole lot of options, and if anyone has ideas on how to make it a little nicer for actual end users, now would be the time. Maybe we can seek inspiration from other mocking tools, or other popular TypeScript pacakges.
Details

prism reads the target openapi file itself
prism calls @stoplight/json or @stoplight/yaml parse to parse file contents
prism passes parsed content into @stoplight/json-ref-resolver to create a resolved version
prism passes that resolved version into @stoplight/http-spec transformOperations func to get a list of IHttpOperation objects

Note: as part of the improvement, make sure to display a nice error message in case the target file or URL fails the fetching operation.

Comment on the implementation details @XVincentX . If we're removing the whole loading logic from Graphite we should wrap it up nicely in a lib so that UI utils like Request Maker don't have to repeat the same code.

Removing Graphite was only one aspect of this, we were going to improve the JS API in general, not just remove Graphite.

Ok, but in that case the issue is lacking the details.

I'll start a new issue with specific implementation ideas. Leaving it open ended didn't work out.


Implement support to upload product CSV to be added in the count

What is the motivation for adding/enhancing this feature?

What are the acceptance criteria?

[ ] ...

Can you complete this feature request by yourself?

[ ] YES
[ ] NO

Additional information

Verified the changes in DEV environment of App version INVENTORY-COUNT-2.0-E3C3701 and they are working fine.
Hence, closing this ticket.


Clarity Icons - FAQ

Request is for a FAQ section of Clarity Icons
Current questions:
[ ] Why not use an icon font?
[ ] Info on the MIT license
[ ] Do I need the polyfills?
[ ] Does this only work with Angular?

Items 3 and 4 will be clearer with the @clr/core getting started documentation.
Item 2 (re: MIT license) is self-explanatory but we should make it a point in a future Icons' blogpost to clarify how these icons can be used. Hint: It's an MIT license so anything goes.
Item 1 is already described in a medium blogpost. Maybe our work with #4005 can do a better job of bubbling up that content through the website?
Closing this otherwise because it is stale and doesn't offer much value considering the separate "site" for Icons is going away.


Check secondary master unsupported journal type EMBEDDED

What changes are proposed in this pull request?
If secondary master sets journal type EMBEDDED. First check journal type.
Why are the changes needed?
If secondary master sets journal type EMBEDDED. The secondary master can start. But secondary master unsupported journal type EMBEDDED.
Does this PR introduce any user facing changes?
None

Codecov Report

Merging #14099 (01e49da) into master (4a5801f) will decrease coverage by 25.91%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master   #14099       +/-   ##
=============================================
- Coverage     43.28%   17.36%   -25.92%
+ Complexity     9210     2699     -6511
=============================================
  Files          1425     1426        +1
  Lines         82512    82521        +9
  Branches       9983     9984        +1
=============================================
- Hits          35715    14333    -21382
- Misses        43832    66930    +23098
+ Partials       2965     1258     -1707

Impacted Files
Coverage Δ

.../main/java/alluxio/exception/ExceptionMessage.java
0.00% <0.00%> (-99.41%)
:arrow_down:

...xio/exception/UnsupportedJournalTypeException.java
0.00% <0.00%> (ø)

...in/java/alluxio/master/AlluxioSecondaryMaster.java
0.00% <0.00%> (ø)

...mon/src/main/java/alluxio/shell/CommandReturn.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...mon/src/main/java/alluxio/util/ExceptionUtils.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...n/src/main/java/alluxio/wire/AlluxioProxyInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../src/main/java/alluxio/wire/AlluxioMasterInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...src/main/java/alluxio/job/meta/JobIdGenerator.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...n/src/main/java/alluxio/stress/BaseParameters.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...src/main/java/alluxio/client/UnderStorageType.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 675 more

Continue to review full report at Codecov.

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

@ljl1988com Just curious are you using secondary master in your company? What scenario you are using in your case? We are thinking about deprecate the secondary master and remove it in the future.

@maobaolong I don't use secondary master. I find this issue in shell and doc. If alluxio will deprecate the secondary master.I will close this pr.

@jiacheliu3 Could you please help to check if we can deprecate the secondary master?


link failure

I am trying to add the crate (pcap = "1.2.0") to my project in windows 11 platform with rust 1.76.0 installed. While building I am getting the following link error:
LINK : fatal error LNK1181: cannot open input file 'wpcap.lib'

Do you have Npcap installed as per the instructions here: https://github.com/rust-pcap/pcap#windows?

Npcap is installed, sdk extracted and path to the extraction is also added to the user's path environment variable. I could echo the path on the  command line. But while compiling and linking with the crate , the link error remains.

Only one option is checked as above, do we need to check more ? which one ?

@sajis997 The guide says to add the path to the LIB variable, not to PATH...
However, I see the same linker error when trying to build my project on Windows. My LIB variable is set up as follows:

if you use windows variable environment you need to restart your shell window. if you start going crazy, you can try copy all lib file directly in your project root maybe it will work.

I found out how to set the ENV variables in a build script, seems simpler... I'm still unsure though about what the difference between the LIB and the LIBPCAP_LIBDIR variables is. They're both mentioned in the readme. Do they both point to the same location?

LIB is a Windows environment variable. LIBPCAP_LIBDIR is an environment variable specific to this crate. If you have LIB set correctly, you should not need LIBPCAP_LIBDIR.
As this is not a bug in the crate, but a build issue that appears resolved, I am closing the issue.
If this is still an issue for you, please re-open, but be aware that I do not own a Windows machine so I cannot help you.


updated README example to check for the DOM/Window for universal apps

My use-case for your awesome renderer is in an isomorphic / universal app, and I have a feeling others will have the same needs.
Of course, if you're creating a universal app then you should be able to handle this kind of checking yourself. However, in the case of libraries such as GatsbyJS, which are making universal apps much more accessible, your example might be the first one a user encounters that requires checking that 'window' is defined.
I can confirm my edits work on a GatsbyJS instance hosted with Netlify.

I had a thought on why I haven't merged this, it's because it'd be adding another dependency for using an example and it feels like an edge case, closing it to be realistic instead of coming back every time and thinking "... i'll take another look later"


defects4J export -p cp.test returns a library that does not exist

defects4J export -p cp.test command returns the following classpath when executed for the Math-70 bug.
/home/ab/math-70/target/classes:/home/ab/math-70/target/test-classes:/home/ab/defects4j/framework/projects/lib/junit-4.11.jar:/home/ab/math-70/lib/junit-4.4.jar
*math-70 is the directory where the Math-70 bug is checked out.
However, the /home/ab/math-70/lib/junit-4.4.jar library does not exist.
Also, I can see this is listed as a dependency in the pom.xml as following.
<dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.4</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

Thanks for reporting this, @anjiperera!
We will fix the exported classpath. As a workaround, it is safe to assume that the default version of junit (4.11) is sufficient to reproduce the bugs.


Cannot read properties of undefined (reading 'disable_scroll_handling')

Describe the bug
When I use afterNavigate, beforeNavigate or goto in a +page while using the adapter static and the chunking strategy of vite (splitVendorChunkPlugin) I get an error Uncaught TypeError: Cannot read properties of undefined (reading 'disable_scroll_handling') at runtime.
Note:
Possible related issue #4432 and #1485

Reproduction
git clone https://github.com/peterpeterparker/my-app-yolo
cd my-app-yolo
npm ci
npm run build
npx serve build
Logs
vendor-67141009.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'disable_scroll_handling')
    at vendor-67141009.js:1:35550
(anonymous) @ vendor-67141009.js:1
2vendor-67141009.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'disable_scroll_handling')
    at vendor-67141009.js:1:35550

System Info
System:
    OS: macOS 12.6
    CPU: (8) arm64 Apple M2
    Memory: 762.14 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - /usr/local/bin/node
    npm: 8.19.2 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 106.0.5249.119
    Firefox: 106.0.2
    Safari: 16.0
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.84
    @sveltejs/adapter-static: ^1.0.0-next.46 => 1.0.0-next.46
    @sveltejs/kit: next => 1.0.0-next.525
    svelte: ^3.44.0 => 3.52.0
    vite: ^3.1.0 => 3.1.8

Severity
serious, but I can work around it
Additional Information
Workarounds:

load goto with const {goto} = await import('$app/navigation')

no direct workaround to use afterNavigate. instead I used a custom store in which I track which pages where visited

I don't know if it's possible to use this chunking strategy with SvelteKit. All the $app/X imports are tightly connected to the running app - for example the route manifest. I don't know how the chunking strategy works exactly, but if it just moves everything within @sveltejs/kit into one vendor chunk, that won't work.

I also encountered this problem when using rollupOptions.output.manualChunks
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'disable_scroll_handling')
    at vendor.c321e0ef.js:3:9569

Experiencing this too; it crashes the entire webpage. Refreshing fixes it. I don't want to ship code to my users that crashes the first time they load the page though.

TypeError: Cannot read properties of undefined (reading 'disable_scroll_handling')
    at navigation.js?v=9f0f29a7:14:11
handleError @ app.js:28
handle_error @ client.js?v=7a176f0d:1339
_hydrate @ client.js?v=7a176f0d:1789
await in _hydrate (async)
start @ start.js:22
(anonymous) @ stopwatch:3076
Promise.then (async)
(anonymous) @ stopwatch:3075
navigation.js?v=9f0f29a7:14 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'disable_scroll_handling')
    at navigation.js?v=9f0f29a7:14:11
(anonymous) @ navigation.js?v=9f0f29a7:14
navigation.js?v=9f0f29a7:14 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'disable_scroll_handling')
    at navigation.js?v=9f0f29a7:14:11

I'm also experiencing the "disable_scroll_handling" issue

Using: "@sveltejs/kit": "^1.15.5"

fixed by #9808


minSdkVersion cannot be smaller than version 24

Despite #21, the error still triggers with 2.0.0.
Caused by: java.lang.RuntimeException: Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library [com.kmpalette:kmpalette-core-android-debug:2.0.0]

I will be releasing 2.0.1 shortly, it should fix this 👍, thanks for pointing it out.

Fixed in 2.0.1


Crash on iOS 12.5.4 (libswift_Concurrency.dylib (which was built for iOS 13.0)) with ver. 3.2.0

I still have an error on version 3.2.0 of the framework. Here is what is output to the console, I will be glad for any help
dyld: Symbol not found: ___chkstk_darwin
Referenced from: /private/var/containers/Bundle/Application/UUID/AppName.app/Frameworks/libswift_Concurrency.dylib (which was built for iOS 13.0)
Expected in: /usr/lib/libSystem.B.dylib
in /private/var/containers/Bundle/Application/UUID/AppName.app/Frameworks/libswift_Concurrency.dylib
(lldb)

Hi @Medef! Parchment is not using any of the Swift concurrency features, so this seems like an issue specific to your app.


Add CodeQL security scanning

Hi, I'm a PM on the GitHub security team. This repository is eligible to try the new GitHub Advanced Security code scanning beta.
Code scanning runs a static analysis tool called CodeQL which scans your code at build time to find any potential security issues. We've tuned the set of queries to be only the most severe, most precise issues. We'll show alerts in the security tab, and we'll show alerts for any net new vulnerabilities on pull requests as well. We've tried to make this super developer friendly, but we'd love your feedback as we work through the beta.
If you're interested in trying it out, you can merge this pull request to set up the Actions workflow.

This change is ready for review. The build is working in my fork, and it didn't flag any security issues. If you're happy with it, you can merge to add the analysis going forward.


Add-IntuneWin32AppAssignmentGroup : Parameter set cannot be resolved using the specified named parameters.

Hello,
I'm currently running into the following issue trying to assign an App Assignment to a AzureAD Group:

These are the Parameters I am using:
Add-IntuneWin32AppAssignmentGroup -Id $IntuneWin32AppID -groupId $AzureADGroupID -Intent "available" -Verbose
These are the things I checked:

I checked both the App ID (using Get-IntuneWin32App) as well as the Azure AD Group ID.
I tried it using both PowerShell 5 and the latest version of PowerShell 7
I checked the other Cmdlets, such as Add-IntuneWin32App; they work just fine.
I checked that I'm using the latest version 1.3.3

I would greatly appreciate any help!
Best Regards,
Nico

Hello,
A parameter is missing.
You need to use this with -Include or -Exclude:
Add-IntuneWin32AppAssignmentGroup **-Include** -Id $IntuneWin32AppID -groupId $AzureADGroupID -Intent "available" -Verbose
Best regards
Steven

`[parameter(Mandatory = $true, ParameterSetName = "GroupInclude", HelpMessage = "Specify the Group Mode of the assignment to be Include for the Win32 app.")]
[switch]$Include,
    [parameter(Mandatory = $true, ParameterSetName = "GroupExclude", HelpMessage = "Specify the Group Mode of the assignment to be Exclude for the Win32 app..")]
    [switch]$Exclude,`

Include & Exclude are switch parameters, defined in separate parameter sets and will control what other parameters per set can be used. It's recommended to always specify the switch parameters in the beginning of the command, as it helps build the rest of the intended parameters.


datediff -> DATE_DIFF

Seeing an issue where for some reason translation of date diff isn't quite correct. Giving the trino error: USER_ERROR line 6:76: Column 'day' cannot be resolved
Postgres/Spark input:
WITH date_range AS (  SELECT date(min(block_time)) + interval '1' day * seq AS date  FROM ethereum.logs,  UNNEST(sequence(0, datediff(day, min(block_time), max(block_time)))) AS t(seq)  WHERE contract_address = 0x81f8f0bb1cB2A06649E51913A151F0E7Ef6FA321 ), daily_transactions AS (  SELECT date(block_time) AS date, count(*) AS num_transactions  FROM ethereum.logs  WHERE contract_address = 0x81f8f0bb1cB2A06649E51913A151F0E7Ef6FA321  GROUP BY date(block_time) ) SELECT dr.date, COALESCE(dt.num_transactions, 0) AS num_transactions FROM date_range dr LEFT JOIN daily_transactions dt ON dr.date = dt.date ORDER BY dr.date;
Trino:
/* Success! If you're still running into issues, check out https://dune.com/docs/query/syntax-differences/ or reach out in the #dune-sql Discord channel. */

WITH date_range AS (  SELECT  DATE(MIN(block_time)) + INTERVAL '1' day * seq AS date  FROM ethereum.logs, UNNEST(SEQUENCE(0, DATE_DIFF('day', MIN(block_time), day)) /* WARNING: Check out the docs for example of time series generation: https://dune.com/docs/query/syntax-differences/ */) AS t(seq)  WHERE  contract_address = 0x81f8f0bb1cb2a06649e51913a151f0e7ef6fa321 ), daily_transactions AS (  SELECT  DATE(block_time) AS date,  COUNT(*) AS num_transactions  FROM ethereum.logs  WHERE  contract_address = 0x81f8f0bb1cb2a06649e51913a151f0e7ef6fa321  GROUP BY  DATE(block_time) ) SELECT  dr.date,  COALESCE(dt.num_transactions, 0) AS num_transactions FROM date_range AS dr LEFT JOIN daily_transactions AS dt  ON dr.date = dt.date ORDER BY  dr.date

Great, thanks! It seems like it's swapping the order of the arguments and not quoting them correctly:
>>> sqlglot.transpile("select datediff(unit, from_, to)", read="postgres", write="trino")
["SELECT DATE_DIFF('to', from_, unit)"]

Hey 👋
I don't think that Postgres SQL supports the DATEDIFF function. Maybe this is a UDF? Also, Spark's documentation indicates that its DATEDIFF function accepts two arguments.
Are these queries valid, i.e. can they run on the corresponding engines? Happy to help if this is a SQLGlot issue!

Interestingly, spark-sql seems to actually support the unit argument:
spark-sql> SELECT DATEDIFF(day, '2020-01-01', '2020-01-05');
timestampdiff(day, 2020-01-01, 2020-01-05)
4
Time taken: 0.206 seconds, Fetched 1 row(s)
spark-sql> SELECT DATEDIFF(day, '2020-01-01', '2020-02-05');
timestampdiff(day, 2020-01-01, 2020-02-05)
35
Time taken: 0.168 seconds, Fetched 1 row(s)
spark-sql> SELECT DATEDIFF(month, '2020-01-01', '2020-02-05');
timestampdiff(month, 2020-01-01, 2020-02-05)
1
Time taken: 0.163 seconds, Fetched 1 row(s)

Ahh, it very well might be that it's a UDF! We have a fair amount of UDFs on the Postgres clusters. Will check. Thanks!

Cool, since it runs on spark-sql I think I'll just add it in Hive so that they're all covered. Thanks for checking!


Add logos/credit for funding from NPS/NCSHPO to site footer

We identify NPS and NCSHPO as funders on the About page but it would be better to also include their logos in the site footer.
In the interest of transparency and openness, I'd also like add information about the budget of the project and sources for that funding.

Great ideas! I can help track down logos (vectors hopefully!).

NPS Arrowhead Artwork options

Not much for NCSHPO that I have found. Maybe we contact them directly for a logo file.


Add CRUD persistence (SQL DB)

Elastic search seems apt to perform search on soulpatch- and soul-files after a bit of reasearch, but I barely have any experience with it, and because of that, usage of more familiar DBs like mariadb or postgreSQL and usage of google search should speed up development. Searching only in the content of public pages is good enough for now, but open for suggestions.

DRAFT
for the first prototype / milestone I'm thinking of storing

Identifier
Name or Title
Description
soul filename & content
soulpatch filename & content
upload date
author (since there is no userhandling yet, just some placeholder with arbitrary content)
no. servings
is visible / public

For first milestone:

no versioning (override/update with same identifier)
also no comment / social section for first milestone
no additional files


Suggestions: provide a detailed description about clonotype definition model

📚 Documentation

Hi, I think it is necessary to have a doc for models of clonotype definitions, like the one in scirpy.

Hi @YiweiNiu , amazing suggestion, thank you a lot!

It will be implemented in the next version of Immunarch. More details are here: https://b-t.cr/t/immunarch-will-significantly-evolve-but-it-will-break-things-and-we-need-your-help/1123


jwdid

I am trying for post estimation after jwdid but it shows varlist required such as for estate event even though i run the example given in stata document.

Can you update jwdid
On Wed, Dec 4, 2024 at 1:41 PM Sahil Verma @.***> wrote:

I am trying for post estimation after jwdid but it shows varlist required
such as for estate event even though i run the example given in stata
document.
—
Reply to this email directly, view it on GitHub
https://github.com/friosavila/stpackages/issues/17, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASZKKFR2CES4VZWNTGDOLRL2D5EFBAVCNFSM6AAAAABTAZ5476VHI2DSMVQWIX3LMV43ASLTON2WKOZSG4YTQNJTGEZDANQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi, thank you for your reply. I am using this -
which jwdid
C:\Users\LENOVO\ado\plus\jwdid.ado
*!v2.11 Bug with trtvar

ok so two other things to try

Restart your stata session (assuming you have not done so)
update stata itself
update all

then try,
jwdid, example
and see if it works.
Lastly, if it doesn't, create a logfile
log using test, text replace
set tracedepth 3
set trace on
jwdid, example
set trace off
log close
F
On Thu, Dec 5, 2024 at 1:58 AM Sahil Verma @.***> wrote:

Hi, thank you for your reply. I am using this -
which jwdid
C:\Users\LENOVO\ado\plus\jwdid.ado
*!v2.11 Bug with trtvar
—
Reply to this email directly, view it on GitHub
https://github.com/friosavila/stpackages/issues/17#issuecomment-2519395939,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASZKKFSYBHUJ5FE6YJBT6M32D72PRAVCNFSM6AAAAABTAZ5476VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJZGM4TKOJTHE
.
You are receiving this because you commented.Message ID:
@.***>


Ping and Pong samples not working with IPC

Running the following on the same box as a C MD <aeron version 1.21.2-SNAPSHOT built Aug 16 2019 13:52:20> :
./Pong -c aeron:ipc -C aeron:ipc
Subscribing Ping at aeron:ipc on Stream ID 10
Publishing Pong at aeron:ipc on Stream ID 10
Subscription: aeron:ipc 1:10
Publication: aeron:ipc 2:10:222100451
Available image correlationId=2 sessionId=222100451 at position=0 from aeron:ipc

./Ping -m 1000000 -c aeron:ipc -C aeron:ipc
Subscribing Pong at aeron:ipc on Stream ID 10
Publishing Ping at aeron:ipc on Stream ID 10
Subscription: aeron:ipc 4:10
Available image correlationId=2 sessionId=222100451 at position=0 from aeron:ipc
Publication: aeron:ipc 5:10:222100451
Warming up the media driver with 100,000 messages of length 32
Warmed up the media driver in 87893892 [ns]
Pinging 1,000,000 messages of length 32 bytes

But no data...
14:43:22 - Aeron Stat (CnC v0.0.16), pid 75530, client liveness 5,000,000,000 ns
===========================
  0:                    0 - Bytes sent
  1:                    0 - Bytes received
  2:                    0 - Failed offers to ReceiverProxy
  3:                    0 - Failed offers to SenderProxy
  4:                    0 - Failed offers to DriverConductorProxy
  5:                    0 - NAKs sent
  6:                    0 - NAKs received
  7:                    0 - Status Messages sent
  8:                    0 - Status Messages received
  9:                    0 - Heartbeats sent
 10:                    0 - Heartbeats received
 11:                    0 - Retransmits sent
 12:                    0 - Flow control under runs
 13:                    0 - Flow control over runs
 14:                    0 - Invalid packets
 15:                    0 - Errors
 16:                    0 - Short sends
 17:                    0 - Failed attempt to free log buffers
 18:                    0 - Sender flow control limits, i.e. back-pressure events
 19:                    0 - Unblocked Publications
 20:                    0 - Unblocked Control Commands
 21:                    0 - Possible TTL Asymmetry
 22:                    0 - ControllableIdleStrategy status
 23:                    0 - Loss gap fills
 24:                    0 - Client liveness timeouts
 25:    1,566,308,602,893 - client-heartbeat: 0
 26:          205,532,032 - pub-pos (sampled): 2 222100451 10 aeron:ipc
 27:          205,532,032 - pub-lmt: 2 222100451 10 aeron:ipc
 28:          199,131,648 - sub-pos: 1 222100451 10 aeron:ipc @0
 29:    1,566,308,602,495 - client-heartbeat: 3
 30:          175,057,920 - sub-pos: 4 222100451 10 aeron:ipc @0

Running without the -c and -C options works correctly...
14:46:15 - Aeron Stat (CnC v0.0.16), pid 75885, client liveness 5,000,000,000 ns
===========================
  0:          140,810,624 - Bytes sent
  1:          140,810,784 - Bytes received
  2:                    0 - Failed offers to ReceiverProxy
  3:                    0 - Failed offers to SenderProxy
  4:                    0 - Failed offers to DriverConductorProxy
  5:                    0 - NAKs sent
  6:                    0 - NAKs received
  7:                4,456 - Status Messages sent
  8:                4,456 - Status Messages received
  9:                  332 - Heartbeats sent
 10:                  332 - Heartbeats received
 11:                    0 - Retransmits sent
 12:                    0 - Flow control under runs
 13:                    0 - Flow control over runs
 14:                    0 - Invalid packets
 15:                    0 - Errors
 16:                    0 - Short sends
 17:                    0 - Failed attempt to free log buffers
 18:                    0 - Sender flow control limits, i.e. back-pressure events
 19:                    0 - Unblocked Publications
 20:                    0 - Unblocked Control Commands
 21:                    0 - Possible TTL Asymmetry
 22:                    0 - ControllableIdleStrategy status
 23:                    0 - Loss gap fills
 24:                    0 - Client liveness timeouts
 25:    1,566,308,775,513 - client-heartbeat: 0
 26:                    1 - rcv-channel: aeron:udp?endpoint=localhost:40123
 27:                    1 - snd-channel: aeron:udp?endpoint=localhost:40124
 28:           70,400,000 - pub-pos (sampled): 2 -1606951786 10 aeron:udp?endpoint=localhost:40124
 29:           78,788,608 - pub-lmt: 2 -1606951786 10 aeron:udp?endpoint=localhost:40124
 30:           70,400,000 - snd-pos: 2 -1606951786 10 aeron:udp?endpoint=localhost:40124
 31:           70,531,072 - snd-lmt: 2 -1606951786 10 aeron:udp?endpoint=localhost:40124
 32:                    0 - snd-bpe: 2 -1606951786 10 aeron:udp?endpoint=localhost:40124
 33:    1,566,308,775,502 - client-heartbeat: 3
 34:                    1 - rcv-channel: aeron:udp?endpoint=localhost:40124
 35:                    1 - snd-channel: aeron:udp?endpoint=localhost:40123
 36:           70,400,000 - pub-pos (sampled): 5 -1606951785 10 aeron:udp?endpoint=localhost:40123
 37:           78,788,608 - pub-lmt: 5 -1606951785 10 aeron:udp?endpoint=localhost:40123
 38:           70,400,000 - snd-pos: 5 -1606951785 10 aeron:udp?endpoint=localhost:40123
 39:           70,531,072 - snd-lmt: 5 -1606951785 10 aeron:udp?endpoint=localhost:40123
 40:                    0 - snd-bpe: 5 -1606951785 10 aeron:udp?endpoint=localhost:40123
 41:           70,400,000 - rcv-hwm: 6 -1606951785 10 aeron:udp?endpoint=localhost:40123
 42:           70,400,000 - rcv-pos: 6 -1606951785 10 aeron:udp?endpoint=localhost:40123
 43:           70,400,000 - sub-pos: 1 -1606951785 10 aeron:udp?endpoint=localhost:40123 @0
 44:           70,400,000 - rcv-hwm: 7 -1606951786 10 aeron:udp?endpoint=localhost:40124
 45:           70,400,000 - rcv-pos: 7 -1606951786 10 aeron:udp?endpoint=localhost:40124
 46:           70,400,000 - sub-pos: 4 -1606951786 10 aeron:udp?endpoint=localhost:40124 @0

For IPC, you will want Ping and Pong to use different streamIds for each direction.

I can confirm it works with different stream id for ping and pong.

Yes, It works now.  Latency is very impressive.

Ping pong is not ideal for benchmarking IPC. Better benchmarks can be found in https://github.com/real-logic/benchmarks.

Will review that.  Thanks.


Inference with unseen songs

Hi. Since the DiffSinger(PopCS) needs ground-truth f0 information at inference, is it possible to synthesize an unseen song (with phoneme labels, phoneme duration and notes provided) using the DIffSinger(PopCS) model?

E.g. how to inference the DIffSinger model (trainined with the PopCS dataset) with an opencpop song?

Why don't you use https://github.com/MoonInTheRiver/DiffSinger/blob/master/usr/configs/midi/readme.md ?
It includes the checkpoints trained on opencpop and it does not use gt f0.

No. What I mean is, the DiffSinger (PopCS version), cannot inference with unseen songs, right?

The songs in the test set of PopCS are the unseen (no overlap with training data) songs.

The songs in the test set of PopCS are the unseen (no overlap with training data) songs.

我的意思是，因为现在PopCS测试集里的歌和训练集是同一个说话人，所以inference的时候，提取的gt f0也是耦合了这个说话人的speaker信息的。目前来看，DiffSinger(PopCS)是不是只能用PopCS这个说话人唱过的歌来测试？（否则用别的人唱的歌的wav提的f0和PopCS说话人自身的基频不匹配）。举个例子，比如说如果想用PopCS的音色合成数据集外的《祝你生日快乐》，是不是无法做到？
@MoonInTheRiver 谢谢

Solved.

@Charlottecuc Em... 所以 inference 可以用不同说话人的样本吗？测试效果如何？

I just met this problem as well. I want to use the diffsinger model, trained on the PopCS, to generate a song given the lyrics information provided in the OpenCPoP. Could you please tell me how did you achieve that? Many thanks!!

any solution when  inferencing with unseen singer ? @lixucuhk @RayeRen @Opdoop @Charlottecuc @MoonInTheRiver


Implement Uint64

Refs: https://github.com/metarhia/common/issues/164

I'd suggest moving the test cases to separate files to de-clutter the test file itself. (possibly to test/fixtures/uint64/...), wdyt?

@lundibundi, all the other tests in this package are not separated, and I am not a fan of the idea of test data and test execution separation.

@lundibundi I would prefer to leave them in the same file, though I would prefer them to be moved out of the test function into global variables eg: testCasesForBinary and testCasesBinaryOnNumbers or testCases.binary and testCases.binaryOnNumbers. WDYT @lundibundi @belochub?
P.S.: we may even use a separate file for every test case and associated test.

+1 for both separate files and global variables.

Having class Uint64 and using it in code we will be limited by 64 bit and should rewrite everything in future. If we want to use OOP, to avoid mentioned limitation we need to wrap Uint64 and BigInt again into single abstraction, for example Id class. This class will have 2 implementation for all operations and if statement to check is BigInt available and select implementation.

But I'd prefer having API, not a class and have 2 versions of this API to check BigInt availability and export one of them on module load. So all code will work directly with Uint64 or BigInt with no wrappers.

I'd suggest avoiding using BigInt altogether. As we have discussed in the previous issue (what @aqrln suggested), because it is tuned to the operations we don't really need and we can instead speed up the operations we want (xor, and, or, inc etc).
Therefore we can just add a dummy class Id = Uint64 for now and then, later on, we can just replace this with class Id = Uint128 (while, obviously, providing interop between Uint64 and Uint128) or any other implementation.
Though to make it clear we might want to write an abstract class just for API (though it'll probably only support 'string' and 'number' as arguments because there is AFAIK no way to have interop of any-bit-number without depending on specific implementation without 'string').
Also, I'd write benchmarks for BigInt and Uint64 soon to see the difference now.
/cc @tshemsedinov @aqrln @belochub @nechaido

@tshemsedinov I'm strongly opposed to the idea of using Uint32Array[2] explicitly, I think we should wrap it in the Uint64 class.
I like the idea of using an abstract Id interface, that will have implementations based on Uint64, BigInt or even Uint128 (if our implementation turns out to be more efficient in our use cases).

@lundibundi

Therefore we can just add a dummy class Id = Uint64 for now and then, later on, we can just replace this with class Id = Uint128 (while, obviously, providing interop between Uint64 and Uint128) or any other implementation.

+1, but I don't think that we even need to support interoperability between Uint64 and Uint128. Once we update dependencies and restart a process, any id saved in a persistent storage would be restored as Uint128, that way in any point of time our process would operate either on Uint64 based Id or Uint128 based Id.
Although if we need a hot-reload support, we may need to support interop.

Ok, I agree to land this as is and make Id alias in globalstorage.

ping @lundibundi

@lundibundi updated, PTAL.

Well, LGTM but I'd want to finish the following threads

https://github.com/metarhia/common/pull/177#discussion_r214555018
https://github.com/metarhia/common/pull/177#discussion_r214554392
https://github.com/metarhia/common/pull/177#discussion_r214739083

(maybe @nechaido @aqrln @tshemsedinov may say something?)

Landed in https://github.com/metarhia/common/commit/0cf562d6dea197ecc3481f500ac7a0ed4f3d2771.