Zig files get the wrong style of comments

When commenting lines in a zig file the comment style used is /* ... */ but zig comments should use // ....

You can change this with ftplugin. Create a file called zig.lua inside ~/.config/nvim/after/ftplugin/ and add this line to it:
vim.cmd[[setlocal commentstring=//\ %s]]


Translated 40 cities to Sinhala

Also updated percentage in readme. 43% completed! yay!!! :yellow_heart:

WOW! fantastic job bro!
Thank a lot for all your hard works!!


[apiview] adding pr support

closes https://github.com/Azure/azure-sdk-tools/issues/8821

/azp run cpp - template - ci

/azp run cpp - template - ci

powershell/yaml LGTM but I'll defer to Praveen for approval.

/azp run cpp - template - ci

API change check
API changes are not detected in this pull request.

pipeline run: https://dev.azure.com/azure-sdk/public/_build/results?buildId=4186257&view=logs&j=a7bbfb1e-9b1d-5480-b954-b42b4949e5ba&t=d2882e8e-3f84-5d13-b2a9-0f13ca3ef387
pr comment generated by this step: https://github.com/Azure/azure-sdk-for-cpp/pull/5932#issuecomment-2363931671

all of the azure-template changes are for testing purposes, will delete before merging


using Linking / LinkingIOS

I'm trying to use your plugin with the RN LinkingIOS (or newer Linking) function. The problem is both plugins use the objective-c function openURL: and I don't have a plan how to use both plugins at the same time. Do you have an idea how to get rid of this?
thanks for any advice

(BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
NSString *strURL = [url absoluteString];
if ([strURL hasPrefix:@"sabri"]) {
return [RCTLinkingManager application:application openURL:url
sourceApplication:sourceApplication annotation:annotation];
}
return [
[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url
sourceApplication:sourceApplication
annotation:annotation
];
}

where "sabri" should be replaced by your url scheme.

wow works perfectly
thank you very much :beers:

I think it's better to use the solution from the facebook sdk documentation:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
    sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {

  BOOL handledFB = [[FBSDKApplicationDelegate sharedInstance] application:application
    openURL:url
    sourceApplication:sourceApplication
    annotation:annotation
  ];

  BOOL handledRCT = [RCTLinkingManager application:application openURL:url sourceApplication:sourceApplication annotation:annotation];

  return handledFB || handledRCT;
}


Display designer suggestion

Front end suggestions:
In the display design interface, when selecting a specific layer on the right side of the layer, it is recommended to select the entire line. You can push the code if you want.
前端建议：
在display 设计界面，右边“图层”选择具体图层时建议选中整行。如需要可以推送代码。

resolved in v0.3.0-beta.9


Flight Hub doc for Windows 10 Insider build Needs Updates

@lizap Please update the Flight Hub doc for Windows 10 Insider build 18995.
https://github.com/microsoftdocs/windows-insider/blob/master/wip/flight-hub/index.md

@sujayvsarma  - Thank you for submitting feedback.
I will get this issue over to the Windows Insider writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@bleblancMSFT - Can you please assist with this request? This might be addressed in PR #234 which was created by @ItzLevvie
Thank you.
cc: @kenwith

Hi @mypil - this was added in via PR 234. I approved the merge :-)


App publication requires additional manual step to be available for users

Hello!
I integrated this plugin quite effortlessly, many thanks!
After testing I realised though that the publications are not automatically submitted for review. I would like it to submit the build in a way, that it's available to the users with no further human action. The reality is that it requires me to manually click 'submit' in the console. I additionally receive an email from huawei that Promotion has been enabled for your app #appname# (#appid#). Is this expected? I publish with default config (ie default deployType, regular apk). Is this how this should behave?

1.2.3-SNAPSHOT should fix your problem -> https://github.com/cianru/huawei-publish-gradle-plugin/pull/19#issuecomment-769884670

Is it likely that it will lend as a release? I would like to avoid having a crucial release step depending on a snapshot release that could break any minute with new version. Can I help with that somehow?

@dbarwacz Hi, The 1.2.3-SNAPSHOT is stable version and I won't to change it. Later I'm going to release it as v1.2.4.

Release at v1.2.4


[Feature request] improve Hot Reload feature

At the moment, if we want to use the hot reload functionality, then we need to write this to the VSCode settings.json:
"files.autoSave": "afterDelay",
and run this command:
npm run serve
This functionality is well suited for those cases when we edit html or css but when we write a logic of the app, this is not the optimal option, because during the software development process there is constant and unnecessary compilation of code.
The solution to this problem could be if we write in settings.json this:
"files.autoSave": "onFocusChange",
or even this:
"files.autoSave": "off",
But it's a compromise, why compromise if you don't have to compromise?
There are two solutions; One is a button on the taskbar, how this is done in the Visual Studio IDE 2022

and another solution is Flutter extension for VSCode:
https://github.com/vuejs/language-tools/assets/38082501/8e909c3f-3639-4d6d-b751-918a3ab7e6d2
It would be good if we combine these two methods and do this: let's write again in settings.json:
"files.autoSave": "afterDelay",
then let's create a small menu on the VSCode taskbar:

run the command:
npm run serve
Then if we select Hot Reload, everything happens as before: the system looks at the changes in the files and compilation occurs instantly but if we select Run on Ctrl+S, then compilation occurs only when the buttons on keyboard (or triangle button on taskbar) are clicked. It is important to note here that the ESlint should be launched only when the buttons (Ctrl+S) are pressed, otherwise this functionality doesn't make sense.

Wrong repo?

Wrong repo?

which is correct repo?

You mean the vue extensions should integrate with the bundler and hot-reload when you change your code?

Yes, it would be better if we got this functionality out of the box.

I think that's just added complexity for no real gain, the dev server can just watch the filesystem imo.

I think that's just added complexity

come on, bro... for Visual Studio IDE 2022 and for Flutter this does not add complexity, but for Vue it does?!

Honestly this "hot reload" feature is provided by your bundler, such as vite and webpack, right? All you need is to save the file and wait for it to reload.

@so1ve bro, don't you see my Flutter vide example above? The Flutter developers do not disable coolest feature of VSCode: "files.autoSave": "afterDelay".  and Vue.js developer should disable this feature and manually save and this is not safe  and not comfortable... a suggest solution when you can switch between the to modes: existing behavior and new one.
you need to test it to understand

regardless of this setting
"files.autoSave": "afterDelay"

if you config your bundle right, the hot reload is an out of box thing.

if you config your bundle right, the hot reload is an out of box thing.

first:
my request is not only about Hot reload but smooth switching between hot reload and Reload on Click.
second:
in my vue.config.js I have:
module.exports = {   devServer: {   webSocketServer: false   } }
and this does not reload browser ( I need to manually reload browser), but comipation still happens, it is compromise... Please give me your solution. hope I will get the experience that I described above.


Mandatory for GTF to be gene-collapsed before entering the annotation_coord for phenotype file

As it turn out. The gene.gtf file provided in out snuc study is exon based instead of gene based. This create a lot of records with duplicates gene IDs but different start-end position and may leads to incorrectly labeled bed file.
Therefore, from a workflow perspective, the gtf needs to be preprocessed via the collapsed gene module.

This understanding expand the scenario of using hg_gtf step of reference preprocessing module to where the fasta file may not be available. Despite that we can easily find a place holder for it, it is still desirable to remove the requirement of it in the hg_gtf step to make things tidy.

@hsun3163 we might want to try the same logic as the adding chr prefix to VCF file -- first, we somehow determine if this is needed at all (we dont have this mechanism for now!), then we trigger the workflow by requiring a specific file target.
I'll have to think of this a bit myself -- if you have a solution in your head please run it by me first before you make changes.

At the moment we already have this mechanism, if the chr prefix is in the the vcf already. Or the fasta file dont have a chr prefix, nothing will be added.


fix yazi version checker for healthcheck

The vim.version.ge method doesn't exist on nvim 0.9.5.
vim.version.gt does and it seems to do what we want here.

I thought about it while afk and I feel like checking for GreaterEqual would make more sense than GreaterThen. I would have to check what the GreaterEqual method is called now, if there is one.

I am currently running the latest nightly and I wonder if it has been changed in a recent version.


Angular Cli Prod Build : Cannot determine the module for class DataTableColumnHeaderDirective

I'm submitting a ...  (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior

Simple getting started based on guide. Just added NgxDatatableModule in app.module.ts. No other include. Works fine on ng serve. Problem with ng build --prod
ERROR in Cannot determine the module for class DataTableColumnHeaderDirective in<EMAIL_ADDRESS>Add DataTableColumnHeaderDirective to the NgModule to fix it.
Cannot determine the module for class DataTableColumnCellDirective in<EMAIL_ADDRESS>Add DataTableColumnCellDirective to the NgModule to fix it.
Cannot determine the module for class DataTableColumnDirective in<EMAIL_ADDRESS>Add DataTableColumnDirective to the NgModule to fix it.
Cannot determine the module for class ScrollerComponent in<EMAIL_ADDRESS>Add ScrollerComponent to the NgModule to fix it.
Cannot determine the module for class DataTableBodyComponent in<EMAIL_ADDRESS>Add DataTableBodyComponent to the NgModule to fix it.
Cannot determine the module for class DataTableBodyCellComponent in<EMAIL_ADDRESS>Add DataTableBodyCellComponent to the NgModule to fix it.
Cannot determine the module for class DataTableBodyRowComponent in<EMAIL_ADDRESS>Add DataTableBodyRowComponent to the NgModule to fix it.
Cannot determine the module for class ProgressBarComponent in<EMAIL_ADDRESS>Add ProgressBarComponent to the NgModule to fix it.
Cannot determine the module for class DataTableRowWrapperComponent in<EMAIL_ADDRESS>Add DataTableRowWrapperComponent to the NgModule to fix it.
Cannot determine the module for class DataTableSelectionComponent in<EMAIL_ADDRESS>Add DataTableSelectionComponent to the NgModule to fix it.
Cannot determine the module for class DatatableRowDetailTemplateDirective in<EMAIL_ADDRESS>Add DatatableRowDetailTemplateDirective to the NgModule to fix it.
Cannot determine the module for class DatatableRowDetailDirective in<EMAIL_ADDRESS>Add DatatableRowDetailDirective to the NgModule to fix it.
Cannot determine the module for class DataTableFooterComponent in<EMAIL_ADDRESS>Add DataTableFooterComponent to the NgModule to fix it.
Cannot determine the module for class DataTablePagerComponent in<EMAIL_ADDRESS>Add DataTablePagerComponent to the NgModule to fix it.
Cannot determine the module for class DataTableFooterTemplateDirective in<EMAIL_ADDRESS>Add DataTableFooterTemplateDirective to the NgModule to fix it.
Cannot determine the module for class DatatableFooterDirective in<EMAIL_ADDRESS>Add DatatableFooterDirective to the NgModule to fix it.
Cannot determine the module for class DatatableComponent in<EMAIL_ADDRESS>Add DatatableComponent to the NgModule to fix it.
ERROR in ./src/main.ts
Expected behavior

ng build --prod to make distribution without errors
Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

npm 5.3.0, node 8.3.0
"dependencies": {
"@angular/animations": "^4.3.5",
"@angular/cdk": "^2.0.0-beta.8",
"@angular/common": "^4.3.5",
"@angular/compiler": "^4.3.5",
"@angular/core": "^4.3.5",
"@angular/forms": "^4.3.5",
"@angular/http": "^4.3.5",
"@angular/material": "^2.0.0-beta.8",
"@angular/platform-browser": "^4.3.5",
"@angular/platform-browser-dynamic": "^4.3.5",
"@angular/router": "^4.3.5",
"@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.30",
"@swimlane/ngx-datatable": "^10.0.5",
"bootstrap": "^4.0.0-alpha.6",
"compass-mixins": "^0.12.10",
"core-js": "^2.4.1",
"enhanced-resolve": "^3.4.1",
"font-awesome": "^4.7.0",
"jquery": "^3.2.1",
"popper": "^1.0.0",
"rxjs": "^5.4.3",
"tether": "^1.4.0",
"zone.js": "^0.8.14"
},
"devDependencies": {
"@angular/cli": "^1.3.1",
"@angular/compiler-cli": "^4.3.5",
"@angular/language-service": "^4.3.5",
"@ngtools/webpack": "^1.5.1",
"@types/jasmine": "^2.5.54",
"@types/jasminewd2": "~2.0.2",
"@types/node": "^8.0.24",
"codelyzer": "^3.1.2",
"jasmine-core": "^2.7.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "~1.7.0",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "^3.3.0",
"tslint": "^5.6.0",
"typescript": "^2.4.2"
}

Table version: 0.8.x

"@swimlane/ngx-datatable": "^10.0.5",

Angular version: 2.0.x

4.3.5

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Language: [all | TypeScript X.X | ES6/7 | ES5]

Any update on the issue?

I was able to fix by removing all @swimlane/ngx-datatable imports, making my own module based on ngx-datatable and using that instead as shared dependency.
`import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import 'rxjs/add/observable/fromEvent';
import { DataTableFooterTemplateDirective } from<EMAIL_ADDRESS>import { VisibilityDirective } from<EMAIL_ADDRESS>import { DraggableDirective } from<EMAIL_ADDRESS>import { ResizeableDirective } from<EMAIL_ADDRESS>import { OrderableDirective } from<EMAIL_ADDRESS>import { LongPressDirective } from<EMAIL_ADDRESS>import { ScrollerComponent } from<EMAIL_ADDRESS>import { DatatableComponent } from<EMAIL_ADDRESS>import { DataTableColumnDirective } from<EMAIL_ADDRESS>import { DataTableHeaderComponent } from<EMAIL_ADDRESS>import { DataTableHeaderCellComponent } from<EMAIL_ADDRESS>import { DataTableBodyComponent } from<EMAIL_ADDRESS>import { DataTableFooterComponent } from<EMAIL_ADDRESS>import { DataTablePagerComponent } from<EMAIL_ADDRESS>import { ProgressBarComponent } from<EMAIL_ADDRESS>import { DataTableBodyRowComponent } from<EMAIL_ADDRESS>import { DataTableRowWrapperComponent } from<EMAIL_ADDRESS>import { DatatableRowDetailDirective } from<EMAIL_ADDRESS>import { DatatableGroupHeaderDirective } from<EMAIL_ADDRESS>import { DatatableRowDetailTemplateDirective } from<EMAIL_ADDRESS>import { DataTableBodyCellComponent } from<EMAIL_ADDRESS>import { DataTableSelectionComponent } from<EMAIL_ADDRESS>import { DataTableColumnHeaderDirective } from<EMAIL_ADDRESS>import { DataTableColumnCellDirective } from<EMAIL_ADDRESS>import { DatatableFooterDirective } from<EMAIL_ADDRESS>import { DatatableGroupHeaderTemplateDirective } from<EMAIL_ADDRESS>import { ScrollbarHelper } from<EMAIL_ADDRESS>@NgModule({
imports: [
CommonModule
],
declarations: [
DataTableFooterTemplateDirective,
DatatableComponent,
VisibilityDirective,
DraggableDirective,
ResizeableDirective,
OrderableDirective,
LongPressDirective,
ScrollerComponent,
DatatableComponent,
DataTableColumnDirective,
DataTableHeaderComponent,
DataTableHeaderCellComponent,
DataTableBodyComponent,
DataTableFooterComponent,
DataTablePagerComponent,
ProgressBarComponent,
DataTableBodyRowComponent,
DataTableRowWrapperComponent,
DatatableRowDetailDirective,
DatatableGroupHeaderDirective,
DatatableRowDetailTemplateDirective,
DataTableBodyCellComponent,
DataTableSelectionComponent,
DataTableColumnHeaderDirective,
DataTableColumnCellDirective,
DatatableFooterDirective,
DatatableGroupHeaderTemplateDirective
],
providers: [
ScrollbarHelper
],
exports: [
DataTableFooterTemplateDirective,
DatatableComponent,
VisibilityDirective,
DraggableDirective,
ResizeableDirective,
OrderableDirective,
LongPressDirective,
ScrollerComponent,
DatatableComponent,
DataTableColumnDirective,
DataTableHeaderComponent,
DataTableHeaderCellComponent,
DataTableBodyComponent,
DataTableFooterComponent,
DataTablePagerComponent,
ProgressBarComponent,
DataTableBodyRowComponent,
DataTableRowWrapperComponent,
DatatableRowDetailDirective,
DatatableGroupHeaderDirective,
DatatableRowDetailTemplateDirective,
DataTableBodyCellComponent,
DataTableSelectionComponent,
DataTableColumnHeaderDirective,
DataTableColumnCellDirective,
DatatableFooterDirective,
DatatableGroupHeaderTemplateDirective
]
})
export class NgxDatatableStubModule { }
`

What do you mean by share Dependencies ? you injected it in your app.module ?

Yes @davidbonachera it will work.
I imported it in shared module and imported that in app module :)

Thank you for this module @arsyed04 you saved me a lot of time. It seems that ngx-datatable is having some component which the AOT compiler can not reach and they needs to be explicitly specified.

@rvmladenov I am glad it helped you, but I am having issues while using this approach with Angular CLI 1.5 and Angular 5. I will try to find a proper fix and maybe create a PR as well in repo.

Hi @arsyed04,
i did the follow steps:

create a new [ngxDatatableStubModule.service.ts] file and paste your code above
in my [app.module.ts]
import { NgxDatatableStubModule } from './services/ngxDatatableStubModule.service';

Questions?
i) May i know if this is what you meant by making own modules?
2) can you show examples of how you make use of the module for your html and ts file to display data ?
Thank you.

If you are using latest version of ngx-datatable then above fix is already incorporated and no longer needed.
Tried with 11.0.4 and Angular 5.0.2

Closing due to @arsyed04 feedback.

I seem to have run into this problem with the latest ngx-datatable (v11.1.5) and Angular v5.0.5. When I try to run a production build with the -prod or "-aot true" flags I get a bunch of errors like this:
ERROR in Error: Cannot determine the module for class DataTableColumnHeaderDirective in<EMAIL_ADDRESS>Add DataTableColumnHeaderDirective to the NgModule to fix it.
"ng serve" works fine.
If this was fixed, did it break again?
Thanks

Upgrading to
"@swimlane/ngx-datatable": "13.1.0",
solved it for me.


Delete gif crash on LV_EVENT_LEAVE

When there is no next frame of data, the task will send a LV_EVENT_LEAVE event
I deleted the gif object on this event,  my program is crashed.
This is original
    if (has_next == 0) {
        lv_event_send(img, LV_EVENT_LEAVE, NULL);
    }
    lv_obj_invalidate(img);
    counter = ext->gif->gce.delay;

I modified this
    if (has_next == 0) {
        lv_event_send(img, LV_EVENT_LEAVE, NULL);
    } else {
        lv_obj_invalidate(img);
        counter = ext->gif->gce.delay;
    }

test code

  void lv_gif_event_cb(struct _lv_obj_t * obj, lv_event_t event)
  {
    if (LV_EVENT_LEAVE != event)  {
      return;
    }

    lv_obj_del(obj);
  }

  lv_obj_t *gif = lv_gif_create_from_file(bg, "z:test.gif");
  lv_obj_set_event_cb(gif, lv_gif_event_cb);

Because there is no way to know the gif is finished, except for LV_EVENT_LEAVE event

Thanks for the report, should be fixed here: 1967de3

Thanks for the report, should be fixed here: 1967de3

Wish LVGL do better

Wish LVGL do better


Beta versions (latest: 0.3.0-rc3)

Github doesn't display pre-release versions on the main page, so this pinned issue will point to the latest version.
If you have any issues with beta versions feel free to make an issue report or reply here.
Current version is 0.3.0-rc3: https://github.com/emoose/OutRun2006Tweaks/releases/tag/v0.3.0-3
Old
0.3.0-rc2: https://github.com/emoose/OutRun2006Tweaks/releases/tag/v0.3.0-2
0.3.0-rc1: https://github.com/emoose/OutRun2006Tweaks/releases/tag/v0.3.0

Every new feature I tried worked nicely here, great work.
I didn't try .wav files yet.
About the "HideOnlineSigninText", I think it would be better to show the "Sign-in" option while you don't find how to remove the text. The most anoying by far anyway was the "Not Signed In" text, since it flashed extremely fast with higher framerates.

Posted 0.3.0-rc2, adds ControllerHotPlug which should let game detect new controllers without needing a restart, kept forgetting to turn it on before launching and it bugged me lol.

I think it would be better to show the "Sign-in" option while you don't find how to remove the F1 buttom

Yeah probably would look better than just having the button there, changed it in rc2.

This can be closed. The two 0.3.0 appeared on the main page!

It still shows as OutRun2006Tweaks 0.2.5 for me on https://github.com/emoose/OutRun2006Tweaks, I think only way to see the pre-release versions is on releases page directly https://github.com/emoose/OutRun2006Tweaks/releases
Will probably release 0.3 proper soon, just got one more thing I'm hoping to add there...

 It shows 0.2.5 but also "+10 releases" right under that and that includes the three release candidate.

It took me some time figuring it out since I'm not a file format expert so just for posterity, the dumped .DDS textures are DXT5 format if you want to play around with upscaling and the likes.

It still shows as OutRun2006Tweaks 0.2.5 for me on https://github.com/emoose/OutRun2006Tweaks, I think only way to see the pre-release versions is on releases page directly https://github.com/emoose/OutRun2006Tweaks/releases
Will probably release 0.3 proper soon, just got one more thing I'm hoping to add there...

Where can I get uncompressed files?

Where can I get uncompressed files?

Outrun 20th anniversary box has pretty much all the C2C tracks included with it, can't really include them with the mod, but shouldn't be too difficult to find.
(The Turbo Outrun songs like Rush a Difficulty seem a bit different in that set though, did find an uncompressed one for Rush a Difficulty that matches C2C but haven't found the other two yet...)

Do you know a good offline flac to wav converter?

I just used ffmpeg to handle it, not sure if there's any good GUI tools for it, you can use this bat script if ffmpeg.exe is in the same folder:
@echo off
for %%i in (*.flac) do (
    ffmpeg -i "%%i" -c:a pcm_s16le "%%~ni.wav"
)

Thanks, I have ffmpeg here.


Profile sorting logic

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (6b7f288) 88.10% compared to head (2da6a51) 87.86%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #297      +/-   ##
==========================================
- Coverage   88.10%   87.86%   -0.24%
==========================================
  Files          19       19
  Lines         958      964       +6
==========================================
+ Hits          844      847       +3
- Misses        114      117       +3

Files
Coverage Δ

seagoat/queue/base_queue.py
68.33% <100.00%> (ø)

seagoat/queue/task_queue.py
64.51% <50.00%> (-1.56%)
:arrow_down:

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


Ability to manually control help output (issue #23)

Hello!
first off this is 100% backward compatible.  It does add the new Help interface.  So I suppose if people wrote a new / custom loader, they would need to implement that (trivial)
type Loader interface {
    Load(s interface{}) error
    Help() string   // <----------- NEW
}

so out the box everything is the same.  same output.  same exit.
if you want to customize, you'd need to set your FlagLoader.ErrorHandling = FlagLoader.ContinueOnError.
and then follow this pattern
BEFORE
config := &Config{}
        l := multiconfig.MultiLoader(configLoaders...)
        err := l.Load(config)  // <------ if -help was done, this called os.Exit(2) :-(
        if err != nil {
               return nil, err
       }

AFTER
        config := &Config{}
        l := multiconfig.MultiLoader(configLoaders...)
        err := l.Load(config)
        if err != nil {
                if err != flag.ErrHelp {  // <----- golang stdlib flag specific
                        return nil, err
                }
                // if we are here, we asked for help.
                // and I can add a header, footer whatever.
                fmt.Println(cliLoader.Help())
                fmt.Println(envLoader.Help())

                os.Exit(2)  // <-- I choose
        }

Please advise!

Oh interesting, I think you are right.  Just changing the exit strategy will allow whatever one wants for help.   I'll try to take a look later today.


Made complex directories for python protoc test

I've created a more complex directory structure for the pytho protoc plugin test (#3866).  As far as I can tell, the generated python is able to resolve all the files correctly.

Anything noteworthy in the text of the generated code?

The code could use some stylistic touch ups such as avoiding the import statements in the server/stub methods, removing unused imports, better line spacing ext, but I think this confirms that the generated code at least functions correctly when dealing with a complex directory structure.

Change content looks good; please squash commits.

Squashed commits.

luhguhtum; thanks for the work.


[doc] improve raspberrypi / apigpio documentation

It would be nice to have a bit more detail in the raspberrypi documentation.
Am willing to contribute towards this if I get something working.
For example, does another process need to be started for apigpio to run on port 8888 or is it mpf that starts it ? Maybe also an example (if possible) where mpf is running on a PC and a raspberrypi runs apigpio on the network.

We are using pigpio on the RPi side: http://abyz.me.uk/rpi/pigpio/pigpiod.html. MPF works as long as it can connect to pigpio. Please also note that pigpio does not support hardware rules like other pinball platforms.

Thanks for the docs improvements!


touying-unistra-pristine:1.2.0

I am submitting

[ ] a new package
[x] an update for a package

General

Updated to Typst 0.12.0.

Slides

Title Slides:

Added multiple logo support.

Use the logos parameter to specify several logos to be shown side-by-side. logos takes an array of images as input. Both logo and logos cannot be set at the same time.

Settings

Reworked how settings are handled to allow full compatibility with Typst Universe.

Settings should now be specified by adding the config-store() object when initializing unistra-theme, as it is standard to do with Touying themes.
The following settings are available: show-header (bool), show-footer (bool), footer-upper-sep (str), footer-lower-sep (str), font (array[str]), quotes (dict[str]).

Admonitions

Admonitions now allow the following optional arguments:

lang (str, default: "fr"): the language to show the admonition title in. Accepts one of the langs in the ADMONITION-TRANSLATIONS dict.
plural (bool, default: false): whether the admonition title should be plural.
show-numbering (bool, default: false): whether the admonition number should be appended before the title. This replaces the old ADMONITION-NUMBERING setting in settings.typ, and allows for individual admonition customization.

Other

Added support for short-title and short-subtitle parameters in config-info object.
Reduced list item spacing to 1em.

Fixes

Minor fixes to positioning.

Thanks!


it's not Issue. just i have some questions.

Hi. I am very impressed with what you made.
actually, I'm also trying to get yolov4-tiny to work in unity.
However, I think UNITY will have difficulties because it is my first time using it.
I converted the yolov4 model trained on darknet to onnx.
And then I uploaded it to unity, but I can't seem to read the model file.
Like I said, I know very little about unity.
So, I'd like you to explain the tutorial or process of applying yolov4 to unity. Can you do that?

I wrote the network architecture by hand by comparing each output layers one by one from the actual tensorflow output. Unless you need to do it this way, I suggest using Barracuda, a neural network library for Unity. They have a few examples including YoloV2 tiny.
https://github.com/keijiro/TinyYOLOv2Barracuda

Thanks to your apply.
Q1. I read about barracuda too. But it seems that only yolov2 or v3 can be used. Isn't that??
When exporting from TensorFlow or Keras, use TF-1 instead of TF-2.

This is the phrase written in the official barracuda manual.
It seems to me that the operations supported by tensorflow 2 are not possible in unity....
Q2. I looked for another way, and this is a c# based tensorflow.
Tensorflow.NET
So, integrate Tensorflow.NET and UNITY, and I'm trying to use my yolov4 model.
I think it's better to do this than barracuda. What do you think?

Yea barracuda's pretty limited compared to the other libraries. You can try importing external C# libraries into unity, not sure how much of that is documented. Or you can keep unity out of the equation until you actually need it like building everything in an external program that unity just calls.

Okay i really really appreciate to your advise!!
I will try and review the compatibility work through tensorflow.NET. Thank you so much and hope you have a good day!


Take a look at ResponseRecorder

I only recently saw it but you might be able to just use this
Originally posted by @ChrisSchinnerl in https://github.com/SkynetLabs/pinner/pull/1#discussion_r857497989

This is no longer relevant, as the code in question is now removed.
It's still a great suggestion and I'll use it in the future.


Support .torrent and magnet sharing to Elementum addon

Tested :+1:
Should I edit the intant-filters in Manifest.xml accordingly ?
For reference: Elementum

@SecT0uch
Thanks for your contribution. Unfortunately it is a breach of our forum rules which also applies to all Kodi sites including Github.
We do not provide any support or consideration for add-ons or other software which breaches the Copyright of the owner and enables piracy.
Your PR will be closed. Please read our rules here... https://kodi.wiki/view/Official:Forum_rules

I didn't read your rules indeed.
It's sad to banish torrent related apps, because torrent isn't only used for piracy.
A lot of Creative Commons content is also out there.

I think torrent might be ok, depending on what it is coded to do, but you specifically referred to Elementum addon which is definitely used for Piracy.

@KarellenX Elementum addon only allows to download and play a given addon.
There is absolutely no code in Elementum that fetches content. :+1:
You must be confused with Elementum Burst. (Which is the one who fetches content)
It would be a good occasion to update the list of banned items to specify Elementum Burst rather than just Elementum

Could you give me a link to the Elementum you are referring to?
Thanks.

Elementum
Thanks for looking into this

Yep, that is banned.

Unfounded


Scalar array-like with asarray=False passed though

Using the new asarray=False functionality with dask.from_array on a scalar array-like (shape=()) results in the array-like itself being returned by compute():
>>> import numpy as np
>>> import dask.array as da
>>> class MyArray:
...     shape = ()
...     dtype = np.dtype('i4')
...     def __getitem__(self, idx):
...         # This is never called by Dask
...         pass
...
>>> a = MyArray()
>>> d = da.from_array(a, 1, asarray=False)
>>> d.compute()
<__main__.MyArray instance at 0x7f36bc726998>

This is preumably because __getitem__ is never called by Dask for scalar arrays. This results in errors if you try to process the Dask object, for example reshaping it:
>>> d = d.reshape((1,))
>>> d.compute()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../dask/base.py", line 99, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File ".../dask/base.py", line 206, in compute
    results = get(dsk, keys, **kwargs)
  File ".../dask/local.py", line 562, in get_sync
    return get_async(apply_sync, 1, dsk, keys, **kwargs)
  File ".../dask/local.py", line 529, in get_async
    fire_task()
  File ".../dask/local.py", line 504, in fire_task
    callback=queue.put)
  File ".../local.py", line 551, in apply_sync
    res = func(*args, **kwds)
  File ".../dask/local.py", line 295, in execute_task
    result = pack_exception(e, dumps)
  File ".../dask/local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File ".../dask/local.py", line 270, in _execute_task
    args2 = [_execute_task(a, cache) for a in args]
  File ".../dask/local.py", line 271, in _execute_task
    return func(*args2)
  File ".../dask/utils.py", line 688, in __call__
    return getattr(obj, self.method)(*args, **kwargs)
AttributeError: MyArray instance has no attribute 'reshape'

The asarray keyword was added as part of the work to allow Dask to return masked arrays, introduced in #2301 and released in v0.15.3, though I believe v0.15.4 is more stable. I don't think it was intended to ever return the original array-like (though I could be mistaken).
@jcrist

Thanks for the issue report. This should be fixed in #2826.
The issue here was that our optimization passes assumed we could remove index operations that should be no-ops following numpy's conventions. This is fine when calling da.from_array on numpy objects, but fails for non-conforming backends.
Since in numpy a[()] returns a view of a, our optimizations would remove this entirely. In #2826 we fix these optimizations to never fully remove indexing from tasks originating in from_array.
You can see that the optimizations are at fault if you turn them off:
In [1]: import dask.array as da, numpy as np

In [2]: class MyArray(object):
   ...:     def __init__(self, x):
   ...:         self.x = x
   ...:     def __getitem__(self, i):
   ...:         return self.x[i]
   ...:     @property
   ...:     def shape(self):
   ...:         return self.x.shape
   ...:     @property
   ...:     def dtype(self):
   ...:         return self.x.dtype
   ...:

In [3]: x = np.zeros(1)[0]

In [4]: mx = MyArray(x)

In [5]: dx = da.from_array(mx, chunks=(), asarray=False)

In [6]: dx.compute()  # optimizations remove indexing task
Out[6]: <__main__.MyArray at 0x117db0710>

In [7]: dx.compute(optimize_graph=False)  # turn off optimizations
Out[7]: 0.0

After PR #2826:
In [5]: dx = da.from_array(mx, chunks=(), asarray=False)

In [6]: dx.compute()
Out[6]: 0.0

@jcrist Thanks for resolving this so quickly! When can we expect this to appear in a release?

Our next release will likely be in a few weeks. For now you can work off master (once that PR is merged):
pip install -U git+https://github.com/dask/dask.git


More detail in the wiki

Would it be possible to have more detail added to the wiki? I'm trying to install Shulker Bot, and have managed to get it working one way (Discord -> MC), but not the reverse.
With reference to the tail command, the wiki says make sure to replace your URL and your log directory location, but what exactly is the URL? Where should it point to? Should this be a discordapp URL, or something on localhost?
Apologies if I'm missing something obvious, but I've been trying all sorts for the past few days and haven't been able to work out how it is supposed to be configured.

tail -F /PATH_TO_MINECRAFT_INSTALL/logs/latest.log | grep --line-buffered ": <" | while read x ; do echo -ne $x | curl -X POST -d @- http://YOUR_URL/minecraft/hook ; done

In the command below that line, there are places called PATH_TO_MINECRAFT_INSTALL and YOUR_URL. If you're running the node script on the same server, make YOUR_URL to localhost and the port specified in the config, by default localhost:8000. The PATH_TO_MINECRAFT_INSTALL should be the main location of the installation.

Thanks destruc7ion, that makes sense to me now and have just had my first success. Much appreciated.


Add try_use_var method to cranelift-frontend.

Please ensure that the following steps are all taken care of before submitting
the PR.

[x] This is a very small PR, so I have no created an issue
[x] A frontend might want to provide its own error reporting to end users if the variable does not exist.
first.
[x] @cfallin (maybe?)

Maybe not for this PR but should we do something similar to declare_var and def_var both can fail in similar conditions to this one (i.e. recoverable user errors)?


Create dev@ mailing list/forum where all the project related discussions could be carried

I think having a place where people can have the conversations about the project's roadmap, issues, design discussions, and more is important. There's a number of ways of doing this. Two most prominent come to mind

Google groups
nabble.com

I have pretty good experience with the latter, but can see why people might like the former. Unfortunate part, is that neither of the tools has any decent integration with github, but perhaps it isn't even needed at this point.
@DmytroLiaskovskyi, @ohrynets, all others - what you guys think?

I think this makes perfect sense. On the other hand I would got with Slack, it becomes more and more popular nowadays.

Slack is fine too. Just one question about it: will be archives available on Slack, considering that we're likely to use their free account. The whole point of mail-lists is the preservation of the history.

See also #145


Variant encodings and typescript side pattern matching

Hi there,
I'm wondering if you use a particular approach to pattern matching on the typescript side? AFAIA there are a number of ways to do so and I'd like to pick one which has a good chance of being maintained:

vanilla switch ala https://gcanti.github.io/fp-ts/guides/purescript.html#pattern-matching
https://github.com/gvergnaud/ts-pattern
https://paarthenon.github.io/variant/docs/intro#match

Do you recommend any approach which would enable compositional pattern matching like in purescript-variant, like https://paarthenon.github.io/variant/docs/intro#grouping ?
Cheers,
Jun

Generally I'd say the way how pattern matching is done on the typescript side is not so important for this library. The encoding matters though. And via variant-encodings I wanted to provide the most common encodings. If you use a library that uses a different encoding and it's common it can be added to variant-encodings lib and bindings here.
Depending on what you're doing, another option is to just export an ADT as opaque type and then provide constructors and destructors, something like:
data Foo = A Int | B String

mkFoo :: {
  _A :: Int -> Foo,
  _B :: String -> Foo
}
mkFoo = ...

matchFoo :: { onA :: Int -> z, onB :: String -> z } -> z
matchFoo = ...

With the implementations written manually (for now) and maybe with a generic function in the future. Those functions you can export with ts-bridge right away.
Regarding the compositional matching, that's an interesting point I did not think about yet. For instance we cannot just generate types for variant's onMatch because of the type class constraints. But you can write a TS function that does the same, however expressing the type level code with TS type level code. But this is all on the TS side. And this should work for every kind of encoding.


Failed Executors are not removed from ZK

With the code from Jan 7, when an Executor task fails, the Scheduler refuses new offers for the same Slave.
See Scheduler log line
16:29:17.825 [Thread-23] INFO  o.a.m.l.scheduler.LogstashScheduler - Received Status Update. taskId=logstash_<IP_ADDRESS>_20160107T162833.357Z, state=TASK_FAILED, message=
16:29:18.656 [Thread-24] DEBUG o.a.m.l.scheduler.LogstashScheduler - Declined offer: id { value: "b3e2f0f9-4178-4b27-b661-a08f83c12af4-O125" }, framework_id { value: "b3e2f0f9-4178-4b27-b661-a08f83c12af4-0002" }, slave_id { value: "b3e2f0f9-4178-4b27-b661-a08f83c12af4-S1" }, hostname: "<IP_ADDRESS>", resources { name: "ports",  type: RANGES,  ranges {  range {   begin: 514,    end: 514,   },   range {   begin: 5000,    end: 5000,   },   range {   begin: 9299,    end: 9300,   },   range {   begin: 33000,    end: 33883,   },   range {   begin: 33885,    end: 34000,   },  },  role: "*" }, resources { name: "cpus",  type: SCALAR,  scalar {  value: 0.8,  },  role: "*" }, resources { name: "mem",  type: SCALAR,  scalar {  value: 873.0,  },  role: "*" }, resources { name: "disk",  type: SCALAR,  scalar {  value: 13483.0,  },  role: "*" }, url { scheme: "http",  address {  hostname: "<IP_ADDRESS>",   ip: "<IP_ADDRESS>",   port: 5051,  },  path: "/slave(1)" },  reason: Host already running task

Wrote a test hoping to catch this behavior, but the test passes ... will investigate tomorrow
https://github.com/mesos/logstash/blob/bug/stopped-executor-not-restarted/system-test/src/test/java/org/apache/mesos/logstash/systemtest/DeploymentSystemTest.java#L221-L254

I made the test more precise yesterday -- it now catches the bug

I think I've fixed it -- we literally hadn't implemented this "feature". So now we listen to events telling us of task failures, and remove the task from the list.

Great news, thanks! Looking forward using it

merged


Executor service and callback for state changes

Currently users can get the dead and live list. Users should also be able to setup callbacks for cluster state notification.

@joprice

I require this for Nibiru's hinted handoff to be alerted when a node returns to life. I am going to go with just implementing a blocking callback. If someone wants to have the callback submit an event to an exectuor service that is fine but for the common case a sync-callback will probably fit the bill, and asking the gossiper to maintain an executor service and seems like it could be out of scope.

Resolved in #5


suggested replacement for logging

would suggest
kubectl -n kube-system logs -l k8s-app=metrics-server -c metrics-server-vpa
than
kubectl -n kube-system logs metrics-server-pod-name -c metrics-server-vpa

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

ID: 2f0fde36-2ff7-b527-3714-641e48c1d91f
Version Independent ID: 54d4e1e4-4ae1-cc2f-2433-91a16507f847
Content: Configure Metrics Server VPA in Azure Kubernetes Service (AKS) - Azure Kubernetes Service
Content Source: articles/aks/use-metrics-server-vertical-pod-autoscaler.md
Service: azure-kubernetes-service
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

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

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


Remove duplicate workflow YAML conditional

The job definition to which this step belongs already includes the same conditional.

Ah, yes, this moved (copied in this case!) when we added trusted publishing.

Thanks!


Fix naive datetimes in google-calendar bot.

We're moving away from all naive datetimes in Zulip (i.e. datetimes without timezone information), since naive datetimes introduce subtle daylight savings bugs (including here).
The events array in /api/integrations/google/google-calendar currently stores naive datetime objects, and it should instead store events in UTC. The two functions that touch it are get_events() (via events = list(get_events()) at the bottom) and send_reminders().
Also, a second issue that could be fixed in a separate commit: get_events should be renamed populate_events, and should just directly populate the events array.
This would be a great project for a new contributor.

@rishig What's your recommendation for handling the RFC 3339 formatted timestamp returned by the Google Calendar event API?
It looks like Python doesn't natively support this format: https://bugs.python.org/issue15873; would you prefer (a) importing a 3rd party library, (b) handling the time zone part (which will be one of Z, +XX:XX, or -XX:XX) by hand, or (c) something else altogether?

@zulipbot label "hi"

Thanks for looking into this @robot-dreams! And you are definitely welcome to work on it :). I'd say something from a 3rd party library, like dateutil.parser.

@rishig Thanks for the tip.  I've pushed an initial draft, but I had two concerns before I open a pull request:

I'm not sure how to test a change to this part of the codebase.  Are there any tests for these integrations?  If not, what's the recommended way to manually test this kind of change?

I'm not sure how to interpret the files in requirements; how can I ensure that the dateutil and pytz will actually be available to the google-calendar bot?

Left some very minor comments, but this looks great, thanks!!

Adding @showell for help -- I'm unfortunately not familiar with the bot system myself, yet. For manual testing, http://zulip.readthedocs.io/en/latest/bots-guide.html#how-to-deploy-a-bot has some info.
Great question. Other bot integrations seem to just write something like "# python-dateutil is a dependency for this script. near the top of the file, e.g. api/integrations/codebase/zulip_codebase_mirror. Steve, thoughts?

We don't have a full-blown automated testing system, but you can look at contrib_bots/bots/virtual_fs/virtual_fs.py for an example of writing tests for a bot that just execute if you run the module standalone.  Eventually we'll sweep the bots and figure out how to create a nicer test suite.
For dependencies, it's also very informal now.  A good comment at the top of the file explaining the dependencies is helpful for now.  Eventually we're going to sweep these and build a real provisioning system for the bots, especially if anybody makes progress on other deployment-related tasks.

Thanks for the initial review and suggestions!  I ended up testing manually.  @rishig any concerns on https://github.com/zulip/zulip/pull/3812 ?


API Gateway proxy/ANY integration to api gateway

Is your feature request related to a problem? Please describe.
Use case:
Serverless microservices are deployed as API Gateway + Lambda Proxy Integration. Authentication is IAM based.
Other API gateways are used to expose these services. They can act as proxy to microservices or as a composer. In this scenario, the job of API gateway is not only to authenticate requests (Cognito, Custom) and do rate limit, but also route, compose or transform.
Problem:
API gateway supports HTTP proxy integration, but if you specify the endpoint of another API gateway with IAM authentication, requests will fail due to missing token (the request is not signed).
The Aws Service integration does not include Api Gateway as a target.
So, Lambda Proxy Integration is the only solution (and also the most flexible).
Describe the solution you'd like
Lambda Power Tools already implement lots of functionality related to routing request paths to functions, handle responses, CORS, etc.
It could be extended to support other features like proxy, transformation and composition.
The proxy feature:

The resolver could match an ANY method and paths such as /orders/{proxy}.
The forward request could be implemented by a function. This function receives the target endpoint. It would build a request to this endpoint using the same verb, adding the path to the endpoint and signing the request (similar to API Gateway HTTP proxy functionality, but with request signing).
The return of the forward request is encapsulated in a Response object and handled accordingly (including Cors, etc)
It could also work with the current decorator by adding a proxy attribute and let the function body do any transformation/processing like adding additional headers

Notice that we may want to expose methods from many microservices. For example:
ANY /orders/{proxy} => proxy do Orders service endpoint
ANY /accounts/{proxy} => proxy to Accounts service endpoints
Describe alternatives you've considered
The alternative we have today is to map all possible paths and verbs (to all microservice methods that should be exposed) and implement the handler the same way (forward request mentioned before), get the response and encapsulate in a Response object.

Closing as shipped. we have also published split routing and other pieces: https://awslabs.github.io/aws-lambda-powertools-python/latest/core/event_handler/api_gateway/#split-routes-with-router


[CLI] Only use referenced dependencies in the linkage table

Description
When a package is added as a dependency in the Move.toml manifest file, it will become part of the linkage table regardless if any code in that package is actually referenced in the code or not.
This PR fixes that by making sure that a package's linkage table contains only the dependencies that are actually referenced in the code by computing the list of dependencies from the modules' dependencies after all modules and their transitive dependencies are compiled rather than the manifest files.
Test plan
Locally: After the change
{
  "data": {
    "package": {
      "modules": {
        "nodes": [
          {
            "name": "b",
            "package": {
              "address": "0xb185657f36ad8af5c84e95884f674747bcfffe5bc51b98053bfbf2c349ef0633",
              "linkage": [
                {
                  "originalId": "0x0000000000000000000000000000000000000000000000000000000000000001",
                  "upgradedId": "0x0000000000000000000000000000000000000000000000000000000000000001",
                  "version": 1
                },
                {
                  "originalId": "0x0000000000000000000000000000000000000000000000000000000000000002",
                  "upgradedId": "0x0000000000000000000000000000000000000000000000000000000000000002",
                  "version": 1
                }
              ]
            }
          }
        ]
      }
    }
  }
}

Before the change
{
  "data": {
    "package": {
      "modules": {
        "nodes": [
          {
            "name": "b",
            "package": {
              "address": "0x1f7f5733d11a5556cddcf73d4642351159b77aafe1b7c5d3d0b2e310f315d4e6",
              "linkage": [
                {
                  "originalId": "0x0000000000000000000000000000000000000000000000000000000000000001",
                  "upgradedId": "0x0000000000000000000000000000000000000000000000000000000000000001",
                  "version": 1
                },
                {
                  "originalId": "0x0000000000000000000000000000000000000000000000000000000000000002",
                  "upgradedId": "0x0000000000000000000000000000000000000000000000000000000000000002",
                  "version": 1
                },
                {
                  "originalId": "0x40adad4ef6d528484468adabe558d051a1d98cd9202de1f4ed3d71724f3f43c3",
                  "upgradedId": "0x922ac7f39faf25f030db32835219e7deb7b87b08f1a7703e1b6e5beb6b5a96f2",
                  "version": 2
                }
              ]
            }
          }
        ]
      }
    }
  }
}

B's source code is:
module b::b {
    use std::string::{Self, String};
    use a_v1::a_v1;

    public fun hello_default(ctx: &mut TxContext) {
        let name = string::utf8(b"hello");
    }

    //public fun test(ctx: &mut TxContext): a_v1::Object {
    //    a_v1::default(ctx)
    //}
}

B's Move.toml dependency list is:
[dependencies]
sui = { git = "https://github.com/mystenlabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }
a_v1 = { local = "../a_v2" }

Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

[ ] Protocol:
[ ] Nodes (Validators and Full nodes):
[ ] Indexer:
[ ] JSON-RPC:
[ ] GraphQL:
[ ] CLI:
[ ] Rust SDK:
[ ] REST API:

This PR breaks the following tests. Would have to look into them:
 TRY 4 FAIL [   0.897s] sui-core move_package_tests::package_digest_changes_with_dep_upgrades_and_in_sync_with_move_package_digest
  TRY 4 FAIL [   2.742s] sui-package-resolver tests::test_function_parameters
  TRY 4 FAIL [   2.010s] sui-package-resolver tests::test_relinking_layout
  TRY 4 FAIL [  23.935s] sui-source-validation tests::linkage_differs
  TRY 4 FAIL [  18.823s] sui-source-validation tests::successful_verification_upgrades
  TRY 4 FAIL [  16.837s] sui-source-validation tests::successful_verification_with_bytecode_dep


Update crate version to 0.2.144

Please make a new release so I can use the new constants I added for macOS. :)
r? @Amanieu

r? @JohnTitor

Sorry, I keep forgetting about that. Updated.

Yeah, sorry that I wasn't clear, but could you also update the libc dependency version of the libc-test crate?

Sorry, I should just have grepped on the current version number to see where I needed to update it... Updated! Thanks to both of you!

Thank you too! @bors r+

:pushpin: Commit 89638b10c57b12de8be9f15ce30e7faf06f02cee has been approved by JohnTitor
It is now in the queue for this repository.

:hourglass: Testing commit 89638b10c57b12de8be9f15ce30e7faf06f02cee with merge e06d9052aac1185201ef0f46f15d745e412388d0...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14
Approved by: JohnTitor
Pushing e06d9052aac1185201ef0f46f15d745e412388d0 to master...

Thanks!


mupdf works but other file formats does'nt open

I have successfully integrated your library into my project but it only opens mupdf not with TBS. Please fix the issue.

I have successfully integrated your library into my project but it only opens mupdf not with TBS. Please fix the issue.

Please provide more information , tks

I want to show .ppt , .doc and .xls files inside webview.

I guess kernel x5 is not loaded. I read the document to fix this issue. Via Wechat. But I don't get how to do it.
testing device has kernel version 3.10.
Please help me out. I'll be really grateful.

If onViewInitFinished is true? (QbSdk.initX5Environment )
发自我的小米手机
在 SamraMehboob<EMAIL_ADDRESS>下午3:28写道：
I want to show .ppt , .doc and .xls files inside webview.
[Screenshot (164)]https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F60770335%2F85196066-f88b5f00-b2f0-11ea-854e-611525bae040.png&data=02|01||23d5b0699b7141b55f5308d814eb8b28|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637282349163261956&sdata=cuEiyMmmu%2B6rt4uetNmFLVI1h0PBm%2BFMOof4wPVV5oo%3D&reserved=0
I guess kernel x5 is not loaded. I read the document to fix this issue. Via Wechat. But I don't get how to do it.
testing device has kernel version 3.10.
Please help me out. I'll be really grateful.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhanlyjiang%2FAndroidDocumentViewer%2Fissues%2F4%23issuecomment-646957435&data=02|01||23d5b0699b7141b55f5308d814eb8b28|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637282349163261956&sdata=ko6kqHFo%2FEgdPqt5Aza4HFU%2FUz5Xqq3UF3Yd%2FPcRlrg%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAB4A7EDA67CAD7EFDHEKXJLRXRQKHANCNFSM4OCB7KBA&data=02|01||23d5b0699b7141b55f5308d814eb8b28|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637282349163271948&sdata=a%2FeHkcSQLAbGAuZnOSoqY%2BhnI4fy%2Br5kqUHgE1PJcA8%3D&reserved=0.

onViewInitFinished is returning false.

onViewInitFinished is returning false.

X5 failed to load.
X5 is a browser kernel provided by China's Tencent. TBS uses X5 to provide the underlying capabilities, but the TBS library does not contain the X5 kernel itself. When TBS is initialized, it will go to: 1) Find and share other Tencent products ( Such as: WeChat, QQ, QQ browser, etc.) X5 kernel; 2) Try to download a set of X5 kernel (this may be affected by the network environment);
In China, WeChat（and QQ） is installed on almost every user’s mobile phone, so TBS can usually be used. For phones that cannot find a shared kernel, TBS has a certain degree of possibility of initialization failure. You can consider whether to use this library according to the actual situation on your side.

Thanks a lot for making this concept clear. I wish it could work at other mobile phone's outside of china as well.

作者您好，安装了QQ浏览器， onViewInitFinished 返回了true，但是依然加载不出来word文档和excel表格，安卓设备已经安装了QQ浏览器，一直卡在 加载中…… 请问这个您知道是怎么回事吗？
我运行官方的demo是可以的（在安装了QQ浏览器的情况下）
另外：国外的项目，国外的网络，在没有安装微信、QQ以及QQ浏览器的情况下，可以安装腾讯X5内核吗？若您知道的话，还烦请您不吝赐教！非常感谢！🙏


Dashboard unconvinient thing

As you know in Dashboard we have 2 view mode: table and thumbinal, but both unconvinient: table is bad because I can't know what is file is that (name is random, date not say much about it, album may be not used), thumbinal is bad because in that mode I don't know what is name of that thumbinal and I don't have delete button on it.
I suggest that to improve both:

for table when hover on a line we will see baloon with thumbinal, so we can know what is image is that and it will not add extra space to a page.
for thumbinal mode when hover on thumbinal, at bottom we will see name of that thumbinal and at top-right will be appear delete button.

P.S. sorry for my English if it hard to understand.

Im gonna make a PR for a fix for problem 1, but not too interested in 2 because i hate thumbnails ¯_(ツ)_/¯

No image on thumbnail.

There's a new dashboard on dev branch, will merge into master and make a release this week


Figure out sender sig auditing issue

https://mysten-labs.slack.com/archives/C02GD7J9HUM/p1654875644603759
cc @bmwill
@kchalkias will write a doc first explaining the auditing issue

We had a long chat re user sigs and have documented all 4 possible solutions in Notion. There is still a decision to be made between the two best candidate options.

may want to wait till consensus stabilizes before we do any major change
also a product decision
will follow up off-line

Done in https://github.com/MystenLabs/sui/pull/3586


Specify manual sort order for specific components

I was wondering if specific components could be added to the Component sort order dialogue. So, for instance, I want C1-C5 to be populated much later than the rest of the capacitors, because they are big and get in the way of D, U, J, etc.
This would require that matching on "C" exclude any explicitly entered components like C1, C2, etc.

No, this is a very narrow use case.
What you can do instead is add an extra field "population order" or whatever you want to call it and then sort the table by that field.

How is this a narrow use case? What if half of your capacitors are SMD, and the other half are electrolytics? You might want to populate the SMD ones, then the SMD ICs, and finish off with the through-hole parts later.
How does the extra field ordering work?

It's a narrow use case because it falls within "custom sorting" which is already achievable.
Look at this demo for an example of extra field https://openscopeproject.org/InteractiveHtmlBomDemo/html/Keithley1950.html
It has "comment" column, you can click on the header to change sorting order.
Similarly you can add your own extra field and sort by that.

OK, so I'd need #124 to make this useful for my customers. Thanks.

In the short term you can achieve the desired default sorting behavior with a bit of custom js.


Add support for django-rest-framework-simplejwt as JWT authentication backend

According to issue #5838 on the DRF repository and a PR raised there, django-rest-framework-simplejwt provides an alternative approach over django-rest-framework-jwt, with regards to security and implementation of JWT as an authentication mechanism. Hence, I'm curious if you guys will be planning to include the simplejwt package as a supported JWT backend? Thanks

Yes I need to implement the viewsets.ModelViewSet with authentication_classes for specific action. For example update or create new instance.
Thank's in advance.
Allan

Thanks for the reply, looking forward to this!

So I don't use https://github.com/GetBlimp/django-rest-framework-jwt but I have to use django-rest-framework-simplejwt? Correct?
But is possible for specific action like update or create ?

@JoelGoh92 But I have the JWT thanks to a keycloak

@Allan-Nava currently for our project, we're not using the rest-auth jwt setup defined in the docs. Instead, after setting up simple-jwt with the steps in the docs, and configuring the settings, we then wrote our own JWTSocialLoginView, JWTLoginView and JWTLogoutView, which were fairly simple, and used them in the required areas.
However I still feel that it is better if these changes were to be supported and maintained by rest-auth instead.

So is not possible in modelviewsets?
Inviato da iPhone

Il giorno 09 mag 2018, alle ore 12:27, JoelGoh92<EMAIL_ADDRESS>ha scritto:
@Allan-Nava currently for our project, we're not using the rest-auth jwt setup defined in the docs. Instead, after setting up simple-jwt with the steps in the docs, and configuring the settings, we then wrote our own JWTSocialLoginView, JWTLoginView and JWTLogoutView, which were fairly simple, and used them in the required areas.
However I still feel that it is better if these changes were to be supported and maintained by rest-auth instead.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@Allan-Nava It may be possible, but I would not recommend the model viewsets though, because these defined view classes will be used in a similar way as to how the current LoginView/SocialLoginView/LogoutView provided by rest-auth are used, and we only need to override the rest-auth implementations' required methods for the JWT token response and usage flow.
The JWT views I mentioned previously are inheriting from the respective classes rest-auth provides, e.g.
class JWTSocialLoginView (SocialLoginView):
     def get_response (self):
     # override method(s) for JWT implementation
     # get JWT token via the simple-jwt package
     # return the generated token in the response

This is because such a class will be reused in a similar manner, e.g. the JWTSocialLoginView defined will be used similarly to how the SocialLoginView provided by rest-auth for OAuth apps is used, other than returning the JWT token(s) in tbe response

But is possibile to use the permission class only for specific action like update or delete?

@Allan-Nava I think the use of JWT here is more for authentication. With DRF, you can set it up pretty easily, e.g. as a default authentication class.
If you're looking to implement permissions control, I would advise you to look at DRF's docs on permissions control.

While django-rest-framework-simplejwt is a newer library with fewer contributors, it is more recently maintained, has higher code quality than django-rest-framework-jwt, allows for the more typical JWT implementation (refresh and access tokens are different) and has extras such as refresh token blacklisting built in.

Just throwing my support behind django-rest-framework-simplejwt.   Would be a huge benefit and streamline the whole authentication workflow,

+1 on this. Please add support to django-rest-framework-simplejwt

+1, I would also love to have support for simplejwt!

+1 for the support of simplejwt

+1 for the support of simplejwt

As per the latest status update on the django-rest-framework-jwt page, this repo is no longer being actively maintained.
https://github.com/jpadilla/django-rest-framework-jwt/issues/484

+1 for the support of simplejwt!

@JoelGoh92 can you please be more specific about the solution of the problem? I'm not so confident with all the LoginView/SocialLoginView/LogoutView overriding thing you suggested

This issue is more than year old. Does someone has a PR for this or suggestion on how to implement it? I just don't want to reinvent the wheel and can work on some other issue.

How to use django-rest-framework-simplejwt as auth backend for django-rest-auth. Note: your needs may differ slightly based on how you implemented rest-auth.
Check your urls.py for where you route the rest-auth endpoints:
urlpatterns = [
    ...
    url(r'^rest-auth/', include('rest_auth.urls')),
    ...
]

You need to override the /rest-auth/login/ path with the login view from django-rest-framework-simplejwt by including it before the rest-auth urls. Here's how:
from rest_framework_simplejwt.views import TokenObtainPairView
...
urlpatterns = [
    ...
    url(r'^rest-auth/login/$', TokenObtainPairView.as_view(), name='rest_login'),
    url(r'^rest-auth/', include('rest_auth.urls')),
    ...
]
...

This'll get you started but there may be other routes you may need to override/create (e.g. logout). If you want the token login response to have non-default data, then you can override TokenObtainPairView with a custom serializer. Finally, because you're migrating from drf-jwt, you may need to change the auth header in settings.py to:
SIMPLE_JWT = {
    ...
    'AUTH_HEADER_TYPES': ('JWT', 'Bearer'),
}

The above worked for me, but was specific to my use case.

Thanks @NidalM. This is helpful. However, I'm actually going to use Simple-JWT for both email login as well as social login and I was trying to avoid writing my own end points for all the features supported by this library.
So if I override login by completely writing my own end point, wouldn't I need to write the end points for everything like Registration, Forgot Password, Social-Auth for every provider etc.
I was hoping that there should be a way to hook in simple-jwt instead of drw-jwt by overriding a common method of JWT token generation and the rest could remain the same.
I'm not sure if there's no way to do that and we have to either write all the end points or change the complete implementation of the JWT token part of this library.

1 for simple_jwt! Commenting to follow this chain

As many others requested... Out of the box simplejwt support would make things so much easier. It's also the suggested JWT package by DRF.

+1 for simple JWT! It's an awesome library!

https://github.com/ankurpandeyvns/django-rest-auth/commit/794dac308da75537d2af15174b8644c0163a2b5a
This may be helpful for those who are looking only for JWT Logins.

+1 for the support of simplejwt

+1 please, this library is extremely useful however the Django  token authentication is simply too insecure for my taste.

+1 please, this library is extremely useful however the Django token authentication is simply too insecure for my taste.

https://github.com/ankurpandeyvns/django-rest-auth/commit/794dac308da75537d2af15174b8644c0163a2b5a
Try this one

+1 for simple_JWT

+1 simpleJWT

+1 simpleJWT

+1 simpleJWT

+1 simpleJWT pls!

+1 for simpleJWT

Django-rest-auth was forked to  dj-rest-auth. See #568 for some info. Lets hope this one becomes the new go to, it seems promising so far.
For all the people requesting simpleJWT, there's a pull request (ready to merge) in the new repo to add simplejwt support. https://github.com/jazzband/dj-rest-auth/pull/3

+1 simple JWT

+1 simple JWT

+1 simple JWT

+1 simpleJWT


Minor: typo in filename

One of the lab instructions .md files has a typo in the filename: 10-Synpase-pipeline.md
I'm not sure if you want to do anything with it but I thought I should just report it.

Thanks. I think we'll just live with it rather than break a bunch of links at this point.


Feature/changeinpluginxml

Modified the plugin.xml based on Evgeny's comment

Will create the PR again after the testing


Switch between task and non-task modes

I think I've raised this before but we did not discuss it in detail. I often switch between prototyping on a desktop computer and running many jobs on a compute cluster. Each time I have to comment and uncomment task: statements. Is there an easier way to make it happen? I'm thinking of leveraging the -q option, by maybe specifying some specific values to force running workflows as if task: does not exist?

Yes, that'd be great. But what if one accidentally typed in None? Hopefully that is not the -q default.

What about tasks with its own queue value? The global -q option is not supposed to override them.

Do we allow for config.yml to set step specific queues? That will remove the limitation because one can always override from there -- by providing different config files with queues configured for different computing environment, including not using task at all (None)

No, but nothing prevents from using
parameter: queue=''
task: queue=queue

or
task: queue=CONFIG['queue']

I have allowed
sos run -q None

and
sos run -q none

to disable task statement without its own queue option.
In addition,
task: queue=None, "None", or "none"

will invalidate the task statement. This allow users to use command line argument to customize step level queue selection.


WIP Angular Template Generator Embark

https://github.com/embark-framework/embark/issues/947

@pmaojo great to see taking this on! Let us know when this is ready for review :)

@pmaojo is this still WIP?

Closing this as @pmaojo is no longer working on this as per https://github.com/embark-framework/embark/issues/947#issuecomment-434285632


Add source URL doesnt work in firefox ext

Describe the bug
When using the firefox version, the source is not properly added when clicking the "Add Source URL" button. Introduced thanks to #474
To Reproduce
Steps to reproduce the behavior:

Open browser ext in firefox
Click + button
Click "add source url" button

Expected behavior
The source URL of the current webpage should be filled into the source URL box, but nothing happens.
Additional context

This is caused because the utils.js doesnt have access to the tabs object which is used to retrieve the current URL of the active tab.
The background.js has access to the tabs object, BUT, there is no way (that I know of) to expose a function from within background.js to dart. Right now I expose a function through the window object in utils.js

Probably will put this under won't fix as the app likely won't support this in the future.


Sync upstream with midstream changes

Many of the cherry picked commits did not apply cleanly due to the imports being different in midstream (github.com/stolostron) vs upstream (open-cluster-management.io/). The patches had to be manually fixed to account for this.

/hold for merge strategy

Sad about the imports. If/when stolostron propagator switches to the open-cluster-management.io/ path, it will break all the things that import it, I think? Seems like we need a plan to carefully update and fix things one at a time without too much extended disruption, or a chance to break everything all at once.
Also, there is no upstream for the template utils? Seems odd to have this community repo depending on the stolostron package.

@dhaiducek had checked with the community to see if we should have it also upstream, but I believe the thought process was that since it's a library, it didn't need to be upstream.

Phew! Thanks for syncing these, @mprahl!!!


Reload Lookupscript

constructor() {
super();
        this.form = new TblAdjustmentplusTranForm(this.idPrefix);

        this.form.ItemStockId.changeSelect2(e => {
            var ItemStockId = Q.toId(this.form.ItemStockId.value);
            if (ItemStockId != null) {

                this.form.CurrentStock.value = Inventory.TblItemStockRow.getLookup().itemById[ItemStockId].CurrentStock;

			}
        });

    }

****In above code snippet I am getting the current stock value and I could save it in database also only I cannot reload the lookup script what should I do for that to reload the lookpup dropdown.
I reffered all the issues raised before but I am not getting the proper solution.
Could anyone please help?****

set [LookupScript(Expiration = -1)] in row.cs
and call
Q.reloadLookup(Inventory.TblItemStockRow.lookupKey); in some ts

Thank you!!! It works for me.


harmony hub connection issue, retry fails too

Connection to harmony hub fails, retry fails too. For whatever reason, this connection has recently become unstable. The retry logic put in a previous release (5.2, I think) had things stable for a while but not anymore. Restart of ha-bridge successfully reestablishes the connection. Any reason, why we can't do multiple retries or keep trying to reconnect forever?
I have multiple hubs, FYI. When connection is lost, connection is lost to all three hubs at the exact same time. Retry will sometime not reestablish the connection with all three. Not sure if multiple hubs somehow contributes to this issue.
12-01-2021 23:56:16.024 	INFO 	Resetting harmony hub due to communication errror: XXX
12-01-2021 23:56:16.024 	WARN 	Issue in communcicating with Harmony Hub, retrying connect....
12-01-2021 23:56:16.024 	ERROR 	Could not get communication restored with hub: XXX, please restart..
12-01-2021 23:56:16.052 	ERROR 	Cannot reset harmony client (AV Closet Hub), Exiting with message: Failed communicating with Harmony Hub.

The harmony hub integration became too unstable for me because of this disconnect issue. Even switching the harmony hub integration to home assistant had the same disconnect issue until I turned off XMPP forcing home assistant to use the harmony hub web socket api instead of the XMPP one leading me to believe that the XMPP based api is just inherently plagued with this disconnect issue.  Perhaps support for the harmony hub web socket api in ha bridge will finally put this long standing issue to bed.


[PE-D][Tester C] Keyboard Shortcuts not working

The shortcuts for the keyboard Auto-fill command preamble does not work on my computer.
I am using a Macbook Pro with a M1 Chip.
Could possibly perform a smoke test with other OS to check if it works.

Labels: severity.Low type.FunctionalityBug
original: DeltonCheng/ped#3

Bug is present.


Docker main branch names master vs develop

It's not clear what our main branch is for docker and docker_base repos.  We are merging new PRs into develop, but the github page is configured to display master, which is still the old versions in both repos.  Let's make our policy consistent for both repos.

Thanks @markjolah for identifying this issue.  I just made the default branches develop.   Ideally, master should be reserved for tagged releases.  However, since we do not yet have any releases we can just keep master reasonably up to date with develop.  I'll initiate PRs for develop into master.


does sequence order matter?

Hi, not sure if i'm using this correctly, should the diff work regardless of order of the sequences? if so getting some weird output.
seq2 is always []string{"stove", "oven"}
difflib.Diff(seq1, seq2)
when seq1 is ["stove", "oven"], all looks good
([]difflib.DiffRecord) (len=2 cap=2) {
(difflib.DiffRecord)   stove,
(difflib.DiffRecord)   oven
}
#but when reversed, diffing ["oven", "stove"], "oven" appears to be unique to both strings?
([]difflib.DiffRecord) (len=3 cap=3) {
(difflib.DiffRecord) - oven,
(difflib.DiffRecord)   stove,
(difflib.DiffRecord) + oven
}

This is working as intended. difflib cares about order. Its main use-case is comparing files; it does this by generating the minimum number of insertions and deletions that is required to make seq1 == seq2.
You can still use difflib, though. To make it ignore order, sort both collections beforehand. However, I don't recommend doing this because there are more efficient ways of performing a diff of two collections when you don't care about order (difflib is very memory-hungry). Here are two ideas that come to mind:

Sort both collections, and create variables i and j for keeping track of where you are in seq1 and seq2, respectively. If seq1[i] == seq2[j], there is no difference, so increment both i and j. If seq1[i] < seq2[j], you have found an item that is in seq1 but not seq2, output it, and increment i. Do the equivalent for seq1[i] > seq2[j]. Keep doing this until you reach the end of one of the sequences. If there are still leftover items in one sequence, output those as well.

Use a map to keep track of the discrepancies:
create a map M of type string (or whatever type seq1 and seq2 contain) -> integer
for each item X in seq1:
M[X] = (M[X] or 0) + 1
for each item X in seq2:
M[X] = (M[X] or 0) - 1
for each item X in M:
if M[X] == 0
Both sequences had the same number of X, so continue
if M[X] > 0
X appears in seq1 M[X] time more than it does in seq2
else
X appears in seq2 |M[X]| times more than it does in seq1

Let me know if this help, and thanks for considering difflib!

ah yes this helps a bunch! sorting beforehand appears to work. my use case is mostly small slices so i think it should be all good. thanks!


Should the webhook's image be updated?

At the time of writing the webhook's image was updated 2 years ago by https://github.com/kubernetes/pod-security-admission/commit/7339f2432c1095924ffbcfa63181ee5cfb87ce63 to 1.25.0. Have there been no new updates since or is it outdated?

Since the built-in feature is GA in later kubernetes releases (all supported kubernetes versions at this point), there are no plans to update the standalone webhook image. If you want to build it yourself on later releases, the source is still available to do so.

/close


Refactor Validation

So how does the validation work?
I was testing it, and when submitting data, it would just redirect to the same page without giving off errors.
Then when i remove the validation, the submission passed through perfectly without any errors.
Also note that I pretty much am trying to branch off the package now because, I have no use for the API references. (Not saying that it sucks, i mean it is a package, however i'm just trying to use a forum)

You're probably missing some of the latest changes in the views. I fixed an
issue with them a few days ago that meant only non-validation alerts showed
up, even though validation errors were present in the session.
On Aug 2, 2015 22:14, "Christian"<EMAIL_ADDRESS>wrote:

So how does the validation work?
I was testing it, and when submitting data, it would just redirect to the
same page without giving off errors.
Then when i remove the validation, the submission passed through perfectly
without any errors.
—
Reply to this email directly or view it on GitHub
https://github.com/Riari/laravel-forum/issues/36.

As for your comment about the API, that makes no sense. You won't gain anything by ripping parts out of the package and leaving out the API, because it's an integral part of it.
Viewing, creating and editing are not part of the API, but every other action, like moving/locking/pinning threads, is. It's not just there for consumption outside of your domain (to build an app, for instance).
I'm actually reworking the JS implementation that ships with the package to use vue.js, which will make use of the API to enable tighter coupling between the frontend and data persistence. The JS is written directly in the views so you will be able to easily throw it out and replace it with your own implementation if you want, but you won't want to throw out the entire API if you want everything to work.


Error while building Android - gradle

Getting this error msg:   /home/{user}/nextjs-tailwind-ionic-capacitor-starter/capacitor-cordova-android-plugins/cordova.variables.gradle' as it does not exist.

Okay so removing the android folder and then adding the android solved the problem..
to add android npx cap add android

Okay so removing the android folder and then adding the android solved the problem..
to add android npx cap add android


Sample Registration Form

Closes #44
Also has some mediocre CSS to layout the examples better. And bug fixes :)

@robustdj there are a couple of fixes in here around the password eye image, you may have already fixed these locally.

A little late, but it looks good to me


Release 2.0.2

Two pending changes justify a patch release:

Fix for CVE-2024-22243
https://github.com/zalando-nakadi/fahrschein/pull/466

👍

:+1:

👍


Hops / Jump Boost

Uh... hello, me again x-x; (I'm sorry)
I've spent a good portion of 3 hours doing experiments back and forth between the effects of the Hops Enchantment and the Jump Boost effect.. eventually I was able to create a scenario which clearly demonstrated the difference between the two.
If I give myself speed effect 12 ( XII + I ), I'm able to make a 7-block jump easily enough.
If I then give myself jump boost 0 ( I ) on top of the speed effect, I'm able to make the jump easier.. each time I increase the level of the jump boost effect, the jump gets easier and I'm able to make it further and further across, however-
If I instead use boots with the Hops enchant 1-3 (still with speed 12), it hinders my ability to make the jump, often losing all my momentum and falling to the ground only 4-5 blocks from where I jumped.
Immediately after my first time trying hops + nimble, I found that every time I jumped, my momentum would deplete immediately.
Continuously jumping would make me travel at a normal, unaffected pace as I jumped, regardless of any speed buff.
Jump boost on the other hand, preserves much of your momentum, giving you smoother, more effective jumps.
From all this, my only conclusion is, I feel the Hops enchantment would be much more appealing if it didn't halt your momentum when you jump, and I feel that it actually hinders your over-all ability to travel.

Forge Version: 36.2.4
MC Version: 1.16.5
Mod Version: 1.5.42
JEI Version (if present) : <IP_ADDRESS>
Baubles Version (if present) : n/a
Curios Version (if present) : n/a

Side note: (Unrelated and unimportant)
I've also found that there is absolutely no difference between the effects of the Nimble enchant and the Speed effect XD
[Sprinting]
None       - 100 Blocks | 17.80 Sec (≈ 5.62 Blx/s)
Nimble I   - 100 Blocks | 14.80 Sec (≈ 6.75 Blx/s)
Nimble II  - 100 Blocks | 12.70 Sec (≈ 7.87 Blx/s)
Nimble III - 100 Blocks | 11.20 Sec (≈ 8.93 Blx/s)
Speed I    - 100 Blocks | 14.80 Sec (≈ 6.75 Blx/s)
Speed II   - 100 Blocks | 12.70 Sec (≈ 7.87 Blx/s)
Speed III  - 100 Blocks | 11.20 Sec (≈ 8.93 Blx/s)
--
[Jump Height]
None              - 1.25
Hops I             - 2.250 Blocks
Hops II            - 2.875 Blocks
Hops III           - 3.625 Blocks
Jump Boost I   - 1.750 Blocks
Jump Boost II  - 2.500 Blocks
Jump Boost III - 3.250 Blocks

lHops is implement such that it adds jump boost whereas nimble uses the entity attributes. Maybe thats causing the issue?
I am not sure i understand the problem fully Can you contact me via discord for further contact and some clarification.

Sure! Though, how do I find your Discord?

https://discord.gg/tqcqeSj

Fixed the issue and uploaded an new version on curseforge.


Display OOS data in box plot

This plot:

Should have the OOS daily, monthly and quarterly returns (if provided) as red crosses overlaid.

@twiecki Should the boxplots (not the overlaid red crosses) include OOS data?

@twiecki I can overlay a stripplot of the oos data, however neither "x" or "+" are available marker styles. Here are three alternatives:
Default

"."

"d"

Do you have a preference? The second one looks the cleanest.

Very cool!

Should the boxplots (not the overlaid red crosses) include OOS data?

No they should not.
I like the 3rd one as it pops out but is still kinda clean.

Closed by https://github.com/quantopian/pyfolio/pull/306#issuecomment-224080196

https://github.com/quantopian/pyfolio/pull/306

https://github.com/quantopian/pyfolio/pull/308


ModuleNotFoundError: No module named 'plugins'

PGSync version: lastest git pull 12.31am CET
Postgres version: docker-compose
Elasticsearch version: docker-compose
Redis version: docker-compose
Python version: docker-compose
Problem Description:
docker-compose up
Error Message (if any):
pgsync_1         |  0:00:00.000378 (0.00 sec)
pgsync_1         | Traceback (most recent call last):
pgsync_1         |   File "/usr/local/bin/pgsync", line 7, in <module>
pgsync_1         |     sync.main()
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in __call__
pgsync_1         |     return self.main(*args, **kwargs)
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1062, in main
pgsync_1         |     rv = self.invoke(ctx)
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1404, in invoke
pgsync_1         |     return ctx.invoke(self.callback, **ctx.params)
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 763, in invoke
pgsync_1         |     return __callback(*args, **kwargs)
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/pgsync/sync.py", line 1139, in main
pgsync_1         |     sync = Sync(document, verbose=verbose, **kwargs)
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/pgsync/sync.py", line 75, in __init__
pgsync_1         |     document.get("database", self.index), verbose=verbose, **kwargs
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/pgsync/base.py", line 55, in __init__
pgsync_1         |     self.__engine = pg_engine(database, **kwargs)
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/pgsync/base.py", line 1012, in pg_engine
pgsync_1         |     port=port,
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/pgsync/utils.py", line 143, in get_postgres_url
pgsync_1         |     plugins: Plugins = Plugins("plugins", ["Auth"])
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/pgsync/plugin.py", line 26, in __init__
pgsync_1         |     self.reload()
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/pgsync/plugin.py", line 33, in reload
pgsync_1         |     self.walk(self.package)
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/pgsync/plugin.py", line 37, in walk
pgsync_1         |     plugins = import_module(package)
pgsync_1         |   File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
pgsync_1         |     return _bootstrap._gcd_import(name[level:], package, level)
pgsync_1         |   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
pgsync_1         |   File "<frozen importlib._bootstrap>", line 983, in _find_and_load
pgsync_1         |   File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
pgsync_1         | ModuleNotFoundError: No module named 'plugins'

Sorry about this. Fixed now

I am still getting this error can you help?

I am still facing the same problem, is there any suggestion to fix it?

Same error when trying to use plugins in the schema

So this issue was closed which is why it was not visible.

First, create a "plugins" directory and add it to your PYTHONPATH.
Create your plugin module inside the plugins director e.g plugins/full_name_plugin.py
Make sure you have an init module inside the plugins director plugins/__init__.py
full_name_plugin.py should look something like this

from pgsync import plugin

class FullnamePlugin(plugin.Plugin):
    name = 'Fullname'

    def transform(self, doc, **kwargs):

        firstname = doc['firstname']
        lastname = doc['lastname']
        doc['fullname'] = f'{firstname}{lastname}'

        return doc

In your schema.json, ensure you have referenced the plugin by its name

    {
        "plugins": ["Fullname"]
         ...
    }

My issue turned out to be the PYTHONPATH being .../plugins instead of just ... excluding the plugins directory itself. Cheers!

closing as resolved. Also updated the docs


Progression for fastify plugin

Progression for fastify plugin
Hello @samchon. I found your article from this link
and I saw this.

I know that you are developing the plugin to make Typia integrate with fastify.
I very interest your lib. I am looking for migrate my code that use Typebox for schema validation to typia.
Your typia is very interesting because, I can make a type with Pure Typescript
I want to know your progression of fastify plugin. If almost finish, pls point me to your references.
Thank you.

Currently, you can use fastify in NestJS with nestia, and it dramatically enhances performance.
This nestia was my 1st goal for supporting fastify.

Nestia Project: https://github.com/samchon/nestia
Benchmark Result: https://github.com/samchon/nestia/tree/master/benchmark/results/11th Gen Intel(R) Core(TM) i5-1135G7 %40 2.40GHz

About pure plugin of fastify, I'll start it at next month July.

@samchon Thank you for your reply. I hope that your lib will provide in official fastify docs soon 🙏


Undo is not dimension specific

When executing an operation in a dimension, and then moving to another dimension, undo will try to well, undo what had been done, without taking into consideration the dimension it was done in, meaning you end up with the app pasting in a bunch of blocks in the wrong dimension
This is the result after filling in a cube with air in the nether, going to the same coordiantes in the ow and running /world-edit undo:

To avoid this, I suggest using dimension specific undo histories, saved in a map with the dimension name as key. That can potentially also support custom dimensions, if done right.

ah oops


Azure Function base images type differences

What is the difference of each of these images? Also, can we have that added to the readme file as a quick reference guide for us developers?
Image types

(default)
slim
appservice
buildenv
core-tools

Python example
3.0-python3.8
3.0-python3.8-slim
3.0-python3.8-appservice
3.0-python3.8-buildenv
3.0-python3.8-core-tools

I came here looking for the same info - anyone from MS could help?
Maybe another way of getting this info is raising an issue for Microsoft docs...

I got the answer from my question that I posted in Stack Overflow. Still would be nice to have it on the docs.
https://stackoverflow.com/questions/62204187/azure-functions-base-images-differences-comparison

Core (no suffix)
Functions Runtime and Language Worker in one container. Ready for deployment.

Slim
While slim images are lightweight versions of core images, these containers seem to be the same in many cases

App Service
Runtime container used for running function apps on Azure Linux App Service Plans.

Build
Build container used for building native dependencies

Core Tools
Developer Container which has func and docker CLIs installed. This is also based on the dev container image for python suitable for development with VS Code Remote Containers.


incorrect html4 entities

Coverage remained the same at 94.611% when pulling 0bacab3218db4b806e38240b831cf28afd710de4 on karmankertesz:master into 85a57ea3827d8d1c417f4b84f2de8657b7280d47 on mdevils:master.

Thank you for your contribution!

Published in version 1.2.1.


RetryPolicy raises AttributeError while handling AzureError

When RetryPolicy.send handles an AzureError, it calls RetryPolicy.increment, passing the outgoing request as a response:
https://github.com/Azure/azure-sdk-for-python/blob/535f455abf9842ba9b5b0bc95b165fed91763fb6/sdk/core/azure-core/azure/core/pipeline/policies/_retry.py#L359-L361
RetryPolicy.increment has an else block accessing response.http_response:
https://github.com/Azure/azure-sdk-for-python/blob/535f455abf9842ba9b5b0bc95b165fed91763fb6/sdk/core/azure-core/azure/core/pipeline/policies/_retry.py#L313-L318
The request has no such attribute, so this code path raises AttributeError.
Repro:
from azure.core.exceptions import AzureError
from azure.core.pipeline import Pipeline
from azure.core.pipeline.policies import HTTPPolicy, RetryPolicy
from azure.core.pipeline.transport import HttpRequest

class NaughtyPolicy(HTTPPolicy):
    def send(*args):
        raise AzureError('boo')

policies = [RetryPolicy(), NaughtyPolicy()]
pipeline = Pipeline(policies=policies, transport=None)
pipeline.run(HttpRequest('GET', url='https://foo.bar'))

fixed


Home page

Finished Bride Review, we need a better image for one of the reviews as its crap quality, and I think maybe adding an on hover effect for the buttons might help. I also couldn't figure out how to change the gown in the model for testimonials.

Closing in favor of #198


Disable/Enable-DbaTraceFlag - Update docs

Type of Change

[x] Bug fix (non-breaking change, fixes #6859 )
[ ] New feature (non-breaking change, adds functionality, fixes # )
[ ] Breaking change (effects multiple commands or functionality, fixes # )
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose
Address any confusion that the Enable and Disable-DbaTraceFlag will not persist the changes through a restart. Set-DbaStartupParameter is used for persisting through a restart.

Looks good, thanks so much!


docs: Remove wrong call from a whitespace combinator example

It tries to apply the returned function to source immediately when it should just return the combinator.

Coverage remained the same at 82.808% when pulling 15aa4d9a95de2e093c68209861b10e89a6d90fc2 on jlkiri:patch-1 into e7b080877adf0f021c4b2d53044fad7d3a88d18b on Geal:master.

I was trying to make sense of this documentation example, but even with this change, the documentation is still incorrect and I hit compilation errors:
error[E0277]: expected a `std::ops::Fn<(&'a str,)>` closure, found `std::result::Result<(&str, O), nom::Err<E>>`
  --> src/functions.rs:18:6
   |
18 | ) -> impl Fn(&'a str) -> IResult<&'a str, O, E>
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an `Fn<(&'a str,)>` closure, found `std::result::Result<(&str, O), nom::Err<E>>`
...
22 |     delimited(multispace0, inner, multispace0)(i)
   |     --------------------------------------------- this returned value is of type `std::result::Result<(&'a str, O), nom::Err<E>>`
   |
   = help: the trait `std::ops::Fn<(&'a str,)>` is not implemented for `std::result::Result<(&str, O), nom::Err<E>>`
   = note: the return type of a function must have a statically known size

From what I can tell, the file tests/json.rs has an actual working implementation, and the docs should be replaced with this. But I'm also not sure why this isn't even built in to Nom to begin with.
fn ws<'a, O, E: ParseError<&'a str>, F: Parser<&'a str, O, E>>(f: F) -> impl Parser<&'a str, O, E> {
  delimited(multispace0, f, multispace0)
}

the function was returning a Fn instead of a FnMut, it will compile fine now.
@SeanMcLoughlin it is not built into nom because if used in multiple places in a parser, you end up calling the space parser for nothing in a lot of places, and then I get suport request where people wonder about performance issues :neutral_face:
A better way would be to parse whitespace once at the beginning of the main parser, then use a combinator that ad whitespace parsing as suffix only. Or even write a lexer (I should probably make an example about that one)


Update generator dependencies

Get generator-react-server up on the most recent versions of dependencies

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Douglas Wade seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

Thanks @doug-wade!