[Doc bug][updated TOC entry]

added link in toc

Acrolinx Scorecards
We do not currently enforce a minimum score for content merged to the default branch. This will change in the future.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml

link
:warning:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We do not currently enforce a minimum score for content merged to the default branch. This will change in the future.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
97
5
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We do not currently enforce a minimum score for content merged to the default branch. This will change in the future.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
97
5
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit 8cfdddf:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/TOC.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit aa1ec32:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/TOC.yml
:white_check_mark:Succeeded
View

msteams-platform/bots/calls-and-meetings/registering-calling-bot.md
:white_check_mark:Succeeded
View

msteams-platform/resources/create-messaging-extension-using-appstudio.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Acrolinx Scorecards
We do not currently enforce a minimum score for content merged to the default branch. This will change in the future.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml

link
:warning:

msteams-platform/bots/calls-and-meetings/registering-calling-bot.md
92
19
link
:white_check_mark:

msteams-platform/resources/create-messaging-extension-using-appstudio.md
82
41
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit 7fd9f94:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/TOC.yml
:white_check_mark:Succeeded
View

msteams-platform/bots/calls-and-meetings/debugging-local-testing-calling-meeting-bots.md
:white_check_mark:Succeeded
View

msteams-platform/bots/calls-and-meetings/registering-calling-bot.md
:white_check_mark:Succeeded
View

msteams-platform/resources/create-messaging-extension-using-appstudio.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Fix audio focus

Implement audio focus as per android docs:
https://developer.android.com/guide/topics/media-apps/audio-focus
https://medium.com/androiddevelopers/audio-focus-3-cdc09da9c122
AUDIOFOCUS_LOSS should abandon focus and not try resuming audio, this is done with AUDIOFOCUS_LOSS_TRANSIENT
This fixes at least:

Audio not being paused after focus being taken by some voip applications
Content resuming and pausing instantly sporadically (some race condition perhaps) when activity was resumed from background.
Same as above but when paused via play/pause button

The above 2 points where happening with this PR implemented: https://github.com/lbryio/lbry-react-native/pull/117
I can only assume that this may also fix the issue of audio continuing to run in the background even though the video was no longer active/playing, reported both on LBRY and ReactNative repos, but I failed to reproduce this issue at the time of testing this, although it did happen to me as well before.

@akinwale can you take a look when you get a moment? Is this where this PR needs to go?
@michaeltintiuc thanks so much for the work on this, once it's figured out/merged, can we show you some appreciation for your contribution?

@akinwale absolutely, it's something the broader community can benefit from!


[state_of_sparsity] How to get networks weights

Hi, I am trying to get weight values from the network. I am looking at get_sparsity and seem like tensor_name stays empty causing nnz to be 0.
I am using command line:
python checkpoint_sparsity.py --checkpoint /home/data/magnitude_pruning/model.ckpt-500000.index

Where /home/data/magnitude_pruning has extracted https://storage.googleapis.com/tsos/checkpoints/sparse_transformer/magnitude_pruning_0.5_100000_400000_10000_0.1_0.1.tar .
cc: @tgale96.

Okay seems like to v2, you need to pass "file prefix" of the checkpoint.
python checkpoint_sparsity.py --checkpoint /home/data/magnitude_pruning/model.ckpt-500000


compose_recipient: Add character limit in DM recipients box.

Previously, the DM recipients box lacked a character limit, allowing character overflow. This fix
addresses the issue by manually imposing a
character limit on both paste and character
keypress events.
Fixes zulip#27688.

Fixes:
Implemented a fix for issue https://github.com/zulip/zulip/issues/27688 by introducing a character cutoff mechanism at the maximum length of a name in Zulip and I changed the compose css file to correct the deformatting that occurred when there was a change in the size of the web page.

Screenshots and screen captures:
before:

after:

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

Thanks! Please note that there are open PRs for this issue.
As noted in the contributor guide:

What if there is already a pull request for the issue I want to work on? Start by reviewing the existing work. If you agree with the approach, you can use the existing pull request (PR) as a starting point for your contribution. If you think a different approach is needed, you can post a new PR, with a comment that clearly explains why you decided to start from scratch.


CLOUD-00000 added conf folder for dev settings

@akanto

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1649/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1650/

LGTM


Add transitioncancel to Most Wanted list for Chrome, Safari, Edge

Mozilla's bug is already on the list. Might as well be fair and ask the other browsers for it too:

https://bugs.chromium.org/p/chromium/issues/detail?id=642487
https://bugs.webkit.org/show_bug.cgi?id=161535

I would add an Edge UserVoice request, but I don't have any spare votes left there.
CC: @twbs/team for review

https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/15939898

@bardiharborow Thanks! Let me update the PR...

@bardiharborow Would you happen to have some other UserVoice points to spare for a few other features? 😃

@cvrebert sure! Let me know what you need.

@bardiharborow Sweet! Then could you please file an Edge UserVoice equivalent for https://bugzilla.mozilla.org/show_bug.cgi?id=854148 ? See also http://caniuse.com/#feat=css-nth-child-of for context.

@cvrebert https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/15944476 😄
Feel free to ping/email me with anything else. While I have your attention, I'm interested in contributing a bit more. I've been hanging around, creating the odd issue and PR, but I'd love to have a bit more guidance.

Good to merge @cvrebert?

@bardiharborow Thanks! Added the nth-child entry in eb18554b9ed8830534a87a2c71d3d57452137656, which should bring the Most Wanted features list to parity between the browsers.

@bardiharborow I would be much obliged if you could also file a UserVoice for http://caniuse.com/#feat=dom-manip-convenience (for context see also https://bugzilla.mozilla.org/show_bug.cgi?id=911477#c40 ).

@cvrebert https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/16036408

@bardiharborow Thanks, I've submitted https://github.com/Fyrd/caniuse/pull/2797 accordingly.

@cvrebert transitioncancel implemented in firefox and can be removed from the wall


Use Element UI ----> ReferenceError: window is not defined

@yyx990803
project base on hacknews
Use the eleme UI （element ui）,  add code on app.js
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import App from './App.vue'

Vue.use(ElementUI)

new Vue({
  el: '#app',
  render: h => h(App)
})

but something wrong with it
ReferenceError: window is not defined

It's the server side rending cause it?

I resolve it，thanks

How do you solve it? Easy to teach me about it

how?

@stchou It would be nice if you would tell what was wrong and how you solve it so that others facing the same issue could use your findings at least as a hint. Closing the issue without explaining how you solved the error is horrible ettiquette and against the spirit of open source. Community gave you Vue, give back!

@stchou 确实不厚道。。
webpack.base.config.js 中 配置css-loader
  {
            test: /\.css$/,
            loader: ["vue-style-loader", "css-loader"]
   },

app.js 中 加入

element ui就在项目中运行正常了


Update file list for c-ares 1.16.1

The file list of c-ares 1.15.0 is used for 1.16.1 since the following files are
the same:

modules/c-ares/1.16.1/patches/add_build_file.patch
modules/c-ares/1.15.0/patches/add_build_file.patch

And add_build_file.patch is adapted from
https://github.com/grpc/grpc/tree/master/third_party/cares. I have tried to find
c-ares version 1.16.1 in grpc project. A search of grpc project commit log shows
that the most relevant thing is commit bdb3f860649bb4c136ba36bad3d9363fccbd29fa
which mentions '-DgRPC_CARES_PROVIDER=package with c-ares 1.16.0 overrides'. My
guess is that grpc has upgraded c-ares from 1.15.0 to 1.17.2 directly.
I built c-ares 1.16.1 with buildconf on macOS. The resulted Makefile has
the following two file list:

CSOURCES: C++ source files.
HHEADERS: C++ header files.

A comparison of CSOURCES with cc_library srcs attribute shows that some source
files are missing. ares_getopt.c is unneeded ares_getopt is not include in
CSOURCES. It is included in SAMPLESOURCES. So this commit deletes it. This
commit also adds the missing C++ source files.
A comparison of HHEADERS with cc_library hdrs attribute shows that hdrs has
three extra files:

ares_config.h
config-win32.h
ares_getopt.h

ares_getopt.h will be deleted together with ares_getopt.c. Since I am not sure of
the reason why the other two files exist, they are kept untouched.
Fix #77

@yaojingguo Thanks for the fix, can you also update the integrity value of the patch in the source.json file?
You can calculate it by: shasum -b -a 256 add_build_file.patch | awk '{ print $1 }' | xxd -r -p | base64.
You can also try to add the patch file via the ./tools/add_module.py script, which will update automatically update the integrity value.

I have updated the integrity value for the patch in a new commit. But the pipeline shows the following error:
(14:54:20) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/67cd1afe391e0ded98895f4b9b86a0f5/external/c-ares.1.16.1/BUILD.bazel:171:1: syntax error at 'newline': expected ]
--
  | (14:54:20) ERROR: Skipping '@c-ares//:ares': no such target '@c-ares.1.16.1//:ares': target 'ares' not declared in package '' defined by /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/67cd1afe391e0ded98895f4b9b86a0f5/external/c-ares.1.16.1/BUILD.bazel
  | (14:54:20) WARNING: Target pattern parsing failed.
  | (14:54:20) ERROR: no such target '@c-ares.1.16.1//:ares': target 'ares' not declared in package '' defined by /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/67cd1afe391e0ded98895f4b9b86a0f5/external/c-ares.1.16.1/BUILD.bazel
  | (14:54:21) INFO: Elapsed time: 0.929s
  | (14:54:21) INFO: 0 processes.
  | (14:54:21) FAILED: Build did NOT complete successfully (1 packages loaded)
  | bazel build failed with exit code 1
  | 🚨 Error: The command exited with status 1

@meteorcloudy

I see, it's because the patch header no longer matches the line of content. @@ -0,0 +1,170 @@ has to be changed to @@ -0,0 +1,173 @@, also the integrity value needs to be recalculated. The ./tools/add_module.py can automatically generate a patch with a given BUILD file, you can also use that.

I see, it's because the patch header no longer matches the line of content. @@ -0,0 +1,170 @@ has to be changed to @@ -0,0 +1,173 @@, also the integrity value needs to be recalculated.

I have done it in the new commit. Please take another look.
@meteorcloudy


Ionic 2, beta 11, ngModel for 2 way data binding syntax

I've been using code like this all over my app:
<ion-input [(ngModel)]="home_URL" id="homeURL" type="text"></ion-input>
Yet after updating to beta11, all of the pages using ngModel are now causing errors.
I have narrowed it down to ngModel but cannot work out why it has suddenly stopped working and how to fix it.

Hello, thanks for opening an issue with us! Unfortunately i am unable to reproduce this issue at this time. Would you be able to make a repo with a minimal example of this issue? Thanks!

Hi,
I faced the same problem (having one ngModel causing errors) today and resolved the following way, but using model-driven form, not template driven.
Update packages
See Steps to Upgrade to Beta 11.
$ npm install --save --save-exact<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
See that now your app depends on<EMAIL_ADDRESS>no more on<EMAIL_ADDRESS>Application bootstrap
Inside app.ts:
import { disableDeprecatedForms, provideForms } from '@angular/forms';

//...

ionicBootstrap(MyApp, [
  provideForms(),
  disableDeprecatedForms(),
  // providers...
]);

Import new stuff
At the beginning of the component file import new stuff (only what you need),
import { REACTIVE_FORM_DIRECTIVES, FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';

and inject dependencies:
@Component({
  templateUrl : 'build/login.html',
  directives : [REACTIVE_FORM_DIRECTIVES]
})
export class LoginPageComponent {

  // FormGroup
  authForm: FormGroup;
  // FormControl
  emailControl: FormControl;

  constructor(fb: FormBuilder) {

    this.emailControl = new FormControl('', Validators.compose([
      Validators.required,
      // Other validators...
    ]));

    this.authForm = fb.group({
      email : this.emailControl
    });
  }

  login(): void {
    if(this.authForm.valid) {
      let emailValue = this.authForm.value.email;
      // login stuff...
    }
  }
}

Modify template
Modify the template with new control names:
<form [formGroup]="authForm" (ngSubmit)="login()">
  <ion-list>
    <ion-item>
      <ion-label stacked>Email</ion-label>
      <ion-input type="email" [formControl]="authForm.controls['email']" placeholder="Your e-mail"></ion-input>
    </ion-item>
  </ion-list>
  <button block [disabled]="!authForm.valid">Login</button>
</form>

Hope this could help you or addressing you the right way to deal with your issue. Pay attention to install Angular2 RC4 because RC5 introduces ReactiveFormsModule. 😫

Wow. That's a good effort, well done. I'm actually using ngModel independently of any forms but it's good to have this as an option that works.

I'm using ngModel alone too, just to change a boolean variable to toggle fields inside a form. The following code works (inside a form):
<ion-checkbox [(ngModel)]="myVar" [ngModelOptions]="{standalone: true}"></ion-checkbox>

For more info:  #https://github.com/angular/angular/issues/9230#issuecomment-228116474

I just came across a similar issue on upgrading to beta11.  If you check out the ionic conference app on github and look at the login page it is using ngmodel for the login form and has incorporated some syntax changes.
I just updated my form to remove a couple of old values and follow that example and everything was good again.

Hi - thanks to everyone for the feedback. I am using ngModel outside a form, i.e. there is no form on the page, just for simple 2 way data binding as indicated in the angular docs.
https://angular.io/docs/ts/latest/guide/template-syntax.html#!#binding-syntax
The example from the conference app is using ngModel inside a form so unfortunately is not my use case. The option of:
[ngModelOptions]="{standalone: true}
looked promising, and I suspect might work. I think what has happened in beta11 is that ngModel has been moved from the core into a forms module that I am not currently importing since it was not required before beta11 and I am not using forms in my app. Any ideas about the current syntax for importing the forms module into ionic 2?

Try this (not tested)
// Imports...
import { NgModel } from '@angular/forms';

@Component({
  templateUrl : 'my-template.html',
  directives: [NgModel]
})
export class MyComponent {
  // ...

OR
// Imports...
import { REACTIVE_FORM_DIRECTIVES } from '@angular/forms';

@Component({
  templateUrl : 'my-template.html',
  directives: [REACTIVE_FORM_DIRECTIVES]
})
export class MyComponent {
  // ...

I only imported REACTIVE_FORM_DIRECTIVES in my component and I used ngModel successfully, I think the second approach should work, don't know about the first.

Hello @tomgallagher ! Could you check that you are in fact running Angular 2 rc4 and not Angular 2 rc5? To check this you can go into your node_modules and check the package.json of the @angular/core module. Thanks!

Here's my package.json from the core module
{   "name": "@angular/core",   "version": "2.0.0-rc.4",   "main": "index.js",   "jsnext:main": "esm/index.js",   "typings": "index.d.ts",   "author": {     "name": "angular"   },
Just to check, I had a look at the same for my forms:
{   "name": "@angular/forms",   "version": "0.3.0",   "main": "index.js",   "jsnext:main": "esm/index.js",   "typings": "index.d.ts",   "author": {     "name": "angular"   },
Not sure if that's right. So I ran
npm uninstall @angular/forms
Then:
npm install<EMAIL_ADDRESS>--save-exact
But the package.json remains the same. Strange.

@tomgallagher ahh, forms should be 0.2.0 and not 0.3.0. To install with --save-exact the correct command would be npm install<EMAIL_ADDRESS>--save --save-exact. Thanks!

Yes that's been the ongoing problem. Sorry to waste your time with this. I had forms 0.2.0 installed but in the wrong directory. Please close this issue to save me any more embarrassment!

hahaha dont worry i make the same kind of mistakes all the time. Im glad we figured out what the issue was. Also, thanks everyone for all the help, so nice to see the community coming out to help with an issue!


Use the top row of knobs as volume limiters.

This PR does a few things:

Adds the concept of a "subFader" to a Fader ¹.
Uses the position of the subFader as a multiplier on the corresponding "main" fader. This caps the volume of that fader.
Saves the subFader position to the config to avoid accidental muting on program restart.
Catches the OnExit Exception if the MidiDevice has disconnected.

I've been using this modification for a couple of months and have found it very useful when dealing with the volume disparity between Zoom / Discord / Voice and Spotify. I leave voice channels "uncapped" and Spotify / music at ~50% on the subFader - combined with Logarithmic mode this caps music at ~25%.
I have a NanoKontrol2 and have configured the FaderDef appropriately. The other devices supported by this (fantastic) program do have their own sets of subFaders but I am unaware of the Midi channels to configure them. If provided to me I will happily update the PR to include.
I acknowledge I've touched the volume code for devices using a delta based system. I do not have such device so have deduced the functionality without testing - I'm guess that system is only used by the Behringer XTouchMini which doesn't have physical subFaders, so I can be persuaded to revert changes to that code path.
I realise there isn't an active issue for this item, but I'm hoping that others would find it useful.
Thanks,
Jonathan
¹ I was tempted to rename the current Fader class to ControlGroup but didn't want to make too many changes at once. Throwing the idea out there now for consideration.

The code looks fine, i will merge it into the knobs branch (sry, i screwd up making it featzre/knobs) so that i can test it without making a new project on my drive.
I will create one additional PR afterwards for @ReapersDragon to confirm merge into master

The code looks fine, i will merge it into the knobs branch (sry, i screwd up making it featzre/knobs) so that i can test it without making a new project on my drive.
I will create one additional PR afterwards for @ReapersDragon to confirm merge into master

Will we see a release with this functionality in the next couple weeks?


OnRowClick navigate to details page and on returning back its not landing on same paginated page

Hi Team,
I have enabled pagination and i am on page 2 (each page shows 5 rows).
OnRowClick i am navigating to different page and showing more details on that specific row, when i navigate back its landing on page 1.
I am using this.props.history.goBack(); to navigate back.
How can i achieve to navigate back to the same paginated page ?
Tech	Version
Material-UI	4.0.1
MUI-datatables	2.5.1
React	16.8.6
browser	chrome
etc

If this.props.history.goBack() triggers a re-render of the component, then you should be able to re-initialize the value in a lifecycle function like componentDidMount or constructor. If not, then I would look to see if there's a way to determine that page navigation took place, and reset the value on that condition instead.

If this.props.history.goBack() triggers a re-render of the component, then you should be able to re-initialize the value in a lifecycle function like componentDidMount or constructor. If not, then I would look to see if there's a way to determine that page navigation took place, and reset the value on that condition instead.

If i use lifecycle methods that will reset my state and hence that is out of option, using OnTableChange i am getting the table details but the problem is when i navigate back to this page after onrowclick i will lose all the information. Can we some one add the page details to history ?

I think I need more information about this to be more helpful. Can you provide a codesandbox example?

@gabrielliwerant i tried to resolve my case by using Dialog react material ui component :) ..

Oh great, so you got it working? If so, maybe copying an example here would help others if they run into a similar issue.

Hi! I have a similar issue to this and maybe you can help me with this? We, too, navigate to a different site onRowClick and on return we would like to load the same page in the grid (a.k.a where we left of).
I got this to work, kind of? But there is a warning in the debugging console...
What I did is save the currentPage in our redux-store and then use that for options: page (number). It works just fine on page: 0 but trows this warning on any other page, even if that page exists:
Current page is out of range, using the highest page that is in range instead.
    at n (https://localhost/static/js/1.chunk.js:218185:5)
    at WithStyles (https://localhost/static/js/1.chunk.js:180054:31)
    at table
    at Table (https://localhost/static/js/1.chunk.js:27870:23)
    at WithStyles (https://localhost/static/js/1.chunk.js:180054:31)
    at https://localhost/static/js/1.chunk.js:230075:23
    at div
    at div
    at Paper (https://localhost/static/js/1.chunk.js:19930:23)
    at WithStyles (https://localhost/static/js/1.chunk.js:180054:31)
    at a (https://localhost/static/js/1.chunk.js:220551:5)
    at WithStyles (https://localhost/static/js/1.chunk.js:180054:31)
    at Transition (https://localhost/static/js/1.chunk.js:265340:30)
    at Slide (https://localhost/static/js/1.chunk.js:22842:24)
    at ThemeProvider (https://localhost/static/js/1.chunk.js:178758:24)
    at FullGrid (https://localhost/static/js/main.chunk.js:3950:73)
    at div
    at StyledComponent (https://localhost/static/js/1.chunk.js:179827:28)
    at HiddenJs (https://localhost/static/js/1.chunk.js:13285:24)
    at WithWidth(HiddenJs) (https://localhost/static/js/1.chunk.js:37542:90)
    at Hidden (https://localhost/static/js/1.chunk.js:12940:37)
    at SearchGrid (https://localhost/static/js/main.chunk.js:4579:17)
    at Route (https://localhost/static/js/1.chunk.js:263312:29)
    at Switch (https://localhost/static/js/1.chunk.js:263514:29)
    at div
    at Container (https://localhost/static/js/1.chunk.js:7284:23)
    at WithStyles (https://localhost/static/js/1.chunk.js:180054:31)
    at ContentContainer (https://localhost/static/js/main.chunk.js:895:17)
    at main
    at div
    at ThemeProvider (https://localhost/static/js/1.chunk.js:178758:24)
    at Main (https://localhost/static/js/main.chunk.js:1513:17)
    at Router (https://localhost/static/js/1.chunk.js:262947:30)
    at BrowserRouter (https://localhost/static/js/1.chunk.js:262567:35)
    at CookiesProvider (https://localhost/static/js/1.chunk.js:227698:24)
    at App (https://localhost/static/js/main.chunk.js:28:81)
    at Provider (https://localhost/static/js/1.chunk.js:260890:20)

I am assuming the problem is, that it first sets the page and then load the data. (Both is present from the beginning, there is no data that needs to be loaded async or anything)
Since the page is displayed correctly, this doesn't seem to be a big issue. But is this the right way to go or is there a better/correct way to set the current page?
What I am trying to ask: Did I do something wrong or is this a minor bug? :)
Tech version:
Material-UI: 4.11.0
MUI-datatables: 3.4.1
React: 16.13.1
browser: chrome

@Sara-chi if you create a codesandbox I'll take a look.
The warning comes from this line: https://github.com/gregnb/mui-datatables/blob/master/src/components/TableBody.js#L79
Is the page displaying correctly with the correct data?

@patorjk Thanks for the reply!
The page is displaying correctly and with the correct data. There is literally just a warning in the debug console - two of them at a time.
I did make this sandbox, but there it's not throwing a warning for whatever reason. So, my issue has most likely nothing to do with mui-datatables, since it works just fine in a smaller example. Yay! :)
If you have any idea what might be causing this, I'd appriciate the input! But thanks so far anyways!


Improve sidebar reference links

https://docs.npmjs.com/files/package.json#license no longer points to the correct destination and https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata doesn't link directly to the section where it talks about licenses.

Thanks!


astrocats cannot import catalogs when installed with Anaconda

Attempting to import a catalog fails because the base directory of astrocats is not a Git repository.
$ python -m astrocats supernovae import
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
  File ".../anaconda3/envs/astro3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File ".../anaconda3/envs/astro3/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File ".../anaconda3/envs/astro3/lib/python3.6/site-packages/astrocats/__main__.py", line 6, in <module>
    main.main()
  File ".../anaconda3/envs/astro3/lib/python3.6/site-packages/astrocats/main.py", line 28, in main
    args, sub_clargs = load_command_line_args()
  File ".../anaconda3/envs/astro3/lib/python3.6/site-packages/astrocats/main.py", line 163, in load_command_line_args
    git_vers = get_git()
  File ".../anaconda3/envs/astro3/lib/python3.6/site-packages/astrocats/main.py", line 301, in get_git
    git_vers = subprocess.check_output(["git", "describe", "--always"]).strip()
  File ".../anaconda3/envs/astro3/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File ".../anaconda3/envs/astro3/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'describe', '--always']' returned non-zero exit status 128.

No, uninstalled the Anaconda version and cloned the repo directly. I couldn't get it to work installed with Anaconda.


New RestClient Errors

Hello,
In Serialization of Path Parameters chapter you wrote
ISomeApi = new RestClient {     RequestPathParamSerializer = new StringEnumRequestPathParamSerializer() }.For<ISomeApi>("http://api.example.com");
But this snippet don't work.
That's because new RestClient need some args and For from a non static RestClient "cannot be accessed from an instance reference"
it is correct?

Correct, that doc is wrong. It should be new RestClient("http://....") { RequestPathParamSerializer = ... }.For<ISomeApi>()

Thank you!
I have another question:
I need to build a Rest client with a base http address and a generic path for a downloader (which don't know any paths)
I would like to have an Interface like this
public interface IGenericPath
    {
        [Get("{path}")]
        Task<Stream> GetStream(string path);
    }

and a provider constructor like this:
Api = new RestClient(GetHttpClient(uri, timeout, customHeaders))
            {
                ResponseDeserializer = new HybridResponseDeserializer(),
                RequestBodySerializer = new HybridRequestBodySerializer()
            }.For<T>();

I need to build restclient with custom deserializer.
(T is IGenericPath)
Now if i call
var PathAndQuery = "/test/randomguid/filename.dat"
var file = await Api.GetStream(PathAndQuery);

throws
"Method 'GetStream': unable to find a [Path("path")] property or parameter for the path placeholder '{path}'."
this happens even with
 [Get("{key}")]
 Task<Stream> GetStream<TKey>(TKey key);

or
public interface IGenericPath<TKey>
{
    [Get("{key}")]
    Task<Stream> GetStream(TKey key);
}

like described in Using Generic Interfaces.
I know that the description states that i have to use the static constructor, but i cannot because i need to use a custom httpclient and custom deserializers.

RestClient.For<IReallyExcitingCrudApi<User, string>>("http://api.example.com/users");

So, is it possible to use a custom generic interface and build a custom RestClient
with a base url like "http://test.com"
for calling different path like
"/test/file.dat"
"/random//randomtest/file.dat"
"../music.mp4"
ecc..
Thank you!

You need to use [Path] to mark the parameter as filling in a path placeholder, e.g. Task<Stream> GetStream([Path] string path). See the README

I've opened https://github.com/canton7/RestEase/issues/129 to fix the "Using Generic Interfaces" bit of the README.

Yeah true i forgot that. :)
But if i pass "/random/randomtest/file.dat" the path is being UrlEncoded
"%2Frandom%2Frandomtest%2Ffile.dat"
there is any way to avoid this behavior?
Thank you and sorry for all the questions
D

NVM thank you i got it!
GetStream([Path(UrlEncode = false)]
ty for all

Closing as resolved


[query] location.query in history.listen

I seem to be having trouble accessing query in history.listen
~  25         history.listen((location) ->
+  26             console.log 'Location object', location
+  27             console.log 'Object.keys(location)', Object.keys(location)
+  28             console.log 'location.query', location.query
+  29             [section, id] = location.pathname[1..].split('/')
+  30             RouterActions.changeRoute(section, id, location.query)
+  31
+  32         )

The output of the above attached. Any ideas what's going on here? Query seems to be on the object, but can't access it.

Are you using the useQueries enhancer?
var createHistory = require('history/lib/createBrowserHistory')
var useQueries = require('history/lib/useQueries')

var history = useQueries(createHistory)()

// ...

I am not. Should I be?

Using useQueries fixes it, thank you.

useQueries is the piece that puts the query property on your location object, so yes, you need to use it.

Any idea why is it in the object when I console.log it?


Why SetTruncationCorrection(0.4) is not useful?

I want to perform truncation correction on projection data, but why does the CT data obtained after using this function have no effect?

"I tried three parameters: 0, 0.2, and 1, but why is the effect of CT reconstruction exactly the same for all of them? Where can I find the source code for this function?"

SetHannCutFrequency(0.46) and SetHannCutFrequencyY(0.46) can work effectively, but SetTruncationCorrection(0.8) doesn't have any effect.

Not an issue, please use the mailing list to clarify your question, e.g. by showing an example. Truncation correction has an effect if your projections are truncated.


chore(main): release 1.7.2

:robot: I have created a release beep boop
1.7.2 (2024-08-08)
Bug Fixes

remove condition on identity variable (cd331c9)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.7.2
:sunflower:


Cache cannot be invalidated (Xamarin iOS)

imagePath = value;
ImageService.Instance.LoadFile(ImagePath<EMAIL_ADDRESS>                            .Into(TheImageView);
This is the code that I'm using in the setter of imagePath - the path that I'm using for each of my UIColectionView's reusable cells.
The path remains the same every time I change the image, however, so because of the caching it's never really updated. Ideally I would want to invalidate the cache for that particular entry once the image is changed. I tried calling InvalidateCacheAsync, InvalidateMemoryCache, InvalidateDiskCacheAsync, InvalidateCacheEntryAsync before loading the image, even afterwards. Nothing works.

Do you await those async calls?
ImageService.Instance.InvalidateCacheEntryAsync("/Images/Placeholder.png", Cache.CacheType.All, true); should works just fine.


drivers: espi: xec: Ensure OOB interrupts are not missed

MCHP Soc operation uses clear-on-write register for interrupt
status, read-OR-write operation may clear interrupts unintentional.
Fixes #24464
Signed-off-by: Jose Alberto Meza<EMAIL_ADDRESS>

@andrewboie, can this fix be considered for v.2.3?

yes, needs CI passing before I can merge


Any ETA for this SDK?

Well, someone's got to file the first issue, so why not let it be the obvious question when we'll be able to see the actual SDK on this repo. The timing works really well for us so we're eager to get started.
Or should we really give you guys a chance to get home from New Orleans first? :-)

Thanks! The ETA is within a few weeks aligned with 2019.1 Beta 2.  I can't give a specific date until we get closer.  Cheers!


Specify image name/tag when pre-building and running

Sorry if this is covered somewhere, but having trouble finding an answer in the docs.
I am trying to pre-build an image and run some tests in parallel. I would like to specify how the tags are created to be something like buildkite-${GIT_BRANCH}-${BUILDKITE_BUILD_NUMBER}.
I'm able to get the build step to tag and push correctly, but the run steps do not pull the image. I've tried adding image-name and pull attributes to the run steps, but neither seem to be the right ones.
Here's what I have so far. How can I modify the run step to pull the correct tag?
steps:
  - label: ":docker: build"
    key: build
    plugins:
      - docker-compose#v3.1.0:
          build: web
          image-name: "quay.io/myorg/myrepo:buildkite-$${BUILDKITE_BRANCH}-$${BUILDKITE_BUILD_NUMBER}"
          cache-from: "web:quay.io/myorg/myrepo:buildkite-latest"
          config: docker-compose-ci.yml

  - label: ":docker: test %n"
    key: test
    commands:
      - echo "test me"
    parallelism: 3
    plugins:
      - docker-compose#v3.1.0:
          run: web
          pull: "quay.io/myorg/myrepo:buildkite-$${BUILDKITE_BRANCH}-$${BUILDKITE_BUILD_NUMBER}"
          config: docker-compose-ci.yml
    depends_on:
      - build

having the same issue, @lox do you have any insight maybe?

+1. Default naming scheme isn't informative enough. I'd love to see a fix for this. Is it possible to put this on the roadmap? @lox

Hey @evandam it is a little confusing but you don't need to specify the pull in next step because the pipeline is actually creating a docker-compose-override.yml here with the details about the app which it uses to push and pull (implicitly when running).  You can check this out in https://github.com/buildkite-plugins/docker-compose-buildkite-plugin/blob/master/commands/run.sh

Sorry for the delay getting back to you on this, I detoured in another direction for a while.
I think I found the right combination of params to accomplish what I'm looking for. It's a little misleading but it seems like image-name is for specifying the tag to use? Either way, I'll close this out.
steps:
  - label: Build image
    key: build
    plugins:
      - $COMPOSE_PLUGIN:
          config: $COMPOSE_FILE
          build: web-test
          image-repository: $DOCKER_REPO
          image-name: ${BUILDKITE_BRANCH}-latest


Some refactoring and more tests

Mostly moving code around with the goal of adding type annotations without adding cyclic imports.

Changing what is exposed in a flat namespace at odc.geo., and what needs to be imported from otherwise not loaded modules.

GridSpec and GeoBox are not pulled in by default

Not importing rasterio in CRS module, assuming GDAL3 projection axis order always instead.
Some more tests
Splitting tools.py into _roi.py and  _overlap.py
Fused gbox.py and geobox.py (preserving history)
Split overly long test_geometry
Moved all xarray tooling into one place

This is getting too big. As it's mostly moving code around it's not really easy to review. So I'm gonna merge it before doing further changes that would benefit from not being hidden by all that code movement noise.

Makes sense to me.


aaphostsample: configurablle audio bus settings

Now we have LV2 Guitarix port in aap-lv2 https://github.com/atsushieno/aap-lv2/issues/2 but aaphostsample crashes when it tries to use it, because aaphostsample always expects stereo audio while Guitarix only has monoral I/O channels. There should be some adjustment for audio buses to fix this kind of issue.

Actually the sample had some monoral buffer handling, yet it was broken.


How can we know if the font is applied and any global solution ?

How to know if the font is applied on the app and is there any solution to apply on all elements instead of calling it on each one ?

I might consider adding a built-in <style> in which you can add directly to your app manifest
e.g.
<application
    android:theme="@style/TyperFontTheme" >
</application>

We'll see.

Would be great.
When it will be available? Coz I m kind in a hurry to finish implementing the font
Thanks

I am starting it now as experimental-branch and my my required minSdkVersion is 16

Great then we will be waiting to try it soon!
Let us know once its implemented!

Disclaimer : The repository is updated but not the library version in Maven.
Hi I have updated the library and provided an example app in Kotlin (let me know if you prefer a Java example).
Requirements  :

You need to use AppCompatTextView if you're using regular TextView and AppCompatEditText if your are using regular EditText this will ensure the font(s) will be rendered correctly.
required minSdkVersion is 16

Example code:
<application
        ...
<EMAIL_ADDRESS>name here}">

// Example

<application
       ...
<EMAIL_ADDRESS>// or
<application
       ...
<EMAIL_ADDRESS>

Hello,
Thanks for the update but I m using the java code not kotlin.
Please if you can update with the java code.
Also still I need to import the library locally ?

Hi,
Sorry for the late reply so finally I manage providing a Java example which is just importing the library locally. I already uploaded a new artifact in JCenter and waiting for the approval so that you can use it in your Gradle.

Great great thanks for your effort and waiting the approval.
To apply on my side i need to do sync of the gradle right to take the new updates ?

Importing the library locally is a bit tedious (I personally do not like it) and right now I am still waiting for the approval, I have no idea why it takes too long. But once it is approved I will update the README with explanation.

Ohh okayy
Thanks a lot for your effort and great work really!
I should get the notification if you updated the readme file right ??
I m not hurry, we can wait for the approval

Hi thanks for the patience waiting for this update I really appreciate it! I am not exactly sure if Github notifies after updating the README but I will post an update here in issuetracker just to be sure :)

Hi the wait is over the library is now hosted in JCenter and the README is now updated, let me know if you have further questions! :D :tada: :tada:

Ahh great, i will apply it tonight and try.
I have migrated my project to androidX so I m not sure if its still be working but will try that.

I will now close this thread feel free to open a new thread.


[Agent]update llm config

Since DYNAMIC_QUANTIZATION only working for CPU currently, replace it with general configuration in case GPU selected.

@eaidova pls help to merge, thanks


Methods of Detecting Fraud in Organizations

Proposed title of article
Methods of Detecting Fraud in Organizations
Proposed article introduction
Extortion in many associations, whether or not business for-benefit, isn't absolutely preventable. At the point when business visionaries or ranking directors perceive and recognize that extortion could happen in their association, their consideration will probably move to misrepresentation identification.
Early location can lessen misrepresentation misfortunes in many cases in light of the fact that authoritative cheats will more often than not be progressing. In this post, we examine a few different ways that extortion may be distinguished.
Key takeaways
1.Fraud detection by external auditors
2.Fraud detection by internal auditors and inspector generals
3.Fraud detection by tip lines
4.Fraud detection by dedicated departments
5.Fraud detection by accident
Article quality
This will be an in-depth article explaining all aspects of this concept.To ensure it's beginners friendly, I will employ easy use of language to enhance understanding.
References
N/A

Based on this check -> https://github.com/section-engineering-education/engineering-education/issues?q=fraud+detection, this topic appears to be well-covered. Feel free to suggest another topic. Thanks


Details for initializing FFN (MLP blocks)?

Hi, thanks for sharing the code.
I am wondering why the norm of the two FC layers for the MLP blocks are set to (9N)^{-1/4}. I feel it should be something like (9N)^{-1/2} if a similar analysis as Theorem 3.1 is applied to each of the MLP layers.

I think -1/4 in the exponent is correct. Each FC layer's weight (say w1 and w2) will be squared, as in 3.1's calculation, which gives -1/2 in the exponent. Then |w1|^2 * |w2|^2 will give the desired -1 in the exponent.


Attempting to fix issue with github action error=failed to build for windows_arm64 …

Attempt to fix error=failed to build for windows_arm64 by using newer goreleaser version

I just copied the example configuration for goreleaser from here https://goreleaser.com/ci/actions/


Dart runners manifest (cmx files) included with Flutter for Fuchsia should not refer to fuchsia.timezone.Timezone

Instead, fuchsia.deprecatedtimezone.Timezone should be used.

FYI I'm working on this; can't assign myself though.


Fail to reproduce the Spikformer-4-256 on CIFAR-10

Hi dear authors,
Sorry for bothering you again. While training the Spikformer-4-256 model on CIFAR-10, I encountered a problem with the following error message: "AssertionError: dim 256 should be divided by num_heads 12."
I am seeking assistance to resolve this issue and was wondering if you could provide information regarding the value of num_heads used during your experiment. Any insights you can offer would be greatly appreciated.
Thank you very much for your time and assistance.

Try 8 heads.
The best metric is about 94.

Thanks!!


Add super method to onInit, onReady

everytime generate get controller has warning on onInit and onReady.
This method overrides a method annotated as '@mustCallSuper' in 'DisposableInterface', but doesn't invoke the overridden method.

LGTM

LGTM


I followed your guidance on the installation of channels and yaml, but the error was reported at this step. The error was as follows: Is there any solution? Thank you very much

conda env create --quiet -f environment.yaml
Collecting package metadata (repodata.json): ...working... failed
UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: daler
channel url: http://mirrors.tuna.tsinghua.edu.cn/anaconda/daler
error code: 404
You will need to adjust your conda configuration to proceed.
Use conda config --show channels to view your configuration's current state,
and use conda config --show-sources to view config file locations.
I typed conda config --remove-key channels to clear all channels but it still go wrong.T-T

I have modified the scripts. Please redownload them and try again.

dear teacher,I removed the 'daler' channels and I got it ,thank you hope you more course of bacterial and phages.
| |
cppyqz
|
|
@.***
|
---- Replied Message ----
| From | @.> |
| Date | 5/24/2023 17:39 |
| To | @.> |
| Cc | @.> ,
@.> |
| Subject | Re: [vappiah/bacterial-genomics-tutorial] I followed your guidance on the installation of channels and yaml, but the error was reported at this step. The error was as follows: Is there any solution? Thank you very much (Issue #3) |
I have modified the scripts. Please redownload them and try again.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


[✨] Access Slots in parent component

Is your feature request related to a problem?
I've got a Select element and I want to display the content of the selected option :
<Select value="a">
  <Option value="a">Hello <b>World</b></Option>
  <Option value="b">Lorem Ipsum</Option>
</Select>

Here the Select has the default value selected to "a" so it should display the content of the Option with value "a".
As we cannot access the DOM in the server, I wanted to access the elements in the Slot and find the one with the value.
Unfortunately, this is possible with children, but not with Slot.
Describe the solution you'd like
Access a Readonly list of the JSXNode like you would do with children. Maybe something like that :
export const Select = component$(({ value, placeholder }: SelectProps) => {
  const slots = useSlot(); // snapshot of the elements in the Slot
  const initialContent = slots.default.find((option) => option.props.value === value) ?? '';
  const displayContent = useSignal(initialContent);

  return <>
    <button>{displayContent.value ?? placeholder}</button>
    <dialog>
      <Slot/> {/* Options here */}
    </dialog>
  </>
});

Describe alternatives you've considered
Use inline component and children.
Or use DOM manipulation in the server if it becomes possible.
Additional context
No response

closing
For more context why:
https://github.com/QwikDev/qwik/issues/3966#issuecomment-2131241498


BOT NAME
pokemoncommunitygame
verify
pokemoncommunitygame -- first showed up on twitch insights
reported used by extension and moderator of channels and used by streamers & chat
remove.
Version
user
What system are you seeing the bot on?
TWITCH
log output
PokemonCommunityGame TwitchLit A wild Lurantis appears TwitchLit Catch it using !pokecatch (winners revealed in 90s)

CODE

[X] i am human

https://github.com/arrowgent/Twitchtv-Bots-List/commit/bb8c5333d1277f6ba72e726189e77b358aa3d7af


Add _index.md Content to the Homepage

It would be nice if Anubis included the content from _index.md at the top of the homepage similar to https://gohugo.io/templates/homepage/#add-content-and-front-matter-to-the-homepage .

@TheDocTrier thanks, done it. Also add support of _index.md for posts, tags and categories pages

@Mitrichius Awesome, thank you!


Problems with instance variables inheritance fixed

In accordance with this commit:
https://github.com/jeremyevans/sequel/commit/71728a81e4e3140bc354bacea052052cb5540e50
Without this that code example:
class User
  plugin :secure_password
end

class Child < User
end

Gives that error:
Unexpected error while processing request: bad inherited instance variable type: true
    /usr/lib/ruby/gems/2.3.0/gems/sequel-4.38.0/lib/sequel/model/base.rb:618:in `block in inherited'
    /usr/lib/ruby/gems/2.3.0/gems/sequel-4.38.0/lib/sequel/model/base.rb:605:in `each'
    /usr/lib/ruby/gems/2.3.0/gems/sequel-4.38.0/lib/sequel/model/base.rb:605:in `inherited'

I included the fix but with a slightly different spec. Version 0.2.13, which includes the fix has been released and I included a mention of your contribution in the readme 😃 Sorry it took so long to fix this properly

Oh, thank you!


Optimize around some slow Machine commands

@paetling This makes dusty test quite a bit faster. There are a lot more optimizations to be gained when we stop using Machine for SSH, but I'm going to do that separately.

:ghost: :cow:  :racehorse:


How to quantize a llama structure model and run it with sampling process?

I trained some llama structure like models, and use following command quatize my model:
CUDA_VISIBLE_DEVICES=0 python main.py --model /workdir/hf_models/aquila-chat-7b/ --eval_ppl --epochs 20 --output_dir ./log/aquila-chat-7b-w4a16 --wbits 4 --abits 16 --lwc --net llama-7b

it failed with following outpus:
[2023-09-20 05:57:45 root](omniquant.py 233): INFO layer 25 iter 13 loss:0.8996272683143616 norm:0.0016859474126249552 max memory_allocated 14942.64794921875
[2023-09-20 05:58:02 root](omniquant.py 233): INFO layer 25 iter 14 loss:0.8993780016899109 norm:0.0017346511594951153 max memory_allocated 14942.64794921875
[2023-09-20 05:58:18 root](omniquant.py 233): INFO layer 25 iter 15 loss:0.899031937122345 norm:0.001769484020769596 max memory_allocated 14942.64794921875
[2023-09-20 05:58:35 root](omniquant.py 233): INFO layer 25 iter 16 loss:0.8987679481506348 norm:0.0017901259707286954 max memory_allocated 14942.64794921875
[2023-09-20 05:58:52 root](omniquant.py 233): INFO layer 25 iter 17 loss:0.8985449075698853 norm:0.0018109744414687157 max memory_allocated 14942.64794921875
[2023-09-20 05:59:08 root](omniquant.py 233): INFO layer 25 iter 18 loss:0.8984124660491943 norm:0.0018458825070410967 max memory_allocated 14942.64794921875
[2023-09-20 05:59:25 root](omniquant.py 233): INFO layer 25 iter 19 loss:0.8984500169754028 norm:0.0018331403844058514 max memory_allocated 14942.64794921875
[2023-09-20 05:59:28 root](omniquant.py 158): INFO === Start quantize layer 26 ===
[2023-09-20 05:59:37 root](omniquant.py 223): INFO Loss is NAN, stopping training
> /workdir/OmniQuant/quantize/omniquant.py(226)omniquant()
-> loss_list.append(loss.data)

In which case will produce a NULL Loss object? BTW, this command works on llama-7b well.
Besides PPL evaluation, I also need to do subject/object evaluaiton on some dataset. I know there is a runing_falcon180b_on_single_a100_80g.ipynb, which shown how to run a quantized Falcon-180b, but it seems I have to learn AutoGPTQ first before I can know how to load quantized weight of a model?
I convert the quantized llama-7b-w4a16.pth to hf format with https://github.com/huggingface/transformers/blob/main/src/transformers/models/llama/convert_llama_weights_to_hf.py.
I tried replaced the FalconLinear to nn.Linear , not sure if it's correct. And I wander what the group size is, if I didn't use group size in quantize phase, what value should I set in QuantLinear?
Are there any examples or docs can help me run a llama model quickly?

If you want to run your own really quantized model, you should first save the model through --save_dir and --real_quant. For example:
CUDA_VISIBLE_DEVICES=0 python main.py \
--model /PATH/TO/LLaMA/llama-7b  \
--epochs 0 --output_dir temp \
--eval_ppl --wbits 3 --abits 16 --group_size 128 --lwc \
--resume PATH/TO/OMNI_PARAMETERS
--real_quant --save_dir PATH/TO/SAVE/MODEL

Then, you can run the quantized model by replacing the following variates in runing_falcon180b_on_single_a100_80g.ipynb with the corresponding values:
#model_path = './pre_quantized_models/falcon-180b-omniquant-w3a16g512'
#wbits = 3
#group_size = 512
model_path = PATH/TO/SAVE/MODEL
wbits = 3
group_size = 128

You can  set group_size as -1 to disable group quantization, and if you want to test in more datasets, maybe you can refer to the --tasks. For examle:
CUDA_VISIBLE_DEVICES=0 python main.py \
--model /PATH/TO/LLaMA/llama-7b  \
--epochs 0 --output_dir temp \
--eval_ppl --wbits 3 --abits 16 --group_size 128 --lwc \
--tasks piqa,arc_easy,arc_challenge,boolq,hellaswag,winogrande

As for NAN, it may be caused by mixed-precision training, you can use --deactive_amp to use full-precision training.

Thanks for your detailed reply, I found that the NAN is my model's problem so I fallback to official llama-2-7b to explore OmniQuant.
I tried to run a quantized llama-2-7b-chat-w4a16g128 model with runing_falcon180b_on_single_a100_80g.ipynb but it failed with following logs:
Traceback (most recent call last):
  File "/workdir/test/test_omniquant.py", line 35, in <module>
    layers = model.transformer.h
  File "/root/anaconda3/envs/omniquant/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1614, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'LlamaForCausalLM' object has no attribute 'transformer'

Except this problem, I think LlamaForCausalLM also won't include FalconLinear instance, so it may failed in get_named_linears(layer)?

I replaced the code like follow and it worked:
from torch import nn

def get_named_linears(module):
    return {name: m for name, m in module.named_modules() if isinstance(m, nn.Linear)}

# layers = model.transformer.h
layers = model.model.layers


rescue central exception

Closes https://github.com/CartoDB/cartodb-central/issues/2686

I like it :) I'm going to merge this to avoid the unmanaged error and I'll try to implement what you suggest.
Thanks!


Have you considered adding a meta-template?

I mean a contributing.md file with the kinds of sections you feel should be in a contributing.md file. and some text in each section saying what those section should cover and why they are important?

Yep. This is covered by the template section now, as it points to the contribute-md templates. We can add more here if that proves deficient.


(feat): Support for $scheme$host$request_uri variables

Do you want to request a feature or report a bug?

Feature
What did you expect to see?
Would be great to support variables $scheme://$host$request_uri ( just like nginx does )
Use case -> single universal middleware:
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: fwd-auth
  namespace: traefik
spec:
  forwardAuth:
    address: 'https://fwdauth.example.com?uri=$scheme://$host$request_uri'
    trustForwardHeader: true
    authResponseHeaders:
       - x-resp-header

Thanks
Related: https://github.com/containous/traefik/issues/5036

Hey hey,
thanks for your interest in the project :-)
Can you try to explain a bit more the use-case please? I'm wondering about your "universal middleware" part :-)
Thanks

Well.., You can use something like this with nginx/nginx ingress controler in k8s
nginx.ingress.kubernetes.io/auth-url: "https://forwardauth.domain.example/verify?uri=$scheme://$host$request_uri"
nginx.ingress.kubernetes.io/auth-signin: "https://forwardauth.domain.example?uri=$scheme://$host$request_uri"

Traefik middleware needs hardcoded uri in forwardauth mode.

Point is that currently the auth middleware or more precisely the auth service that gets called by the middleware is blind about who is calling it. To provide a common paracticed option would be to forward the host and request_uri to the auth service.
There two ways to do this this is the one that nginx uses. In #6840 I offered another one that is a bit less flexible but would better fit with the traefik middleware concept. It would be basically enough if traefik would have the option to append the request_uri  to forwardAuth.address making the auth middleware more versatile usable.
http:
  middlewares:
    test-auth:
      forwardAuth:
        address: "https://example.com/auth"
        appnedRequestUri: true

A more flexible solution would be if traefik suppored header value mapping with gotemplate allowing the auth middleware to enrich the upstream request for the authservice to make better decisions.


Reverse DNS configuration

At the moment there seems to be no support in your modules to set the reverse_dns entries, niether within hcloud_server nor within hcloud_floating_ip.
I believe this is mostly analog to hetznercloud/terraform-provider-hcloud#32.
I would like to have either support for reverse_dns entries in the modules mentioned above or maybe its own module just for reverse entries.

Hi @kerwindena,
I am still thinking about the syntax for reverse dns, but this is already on my todo list

Hi,
is this still on the todo list?
regards,
Roman

Hi Roman,
as I am no longer with Hetzner Cloud and also don't use it anymore, I will
archive this project at the next opportunity.
Regards Nico
On Fri, 12 Jul 2019, 19:58 Roman v. Gemmeren<EMAIL_ADDRESS>wrote:

Hi,
is this still on the todo list?
regards,
Roman
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thetechnick/hcloud-ansible/issues/3?email_source=notifications&email_token=ABXRCMDI5UW44T5GV4NBJR3P7DA3BA5CNFSM4EW4IOY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ2OMOY#issuecomment-510977595,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABXRCMHWNSPPUKTJVEJUF4DP7DA3BANCNFSM4EW4IOYQ
.


Close opened statement when territory containing it was deleted

Simply said when statement doesn't exist after territory delete

Solved - non empty T is not possible to delete.


Update NonDCActiveDirectoryReplication.yaml

In Account Entity mapping there a
identifier: UPNSuffix mapped with columnName: AccountUPNSuffix  but in kql query there was no such type of column exist.
Update this with NTDomain mapped with columnName: AccountNTDomain
Required items, please complete
Change(s):

See guidance below

Reason for Change(s):

See guidance below

Version Updated:

Required only for Detections/Analytic Rule templates
See guidance below

Testing Completed:

See guidance below

Checked that the validations are passing and have addressed any issues that are present:

See guidance below

Guidance <- remove section before submitting

Before submitting this PR please ensure that you have read the following sections and filled out the changes, reason for change and testing complete sections:
Thank you for your contribution to the Microsoft Sentinel Github repo.

Details of the code changes in your submitted PR.  Providing descriptions for pull requests ensures there is context to changes being made and greatly enhances the code review process.  Providing associated Issues that this resolves also easily connects the reason.

Change(s):

Updated syntax for XYZ.yaml

Reason for Change(s):

New schema used for XYZ.yaml
Resolves ISSUE #1234

Version updated:

Yes
Detections/Analytic Rule templates are required to have the version updated

The code should have been tested in a Microsoft Sentinel environment that does not have any custom parsers, functions or tables, so that you validate no incorrect syntax and execution functions properly.  If your submission requires a custom parser or function, it must be submitted with the PR.

Testing Completed:

Yes/No/Need Help

Note: If updating a detection, you must update the version field.

Before the submission has been made, please look at running the KQL and Yaml Validation Checks locally.
https://github.com/Azure/Azure-Sentinel#run-kql-validation-locally

Checked that the validations are passing and have addressed any issues that are present:

Yes/No/Need Help

Note: Let us know if you have tried fixing the validation error and need help.

References:

Guidance for Detection checks
General contribution guidance
PR validation troubleshooting

Hi @RakeshPrasad21,
Could you please repackage this solution? The changes will not be reflected in the solution until it is repackaged. Please refer below link for the same. Thanks
https://github.com/Azure/Azure-Sentinel/blob/master/Tools/Create-Azure-Sentinel-Solution/V3/README.md

Hi @RakeshPrasad21,
Please act on above comment. Thanks

Hi @RakeshPrasad21,
We are waiting for an update on the above open comment. Thanks

I don't understand what to do for Analytical Rule in the above link


Changes to .env file not detected in jupyter until VS Code is restarted

Changes to .env files are not detected in the kernel.
We'll need to restart jupyter, restarting the kernel doesn't help.
Solutions

Add command Restart Jupyter, so user can restart Jupyter
Detect changes to .env file and prompt user to restart Jupyter (feels too heavy handed - user loses all of their kernel state)
Update env vars in kernel when detecting changes to env vars (send a custom request to udpate env vars in kernel)

Dupe of #1722. Keeping that one as it was entered by an external customer.


Add more tests

Add more tests to cover more code. This should be merged after #24 to make sure that the code is in a better format. This will also add puppeteer and should be able to run a local instance of the server with docker, api, and webserver. This will require using environment variables to specify the multinet call address.
Closes #23

going to merge this in so the e-2-e tests run each time. This will be useful for our code refactoring


Fix retrying incomplete downloads with urllib3 2.x

https://github.com/boto/botocore/issues/3132

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.94%. Comparing base (dad5c83) to head (5fc308a).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #301   +/-   ##
========================================
  Coverage    82.94%   82.94%
========================================
  Files           16       16
  Lines         2814     2814
========================================
  Hits          2334     2334
  Misses         480      480

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Relax nginx/php config in both ddev-webserver and ddev-router

Describe the bug
Most of the packet-size limitations in nginx/apache/php are intended to prevent server abuse or overuse by malicious clients or bad code. But those aren't really goals for ddev, so it would be useful to a few people to:

Set nginx's client_max_body_size to 0 (disabling that feature) on both ddev-webserver and ddev-router.
Increase php upload_max_filesize and  post_max_size
Increase php max_input_vars
I don't think there's an equivalent apache config, but it's worth looking.

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Version and configuration information (please complete the following information):

Host computer OS and Version: [e.g. Windows 10, macOS High Sierra]
Docker version information (use docker version) and insert it here.
ddev version information (use ddev version)
config.yaml contents for the misbehaving project
Do you have any custom configuration (nginx, php, mysql) in the .ddev folder? If so, have you tried without them?

Additional context
Add any other context about the problem here. Thanks!

The limit in Apache is set via the LimitRequestBody directive and defaults to 0, so this should be ok.
However there is another Config which could be set to 0: LimitXMLRequestBody (Default: 1 M)
https://httpd.apache.org/docs/trunk/de/mod/core.html#limitxmlrequestbody
Personally I never had a problem with the XML body size.

Thanks @RobertLang - Could you say more about the situation where you hit the client_max_body_size problem in the router? I wasn't familiar with the technology you were testing.

I was integrating a resumable file upload for larger files using the tus protokoll (https://tus.io/) and tus-php (https://github.com/ankitpokhrel/tus-php).
Everything worked nicely until I hit the 100 M barrier configured in the ddev-router. The router returned an error: Nginx: 413 – Request Entity Too Large which, after doing some research on google, led me to the solution to change the client_max_body_size on the ddev-router container.
After changing that value uploads with several gigs of data were possible.


Unreleased transport: TADIR entry remains after uninstalling

Once objects have been added to a transport request (non-$TMP), the transport request (particularly the transport lock) needs to be removed before the uninstallation can be performed.
Repsonse from TRINT_TADIR_DELETE:
Object directory entry cannot be deleted, since the object is locked
Message No. TR022

Diagnosis
The object directory entry for R3TR DTEL Z... cannot be deleted, since this object is still locked in request XXXKXXXXXX.

As far as I remember, the TADIR entry(in this case: non $TMP) is deleted when the transport is released. So need to do some testing, and replicate the logic of the standard system

Steps to reproduce:
Create package zmessaging, clone https://github.com/mrsimpson/sample-bopf-application.git, branch 0_ddic

Uninstall
=> TADIR remains

I think this is working as expected, try creating eg. a domain in SE11 in a transportable package and delete it again, the TADIR remains until the transport is released

Hmmmm - too true.
Not a bug, but a feature


proposals to revive pflag as an actively maintained repo

contributes #385

cc: @therealmitchconnors

@fredbi what do we need to do to move forward here?


[Feature] Automatically refresh when speed test was run

Description of the feature
Currently, until the speed test is run, up and down speed are both marked as / on the frontend. This only changes on a hard refresh of the page.
Additional context
We could use sockets for that "static" information as well - that way, when any changes happen, we can just propagate those directly into the view.

:tada: This issue has been resolved in version 3.6.0
Please check the changelog for more details.


Typo in C# documentation

https://sendgrid.com/docs/Integrate/Code_Examples/v2_Mail/csharp.html
Current
myMessage.From = new<EMAIL_ADDRESS>"First Last");
...
myMessage.Text = "and easy to do anywhere, even with C#";
Update
myMessage.From = new<EMAIL_ADDRESS>"First Last");
...
myMessage.PlainTextContent= "and easy to do anywhere, even with C#";

Oh, easy to fix. Gonna do that.


UI fixes for attach/detach volume

This fixes two problems with attach/detach from the instance
details page:

Don't pass in empty string to fog for device path. If the user
leaves path blank, pass in nil not "".
Fixed a bug in redirect handling for both attach and detach
actions

@miq-bot add_label darga/yes

Works for me, thanks.


Error compiling ubuntu 17.10

Ubuntu 17.10, QT4 and QT5 installed
everything updated, deps installed, other altcoins wallet built with qt gui.
make fails with:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1135:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)." # error "You must build your code with position independent code if Qt was built with -reduce-relocations.
Changed configure.ac  fPIE -> fPIC but does not work.
Any idea?
Thanks

I can confirm. Changing from fPIE to fPIC resolves the problem. Should it go upstream?


feature(floating label): new component

Codecov Report

Merging #19 into master will decrease coverage by 0.67%.
The diff coverage is 94.11%.

@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
- Coverage   97.78%   97.11%   -0.68%
==========================================
  Files          11       12       +1
  Lines         226      277      +51
  Branches       11       18       +7
==========================================
+ Hits          221      269      +48
- Misses          5        8       +3

Impacted Files
Coverage Δ

packages/floating-label/index.js
94.11% <94.11%> (ø)

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 e20e0f4...379b3a9. Read the comment docs.


Stable docs link is broken

Seems like only dev docs are active?

Yeah I think I added in the stable link a bit optimistically. Don't think we'll have v1.0.0 for a while so I'll deactivate the link. Thanks for the spot.


📌 Make @sveltejs/kit and build-esm peer dependencies optional

close: #76
example pattern usage:
https://github.com/postcss/postcss-load-config/pull/218/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R43-R49

I'm guessing this pull was closed when I deleted my fork. That was not my intention. I'll issue a new pull.


Add missing properties in VaultCertificateRequest

Description
Several properties are missing in VaultCertificateRequest:
common_name
alt_names
ip_sans
uri_sans
other_sans           <-- missing
ttl
format               <-- missing
private_key_format   <-- missing
exclude_cn_from_sans

See: https://www.vaultproject.io/api-docs/secret/pki#generate-certificate
Solution
Update VaultCertificateRequest and its implementation for VaultPkiOperations.issueCertificate() and VaultPkiOperations.signCertificateRequest(). Especially the mapping in VaultPkiTemplate.createIssueRequest(VaultCertificateRequest certificateRequest).
Extracted issue from #477

private_key_format added with #688


Spotify Clone (using HTML,CSS,JS)

Have you read the Contributing Guidelines ?
(Write your answer here.)
Description
(Write your answer here.)
Fixes #766

Checklist

[ ] I've read the contribution guidelines.
[ ] I've checked the issue list before deciding what to submit.
[ ] I've edited the README.md and link to my code.

Related Issues or Pull Requests
(Write your answer here.)

Ok i'll go through it.


Fix incorrect javadoc for RolloutOptions

Codecov Report

Merging #1097 into master will increase coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master   #1097      +/-   ##
===========================================
+ Coverage     51.96%     52%   +0.04%
+ Complexity     1569    1568       -1
===========================================
  Files           266     266
  Lines         12748   12748
  Branches       1468    1468
===========================================
+ Hits           6624    6630       +6
+ Misses         5619    5613       -6
  Partials        505     505

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 3e8cce4...7a5a314. Read the comment docs.


⚠ Bofrost.at has degraded performance

In ca6fd88, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2336 ms

Resolved: Bofrost.at performance has improved in f73f062.


Resolve build failure from LifecycleEvent:51

I brought in the latest code and tried to build, but it fails here,
[WARNING] PMD Failure: jakarta.data.event.LifecycleEvent:51 Rule:AbstractClassWithoutAbstractMethod Priority:3 This abstract class does not have any abstract methods.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Jakarta Data 1.0.1-SNAPSHOT:
[INFO]
[INFO] Jakarta Data ....................................... SUCCESS [  5.347 s]
[INFO] Jakarta Data API ................................... FAILURE [ 13.975 s]
[INFO] Jakarta Data Specification ......................... SKIPPED
[INFO] Jakarta Data Technology Compatibility Kit .......... SKIPPED
[INFO] Jakarta Data Technology Compatibility Kit Distribution SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  19.425 s
[INFO] Finished at: 2024-12-05T14:53:33-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-pmd-plugin:3.26.0:check (default) on project jakarta.data-api: PMD 7.7.0 has found 1 violation. For more details see: ...

This PR is one way to resolve the failure.

We don't need it.

We don't need it.

Yeah, we should consider that as the resolution instead. This certainly wouldn't be the first time we've had to change valid code to comply with tools enforcing their preferences.

We will close because we won't change the code because PMD.


refactor: including package path in implicit service name

Thanks for this great work! I've used it in my open source project.
During use, I found that registering services with the same name will panic, even if they came from different packages. Here's a minimal repro:
// a/c/a-c.go
package c
import ( /* ... */ )
type MyStruct struct { /* ... */ }
func NewMyStruct(i *do.Injector) (*MyStruct, error) { /* ... */ }

// b/c/b-c.go
package c
import ( /* ... */ )
type MyStruct struct { /* ... */ }
func NewMyStruct(i *do.Injector) (*MyStruct, error) { /* ... */ }

// main.go
package main
import (
    ac "test/a/c"
    bc "test/b/c"
    "github.com/samber/do"
)
func main() {
    i := do.New()
    do.Provide(i, ac.NewMyStruct)
    do.Provide(i, bc.NewMyStruct)
}

// panic: DI: service `*c.MyStruct` has already been declared

The problem occurs because generateServiceName() didn't create a "global-unique" qualifier for type. This PR refactors generateServiceName() to create unique qualifiers by prepending package path.
Implementation
This implementation uses reflect.TypeOf(), which is the same as fmt.Sprintf("%T"). It basically the same as typeOfT.PkgPath() + "." + typeOfT.Name().
For the following code it generates such qualifiers:
// service_test.go
type testStruct struct{}
type testInterface interface{}

type
qualifier

testStruct
github.com/samber/do.testStruct

*testStruct
github.com/samber/do.*testStruct

testInterface
github.com/samber/do.*testInterface

int
int

*int
*int

Alternatives
typeOfT.Name() vs. typeOfT.String()
fmt.Sprintf("%T") uses typeOfT.String(). But typeOfT.String() says "The string representation may use shortened package names and is not guaranteed to be unique among types." Therefore it cannot be guaranteed for usage as a type qualifier.
Processing method of pointer indirect star
The current do.*test looks strange but I haven't thought of a better one yet.
Testing
Tests have all been updated. Maybe it's necessary to create two test packages to test bugs mentioned above, but adding two new files for this is somewhat weird so I didn't do that. Is it necessary?
Compatibility
This doesn't introduce API changes and therefore it should be possible to add into v1. But it introduces internal behavior changes so please consider it carefully.

Downgrading PR to draft due to design defects.

I did some research and found some other problems of this PR.
typeOfT.String()

Do you know in what case typeOfT.String() might break?

Currently typeOfT.String() works well on all types using formats like package.TypeName (eg. do.Test). I didn't choose typeOfT.String() because the documentation clearly states that it is not guaranteed as type qualifers and may change at any time in the future. And there's another point that makes me drop typeOfT.String():
typeOfT.Path() + typeOfT.String()
Another consideration is of the format of typeOfT.String(). Consider *[]do.Test: it is actually a combination of extra indicator *[], package name do and type name Test. That means that if we use typeOfT.Path() + typeOfT.String(), the final result will be something like this:
    github.com/samber/do.    *[]    do    .Test
        |                     |      |      |
        |     Why indicator here?    |   Type name
        |                  Package name again?
  The package path (including package name)

To solve this problem and resort the final string, we have to add another piece of logic to split typeOfT.String() into parts. That of course hurts the robustness again.
Unnamed Types
Then I found another serious problem browsing the documentation: the typeOfT.PkgPath() and typeOfT.Name() return empty string for unnamed types. *do.Test and []do.Test are of course unnamed types. typeOfT.String() is not affected because it actually uses magic to get qualifiers "implemented in the runtime package", not info in reflect.Type.
This means that, if we don't handle all reflect.Kind (Chan, Func, Map, Pointer, etc.) manually, we won't able to use typeOfT.PkgPath() and obviously this PR will not achieve the goal.
For example a type like *map[string]*do.Test, we need to 1. extract typeOfT.Elem() to indirect pointer; 2. extract typeOfT.Key() and typeOfT.Elem() to get type of K/V; 3. extract typeOfT.Elem() again to finally get its base struct, and then get the package path to qualify it in the global. This is far more than such a lightweight DI can do and should do.
Conclusion
As a temporary solution, we can extract base struct only for maps (uses package path of value type), slices and pointers, then use typeOfT.Path() + typeOfT.String(). It may produce results like github.com/samber/do.*[]do.Test but will still have many edge cases, any of which can lead to bugs. I don't know if it's worth doing this any longer...

Codecov Report

Merging #13 (c5d56ed) into master (7123d38) will increase coverage by 0.44%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
+ Coverage   91.16%   91.60%   +0.44%
==========================================
  Files           6        6
  Lines         396      405       +9
==========================================
+ Hits          361      371      +10
+ Misses         26       25       -1
  Partials        9        9

Flag
Coverage Δ

unittests
91.60% <100.00%> (+0.44%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

service.go
100.00% <100.00%> (+11.11%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Hi @ilharp 👋
I added a commit for supporting array and slice.
name = generateServiceName[*[]*[]**int]()
is.Equal("*[]*[]**int", name)

I will try to push it to do@v2

I made a dedicated pkg with 95% type coverage -> https://github.com/samber/go-type-to-string


fix: Replace shortid package with nanoid package

Resolves https://github.com/deephaven/web-client-ui/issues/1922
Changes Implemented:

Replaced shortid with nanoid, given that shortid is deprecated (Reran all tests to ensure that functionality upholds)

Info on Nanoid: https://github.com/ai/nanoid/blob/main/README.md

Looking into errors here

Remove esmify from golden-layout dev deps and add babelify as a dev dependency.
In karma.conf.cjs remove the plugins line and add this. For some reason esmify isn't transforming node_modules even though it says it does (it might not understand the package.json of nanoid).
transform: [
  ['babelify', { presets: ['@babel/preset-env'], global: true }],
],

This seems to fix the issue by using babel to transpile the ESM before the bundling for the test.

LGTM. Will wait for @mattrunyon to approve since he suggested the babelify change, and I'm less familiar here

Sounds good, thanks @bmingles


[asio] upgrade to v1.22.1

Updates the asio port to the newest 1.22.1 version.

What does your PR fix?

Updates asio port to 1.22.1

Which triplets are supported/not supported? Have you updated the CI baseline?

No changes

Does your PR follow the maintainer guide?

Yes

All features are tested successfully in the following tripet:

x86-windows
x64-windows
x64-windows-static


warnet windows support

I'm trying to get warnet to work on my windows (with latest docker desktop installed).
I followed the install tutorial.
Then, I'm running: .\.venv\Scripts\Activate.ps1 in powershell
Followed by
warnet --help
Usage: warnet [OPTIONS] COMMAND [ARGS]...
...

all good so far, even warnet status tells me:
Total Tanks: 0 | Active Scenarios: 0
Network connected

but then I try to deploy my own project folder twn with warnet deploy .\network\networks\twn\ and I get:
[WinError 2] The system cannot find the file specified
It looks like kubectl is not installed. Please install it to continue: https://kubernetes.io/docs/tasks/tools/

however in the same shell I can run
(.venv) PS C:\development\warnet> kubectl
kubectl controls the Kubernetes cluster manager.

Thanks for this report.
I don't know much about windows, but I am wondering if this works under WSL? (or is this how you were trying to run it here?)


Variants and attributes page is more confusing then helpful

Issue type
Wrong or misleading information
Problem description

For example, a library may have an api and an implementation variant. Here, the consumer wants an external implementation variant:
            attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL))

So the text talks about api and Implementation which should be USAGE: Java_API/JAVA_RUNTIME, but the code example is about bundling?
The next 2 code example use   attribute(TargetConfiguration.TARGET_ATTRIBUTE which I dont know did such an attribute ever exist? Is it mentioned somewhere its made up?
This codeexample seems to be straight up missing..
https://docs.gradle.org/current/userguide/variant_attributes.html#sec:abm-compatibility-rules
Context (optional)
No response
Page with the problem
https://docs.gradle.org/current/userguide/variant_attributes.html

This is a valid documentation issue.
Related:

https://github.com/gradle/gradle/issues/12126

I decided to not create a new issue, but to add a complain to this page here:
The code snippet for Attribute compatibility rules is lost:

Even if I fix the code for displaying code snippet like this:
- include::sample[dir="snippets/dependencyManagement/customizingResolution-attributeSimple/kotlin",files="lib/build.gradle.kts[tags=attribute-strategy]"]
+ include::sample[dir="snippets/dependencyManagement/customizingResolution-attributeSimple/kotlin",files="consumer/build.gradle.kts[tags=attribute-strategy]"]
- include::sample[dir="snippets/dependencyManagement/customizingResolution-attributeSimple/groovy",files="lib/build.gradle[tags=attribute-strategy]"]
+ include::sample[dir="snippets/dependencyManagement/customizingResolution-attributeSimple/groovy",files="consumer/build.gradle[tags=attribute-strategy]"]

it's anyway not the piece of the code expected in this place.
The valid code snippet seem to be lost in 08fe4888879574d34


audacity: Fixes download URLs and updates to version 3.4.1

Since Audacity 3.4.0, new releases use different suffixes for bit, which break compatibility with the current manifest and makes auto-update non-functional. This should fix "404 Not Found" error and update the manifest to the latest program version as well.

[X] I have read the Contributing Guide.

/verify


Release v1.6.0

[x] I've updated the (WIP) tag to today's date in CHANGELOG.md
[x] I've added the release label to this PR

Changes

Added the ability to login. While logged in this will forward the OIDC access token to the backend such that a secure user access control is established. This is only performed when the following config value is set: (#70, #137, #138)
{
  "oidcConfig": {
    "enabled": true
  }
}

Changed function calls and type names to match the regenerated rest clients using: (#91)

wharf-api from v4.1.0 to v5.0.0.
wharf-provider-azuredevops from v1.2.0-rc to v2.0.1.
wharf-provider-github from v2.0.0-rc to v2.0.0.
wharf-provider-gitlab from v1.2.0-rc to v1.3.0.

Added test results failed/skipped/passed numbers to each build in a project's build list. (#53)

Added test result details, showing test messages and per-artifact test results, to the build details page. (#53)

Security: Changed version of wharf-collect-licenses from v1.0.0 to v2.0.0, which includes upgrade of node-fetch from v2.6.5 to v3.2.0, fixing CVE-2022-0235. (#110)

Fixed project ID not being sent to the provider APIs when refreshing, which was resulting in attempting to import the project anew instead. (#113)

Added field for changing execution engine used in a build via the "RUN ALL OPTIONS" modal. (#122)

Removed unused configs, specified in assets/config.json, and "Environment" object in assets/config.json and inlined their configs instead, as well as renamed Name to name and IsProduction to production: (#127)
--- a/assets/config.json
+++ b/assets/config.json
 {
-  "Environment": {
-    "Name": "lorem-ipsum",
-    "IsProduction": true
-  },
+  "name": "lorem-ipsum",
+  "production": true,

-  "UpdateLatency": 20000,
-  "UpdateFrequency": 30000,

   "BackendUrls": {
     "Api": "/api",
     "Gitlab": "/import",
     "Github": "/import",
     "AzureDevops": "/import",
   }
 }

Backward compatibtility is added, so the Environment.Name and Environment.IsProduction inside assets/config.json still work.

Deprecated all PascalCased fields inside assets/config.json in favor of camelCased variants. Wharf-web performs automatic translation, but please migrate your configs to camelCase as soon as possible, such as: (#127)
--- a/assets/config.json
+++ b/assets/config.json
 {
-  "BackendUrls": {
-    "Api": "/api",
-    "Gitlab": "/import",
-    "Github": "/import",
-    "AzureDevops": "/import",
-  }
+  "backendUrls": {
+    "api": "/api",
+    "gitlab": "/import",
+    "github": "/import",
+    "azureDevops": "/import",
+  }
 }

Changed version of dependencies:

@angular/* from v12.1.1 to v13.3.2 (#125)
eslint from v7.30.0 to v8.12.0 (#125)
ng-packagr from v12.1.1 to v13.3.0 (#125)
primeicons from v4.1.0 to v5.0.0 (#125)
primeng from v12.0.0 to v13.3.3 (#125)
rxjs from v7.2.0 to v7.5.5 (#125)
typescript from v4.3.5 to v4.6.3 (#125)

Changed to require Node 16 or later due to new package-lock.json format changes since NPM 7.0.0, which comes with Node 15.0.0 or later. (#130)

Security: Changed version of Alpine packages in Dockerfile to resolve CVEs:

xz-libs ≥ v5.2.5-r1 to resolve CVE-2021-3918 (#129)

freetype ≥ 2.11.1-r1 to resolve CVE-2022-27404 (#139)

curl & libcurl ≥ 7.80.0-r1 to resolve CVE-2022-22576, CVE-2022-27774,
CVE-2022-27776, and CVE-2022-27775 (#139)

Fixed PrimeIcons icon names since upgrade from v4 to v5 in #125. (#141)

Actions after merge
Follow the step-by-step guide found here:
https://iver-wharf.github.io/#/development/releasing-a-new-version?id=merging-a-release-pr

Would be nice to include https://github.com/iver-wharf/wharf-web/pull/141 too

Noticed blocker: SSE doesn't work. Can't set HTTP headers to SSE requests via JavaScript natively. In result, our logs streaming doesn't work.
I'm investigating atm, but waiting to merge this for now.


build_regex_from_schema: Implementation of pattern disagrees with JSON schema spec

Describe the issue as clearly as possible:
The JSON schema specification states, of the pattern keyword:

A string instance is considered valid if the regular expression matches the instance successfully. Recall: regular expressions are not implicitly anchored.

This means that, for instance, {"type": "string", "pattern": "abcd"} should match "before abcd after". However, the regular expression Outlines currently generates acts as if the pattern is implicitly anchored, and that schema is interpreted as if it was {"type": "string", "pattern": "^abcd$"}
Steps/code to reproduce the bug:
import re
import json
from outlines.generate.json import build_regex_from_schema
sample_schema = json.dumps({'type': 'string', 'pattern': 'abcd'})
sample_regex = build_regex_from_schema(sample_schema)
print(re.match(sample_regex, json.dumps('abcd'))) # => True
print(re.match(sample_regex, json.dumps('before abcd after'))) # => False

Expected result:
The second example should be true, not false

Error message:
No response
Outlines/Python version information:
Version information

```
0.0.47.dev37+g26e2934
Python 3.12.4 (main, Jun  7 2024, 00:00:00) [GCC 13.3.1 20240522 (Red Hat 13.3.1-1)]
aiohttp==3.9.5
aiosignal==1.3.1
annotated-types==0.7.0
anyio==4.4.0
attrs==23.2.0
beartype==0.15.0
certifi==2024.6.2
cfgv==3.4.0
chardet==5.2.0
charset-normalizer==3.3.2
cloudpickle==3.0.0
cmake==<IP_ADDRESS>
coverage==7.5.3
datasets==2.20.0
diff_cover==9.0.0
dill==0.3.8
diskcache==5.6.3
distlib==0.3.8
distro==1.9.0
filelock==3.15.1
flake8==7.0.0
frozenlist==1.4.1
fsspec==2024.5.0
h11==0.14.0
httpcore==1.0.5
httpx==0.27.0
huggingface-hub==0.23.4
identify==2.5.36
idna==3.7
iniconfig==2.0.0
interegular==0.3.3
Jinja2==3.1.4
jsonschema==4.22.0
jsonschema-specifications==2023.12.1
lark==1.1.9
llama_cpp_python==0.2.78
llvmlite==0.43.0
MarkupSafe==2.1.5
mccabe==0.7.0
mpmath==1.3.0
multidict==6.0.5
multiprocess==0.70.16
nest-asyncio==1.6.0
networkx==3.3
ninja==<IP_ADDRESS>
nodeenv==1.9.1
numba==0.60.0
numpy==1.26.4
nvidia-cublas-cu12==<IP_ADDRESS>
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==<IP_ADDRESS>
nvidia-cufft-cu12==<IP_ADDRESS>
nvidia-curand-cu12==<IP_ADDRESS>
nvidia-cusolver-cu12==<IP_ADDRESS>
nvidia-cusparse-cu12==<IP_ADDRESS>
nvidia-nccl-cu12==2.20.5
nvidia-nvjitlink-cu12==12.5.40
nvidia-nvtx-cu12==12.1.105
openai==1.34.0
outlines @ ~/Projects/outlines
packaging==24.1
pandas==2.2.2
platformdirs==4.2.2
pluggy==1.5.0
pre-commit==3.7.1
py-cpuinfo==9.0.0
pyairports==2.1.1
pyarrow==16.1.0
pyarrow-hotfix==0.6
pycodestyle==2.11.1
pycountry==24.6.1
pydantic==2.7.4
pydantic_core==2.18.4
pyflakes==3.2.0
Pygments==2.18.0
pytest==8.2.2
pytest-benchmark==4.0.0
pytest-cov==5.0.0
pytest-mock==3.14.0
python-dateutil==2.9.0.post0
pytz==2024.1
PyYAML==6.0.1
referencing==0.35.1
regex==2024.5.15
requests==2.32.3
responses==0.25.3
rpds-py==0.18.1
safetensors==0.4.3
setuptools==70.0.0
six==1.16.0
sniffio==1.3.1
sympy==1.12.1
tokenizers==0.19.1
torch==2.3.0
tqdm==4.66.4
transformers==4.41.2
typing_extensions==4.12.2
tzdata==2024.1
urllib3==2.2.1
virtualenv==20.26.2
wheel==0.43.0
xxhash==3.4.1
yarl==1.9.4
(command output here)
```

Context for the issue:
Bringing Outlines into compliance with the JSON schema spec here would unfortunately be a breaking change, as it's likely that at least some users have been expecting the patterns they wrote to be exact matches rather than partial matches.

This is probably a side effect of interregular, which has implicit anchoring: https://github.com/MegaIng/interegular/issues/10

Bringing Outlines into compliance with the JSON schema spec here would unfortunately be a breaking change, as it's likely that at least some users have been expecting the patterns they wrote to be exact matches rather than partial matches.

Possibly, however this feature didn't even work until 2 months ago https://github.com/outlines-dev/outlines/commit/60e89f5706e3d0f9837e271e04a39fb6e81d92df
A good approach might be to implement this, and provide a warning describing the new behavior and mitigation strategies if a pattern is used.


Proper Guild-User Memberships

Current coverage is 100% (diff: 100%)

Merging #10 into master will not change coverage

@@           master   #10   diff @@
===================================
  Files          15    18     +3
  Lines         169   196    +27
  Methods         0     0
  Messages        0     0
  Branches        0     0
===================================
+ Hits          169   196    +27
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update 41e2cf8...b61cae8

This needs some fix-up / squashing after the recent bot / web fork.


[Fixes #20] Automate update of last_updated key

This change will updated the date/time associated with the last_updated key in both the formatted and minified versions of the dpdb files.

@thoragio Awesome!


Chore(storybook): Allow cross origin request to Storybook app

Description

Additional context

Issue reference

coverage: 78.761%. remained the same
when pulling 40c604907efe66e429bcc9f06e66217692c28c03 on chore/allow-cross-origin-for-storybook
into f2a263b6297d35b1de724d90516540cb250c7c7c on main.