Feature/sync experimental config

What type of PR is this?
/kind feature

What this PR does / why we need it:
Syncing experimental load test with current load test
Which issue(s) this PR fixes:

Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

This PR relates to https://github.com/kubernetes/perf-tests/issues/1007


What happened to the suffixes from the type table? Please put them back.

You removed the suffix from the types table. That was required reading for my C# students (I teach C# at Tulsa Community College). I'm now going to have to make a table myself, but yours was SO much more informative. Please put the suffixes back in the type table.
I have attached what it used to look like.
ValueTypesTable(1) (1).pdf

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

ID: de24f644-5e7c-d3de-fd13-5969bb3e4b78
Version Independent ID: 9173876e-49be-6c60-634d-eeb1944ab2fc
Content: Types - C# language specification
Content Source: spec/types.md
Product: dotnet-csharp
Technology: csharp-spec
GitHub Login: @dotnet-bot
Microsoft Alias: wiwagn

@megaritzmom Can you be more specific? Looking at the history of that file (https://github.com/dotnet/csharplang/commits/master/spec/types.md) It's only been updated once in the last 2 years and I don't see anything removed.
😢

@megaritzmom that table doesn't exist anymore. The information about suffixes was moved to the sections about literals:

Real literals
Integer literals

I think this answers the question. Thanks @pkulikov


Call to test v5.1 features: faster anti-aliasing + new font system (including sparse font support)

Hi,
In dev-5.1 brach I pushed a lot of updates
4x faster anti-aliasing
The old "render everything in double size" is updated. Because anti-aliasing is required only on edges, now only the edges of lines and the corners of rectangles are anti-aliased. It lead to 4x faster anti-aliasing.
LV_FONT_ANTIALIAS is removed. instead you can specify a bpp (bit-per-pixel) value for each built in font (1, 2, 4 or 8 bpp are supported). It result better customization  to save memory (high bpp for small fonts, low bpp for larger fonts) and in general gives better result with same font memory footprint.
The image handling is also updated. The old chrma keying (LV_COLOR_TRANSP pixels are transparent) is still available but there is a new feature too: you can assign an Alpha byte to every pixel to realize pixel level opacity.
Due to these changes the following API updates happened.

lv_line_set/get_upscale and lv_img_set/get_upscale become obsolete because no upscale anymore with anti-aliasing
lv_img_set_file is changed to lv_img_set_src to specify an image source which can be a file or a symbol like earlier or a variable directly. So lv_img_create_file become obsolete too.

To learn more see the tutorials:

Anti-aliasing: https://github.com/littlevgl/lv_examples/blob/dev-5.1/lv_tutorial/5_antialiasing/lv_tutorial_antialiasing.c
Images: https://github.com/littlevgl/lv_examples/blob/dev-5.1/lv_tutorial/6_images/lv_tutorial_images.c

Sparse font support
Sparse font were ask by a lot of people especially from Asia where characters are in a big range but only a few of the are required.
To create sparse font use the online converter below. There you can specify which character you would like to include into your font.
See the font tutorial for an example: https://github.com/littlevgl/lv_examples/blob/dev-5.1/lv_tutorial/7_fonts/lv_tutorial_fonts.c
Online font and image converters
Instead of the the old command line converters new simple and easy to use online converters are available:
Image converter: https://littlevgl.com/image-to-c-array
Font converter: https://littlevgl.com/ttf-font-to-c-array
Tutorial
The dev-5.1 branch  lv_examples repository is updated to the changes above.
Test it please
These are very big updates and need deep testing. I ask you to test them and leave feedback here!
Note
You should update your lv_conf.h from lv_conf_templ.h

sorry, I am noob :) but how to compile tutorial, I can only compile demo

Hi，
I have tested Chinese fonts ,and it work well ! The AA of the Sparse font looks well! You can use this picture as an example. @

@Vonger You should copy lv_ex_conf_templ.h as lv_ex_conf.h next to lv_conf.h and enable what you need
@sirius65535 Thank you testing! Can you run the Benchmark application (benchmark_create()) and test the performance with and without anti-aliasing in different settings?

test like this???
it seem no much different between enable and disable , something wrong I did?
enable aa:

disable aa:

It's okay, I said that the anti-aliasing become faster :)
Some tests on real hardware (not PC simulator) also would be great!

Thank you.
Now I am trying to compile in my linux computer.

clone pc_simulator, and  update submodule
go to folder pc_simulator/lvgl, then call git checkout dev-5.1
go to folder pc_simulator/lv_examples, then call git checkout dev-5.1
call make in pc_simulator

I get a lot of warning USE_LV_FONT_xxxx is not defined, after that an error: no rule to make target 'dejavu_10.o' needed by default.
I guess I must mess some steps or some makefile borken, old version 5.0 works well.

It seems correct. Anti-aliasing really bonce faster. Now it has only a very small overhead.
@sirius65535 I read the text again on the example image you sent about fonts and noticed its political content. I need to ask you to change the text on the image and use a well-known test text like "Lorem ipsum..." or "the lazy dog jumps over the quick brown fox" etc.  As this content may harm others I ask you to change it as soon as possible.

@Vonger oops, I forget to update the Makefiles. I will do it today.

@kisvegabor
sorry,I have changed the picture

If you have LV_ANTIALIAS enabled and USE_LV_SHADOW disabled, build will fail.
The problem is undefined references to px_fp.
It appears that it should be defined if either LV_ANTIALIAS or USE_LV_SHADOW are enabled, if I understand correctly.

@upbeat27 Thank you, both fixed

Now I success compile it.
When I run demo, I get these bugs:

all fonts are bigger and no antialias effect.
background become totally white, I am using new api to load the picture.

I pushed a bugfix about image drawing. Please pull dev-5.1 branch. It should fix the white background.
Please, refresh your lv_conf.h from lv_conf_templ.h . There the default font is already correct.
To use anti-aliased fonts enable them (in lv_conf.h) 2, 4 or 8 (instead of 1). It determines the bit-per-pixel. Now LV_ANTIALIAS is irrelevant.
LV_ANTIALIAS will enable the smoothing of lines and curves.

After I refresh lv_conf.h the font and compile warning fixed :)
But background is still not working(shows some randomly characters at background:

I change demo.c load background code like this:
#if DEMO_WALLPAPER
    lv_obj_t *wp = lv_img_create(lv_scr_act(), NULL);
    lv_img_set_src(wp, &img_bubble_pattern);
    lv_img_setupscale(wp, true);
    ....

I forget to say to update the lv_examples repo to the latest dev-5.1 too. I hope it will solve it.

AA does seem to be quite a bit faster now.
I haven't done "extensive" testing but based on lvgl's resource monitor the CPU usage is not much different with or without AA.
This is running on real hardware (STM32F746G-DISCO, plan on trying STM32F769I_DISCO later).

background  works

@Vonger do not use img_conv.py，it is for 5.0，you should use this tools https://littlevgl.com/image-to-c-array for 5.1

@sirius65535 Thank you :) It works

It's PHP :) I don't plan to maintain a "Desktop" converter too. I decided to switch to online because it's much more simple and user friendly.

I'm having some trouble getting the font converter to do what I expect.
See the attached font. It is a "pixel" style font that should convert 1:1.
All characters fit in an 8x8 grid, which should be great for creating a small 8px, 1 Bpp font for small displays.
The problem is that the font must be generated as 16px height in order for it to look correct. The result is that every character is 16px tall with the bottom 8px always empty (they are twice as tall as the max width).
Any ideas? I tried to modify the font in FontForge in various ways to get the intended result but things only ended up worse.
unscii_8_thin.zip

There is a bug in a PHP function which convert TTF to image.  I solved  it somehow but itt seems it's still not the best.
I made an update. Could you test it?

Hi,
I tested 5.1 again today,i found there are many symbols can't be resolved, and the include path is right,    I don't know what cause this,but 5.0 is ok

It works for me. Have you updated to the latest version of lvgl and lv_examples?
Is it still  working for others?

I concur that the font conversion seems to be closer now for that font, but still isn't what I would expect.
BUT...
For other fonts, the conversion is now much worse.
See attached font, with the conversion output before (on Feb 28th) vs. the conversion output after (March 1).
The output from before was a perfect recreation of the font. The new output is quite bad.
synchronizer_nbp.zip

@kisvegabor i solve the problem by clean the cache of IDE,I'll test more tomorrow

@upbeat27
I examined it deeper. It seems the general font converters (not only mine) are not good to convert "pixel based" fonts. I tried the Synchronizer font with BMFont (the previous tool) and got wrong result as well. See sync_8_bmfont.png in the zip. The most important thing to notice is the edges of the glyphs are anti-aliased. So the result never will be so clear as we expect. Look for example the 'x' letter on (610;3) coordinate or '/' or '\'. The pixels on middle is almost black. In the zip file you will find a similar image drawn by LittlevGL's online font converter.
It seems to me the font converter works well for "normal" fonts like Arial but not good for pixel based fonts. I see the importance of the pixel based fonts for monochrome displays so I suggest to add a 8x8 and a 16x16 font as built-in font. They need to be created only once (by hand) but the converted result could be a good starting point which just needs some fixes.
Result images with BMFont and LittelvGL converter: sync_8_tests.zip

@kisvegabor
Oh, but I think your converter is good at converting pixely fonts!
But, whatever change you made between Feb 28 and March 1 seemed to break it.
I would argue that change needs to be reverted.
This is one downside to an online converter tool - no source, not easy to change, not easy to run locally (also relies on your website being online). An offline python script that can run on any computer and can easily be modified would be much more useful overall for lvgl (in my opinion).
Let's take Synchronizer as an example of why your converter is (was) actually good for pixely fonts. Here is the output of your converter, for a few characters. They are all pixel perfect recreations of the input font. The AA effects don't come into play because the font was designed on an 8x8 grid, so setting the height to 8 gives the correct results:
This was the output on Feb 28

Compare that to the output now, after the change you made:
This was the output on March 1 (Same font, same settings)

Clearly the output was much better (actually, perfect) before!

Glad to see the huge speed up! Anyone has a video running 2 boards (5.0 & 5.1 next to each other) running the benchmark test? Or is it just off screen rendering?

@upbeat27 You are right, I still made a mistake. Because the buggy PHP function I need to calculate the size in "pt" myself (which fits to the height given in px). However I  should take care to use a height in pt which results an integer height in px.
Now the converter generates nice letters for 7px and 14 px height using the Synchronizer font (it is 7 px according to FontForge). However for 10px it's still wrong because this special font is designed for 7px height.
There are two reasons why I've chosen the online converter:

Much user user-friendlier. Some guys (even good programmers) are don't like terminal. It's not so causal on Windows and Linux.
For marketing purpose. Maybe you hate me because of it but I need to think about how to get visitors and keep them. The online tools are a good ways to make people come back to the website which makes it more popular  (in the eyes of Google) so it will give better search results. It's important keep LittlevGL's community  growing.

@ramonschepers Now the benchmark draws the same GUI 10 times to measure an average speed so we don't see anything. However I will make video on Monday with an animations to demonstrate the difference.

The anti-aliasing function working great!

tested on my vocore2, in benchmark:
5.1: all enable: 68~70ms, all disable: 19~20ms
5.0: all enable: 68~77ms, all disable: 22~34ms
It is a little increased 💯

@Vonger
With or without anti-aliasing?
And what is your screen's resolution?

@kisvegabor 480x800 runs at 580MHz.
enable anti-aliasing:
5.1: all enable: 68-70ms, all disable: 19-20ms
5.0: all enable: 68-77ms, all disable: 22-34ms(font anti-aliasing only)
5.0: all enable: 91-107ms, all disable: 202-224ms(both anti-aliasing)
disable anti-aliasing:
5.1: all enable: 67-70ms, all disable: 19-20ms
5.0: all enable: 75-86ms, all disable: 24-36ms
I am wrong, it is greatly increased :)

Thanks!

5.0: all enable: 91-107ms, all disable: 202-224ms(both anti-aliasing)
I think you swapped the two values. All enabled should be slower.

If I'm correct then you can confirm:

v5.1 made anti-aliasing 3-4 times faster
in v5.1 basically no difference (in speed) between anti-aliasing and no anti-.aliasing
v5.1 become slightly faster in no anti-aliasing configuration

Great! Thank you for the test!
A speed up from a the useless 200 ms (5 FPS) to 70 ms (14 FPS) sound very good. And it's for the "all enabled" settings. I'm happy with these results :)

Here are two video with v5.0 and v5.1 running the stress test. There is nothing special on this GUI just create/delete objects, animate them and set their properties.
No shadow, opacity and wallpaper.
The hardware is: STM32F746 Discovery without GPU
lvgl_stress_test.zip

Very cool!

@kisvegabor
I've managed to convert both the pixely fonts (synchronizer and unscii) with "perfect" output using the current converter (as of today, 3/5/18). I would say that is a success! The last tweak you made seemed to do it.
I did have to tweak one of the fonts (unscii) in FontForge before it would work. Basically, I didn't change the font per se, just its grid size/position within that grid. It is a bit of trial and error, because even when the grid seems perfect for conversion it won't necessarily work - you might have to double it or shift it up/down. Eventually you can end up with an output that doesn't try to AA the font.
Fair enough about the online resource converter - never thought about it driving traffic to the website.

Okay, it seems to v5.1 is ready to release.
I will merge dev5-1 branch to master until tomorrow.
Thank you for your test results and feedback! You helped a lot!

@upbeat27 Do you mind sharing tweaked unscii font ? I was just looking for a way to get some small font working on low-res monochrome display and this looks promising. It would be greatly appreciated :). Thanks

@upbeat27 If you send the unscii font, is it okay if I add it to the font converter webpage to download?

@drabdominik @kisvegabor I have no problems sharing the fonts, I didn't make them 😄 you can do anything with them that falls within their respective licenses.
Each font has a different set of available characters, so depending on what you need they might not have it. Unscii in particular has some unusual glyphs. For my purposes they have all the characters I need (ISO 8859-1 is all I need at the moment).
Synchronizer I obtained from here, and it is cc-by-sa. This converts perfectly with lvgl font converter height set to 7. No modification required.
unscii I found here. Specifically, I used unscii-8-thin. The fonts on that page are public domain except for unscii-16-full (as described in the second paragraph). I have attached the font as modified to convert well with lvgl (unscii-8-thin-fixed). You can compare the original to the modified version in FontForge to see how it was modified (basically just the em size and positioning).
unscii-8-thin-fixed.zip
I guess it would be nice to have symbols at these heights as well, I haven't dove into that though as of yet.

Are you going to make the lv_area_is_on change before merging to master?  Seems like relatively straightforward change to make and would be a nice bug-fix to add to 5.1.
PS, I've been running 5.1 for a week now and it's is both fast and stable.

@kisvegabor I found small issue in new image converter. When i try to convert 1-bit .bmp to .c file it doesn't work - arrays are all zero. When I convert them to 24-bit bitmaps first it works well. Here are some test files and results: graphics.zip

@upbeat27 Thank you for the fonts and the explanation. Yes, some symbols with pixel fonts would be great! If somebody have an artistic sens to create those fonts just open an issue for it!
@BenArtes I fixed it now! Thank you for the feedback.
@drabdominik Thank, I will examine it! Fortunately it is independent from the v5.1 release.

Today v5.1 is released! I hope you will like the new features.
It's very good to see the community of LittlevGL are working together. Thank you very much!
If you find bugs please open a new issue for them.

@sirius65535 大哥，能上传一个中文示例嘛？新手一脸懵


dotnet-watch support for publish subprocess

Type of issue
Other (describe below)
Description
Hello !
I have a particular use case where I need dotnet-watch to use the publish sub process but the CLI tool does not take the  argument described in the docs.
This arg is also present in the readme of dotnet-watch in the sdk but when I run dotnet watch -? I only have  :
Use :
  dotnet-watch [<forwardedArgs>...] [options]
Arguments :
  <forwardedArgs> Arguments to pass to the child dotnet process.
Options :
  ...

Is this a planned change of the tool not even described in the sdk readme or an error ?
Thanks !
Lucas
Page URL
https://learn.microsoft.com/fr-fr/dotnet/core/tools/dotnet-watch
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/tools/dotnet-watch.md
Document Version Independent Id
218d2a4d-2ff3-8e4d-1f06-bbb3710878fe
Article author
tdykstra
Metadata

ID: 16f49f1b-261c-8cd0-a024-32c2535d0a0f
Product: dotnet-fundamentals

Btw, I use the last 8.0 version downloadable on dotnet.microsoft.com

What exactly is the command you're using that doesn't work?

As I see, dotnet watch doesn't take into account command argument. It always run the application.
Steps to reproduce (I'm trying to let it publish the application on source change):
PS C:\1> dotnet new console
The template "Console App" was created successfully.

Processing post-creation actions...
Restoring C:\1\1.csproj:
  Determining projects to restore...
  Restored C:\1\1.csproj (in 102 ms).
Restore succeeded.

PS C:\1> dotnet watch publish
dotnet watch 🔥 Hot reload enabled. For a list of supported edits, see https://aka.ms/dotnet/hot-reload.
  💡 Press "Ctrl + R" to restart.
dotnet watch 🔧 Building...
  Determining projects to restore...
  All projects are up-to-date for restore.
  1 -> C:\1\bin\Debug\net8.0\1.dll
dotnet watch 🚀 Started
Hello, World!
dotnet watch ⌚ Exited
dotnet watch ⏳ Waiting for a file to change before restarting dotnet...
dotnet watch 🛑 Shutdown requested. Press Ctrl+C again to force exit.

As we see, it doesn't publish (dotnet publish) the application, it runs the app (dotnet run). The same occurs when I execute dotnet watch build. If I'm not mistaken, it worked different before.

This looks like a bug that was introduced in .NET 8.0 SDK. I get the expected behavior with dotnet watch publish if global.json is set up for earlier SDK versions, while with .NET 8 SDK the same command runs dotnet run and not dotnet publish. Since this is a product bug rather than a documentation error I'm transferring this issue to the SDK repo.


[QUESTION] how can i disable the topbar time ?

I just want to see the Date no need for 2nd line Time bar , how can i disable that ?

By using Custom Headers.
you can find an example here of what you are trying to achieve
https://codesandbox.io/s/kwqplllrmo


Implemented: support of oms package for stock module

Related Issues

Closes #181
Short Description and Why It's Useful

Installed latest version of oms package
Used the oms methods for fetching product stock information
Used Stock type from oms package

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to add changelog entry
Contribution and Currently Important Rules Acceptance

[x] I read and followed contribution rules

Not priority for now. Hence, closing this pull request.


What license is correct?

Rabbit-Node library is a awesome library. But, there is two license found in the project that WTFPL and MIT.
May I know what license is correct?
MIT or WTFPL.

Good question. The base library Rabbit itself is under WTFPL license. But each ported library to specific language is under MIT. Only Ko @saturngod can answer this question.

Rabbit Source is WTFPL and maintain by me. Other ported library like node, PHP , Java are maintain by other contributor. It's under MIT license.
Rabbit orignal source is only included .js , .php or .java file. There is no package system. For making packages was done by contributors like @Arkar-Aung


Keep Curseforge up to date or delete it

It's not helpful to have a outdated curseforge project page. Please delete it or actually keep it updated.

Please refrain from making useless issues that give no information whatsoever.


[emberjs] Adds 5.8

Release Announcement: https://blog.emberjs.com/ember-released-5-8/
Dated: 20 Apr 2024

@captn3m0 this have been waiting more than 3 weeks


CSV Airdrop safe app addition

Name/Description
CSV Airdrop
Send arbitrarily many distinct tokens to multiple different recipients in various denominations from a CSV file in a single Safe transaction!
Type

New addition

Compatible Networks
- Mainnet
- Rinkeby
- xDai

Code for review
https://github.com/bh2smith/safe-airdrop
IPFS hash/App URL
https://cloudflare-ipfs.com/ipfs/QmTbZNBHDfSVzS2AkH8RynzmBrKb9hSJhBZTrQrwWz3pgu
Desired date
I'll be on vacation in July (09.-24) But besides that there are no blockers for me.

I would wait for the styling change to be implemented as mentioned in this comment: https://forum.gnosis.io/t/grant-application-safe-csv-airdrop/1293/20?u=lukas_gnosis
As the styling change should be quite minor (just changing the background color), so having the overhead of adding the app to then update it shortly after would not be worth it.
@schmanu

This is blocked because of the reason mentioned on the forum thread: https://forum.gnosis.io/t/grant-application-safe-csv-airdrop/1293/19

@schmanu As this PR was merged. Could you update the IPFS link with the updated version of the app?

@lukasschor done! Thanks again for the PR.

Note that the original Issue post description has the updated IPFS hash.

The app is available on the default list


[DO_NOT_MERGE] Ref view ucj

THIS PR reveals some bugs.

Which might be caused by having 2 properties with ModeAltView. Although commenting out one of the view property.property will get you somewhere - the bug of max call stack still persists.
So then comment out one of the property views ... you then get

What happens if you change line 52 of ModeAltView to:
this.args = args;

What happens if you change line 52 of ModeAltView to:
this.args = args;


Want to change the password of root and vcap separately

The setUserPasswords method changes the password of both root and vcap, but we just want to change vcap password or set the different password for vcap and root. Possible to consider to separate this method to 2 method: setUserPasswords and setRootPasswords? Thanks.  @maximilien @jianqiu
func (boot bootstrap) setUserPasswords(env boshsettings.Env) error {
	password := env.GetPassword()
	if password == "" {
		return nil
	}

	err := boot.platform.SetUserPassword(boshsettings.RootUsername, password)
	if err != nil {
		return bosherr.WrapError(err, "Setting root password")
	}

	err = boot.platform.SetUserPassword(boshsettings.VCAPUsername, password)
	if err != nil {
		return bosherr.WrapError(err, "Setting vcap password")
	}

	return nil
}

@mattcui do you have (or are working on) PR for this?

@maximilien , haven't, just want to see if they would like to accept this idea before implementation.

Sure. Let's expose this configuration under env.GetRootPassword() (would read root_password off of the env struct; https://github.com/cloudfoundry/bosh-agent/blob/533ac3615acf55775502238479c2c9dc28e135db/settings/settings.go#L100-L102). If it's not specified in the env use fallback to env.GetPassword().

@cppforlife In generally, we don't change root password, so I think we could make a bit change on your idea, if the root's password is set in env, agent will retrieve and set it as new root password, but if there isn't, agent should not change root's password. How about that? Thanks.

@mattcui this is open for contribution so this means the BOSH team and @cppforlife wants you or anyone to submit a PR and they will consider it.

@maximilien @cppforlife , I already submitted PR 32. Please review. Thanks.

closing this issue in favor of discussion in pr#32.


Repeating Tracemalloc Benchmark for accuracy

A demonstration of how we can use ASV's built-in repetition logic to improve the accuracy of tracemalloc benchmarking.
I welcome anyone who wants to finish this off - I have some other things I need to focus on at the moment.
Edit 2024-07-05
Recovering from a disastrous afternoon yesterday, I believe I now have this ready to go. I have tested it and it definitely does benefit from the repeat behaviour by detecting when accuracy prevents certainty about a regression. The in-built reporting for byte measurements is also quite nice, including automatic choice between KB / MB / etcetera.

I will have this reviewable by Thursday '2024-07-04`

We're up to 7 issues that this will close 📈

Thanks @HGWright!


[Cosmos] update codeowners

Adding @bambriz as codeowner to our Python Cosmos SDK.

@jsquire @ronniegeraghty would love a quick review on this whenever either of you get a moment, thank you!

/check-enforcer override


APKEditor can't find layout component by resource id

Describe the bug
I modified the Smali code using APKEditor and rebuilt it. However, the built apk says that there is a problem with the resource or that the related resource cannot be found. I didn't touch any of the resources prior to the build, only smali code. However, when decompiling with jadx, the resource seems to exist.
(It's not a smali problem though, it works if you apply the same changes in apktool)
To Reproduce
Steps to reproduce the behavior:

Used version 1.2.5
Operating system macOS 13.4.1
Command java -jar ~/APKEditor-1.2.5.jar d -i kakaotalk-10-2-8.apk -o kakaotalk

Log/Stacktrace

07-10 21:24:31.662 21956 21956 E AndroidRuntime: java.lang.NullPointerException: Missing required view with ID: com.kakao.talk.contenttab:id/back
07-10 21:24:31.662 21956 21956 E AndroidRuntime: 	at com.kakao.talk.contenttab.kakaoview.presentation.screen.main.a.onCreateView(KvMainFragment.kt:21)
07-10 21:24:31.662 21956 21956 E AndroidRuntime: 	at androidx.fragment.app.Fragment.performCreateView(Fragment.java:4)
07-10 21:24:31.662 21956 21956 E AndroidRuntime: 	at androidx.fragment.app.i0.e(FragmentStateManager.java:30)
07-10 21:24:31.662 21956 21956 E AndroidRuntime: 	at androidx.fragment.app.i0.j(FragmentStateManager.java:29)
07-10 21:24:31.662 21956 21956 E AndroidRuntime: 	at androidx.fragment.app.FragmentManager.E(FragmentManager.java:126)
07-10 21:24:31.662 21956 21956 E AndroidRuntime: 	at androidx.fragment.app.FragmentManager.l0(FragmentManager.java:9)
07-10 21:24:31.662 21956 21956 E AndroidRuntime: 	at androidx.fragment.app.FragmentManager.D(FragmentManager.java:5)
07-10 21:24:31.662 21956 21956 E AndroidRuntime: 	at androidx.fragment.app.a.i(BackStackRecord.java:2)

Used apk file
Attach/share your apk
Additional context
At this time, a simple change in Smali is just a bypass of forgery detection.

Good issue, fixed with ffe5c87
NB: APKEditor-1.2.5.jar also updated

That's a nice fix! It works fine. However, there is a problem that some resources are not reflected as html tags and are displayed as plain text. However, the issue has been fixed, and I think it is a different issue, so I will close the issue.


Makes gen command retry with exponential backoff

Previously, gen command retries with fixed delay of 1.5 seconds indefinitely. It could hurt the service especially when they are experiencing overloaded traffic. This patch changes the retry strategy with exponential backoff starting from 1.5 seconds to 60 seconds at maximum. The gen commands aborts by EnvironmentInitializationError exception after 10 attempts.

Codecov Report

Merging #174 into master will increase coverage by 0.08%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #174      +/-   ##
==========================================
+ Coverage    87.8%   87.89%   +0.08%
==========================================
  Files          56       56
  Lines        3125     3131       +6
==========================================
+ Hits         2744     2752       +8
+ Misses        381      379       -2

Impacted Files
Coverage Δ

atcodertools/tools/envgen.py
83.85% <100%> (+1.91%)
:arrow_up:

Continue to review full report at Codecov.

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


"." in strand field

Hi,
In our results (gtf format), the strand field contains three values, i.e., "+", "-", and ".". Could you please tell me what "." stand for and whether we should keep these transcripts?
Many thanks!

Sorry. I just found that this problem has been raised before.


Causing ligatures to render incorrectly

Using MS's cascadia code font with ligatures enabled, this extension being enabled appears to influence how the ligatures render in .dfy files.
e.g. extension disabled

vs extension enabled

This is on MacOS Catalina 10.15
VS Code 1.39.2
Extension 0.17.1
Cascadia Code 1910.04
(latest versions of everything)

Hi @alexsurelee
I'm not aware of any explicit changes we do with fonts or ligatures, but it might be that the code highlighting plays a role here. Does the bug occur in Dafny source only or VSCode wide?
It seems that the VSCode team is currently working on language specific ligatures in https://github.com/microsoft/vscode/issues/10435#issuecomment-545513026, which will probably be shipped with the next release.
I'd suggest we wait until these changes are released, if the problem persists we can take another look at it 🙂

Does the bug occur in Dafny source only or VSCode wide?

Only occurs in .dfy files, and only when this extension is enabled, so definitely appears to be somehow related to this.

It seems that the VSCode team is currently working on language specific ligatures in microsoft/vscode#10435 (comment), which will probably be shipped with the next release.

Interesting, wonder if that'll fix it!


Map

I converted an array into a map.
It was done for issue #3298 opened on Mar 13, 2020, by nbougalis.
The name of the map was kept the same as the array "command".
As a map requires a pair, I made a key which was of type string_view and the second one was user-defined data.
The changes are made from lines 1224 to 1310 in file "rippled/src/ripple/net/impl/RPCCall.cpp" in develop `branch.
Before changes:
```
struct Command
{
const char* name;
parseFuncPtr parse;
int minParams;
int maxParams;
};
    // FIXME: replace this with a function-static std::map and the lookup
    // code with std::map::find when the problem with magic statics on
    // Visual Studio is fixed.
    static Command const commands[] = {
        // Request-response methods
        // - Returns an error, or the request.
        // - To modify the method, provide a new method in the request.
        {"account_currencies", &RPCParser::parseAccountCurrencies, 1, 3},
        //multiple fields like //
        };

_After changes:_

       ```
        struct Command
        {
            parseFuncPtr parse;
            int minParams;
            int maxParams;
        };

        // Visual Studio is fixed.
        static const std::map<std::string_view, Command> command =
        {
        {"account_currencies", {  &RPCParser::parseAccountCurrencies, 1, 3 }},
        //multiple fields like above//
        };

This is my very first PR. I hope that if you find any mistakes or errors in my changes, you will help me rectify them.
Thank you!

Hi,
I measured the time-taken by alternatives discussed in this Pull Request. I considered the following data structures: - linear search over constexpr array, binary_search over sorted array, search in std::map and search operation in std::unordered_map.
The commands array is primarily used for search operation only within the parseCommand function.
Here are the results for these data structures. The ranges refer to bucket-frequency information for ease of understanding. The time is measured in nano-seconds.
Linear Search on constexpr array:
avg ns: 2927; longest ns: 793916
ranges -- 0-9ns: 0; 10-99ns: 389; 100-999ns: 44156; 1000-9999ns: 79586; 10000-99999ns: 2827; 100000ns and over: 18
Binary Search on a constexpr sorted array:
avg ns: 3949; longest ns: 6460959
ranges -- 0-9ns: 0; 10-99ns: 83; 100-999ns: 26735; 1000-9999ns: 98521; 10000-99999ns: 1810; 100000ns and over: 150
std::map data structure:
avg ns: 3998; longest ns: 2221792 ranges -- 0-9ns: 0; 10-99ns: 123; 100-999ns: 21839; 1000-9999ns: 103047; 10000-99999ns: 2119; 100000ns and over: 171
std::unordered_map data structure:
avg ns: 2666; longest ns: 2667042   ranges -- 0-9ns: 94; 10-99ns: 1679; 100-999ns: 43767; 1000-9999ns: 81085; 10000-99999ns: 653; 100000ns and over: 21
Both constexpr array and std::unordered_map have similar time performance.
I feel the improvements are marginal so its pragmatic to stick with a constexpr array instead of switching to unordered_map. the map does not have the advantages of compile-time static-assert checks. If the array were to get a lot bigger the unordered_map might be justified.
[These observations are as of July 2022]
Many many thanks for Scott Schurr for providing the profiling code and also helping in debugging and brainstorming these observations.

Just a thought. std::unordered_map  is not very efficient, absl::flat_hash_map would much likely be faster.

@greg7mdp, good point.  However we don't (yet) have  abseil as a dependency.  If that happens we should revisit a number of the containers used in the code base.

Oh, my bad, thank you @scottschurr , I thought we already did have an abseil dependency!

I suggest that this pull request be closed.  We've not heard from the contributor for quite a while, and the changes suggested in this pull request have been superseded by https://github.com/XRPLF/rippled/commit/9aaa0dff5fd422e5f6880df8e20a1fd5ad3b4424 which is now in the develop branch.

Per @scottschurr's comment, this PR has been superseded and most of the functionality has already been implemented.


Need tiller binary distributed with each release

We want this feature to run tiller locally along with helm in same container/vm. We cannot use docker image of tiller due to our policies.

Will simply running make bootstrap build from source not work for your needs?

Thats how am building tiller binary right now. Its time taking sometimes as make bootstrap build clones entire kubernetes repo if we've to do clean build. And we've to track/build tiller version separately whenever there is a new version of helm (Not a big deal though).
So it would be great if we get binary distributed in each release.

Okay, there is a PR to add this as a separate build. We could just add a downloadable package. See #1722

Thank you very much... @technosophos

Added to meta issue #1968

@spothala Closing this since it appears fixed in PR #1798 and due to inactivity. Please feel free to re-open if necessary.

re-opening; #1798 is neither a PR nor does it actually fix the problem. In fact it redirects back to this issue 😄

fixed in #4443 which'll be in the next release (2.11) since we're already cutting release candidates for 2.10.


Audit logs test scenario update

Description
This PR corrects the following:

Updates the rbac-mds-mtls-custom-rhel scenario to use cluster names to test audit logging properly
Removes hardcoded URL paths for setting RBAC permissions on audit logs
Added both 200 and 204 codes as acceptable responses for RBAC permission creation for audit logs.
Removes a check for the user being set on the internal listener due to inconsistent performance.

Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
This has been validated by running the  rbac-mds-mtls-custom-rhel scenario with full verification.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] Any dependent changes have been merged and published in downstream modules
[ ] Any variable changes have been validated to be backwards compatible

Updated the format, was still WIP as was waiting on checks to finish.


🐛 Bug Report: TS2345 after update to backstage 1.30.0

📜 Description
After updating to Backstage 1.30.0 the following error is given:
error TS2345: Argument of type 'Promise<typeof import("node_modules/@procore-oss/backstage-plugin-announcements-backend/dist/index")>' is not assignable to parameter of type 'BackendFeature | Promise<{ default: BackendFeature; }>'.
  Type 'Promise<typeof import("node_modules/@procore-oss/backstage-plugin-announcements-backend/dist/index")>' is not assignable to type 'Promise<{ default: BackendFeature; }>'.
    Type 'typeof import("node_modules/@procore-oss/backstage-plugin-announcements-backend/dist/index")' is not assignable to type '{ default: BackendFeature; }'.
      Types of property 'default' are incompatible.
        Type '() => BackendFeature' is not assignable to type 'BackendFeature'.

161 backend.add(import('@procore-oss/backstage-plugin-announcements-backend'));
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

👍 Expected behavior
Should import the package to backend succesfully
👎 Actual Behavior with Screenshots
Error given from tsc
👟 Reproduction steps

Update to backstage 1.30.0
Run tsc

📃 Provide the context for the Bug.
No response
🖥 Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

Are you willing to submit PR?
None

Same here after tentivave on 1.30.1 upgrade
[05:25:40.284+02:00] - packages/backend/src/index.ts:42:13 - error TS2345: Argument of type 'Promise<typeof import("/home/jenkins/agent/workspace/backstage_PR-1812/node_modules/@procore-oss/backstage-plugin-announcements-backend/dist/index")>' is not assignable to parameter of type 'BackendFeature | Promise<{ default: BackendFeature; }>'.
[05:25:40.284+02:00] -   Type 'Promise<typeof import("/home/jenkins/agent/workspace/backstage_PR-1812/node_modules/@procore-oss/backstage-plugin-announcements-backend/dist/index")>' is not assignable to type 'Promise<{ default: BackendFeature; }>'.

@jonesbusy you can get rid of it by adding @ts-ignore to the line but it's not a very good option in the long run. Discord discussion here: https://discord.com/channels/687207715902193673/1275426380825366630


Cannot load .pt model files.

I tried to run the script, but i cannot use torch.load('name.pt') to load the pre-trained model.

Please download the pre-trained models from this link first: http://pages.cs.wisc.edu/~fmu/gradfeat20/pretrained/
Then specify the correct file path in the config file. Let me know if there is still an issue.


Investigate a more cost-effective alternative RealTime trigger implementation for AWS SQS

you need to call receiveMessage periodically manually, atm there is no way to listen to an SQS queue in real-time without paying a very high cost. We already have a polling of 100ms, if we configure waitTime we could remove it

Implementation details
We need to use receiveRequest.waitTimeSeconds() to wait for messages instead of ending immediately when no messages to lower the number of API calls.
Doing so, we may be able to remove the Thread.sleep() in the busy loop.


[exporter] Discourse

@akhoury A database dump sample (of dubious validity) can be found on the TDWTF forum. Direct link to the dump: https://what.thedailywtf.com/uploads/default/original/3X/9/3/93cd01a0a2d43fdf14c044fe6c3404764b4e35ea.gz

A quick note as this confused me when I started trying to write a converter: Discourse database backups restore to the restore schema, so you have to do FROM restore.users instead of just FROM users.

$ tar zxvf backup-file.tar.gz
# you now have the dump.sql and meta.json files
$ DATABASE=import_discourse
$ psql $DATABASE < dump.sql
$ psql $DATABASE <<END
DROP SCHEMA IF EXISTS backup CASCADE;
ALTER SCHEMA public RENAME TO backup;
ALTER SCHEMA restore RENAME TO public;
END
$ bundle exec rake db:migrate

https://github.com/BenLubar/nodebb-plugin-import-discourse
Still needs posts/topics/votes/messages.

:+1:

@BenLubar awesome! just added it to the list of exporters https://github.com/akhoury/nodebb-plugin-import/commit/134ea8156bf1be465f98c1271fa2af7b8ddacefc (it's not published yet, I am in the process of getting the importer compatible with 0.8.2 almost done, there are still few glitches, ETA this weekend)
let me know if you run into any issues! i'll be glad to help.

@akhoury Sorry to butt in on this issue, but you mentioned getting the importer ready for 0.8.2 - any ETA on that?

this weekend

17 days ago :/
I ran into a couple of issues, it was late so I gave up, I will give it another try this Saturday.

@tiazzz<EMAIL_ADDRESS>is now compatible with NodeBB v0.8.2
But I took out the discourse exporter option out of it because it's not complete yet, pending @BenLubar's repo https://github.com/BenLubar/nodebb-plugin-import-discourse

@akhoury Many thanks! I'll give it a spin once time allows.

@akhoury I'm not super-familiar with nodejs, redis, or NodeBB, but here's what my import script outputs on a fresh docker install of NodeBB 0.8.2:
exporter.ready
controller.state { now: 'busy', event: 'importer.start' }
importer.start undefined
importer.phase { phase: 'purgeCategories+Topics+PostsStart', data: undefined }
importer.progress { count: 0, total: 1, percentage: 0 }
importer.ready undefined
exporter.ready undefined
importer.progress { count: 0, total: 1, percentage: 0 }
importer.warn purgeCategories+Topics+PostsStart : [[error:no-privileges]]
[nodebb-plugin-import] importer.warn purgeCategories+Topics+PostsStart : [[error:no-privileges]]
importer.progress { count: 1, total: 1, percentage: 100 }
importer.phase { phase: 'purgeCategories+Topics+PostsDone', data: undefined }
importer.phase { phase: 'purgeUsersStart', data: undefined }
importer.progress { count: 0, total: 1, percentage: 0 }
importer.progress { count: 1, total: 1, percentage: 100 }
importer.phase { phase: 'purgeUsersDone', data: undefined }
importer.phase { phase: 'purgeMessagesStart', data: undefined }
importer.progress { count: 0, total: 1, percentage: 0 }
importer.progress { count: 1, total: 1, percentage: 100 }
importer.phase { phase: 'purgeMessagesDone', data: undefined }
importer.phase { phase: 'resetGlobalsStart', data: undefined }
importer.progress { count: 0, total: 1, percentage: 0 }
importer.progress { count: 1, total: 1, percentage: 100 }
importer.phase { phase: 'deleteTmpImportedSetsAndObjectsStart',
  data: undefined }
importer.progress { count: 0, total: 1, percentage: 0 }
importer.phase { phase: 'deleteTmpImportedSetsAndObjectsDone',
  data: undefined }
importer.progress { count: 1, total: 1, percentage: 100 }
importer.progress { count: 1, total: 1, percentage: 100 }
importer.phase { phase: 'resetGlobalsDone', data: undefined }
importer.phase { phase: 'groupsImportStart', data: undefined }
importer.progress { count: 0, total: 1, percentage: 0 }
importer.success Importing 6 groups.
[nodebb-plugin-import] importer.success Importing 6 groups.
importer.progress { count: 1, total: 6, percentage: 16.666666666666664 }
22/10 18:26 [7] - error: Error: ERR value is not a valid float
    at ReplyParser.<anonymous> (/opt/nodebb/node_modules/redis/index.js:305:31)
    at ReplyParser.EventEmitter.emit (events.js:95:17)
    at ReplyParser.send_error (/opt/nodebb/node_modules/redis/lib/parser/javascript.js:296:10)
    at ReplyParser.execute (/opt/nodebb/node_modules/redis/lib/parser/javascript.js:181:22)
    at RedisClient.on_data (/opt/nodebb/node_modules/redis/index.js:534:27)
    at Socket.<anonymous> (/opt/nodebb/node_modules/redis/index.js:91:14)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:746:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)

If I remove everything having to do with groups from the importer, it works, but I don't want to release it with missing features.

@BenLubar  - I will give it a shot next week.
@julianlam that discourse thread is unreadedle, do you have any idea what version of Discourse this dump is against?

@akhoury the specific post with the dump is this one.
The last schema_migration added was<PHONE_NUMBER>2313, so somewhere around version 1.4.0.

@BenLubar
I just successfully tested and imported against a fresh fork of you repo, using the latest version of<EMAIL_ADDRESS>demo
http://<IP_ADDRESS>:4567 (i will leave this running few days, or if I get dos-attacked)
Looks good, didn't get any concerning errors, just few warnings that some votes weren't imported (9 out of 83 were skipped) - not sure that's a major concern, if my assumption that this data dump is just a snapshot in time and some tables keys may not be available.
however, i am still following up with @julianlam since he mentioned that thedailywtf is planning on using a likes plugin instead the core votes feature - that might require some adjustments, but I am not sure which plugin is that? can you clarify?
aside from the likes, when you get a chance,  give it a shot, let me know if you're still seeing errors.

@akhoury that'll happen self-votes are allowed in the forum being updated; nodebb doesn't allow votes on your own post

Let me know if if you guys need a server to trash on :+1:

that's done - new issues with this specific exporter needs to be filed under this repo:
https://github.com/BenLubar/nodebb-plugin-import-discourse
which im watching


onSwitch is undefined - "this" is "window", not "pjax"

Pjax switch fail:
TypeError: this.onSwitch is not a function(…)(anonymous function) @ vendor.bundle.js:277

Stack Trace
module.exports.outerHTML (vendor.bundle.j…v=20160105:740)
(anonymous function) (vendor.bundle.j…v=20160105:722)
module.exports (vendor.bundle.j…v=20160105:390)
(anonymous function) (vendor.bundle.j…v=20160105:713)
module.exports (vendor.bundle.j…v=20160105:697)
Pjax.switchSelectors (vendor.bundle.j…v=20160105:174)
Pjax.loadContent (vendor.bundle.j…v=20160105:225)
(anonymous function) (vendor.bundle.j…v=20160105:272)
request.onreadystatechange (vendor.bundle.j…v=20160105:860)

Happens in switches.js outerHTML and innerHTML

Now it's
"TypeError: Pjax.forEachEls is not a function
    at vendor.bundle.js?v=20160105:239:13
    at Array.forEach (native)
    at Object.Pjax.loadContent (vendor.bundle.js?v=20160105:238:29)
    at Object.<anonymous> (vendor.bundle.js?v=20160105:272:15)
    at XMLHttpRequest.request.onreadystatechange (vendor.bundle.js?v=20160105:872:10)"

And now it's
"TypeError: Pjax.executeScripts is not a function
    at vendor.bundle.js?v=20160105:242:15
    at NodeList.forEach (native)
    at module.exports (vendor.bundle.js?v=20160105:392:37)
    at vendor.bundle.js?v=20160105:241:8
    at Array.forEach (native)
    at Object.Pjax.loadContent (vendor.bundle.js?v=20160105:240:29)
    at Object.<anonymous> (vendor.bundle.js?v=20160105:274:15)
    at XMLHttpRequest.request.onreadystatechange (vendor.bundle.js?v=20160105:874:10)"

Sorry for the spam, just recording these as I go along.

Also clone.

Closed by c12e4cdeddf48b9aec451aa745bed8d5fbb7c129 ?

Yes that commit should fix the errors.
I have a parched 0.2.1 working on my app right now (bugs notwithstanding)
Daryl
On Tue, Jan 5, 2016 at 5:16 PM Maxime Thirouin<EMAIL_ADDRESS>wrote:

Closed #51 https://github.com/MoOx/pjax/issues/51.
—
Reply to this email directly or view it on GitHub
https://github.com/MoOx/pjax/issues/51#event-505575223.


Bump go and kubernetes version

Codecov Report

Merging #4 (4258ebd) into master (3ce04fd) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #4   +/-   ##
=======================================
  Coverage   78.53%   78.53%
=======================================
  Files           7        7
  Lines         177      177
=======================================
  Hits          139      139
  Misses         34       34
  Partials        4        4

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


{Service Connector}: AAD rebranding and fix sql connection

This checklist is used to make sure that common guidelines for a pull request are followed.
Related command

General Guidelines

[ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[ ] Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Thank you for your contribution! We will review the pull request and get back to you soon.

would you also do the same for SC in CLI core?

Will do in PR in core's repo

prompt for user confirmation when update SQL entra admin as https://github.com/Azure/azure-cli/issues/27920

Hi @kairu-ms, could you help merge the PR?


Deployment

GIVEN I am using a daily planner to create a schedule
WHEN I visit the website using the URL
THEN I can access my website with no errors

completed


MOS_algorithm.cpp

You are given array Arr of length N and Q queries. Each query is represented by two numbers L and R, and it asks you to compute some function Func with subarray Arr[L..R] as its argument.
There is an integer array Arr of length N and Q queries. For each i, query #i asks you to output the sum of numbers on subarray [Li, Ri], i.e. Arr[Li] + Arr[Li + 1] + … + Arr[Ri].
Here we have Func([L, R]) = Arr[L] + Arr[L + 1] + ... + Arr[R].
Mo’s algorithm provides a way to answer all queries in O((N + Q) * sqrt(N) * F) time with at least O(Q) additional memory.
Assigned Issue Number ?
#007
Language Opted ?
C/C++/Python/Java/...
Number of files added or updated ?
1/2/3/4/...
Name of these files ?
main folder => sub_folder => ... => ... => ... file.py
example :
Algorithm => Search_Algorithm => Linear_Search => Linear_Search.py
Checklist

[x] I've read the contribution guidelines.
[ ] I've referred the correct issue number.
[ ] I've fill up this entire template correctly.

Assigned Issue Number ?
#997
Language Opted ?
C++
Number of files added or updated ?
1
Name of these files ?
Algorithm => Mos_Algorithm => MOS_Alogrithm.cpp

I forgot to add  the template below the description so putting details in comment, please consider this commit.


How to test encoder?

I'm sorry, I'm a novice who has just started scientific research. After I have trained the encoder, how can I test it?

You can test the (auto)encoder by measuring psnr values or fvd values between ground-truth video clips and their reconstructions.


bump up kafka version to <IP_ADDRESS>

Kafka has just released <IP_ADDRESS>.
major features, improvements, fixes,

A new Java producer for ease of implementation and enhanced performance.
A Kafka-based offset storage.
Delete topic support.
Per topic configuration of preference for consistency over availability.
Scala 2.11 support and dropping support for Scala 2.8.
LZ4 Compression.

+1, please make a PR.


cargo-tarpaulin 0.17.0 has been yanked.

cargo-tarpaulin 0.17.0 has been yanked.
I noticed there was a PR for for 0.16.0, https://github.com/NixOS/nixpkgs/pull/103366, which got replaced by on for 0.17.0, https://github.com/NixOS/nixpkgs/pull/103366.
Checklist

[x] Checked the nixpkgs master branch

[x] Checked the nixpkgs pull requests

Project name
nix search name: cargo-tarpaulin

current version: 0.17.0
desired version: 0.16.0
Notify maintainers

maintainers: @HugoReeves
Note for maintainers
Please tag this issue in your PR.

Hi, thanks for bringing this to my attention. I will look into yanking the release. Thanks

@HugoReeves can we update to 0.16.0 or 0.18.0-alpha3?

This is no longer needed, tarpaulin has been updated to 0.18 in e8d3c65b361bcdbeb445433660fbdde8c738434e :)


Data QA

Ryan and Jim go through each POI & trail and ID issues, figure out which are data related.

Done, issues added.


feat: Sync from noir

Automated pull of development from the noir programming language, a dependency of Aztec.
BEGIN_COMMIT_OVERRIDE
chore: regression test for #5462 (https://github.com/noir-lang/noir/pull/6286)
feat(improve): Remove scan through globals (https://github.com/noir-lang/noir/pull/6282)
feat: show LSP diagnostic related information (https://github.com/noir-lang/noir/pull/6277)
feat: trait inheritance (https://github.com/noir-lang/noir/pull/6252)
feat: optimize reading a workspace's files (https://github.com/noir-lang/noir/pull/6281)
fix: prevent compiler panic when popping from empty slices (https://github.com/noir-lang/noir/pull/6274)
feat(test): Include the PoseidonHasher in the fuzzing (https://github.com/noir-lang/noir/pull/6280)
feat: slightly improve "unexpected token" error message (https://github.com/noir-lang/noir/pull/6279)
feat(test): Fuzz poseidon hases against an external library (https://github.com/noir-lang/noir/pull/6273)
feat: remove byte decomposition in compute_decomposition (https://github.com/noir-lang/noir/pull/6159)
fix: address inactive public key check in verify_signature_noir (https://github.com/noir-lang/noir/pull/6270)
feat(test): Fuzz test poseidon2 hash equivalence (https://github.com/noir-lang/noir/pull/6265)
fix!: Integer division is not the inverse of integer multiplication (https://github.com/noir-lang/noir/pull/6243)
feat(perf): Flamegraphs for test program execution benchmarks (https://github.com/noir-lang/noir/pull/6253)
fix: visibility for impl methods (https://github.com/noir-lang/noir/pull/6261)
feat: Add checked_transmute (https://github.com/noir-lang/noir/pull/6262)
feat!: kind size checks (https://github.com/noir-lang/noir/pull/6137)
feat: don't crash LSP when there are errors resolving the workspace (https://github.com/noir-lang/noir/pull/6257)
fix: don't warn on unuse global if it has an abi annotation (https://github.com/noir-lang/noir/pull/6258)
fix: don't warn on unused struct that has an abi annotation (https://github.com/noir-lang/noir/pull/6254)
feat: don't suggest private struct fields in LSP (https://github.com/noir-lang/noir/pull/6256)
feat: visibility for struct fields (https://github.com/noir-lang/noir/pull/6221)
fix: handle dfg databus in SSA normalization (https://github.com/noir-lang/noir/pull/6249)
fix: homogeneous input points for EC ADD (https://github.com/noir-lang/noir/pull/6241)
chore: add regression test for #5756 (https://github.com/noir-lang/noir/pull/5770)
feat: allow unconstrained after visibility (https://github.com/noir-lang/noir/pull/6246)
feat: optimize Quoted::as_expr by parsing just once (https://github.com/noir-lang/noir/pull/6237)
fix(frontend): Do not warn when a nested struct is provided as input to main (https://github.com/noir-lang/noir/pull/6239)
fix!: Change tag attributes to require a ' prefix (https://github.com/noir-lang/noir/pull/6235)
feat: recover from '=' instead of ':' in struct constructor/pattern (https://github.com/noir-lang/noir/pull/6236)
END_COMMIT_OVERRIDE

fyi @rahul-kothari that aztec contracts are a little mangled by this sync so we shouldn't push out a new release for sandbox devs until this is addressed.


How would I go about using KernelExplainer for a sum product ensemble of 10 GAM models?

I work in insurance where we price frequency and severity of claims separate for each coverage in an insurance policy. Frequency is the number of times a customer claims, and severity is how severe a claim is.
Say there are 5 different coverage IDs: 1, 2, 3, 4, and 5. Any particular policy may or may not have any of the given coverages. And for each coverage, we train a frequency and severity model.
How we get to total loss (our target) for any observation is severity_1 * frequency_1 + severity_2 * frequency_2 + severity_3 * frequency_3 + severity_4 * frequency_4 + severity_5 * frequency_5.
I'm trying to figure out how I can create a prediction function or run a kernel explainer on each of the individual 10 models and somehow combine the SHAP values to get something sensible to explain why total losses for certain segments of the business are having large premium changes.

A nice property of Shapley values is that if you linearly combine the outputs of models then you can linearly combine the SHAP values of those models in the same way to get the explanation of the final result. The problem with your case is that you have product (quadratic) terms so it is not quite so simple. You could just write a python function that does what you said and then explain that with KernelExplainer. But since you used "GAM" in the title I will assume you are using all neural network models. If that is the case then just define a new "joint" model in TF or PyTorch that computes the final loss and then explain that with GradientExplainer or DeepExplainer.

Sorry, by GAM I mean generalized additive model, it's not a neural network.

@nickcorona ha! I must have been thinking GAN and writing GAM. If you are using GAM's check out the new shap.AdditiveExplainer it is fast and exact for first order GAM models. And since a linear combination of GAM models is still a GAM you can just use AdditiveExplainer for the whole ensemble :)

@nickcorona ha! I must have been thinking GAN and writing GAM. If you are using GAM's check out the new shap.AdditiveExplainer it is fast and exact for first order GAM models. And since a linear combination of GAM models is still a GAM you can just use AdditiveExplainer for the whole ensemble :)

Sorry for the late reply.  Thanks a lot Scott! I'll try this out and let you know how it goes.

@nickcorona I am facing a similar problem. Two models (both XGBoost) where one predicts the probability of an event and the other predicts the magnitude of the event.
My function is
expected value = (probability_of_event_1* magnitude_1) + (probability_of_event_2 * magnitude_2)
Do you have any code/example you can share for how you used the Additive explainer?
@slundberg Any documentation on how to use Shap with product sums? Or stacking several models together?

@nickcorona I am facing a similar problem. Two models (both XGBoost) where one predicts the probability of an event and the other predicts the magnitude of the event.
My function is
expected value = (probability_of_event_1* magnitude_1) + (probability_of_event_2 * magnitude_2)
Do you have any code/example you can share for how you used the Additive explainer?
@slundberg Any documentation on how to use Shap with product sums? Or stacking several models together?


Duration does nothing

Hi, i was testing the extension, but i have a little doubt, what is the duration option supposed do? i move the slider, change max duration value, but i don´t see any diference.
Best Regards.

If you set the duration to 7 seconds, it will decrease the interval between downloads. The extension will attempt to download a video every X secs, to avoid getting your IP blocked for mass download.
I just tested on my side, and it is working fine.


Adding tip-checking before returning a block

This change ensures block production never returns a "current" out-of-tip block

Bah... current commit is still the old pulled tip. I need to pull again before checking the value. Updating now

Closing in favor of #1049


NETOBSERV-1382 - Custom metrics from config

Description
I took the opportunity of NETOBSERV-1382 to allow custom metrics definition in console plugin config from a simple list of ids such as:
 panels:
    # Protocol
    - Proto_Bytes
    - sum_Proto_Bytes
    - avg_Proto_Bytes
    - Proto_Packets
    - sum_Proto_Packets
    - avg_Proto_Packets
    - Proto_Flows
    # DSCP
    - Dscp_Bytes
    - Dscp_Packets
    - min_Dscp_TimeFlowRttNs
    - max_Dscp_TimeFlowRttNs
    - avg_Dscp_TimeFlowRttNs
    - p90_Dscp_TimeFlowRttNs
    - p99_Dscp_TimeFlowRttNs
    - min_Dscp_DnsLatencyMs
    - max_Dscp_DnsLatencyMs
    - avg_Dscp_DnsLatencyMs
    - p90_Dscp_DnsLatencyMs
    - p99_Dscp_DnsLatencyMs
    - Dscp_Flows
    # Port numbers
    - SrcPort_Bytes
    - sum_SrcPort_Bytes
    - SrcPort_Packets
    - sum_SrcPort_Packets
    - SrcPort_TimeFlowRttNs
    - min_SrcPort_TimeFlowRttNs
    - max_SrcPort_TimeFlowRttNs
    - avg_SrcPort_TimeFlowRttNs
    - p90_SrcPort_TimeFlowRttNs
    - p99_SrcPort_TimeFlowRttNs
    - DstPort_Bytes
    - sum_DstPort_Bytes
    - DstPort_Packets
    - sum_DstPort_Packets
    - min_DstPort_TimeFlowRttNs
    - max_DstPort_TimeFlowRttNs
    - avg_DstPort_TimeFlowRttNs
    - p90_DstPort_TimeFlowRttNs
    - p99_DstPort_TimeFlowRttNs
    # Directions
    - FlowDirection_Bytes
    - FlowDirection_Packets
    - FlowDirection_Flows
    - IfDirection_Bytes
    - IfDirection_Packets
    - IfDirection_Flows
    # Interface names
    - Interface_Bytes
    - sum_Interface_Bytes
    - avg_Interface_Bytes
    - Interface_Packets
    - sum_Interface_Packets
    - avg_Interface_Packets
    - Interface_Flows
    # DNS capture errors
    - DnsErrno_Flows
    # Connection tracking flow count
    - numFlowLogs_Flows
    # Bytes / Packets rates on current scope
    - Bytes
    - Packets
    # flow on current scope
    - Flows
    - DnsFlows

The ids are parsed as:

MetricFunction (optionnal)
AggregateBy (optionnal)
MetricType

Custom metrics results are saved in a Map<string, TopologyMetrics[] | GenericMetric[]>
Their total are in a similar Map<string, TopologyMetrics | GenericMetric>
Overview panel allow a donut or graph for each of these.

~See https://github.com/netobserv/network-observability-console-plugin/pull/431/commits/25faa3506973b0ef1efc824f5ad5ebcbe8abec96 for change list~
Dependencies
Based on https://github.com/netobserv/network-observability-console-plugin/pull/412
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

[x] Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
[ ] Does this PR require product documentation?

[ ] If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.

[ ] Does this PR require a product release notes entry?

[ ] If so, fill in "Release Note Text" in the JIRA.

[ ] Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.

[ ] If so, make sure it is described in the JIRA ticket.

QE requirements (check 1 from the list):

[x] Standard QE validation, with pre-merge tests unless stated otherwise.
[ ] Regression tests only (e.g. refactoring with no user-facing change).
[ ] No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

/hold
Following https://github.com/netobserv/network-observability-operator/pull/550, this PR will need to be revisited to include FieldConfig

@jpinsonneau do you think this refactoring will work well when we'll use prometheus as the metrics backend (as per https://issues.redhat.com/browse/NETOBSERV-739) ?
I'm not sure to see a problem but what's your thoughts on that?

@jpinsonneau do you think this refactoring will work well when we'll add prometheus as a metrics backend (as per https://issues.redhat.com/browse/NETOBSERV-739) ? I'm not sure to see a problem but what's your thoughts on that?

That should work fine and unlock custom metrics based on available labels in prom

Rebased without code changes

Codecov Report
Attention: Patch coverage is 52.39726% with 139 lines in your changes are missing coverage. Please review.

Project coverage is 57.40%. Comparing base (d57cf70) to head (472facc).
 Consider uploading reports for the commit b139478 to get more accurate results

Files
Patch %
Lines

...c/components/netflow-overview/netflow-overview.tsx
30.50%
40 Missing and 1 partial :warning:

web/src/components/netflow-traffic.tsx
55.73%
27 Missing :warning:

web/src/utils/overview-panels.ts
46.15%
11 Missing and 10 partials :warning:

pkg/loki/topology_query.go
65.00%
10 Missing and 4 partials :warning:

pkg/loki/flow_query.go
0.00%
6 Missing :warning:

...components/query-summary/metrics-query-summary.tsx
16.66%
3 Missing and 2 partials :warning:

web/src/utils/metrics.ts
58.33%
4 Missing and 1 partial :warning:

web/src/model/topology.ts
0.00%
4 Missing :warning:

pkg/handler/topology.go
57.14%
2 Missing and 1 partial :warning:

pkg/handler/validation.go
80.00%
2 Missing and 1 partial :warning:

... and 7 more

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #431      +/-   ##
==========================================
- Coverage   57.49%   57.40%   -0.09%
==========================================
  Files         167      167
  Lines        8750     8842      +92
  Branches     1131     1160      +29
==========================================
+ Hits         5031     5076      +45
- Misses       3397     3439      +42
- Partials      322      327       +5

Flag
Coverage Δ

uitests
57.92% <49.32%> (-0.39%)
:arrow_down:

unittests
55.88% <62.31%> (+0.70%)
:arrow_up:

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

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

/label qe-approved


ARROW-12773: [Docs] mark ORC java-lang supported, Parquet java-lang unsupported.

See https://issues.apache.org/jira/browse/ARROW-12773 for further details.

Good catch on the ORC adapter! However, I think Parquet is supported, just in a different way: there's a separate artifact that provides JNI bindings to the Arrow Datasets library, which in turn reads Parquet: https://github.com/apache/arrow/tree/master/java/dataset
It might be good to clarify that in the docs, though (e.g. by linking to or naming the actual Java artifacts that provide the support).

Nice to know it. The MR updated for it.

Thanks for the fix!


Revert Ceph/RBD Snapshot issue

DESCRIPTION
The following exception shows that the parameter "path" had different data from what it was expected to have. I assume that it got the account id "2" instead of the image id:
2019-09-06 21:27:16,094 ERROR [resource.wrapper.LibvirtRevertSnapshotCommandWrapper](agentRequest-Handler-3:null)
(logid:9593f65a) Failed to connect to revert snapshot due to RBD exception:
com.ceph.rbd.RbdException: Failed to open image 2
        at com.ceph.rbd.Rbd.open(Rbd.java:243)
        at com.ceph.rbd.Rbd.open(Rbd.java:226)
        at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRevertSnapshotCommandWrapper.execute(LibvirtRevertSnapshotCommandWrapper.java:92)
        at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRevertSnapshotCommandWrapper.execute(LibvirtRevertSnapshotCommandWrapper.java:49)
        at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
        at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1476)
        at com.cloud.agent.Agent.processRequest(Agent.java:640)
        at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1053)
        at com.cloud.utils.nio.Task.call(Task.java:83)
        at com.cloud.utils.nio.Task.call(Task.java:29)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

The parameter snapshotRelPath = snapshot.getPath() is a critical piece of code that can definitely break the rollback execution flow if its content is not the expected. My tests had pointed for a pattern but the reported issue points to other possibilities that were not the expected.
I will be working to reproduce this error. Should be soon proposing a fix that will ensure a stable Ceph rollback/revert execution. The fix will aim CloudStack <IP_ADDRESS>.
ISSUE TYPE

Bug Report

merged on 4.13 branch. @GabrielBrascher @rhtyd please reopen if the fixes/reverts aren't good enough.


Fix crash when value contains =

If the value contains an equal sign (=), we get a crash
ValueError: dictionary update sequence element #3 has length 3; 2 is required

Haha, oops. Well spotted.


binary not released to apt

It looks like flexbe_app is not available to install through apt on ubuntu. This is true for both kinetic and melodic. As you can see, they are not listed. I believe the docs are failing to build because of dependencies and this is preventing the release of the binary. The builds fail here and here

Confirming that flexbe_app will not be release as binary in the near term .  See #90


fix(frontend): burn token usd value

Motivation
Currently the BURN USD token value is wrong (and therefore all token values of the additional icrc token json). It does not reflect the token value. This is caused by two bugs:

The exchangeCoinId is hard coded to internet-computer for icrc tokens originating from the JSON. This is wrong.
The usd rate is not loaded for ICRC_TOKENS_LEDGER_CANISTER_IDS, which all additional ICRC token happen to be in (although they should not be in there).

Changes

remove hardcoded exchangeCoinId from map-icrc-data.ts
rename and correct the content of ICRC_TOKENS_LEDGER_CANISTER_IDS to ICRC_CK_TOKENS_LEDGER_CANISTER_IDS to make it more clear. This list is currently only used in the derived enabledIcrcTokensNoCk, which indicates that the original intention behind this list was to have only CK canisterIds

Tests
before

after

Can you split the two different things addressed / implemented in this PR in two PRs? Assuming the "remove" and "rename" described in the PR description can be split.

Yes, I hope this does not complicate the hotfix part.

https://github.com/dfinity/oisy-wallet/pull/3740

an


Update service-links.md

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Thanks, @scjane :)


Custom Commands

Hi there, I am wondering if it would be possible to add the custom command functionality to the Sony VISCA module, similar to the PTZOptics Module.

would love this!

I would also like to see this, ideally an option for "raw" custom and one that includes the 0x8x for the selected camera.

please add custom commands. I've been asking for so long. thanks

The Custom Command action has been implemented in Companion v3.0.0+5781 (beta).

I'm trying to do a custom command to set the address of the cameras but its not letting put in the command code. The text is red and doesn't work. the command is 88 30 01 FF. What am I missing? Thanks

Is that the address set command? In the manual for my cameras it says "Not available for VISCA over IP".
"For VISCA network administration
• Address Set*
Sets an address of a peripheral device. Use
when initializing the network, and receiving the
following network change message.

Not available for VISCA over IP."

In my experience valid custom commands work even if they are red. That indicates that it doesn't match what is expected but tries to send it anyway. Are you able to try other commands such as "81 01 06 06 10 FF"? That command should toggle the menu".

Hi, I have received the AI related commands for Tenveo PTZ NDI camera with 30x Optical Zoom.
Turn on auto framing | 自动框选所有人 | 81 0a 11 54 12 FF | 框选所有人并居中
turn on auto tracking | 选择人形 | 81 0a 11 54 02 FF | 选择人形然后自动跟踪
turn off auto tracking | 关闭人形选择 | 81 0a 11 54 03 FF | 关闭人形选择返回框选模式
Turn off auto framing | 关闭自动框选 | 81 0a 11 54 13 FF | 关闭自动框选和人形跟踪
Tracking left person | 选择人形左 | 81 0a 11 a3 02 FF |
Tracking right person | 选择人形右 | 81 0a 11 a3 03 FF |
OK | 选框消失 | 81 0a 11 a3 04 FF | 确定当前选择，选框消失
Can you implement them in the next version of the module?

Hello, could we add the new Sony BRC-AM7. I currently can't get them to work.


fix: Pass username to regctl login

Due to a misnamed variable, the login action would always pass an empty string as username to regctl registry login.

@sudo-bmitch Thanks for reviewing this so fast. I've added the required DCO signoff 👍


Fix - Set html language for error pages

What
Set the html language for error pages based on the language cookie defaulting to en
How to review

Load a 404 page and see there is no html language
Switch to this branch and see the html lang and xml:lang attributes are set
Add a lang cookie value of cy.
See that the html lang attributes reflect this value

Who can review
Anyone but me

@rav-pradhan I think we need to discuss with @jondewijones and @janderson2 about this as there was some confusion over the functionality required.

Replaced with new middleware


Added ability to nest ModelAdminGroup's in the wagtail admin

As this has been a few years without response, I will close.
Since this time, ModelAdmin has had a lot of improvements and also Snippets has started to provide advanced menu nesting capabilities.
On top of that the Menu JS has been rewritten with the ability to be more extensible.


Resolve remaining warnings

https://app.clickup.com/t/1qzu02x

@quantumagi The tests seem to be failing?

@zeptin, I've fixed the accessibility on one of the test methods.


Allow the type field to have access to the values of its siblings in order to dynamically set sub-schema?

Since the type field does not possess the autoValue's fields method, is it possible at all for this field to gain access to it? Here is an example for a modular interface that could be used to build a webpage similar to Qards. Is it possible to build something of this nature with Collection2 in its current form? The alternative is to define a bunch of optional schema with specific validation and different key names, which comes off as messy to me.
... # boilerplate ...

# B L O C K S -----------------------------------------------------------------

Blocks.Title = new SimpleSchema
  title:
    type: String
    defaultValue: 'Click me to enter a title for this post!'
    max: 200

Blocks.Body = new SimpleSchema
  body:
    type: String
    defaultValue: 'Click me to enter some body text!'
    label: 'Body'

blockMap = {
  'Title': Blocks.Title
  'Body': Blocks.Body
}

# S C H E M A S ---------------------------------------------------------------

Schemas.Block = new SimpleSchema [
  template:
    type: String
    label: 'The name of the template into which this block is rendered.'
    allowedValues: ->
      return _.keys(Blocks)
   #  The issue occurs here. This is not possible, yet it would yield an elegant way to dynamically
   #  alter the sub-schema while keeping the overall schema intact.
   data: blockMap[@fields('template').value]
  ]

 Schemas.Post = new SimpleSchema [ Schemas.Base,
  blocks:
    type: [Schemas.Block]
  ]

+1

#174 would allow mixed types, but for now there are no plans to allow dynamic type. You could probably do something similar by dynamically building the schema based on doc values before using it to validate that doc.


Repository is almost 450MB

The size of this repository is 436MB unpacked (although the download is 'only' ~150MB), which is insane for a tiny JSON parsing library. There are multiple cases where (IMO) the size can be trimmed down massively without actually impacting the repo.
The .git directory is 178MB, likely since you have a lot of changed binary files. You can easily slash the size of this directory by ~90% using git repack (which has drawbacks for repo history, but unless you really care about specific info about changes from years ago this is fine).
Why do you have a 23MB file of 1000000 signed integers in test/data/regression/signed_ints.json Do any of those ints besides the first few thousand really contribute any code coverage? I'd wager not. If the purpose of that many is to make sure the program can handle really large JSON files, why is there also another 23MB of unsigned integers? And 22MB of floats? Having lots of tests is good but this is seriously affecting users with slow internet speed who want to contribute to the project.

Duplicate of #96.


Installation script does not work on Windows PowerShell

What Git revision are you using?
git version 2.40.0.windows.1
What operating system are you using, and which version?

[ X] Windows 10

Describe what the problem is?
Am following the intstallation steps on Windows 11. Windows 10 onwards does have curl so I tried that.
And got:
PS C:\Users\xxx> curl -sSfL https://install.aiken-lang.org | bash
: invalid optionet: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
-bash: line 3: $'\r': command not found
Installing aikup...
-bash: line 5: $'\r': command not found
-bash: line 8: $'\r': command not found
-bash: line 11: $'\r': command not found
curl: (3) URL using bad/illegal format or missing URL
chmod: cannot access '/home/badrul/.aiken'$'\r''/bin'$'\r''/aikup'$'\r\r': No such file or directory
-bash: line 16: $'\r': command not found
-bash: line 18: syntax error near unexpected token `$'in\r''
'bash: line 18: `case $SHELL in

I then tried Git bash and got all teh way through to the Aiken check step of the process at which point it gave me:
$ aiken check
    Compiling aiken-lang/stdlib main (C:\Users\xxx\hello_world\build\packages\aiken-lang-stdlib)
Error:
  x Main thread panicked.
  |-> at C:\Users\xxxx\.cargo\registry\src\github.com-
  |   1ecc6299db9ec823\chumsky-0.9.0\src\combinator.rs:1543:25
  `-> Parser defined at crates\aiken-lang\src\parser\lexer.rs:14:10 failed to
      unwrap. Error: ParseIntError { kind: PosOverflow }
  help: set the `RUST_BACKTRACE=1` environment variable to display a
        backtrace.

I then launched Windows subsystem for linix (WSL) and have been following along there and it seems to work well there so far.
What should be the expected behavior?

Yep no worries - the Cargo method is actually an excellent option for windows users. I'd just suggest updating the doc to mention that so that Windows users aren't left frustrated.

@ReddSpark1 on it thanks for bringing this up


Deadlock elimination for GetEstimatedTimetoStake()

The new GetEstimatedTimetoStake() function has a rare
deadlock situation between the cs_main and cs_wallet locks taken for
a very short time in it and the MinerStatus locked in GetGlobalStatus()
and CreateCoinStake(). ifoggz suggested called GetEstimatedTimetoStake() and
assigning to a local variable right before the critical section in
GetGlobalStatus() to correct the lock order. This appears to work very
well. Wallet against testnet with the change has been running >24 hours without
deadlock.

@denravonska I really like that. Can you merge this one into dev/staging. I will begin working on another one to implement this approach...

Just do not put the lock into the variable you are overwriting.
consider using atomic pointer


isValid('1') returns true

var ipaddr = require('ipaddr.js'),
    ip = '1';

if (ipaddr.isValid(ip)){
    var addr = ipaddr.parse(ip);
}

Error: ipaddr: ipv6 part count should be 8
at new IPv6 (/.../ipaddr.js:155:15)
at Function.ipaddr.IPv4.parse.ipaddr.IPv6.parse (/.../ipaddr.js/lib/ipaddr.js:374:12)

The 'an integer is a valid IPv4' behavior is a little weird. I've had to do the following for my code:
function isValidIp(ip) {
  return /^\d+$/.exec(ip) ? false : ipaddr.isValid(ip);
}

Ruby's IPAddr module doesn't treat single integers as valid IPv4:
1.9.3-p547 :004 > IPAddr.new '1'
ArgumentError: invalid address

Neither does postgres:
# select inet '1';
ERROR:  invalid input syntax for type inet: "1"
LINE 1: select inet '1';

Meanwhile python's behavior is consistent with C:
Python 2.7.5 (default, Mar  9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.inet_aton('1')
'\x00\x00\x00\x01'

So I guess its mostly consistent, but I'd imagine for a lot of people this will be a source of bugs

What was the solution for this? I'm currently having an issue where any number/string being passed into .isValid() returns true?


How to use XSPF as internal playlist by import/export-ing every change ?

I want to use XPFS playlist but foobar2000 doesn't support it natively but https://github.com/Chocobo1/foo_xspf_1 can export to XPFS and read.
Why XPFS - It is portable is uses file name so if I move around the files it still works.
I want
to able to add my XSPF playlist to foobar2000 so I can instantly access them
and add to them with a context menu
I have my old playlist file in XPFS format
There is also https://www.foobar2000.org/components/view/foo_pl_push

How to use XSPF as internal playlist by import/export-ing every change ?

You probably cannot use XSPF as foobar2000 internal playlist. You'll always have to export and import the new XSPF playlist into fb2k.


Enhance the Logic Component of our code (add shorthand for clear)

Done. Added shorthand for clear and find commands.


feat: OPTIC-1219: Add  and favicon variables to the whitelabel config

PR fulfills these requirements

[x] Commit message(s) and PR title follows the format [fix|feat|ci|chore|doc]: TICKET-ID: Short description of change made ex. fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errors
[ ] Tests for the changes have been added/updated (for bug fixes/features)
[ ] Docs have been added/updated (for bug fixes/features)
[ ] Best efforts were made to ensure docs/code are concise and coherent (checked for spelling/grammatical errors, commented out code, debug logs etc.)
[x] Self-reviewed and ran all changes on a local instance (for bug fixes/features)

Change has impacts in these area(s)
(check all that apply)

[ ] Product design
[ ] Backend (Database)
[ ] Backend (API)
[x] Frontend

Describe the reason for change
standardizing how we set the page title and favicon in the templates

/git merge develop

/git merge develop

/git merge develop

/git merge develop

/git merge develop


Using lazy attributes as name attribute

Consider this:
node.default['my']['version']='5'
node.default['my']['package']=lazy { "best-#{node['my']['version']}" }

package node['my']['package']

While this should work, I get something like:
Chef::Exceptions::Package
-------------------------
No candidate version available for ***#<Chef::DelayedEvaluator:0x000000059b1c98@/tmp/vagrant-chef-3/chef-solo-1/cookbooks/***/attributes/default.rb:57>

Resource Declaration:
---------------------
# In /tmp/vagrant-chef-3/chef-solo-1/cookbooks/***/recipes/default.rb

 31:   package pkg do
 32:     action :install
 33:   end
 34: end

Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/***/recipes/default.rb:31:in `block in from_file'

yum_package("#<Chef::DelayedEvaluator:0x000000059b1310@/tmp/vagrant-chef-3/chef-solo-1/cookbooks/***/attributes/default.rb:73>") do
  action [:install]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  package_name #<Chef::DelayedEvaluator:0x000000059b1310@/tmp/vagrant-chef-3/chef-solo-1/cookbooks/***/attributes/default.rb:73>
  timeout 900
  flush_cache {:before=>false, :after=>false}
  declared_type :package
  cookbook_name :***
  recipe_name "default"
end

I have several ideas:

Stay with current configuration, where lazy is only usable from inside the resource block
Modify the base resource class to check if the name attribute is a lazy block, and if so manually evaluate it
Add a to_s method to DelayedEvaluator where it evaluates itself. This seems the easiest, but might have side effects (being evaluated every time it's printed to some log, for instance)

If you can recommend a solution, I'll be happy to help

I don't think this makes any sense.
Resources need names as identifiers on the resource collection as targets for notifies and subscribes.


http server loses post request

go version go1.10.4 linux/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/gdmoonpy/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/gdmoonpy/go"
GORACE=""
GOROOT="/usr/lib/go-1.10"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.10/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build471609353=/tmp/go-build -gno-record-gcc-switches"
i creating server for geometry dash, login and register works but level upload don't work.
func listenUploadLevel(w http.ResponseWriter, r *http.Request) {
	fmt.Println("New request. Path:", r.URL.Path)
	r.ParseForm()
	fmt.Fprintf(w, "1")
}
func main() {
	http.HandleFunc("/golangg/uploadGJLevel211.php", listenUploadLevel)
	err := http.ListenAndServe(":9090", nil)
}

it should print "new request. path:...", but no.
i opened the page in chrome, it work, i see "1"
i create request from wget, it also work.
why it dont work from game?
my english very bad.

This seems to me to be some issue with your code rather than a bug in Go. I would request you to try in other forums at the Questions wiki page. You will get better help there.
The Github bug tracker is only used for tracking bugs and proposals going through the Proposal Process.

Hi there,
We have decided that our experiment to allow questions on the issue tracker has not had the outcome we desired, so I am closing this issue. I'm sorry that we can't answer your question here.
There are many other methods to get help if you're still curious:

Stack Overflow with questions tagged "go"

The Go Forum, a web-based forum

Gophers Slack, use the invite app for access. The #general channel is a good starting point.

Go Community on Hashnode with questions and posts tagged with "go"

The golang-nuts mailing list

IRC channel #go-nuts on Freenode

Thanks


Fix "is is" message typos

Change messages containing a second, redundant "is"

Coverage remained the same at 98.755% when pulling c0f2ed41b7e727df20f9b2f1bd7fb32906c76163 on plr108:fix-extra-is-in-messages into 578575d0af7b71dc3e6071ac31915b8d28f989c5 on jshint:master.

I've removed the modification to the generated files and updated the commit message according to the project's contribution guidelines. Merged to master at commit 799310126f450353f9e1a51fb3a6eacc21761524
Thanks for taking the time to fix this!


RansomTuga Unable to start on both person Computer and RDP after compilation

During compilation using .net (sln) it gives an error on functions.cpp in line 57 requesting that the line needs to return a value 'C4716 Error - Must Return a Value'
I added return (0); and it compiled successfully but did not start the Ransomware on my RDP and PC too. I change it to return false; and also compiled successfully but did not start the ransomware program. All errors says missing dll files when the ransomware is started (Stops at Command line interface with about 4 errors instructing to reinstall some files (Probably Visual studio Program). I looked the errors on starkoverflow and discovered the files are from Visual Studio).
I also did this
If I go in to the DLL projects property pages and change the following configuration for a DEBUG build then the built dll no longer provide the desired functionality. If I change it back and rebuild the DLL, then the DLL does provide the correct functionality:
Property Pages => Configuration Properties => C/C++ => Code Generation => Runtime Library => "Multi-threaded Debug DLL (/MDd)"
Note: If I change to any other, non of the program will compile. but with the default, it only throws 1 function.cpp error I described above.

All attempt to resolve proves abortive. Please help on what to do. Attached are the errors samples.

It is supposed to be compiled in release x64
If you want to use the debug version of the program change enable it in line 47 of ./commons/common.h: #define DEBUG true

It is supposed to be compiled in release x64 If you want to use the debug version of the program change enable it in line 47 of ./commons/common.h: #define DEBUG true
Let me know if it works

I Did all these above including DEBUG and still got same errors. I ran RansomTuga.exe on RDP without visual studio. Is their any video tutorial on how to install?
This time too, I ran precompilation python script in Ransomtuga folder before opening sln on visual studio. Please if their is any other comprehensive guide on how to compile, direct me to it.

It is supposed to be compiled in release x64 If you want to use the debug version of the program change enable it in line 47 of ./commons/common.h: #define DEBUG true
Let me know if it works

I was able to get this working. I changed the runtime Library again after choosing Release, x64. It compiled successfully without any other error. I copied to RDP (Rdp doesn't have visual studio) and it gave same errors I described earlier. I then ran from my pc and it was successful because visual studio was installed in it. It only encrypted contents of same release folder it was built in and nothing else. I was expecting all my pc files to be encrypted but did not get that. It did not also send any file to my email (Maybe I configured the email wrongly because I used forwarder).
I ask again, is there anyway it can be made not to depend on visual studio files? it should be independent maybe. Also, how can I make it encrypt all PC files including files on the desktop and other folders too?

The python precompile script should run automatically when you click compile (or press F6) in Visual Studio. If that doesn't work try changing the command in ./RansomTuga/preCompilation.bat and ./RansomTuga/postCompilation.bat to the command you use to open python from the command prompt. If that doesn't work either, manually specify the precompile events in Visual Studio (here you can find a guide).
In debug mode it automatically encrypts the files in ./debugFolder/ or in a parameter passed when launching the application (i.e. ./RansomTuga.exe C:/Users/ from cmd) otherwise it encrypts the files in the folder where it was started from.
As for the runtime library, I just committed a new update which should have fixed the problem, now the payload is about 700KB heavier (remember to install cryptopp in static mode).
Thanks a lot for reporting these issues!
Let me know if it works so I can close the issue.

if no response in 3 days I'll close the issue but feel free to reopen it if you need!


Added brief instruction for MacOS users as specifying gpg2 for git br…

…eaks  things.
@rhoads-zach and @tradej should verify. The git config on MacOS should be:
gpg.program=gpg
Setting this to gpg2 caused when configuring git on my local machine.

Can one of the admins verify this patch?

[test]

LGTM, merging.


Docker security - How to prevent access to root folders?

Went through the setup guide, got emby up and going on OMV 3.x, but looks like when I add a media library, it will allow me to search through everything from /:

root@omv:~# docker version
Client:
 Version:      17.03.0-ce
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   3a232c8
 Built:        Tue Feb 28 07:55:48 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.0-ce
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   3a232c8
 Built:        Tue Feb 28 07:55:48 2017
 OS/Arch:      linux/amd64
 Experimental: false

OS: Debian 8 (Jessie) -- Linux omv 4.9.0-0.bpo.2-amd64 #1 SMP Debian 4.9.13-1~bpo8+1 (2017-02-27) x86_64 GNU/Linux
Image:
root@omv:~# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
emby/embyserver     latest              5db093354d68        9 days ago          455 MB

systemd service script:
Description=Emby Media Server for emby
After=docker.service

[Service]
Type=simple
User=emby
ExecStart=/usr/local/bin/emby-server service
ExecStop=/usr/bin/docker stop -t 2 emby-server
ExecStopPost=/usr/bin/docker rm -f emby-server
Restart=on-abort
TimeoutSec=20

[Install]
WantedBy=multi-user.target

Read here (https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface) that containers aren't restricted in terms of folder permissions, but what I'm interpreting is that we map the guest directory to / for it to be able to have access. Noticed in the systemd file, we don't actually use -v to map volumes, but use the ${APP_CONFIG}/.emby-server/.emby-server.volumes file. Not sure what's going on here but I'd like for emby to not see anything outside of the volumes I configure. Let me know if this is unrelated to this repo and I'll move issue.

Not necessary since the root folder are the root of the containerize environment.