Sql Server for Linux Docker Container stop frequently

I don't found any logs that can demonstrate the issue.
I installed sqlserver container using the following command:
docker container run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=#####' -v path_to_data_dir:/var/opt/mssql --network nat -p 1401:1433 --name #### -d --restart always microsoft/mssql-server-linux:2017-latest

Try use 'SA_PASSWORD' option instead of 'MSSQL_SA_PASSWORD' option and note The password must be at least 8 characters long and contain characters from three of the following four sets: Uppercase letters, Lowercase letters, Base 10 digits, and Symbols..

@nhnam6
I already set the password with this rules. My problem is the container is working for 2 or 3 weeks for example and suddenly it starts to crash without any error log. This problem can be eliminated if I make a reboot for the linux machine, however this is not an optimum solution in production environment.

Im got the same problem. Try "docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=12345qwerASDF' -p 1433:1433 -it microsoft/mssql-server-linux:2017-latest". It work for me

Thanks for your instant response. I will give it a try.

@nocentino
Unfortunately, when I exuecuted docker logs command, no errors are logged. So, I went to the trace files of the Sql Server container and opened it using sql server profiler and also no errors are logged.
Do you have any additional troubleshooting steps to fix this issue?

2020-07-27 08:46:11.50 spid12s [3]. Feature Status: PVS: 0. CTR: 0. ConcurrentPFSUpdate: 1.

2020-07-27 08:46:11.51 spid12s Starting up database 'model'.

2020-07-27 08:46:11.84 spid25s Parallel redo is started for database 'enhancementdbopr' with worker pool size [3].

2020-07-27 08:46:11.90 spid29s Parallel redo is started for database 'asa' with worker pool size [3].

2020-07-27 08:46:11.92 spid12s Clearing tempdb database.

2020-07-27 08:46:12.03 spid27s Parallel redo is shutdown for database 'enhancementdbopr' with worker pool size [3].

2020-07-27 08:46:12.06 spid29s Parallel redo is shutdown for database 'asa' with worker pool size [3].

2020-07-27 08:46:12.31 spid12s [2]. Feature Status: PVS: 0. CTR: 0. ConcurrentPFSUpdate: 1.

2020-07-27 08:46:12.32 spid12s Starting up database 'tempdb'.

2020-07-27 08:46:13.27 spid12s The tempdb database has 6 data file(s).

2020-07-27 08:46:13.28 spid25s The Service Broker endpoint is in disabled or stopped state.

2020-07-27 08:46:13.29 spid25s The Database Mirroring endpoint is in disabled or stopped state.

2020-07-27 08:46:13.30 spid25s Service Broker manager has started.

2020-07-27 08:46:13.31 spid10s Recovery is complete. This is an informational message only. No user action is required.

2020-07-27 08:46:44.92 Logon Error: 18456, Severity: 14, State: 38.

2020-07-27 08:46:44.92 Logon Login failed for user 'sa'. Reason: Failed to open the explicitly specified database 'enhancementdbopr'. [CLIENT: <IP_ADDRESS>]

2020-07-27 08:46:47.21 Logon Error: 18456, Severity: 14, State: 38.

2020-07-27 08:46:47.21 Logon Login failed for user 'sa'. Reason: Failed to open the explicitly sp

I am facing the same issue on my VPS Ubuntu 18.04 64bits ...

I am facing the same situation, however just noticed something odd. I cannot find the image I used in docker hub. The image name is mcr.microsoft.com/mssql/server.


Please clarify the difference in IntIslandCatRtg and IntIslandCat

I presume the IntIslandCatRtg is the modes that are supported in the DER and IntIslandCat is the mode(s) that are enabled?  Could we clarify in the descriptions. Maybe something like:
            "desc": "Intentional island categories that are enabled in the DER",
            "label": "Enabled Intentional Island Categories",
            "name": "IntIslandCat",

https://github.com/sunspec/models/blob/09b35b5e6e55ff9404de5d8c659031e671cc4871/json/model_702.json#L322

Actually, I think all that's needed is to change the IntIslandCat desc to "Setting for intentional island categories" which should be implied since it's under the "settings" heading in 702, but it would help if someone is working from pysunspec2 like I was.

Last thoughts on this... it may be better to have the names for the IntIslandCat changed to the following:
        {
            "access": "RW",
            "desc": "Intentional island categories",
            "label": "Intentional Island Categories",
            "name": "IntIslandCat",
            "notes": "",
            "symbols": [
                {
                    "name": "UNCATEGORIZED",
                    "notes": "",
                    "value": 0
                },
                {
                    "name": "INT_ISL_ENABLED",
                    "notes": "",
                    "value": 1
                },
                {
                    "name": "BLACK_START_ENABLED",
                    "notes": "",
                    "value": 2
                },
                {
                    "name": "ISOCH_ENABLED",
                    "notes": "",
                    "value": 3
                }
            ],
            "type": "bitfield16"
        },

Good having owners feedback 🙄

Good having owners feedback 🙄


Command line interface for 2.0

Notes on some ideas for CLI changes in rustfmt 2.0.
Deprecate --backup
This should be done via any version control system.
Add subcommands
Change format-diff/git-rustfmt into rustfmt's subcommands.
Also rustfmt --print-config could be one of subcommands as well instead of being a flag, as it takes multiple arguments.
Add --check to cargo fmt
cargo fmt -- --check is one of the most common usage of rustfmt. Why require an additional --?

Add --check to cargo fmt

I'd like to work on that one!

Hey @topecongiro, is add --check to cargo fmt still up for grabs?

The addition of --check to cargo fmt and the deprecation of --backup have already been completed. I don't think anyone is working on any of the subcommands though

@topecongiro - the only thing left here is to move format-diff/git-rustfmt from separate binaries to subcommands on rustfmt right?

Yes, that's right. And since both of them aren't stable yet, I might as well remove them from the 2.0 milestone.
So there's nothing left to do with this issue, closing :tada:


feat: add suppressor of CA1707 for test methods

closes #96
Changes

add suppressor to allow underscores in well-known unit test methods

update Microsoft.CodeAnalysis.Testing packages
add Testing types for DiagnosticSuppressors

see also dotnet/roslyn-sdk/issues/942

add Benchmarking types for DiagnosticSuppressors
add unit test example project

enable all .NET analyzers for all projects

suppress some rules via .globalconfig if not applicable to project type

fix false positives of Microsoft.CodeAnalysis.Analyzers

RS1024, see dotnet/roslyn-analyzers/issues/5715
RS2003, see dotnet/roslyn-analyzers/issues/5828

some other cleanup and formatting

i.a. use trailing comma in object initializers, to make future changes git history friendly

Facts

DiagnosticSuppressors are available since Roslyn 3.3.1

Thanks for your reviews and feedback.
During deduplicating, I actually found that I've missed two Ordinal string comparisons via StartsWith previously, which I think did then a StringComparison.CurrentCulture comparison.


Issues when converting OKLCH back to RGB

Hi !
First of all, awesome library it does exactly what I need and it's very lightweight.
But I found some issues and results quite different from https://oklch.evilmartians.io/ when using better.from(oklchString).rgb
For example:
Black:
oklch(0% 0.08567819015077803<PHONE_NUMBER>1307586/1)
Returns: rgb(0, 0, 3)
Should be: rgb(0, 0, 0) link
oklch(0% 2.248544052636656e-8 89.8755635095349/1)
Returns: rgb(255, 0, 38)
Should be: rgb(0, 0, 0) link
White:
oklch(100% 0.12801375474374593<PHONE_NUMBER>0316647)
Returns: rgb(159, 255, 240)
Should be: rgb(255, 255, 255) link
Other:
oklch(85% 0.17463268857418898 54.10799672454288)
Returns: rgb(255, 170, 80)
Should be: rgb(255, 189.4, 146.73) link
Anyway,
Thank you so much for this library, it saved me quite some time !

Thank you for finding this bug! Will look into the discrepancy here. The Oklch calculations are based off of Oklab; hopefully it’s just Oklch that’s the problem.

Yes I found what you were talking about. It seems that the issue is when converting between color spaces, you often get out-of-bound numbers (e.g. RGB values > 255) that are important to maintain. The problem was clamping the values too early (I found a great blog post about it).
Like you pointed out, the library behind https://oklch.evilmartians.io uses Culori, which has a similar check in place.
I was able to see great improvements in just not clamping values during conversion. This was the cause of most of the weirdness. But I’m still seeing a few unexpected values now in testing that I’m still looking into.

So I was able to improve this! The colors you gave as examples were all colors that aren’t in the sRGB gamut and therefore can’t be displayed, so it’s really open to interpretation how they get converted.
#17 adds Björn Ottosen’s method of sRGB gamut clipping for good results. It should be noted that this DOES NOT match https://oklch.evilmartians.io/, which uses Culori under-the-hood. Nor does this library match Color.js’ implementation. Both employ crude, simple gamut clipping that don’t follow the Oklab space very well. I think Björn’s method yields better results. And that is the name of this library, after all 🙂
Extra info: gamut clipping is quite an interesting rabbit hole, and there’s never a “right answer,” because it depends on usecase (see Björn’s comparison of different clipping algorithms).
All that said, with this being subjective, there still may be improvements to be made on the gamut clipping here. Open to all that feedback, but #17 at least adds this handling that was missing before.

Thank you so much ! I'll take a look at all of this asap !

Going to close the issue, but let me know if there is any additional weirdness 🙂


sparse_hash_map<int, double> very slow

Hi all,
I am trying to use the sparse_hash_map with int as keys and double as values, but it is really slow.
It takes about 34 secs to store an image (only the non-zero values) vs 2 secs when using unordered_map.
I'm using the following code:
  sparse_hash_map<int, double> himg;
  himg.set_deleted_key(-1);

    for (int idx = 0; idx < numvoxels; ++idx) {
        val=image->Get(idx);
        if(val){
            himg[idx]=val;
        }
    }

What could be causing this performance?
Thank you!
Antonis

A few options:

Resize your sparse_hash_map to add more buckets based on your expected num_voxels
Try dense_hash_map
Try sparsetable seeing as your key is an int anyway
Check your compiler optimization flags -03 -std=c++11 etc.
Benchmark all options :-)

Hi Donovan,
Thank you for the quick reply! I'll give it a go.

Try using "map.insert(K, V)" before "map[K] =  V"
The latter requires creation of a unused V, at least it does with unordered_map.

Hi Antonis,
Try changing the value in src/sparsehash/internal/sparsehashtable.h line 1236 from 80 to 50 for the variable HT_OCCUPANCY_PCT.
greg

Default hash function for int in e.g. gcc is identity. Such as std::hash(idx) = idx. Sparse hash is probably relies on uniform hash distribution, so you likely need more useful hash function. You can check out https://stackoverflow.com/questions/664014/what-integer-hash-function-are-good-that-accepts-an-integer-hash-key


Added support for the SameSite attribute in Cookies (#10050)

Picked from this pull https://github.com/netty/netty/pull/10050
and this commit https://github.com/netty/netty/commit/e4af5c363152e6589e46eb3e3f7c44e8ebae9b09
Motivation:
Netty currently does not support the SameSite attribute for response cookies (see issue #8161 for discussion).
Modifications:
The attribute has been added to the DefaultCookie class as a quick fix since adding new methods to the Cookie interface would be backwards-incompatible.
ServerCookieEncoder and ClientCookieDecoder have been updated accordingly to process this value. No validation for allowed values (Lax, None, Strict) has been implemented.
Result:
Response cookies with the SameSite attribute set can be read or written by Netty.
Co-authored-by: David Latorre<EMAIL_ADDRESS>Motivation:
Explain here the context, and why you're making that change.
What is the problem you're trying to solve.
Modification:
Describe the modifications you've done.
Result:
Fixes #.
If there is no issue then describe the changes introduced by this PR.

@kiennguyen 3.x is EOL for many years. So I am not sure if this will buy you anything.

Really, the play1 framework has been using very old netty version: 3.10.6.Final https://raw.githubusercontent.com/playframework/play1/master/framework/dependencies.yml
However, to migrate play1 to netty 4.x a bit hard. Therefore, we would like to do this fix on netty 3.10 if possible?

@kiennguyen well at some point versions become EOL and will not receive any more updates (in case of netty 3 this has happened years ago). So I am afraid there will be no new release. If play want to add support for SameSite it can either upgrade to a more recent netty version (which they really should) or implement it on top of their current used version.

I understood. Thank @normanmaurer


Rotate by count has something wrong

rotatelogs.New(
"demo.log-%Y%m%d%H",
rotatelogs.WithMaxAge(-1),
rotatelogs.WithRotationCount(6),
rotatelogs.WithRotationSize(1024),
rotatelogs.WithRotationTime(time.Hour))
It can't work when i write fast enough.
Maybe you need do something in rotatelogs.go:280 like this:
func (rl *RotateLogs) rotate_nolock(filename string) error {
....
for _, path := range matches {
....
// todo
if strings.HasSuffix(filename, path) {
continue
}
.....
}
.....
}

rotatelogs.New(
"demo.log-%Y%m%d%H",
rotatelogs.WithMaxAge(-1),
rotatelogs.WithRotationCount(3),
rotatelogs.WithRotationSize(1024),)

RotationCount more than 10, the symbolic link is invalid (flashing red).
Does anyone have this problem？

Please produce a test.


Scheduled Tasks

Enable/disable scheduled tasks such as feedback, automatic app updates, location, and xbox.
Most of these are made redundant anyway by sufficiently anti-telemetric modifications to Windows.
Not tested on Creator's Update (though it should be the same).

OK...  I did that just now and this whole PR seems weird.

"Refresh Settings" - Doesn't exist on my machine.
*"Automatic App Update"* - This one has a proper description, so this one is clear.
*Location* - Resolves to \Microsoft\Windows\DeviceDirectoryClient\RegisterDeviceLocationRightsChange which I have no idea what it does.
*feedback* - Doesn't exist on my machine (but a subfolder with the same name exists).
*speech* - No idea what does it do (I can only assume it downloads up-to-date speech recognition samples).
*xbox* - Doesn't exist on my machine.

Mind you that I'm searching for them after I've applied all the tweaks from the basic script. If the already existing tweaks remove also corresponding tasks, then there is no point in removing them explicitly in a separate tweak. Can you please give me some details or pointers on what those tasks are supposed to do? I'm definitely not against the idea of adding some, but I need to have a clear description of what I'm removing and why. I'm not really into the "big brother spies on you" kind of thing, so even if some of the tasks may seem shady, I'd like to know that they really are before I get rid of them.

Maybe it helps - I usually end up disabling these blithering scheduled tasks:
Microsoft\Windows\Customer Experience Improvement Program\Consolidator
Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask
Microsoft\Windows\Customer Experience Improvement Program\Uploader
Microsoft\Windows\Customer Experience Improvement Program\UsbCeip
Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector
Microsoft\Windows\DiskFootprint\Diagnostics
Microsoft\Windows\Feedback\Siuf\DmClient
Microsoft\Windows\CloudExperienceHost\CreateObjectTask
Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser
Microsoft\Windows\Application Experience\ProgramDataUpdater
Microsoft\Office\OfficeTelemetryAgentFallBack
Microsoft\Office\OfficeTelemetryAgentLogOn
I even disable the Microsoft\Windows\Windows Error Reporting\QueueReporting as memory dumps can contain private data too.
Anyway thanks for this useful script.


default height too small to show menu

pretty much unuseable as is

I don't know how to pass in a height from the parent to the css, but here is a quick hack:
mounted: function() {
var editors = document.getElementsByClassName('jsoneditor-vue');
for (var i = 0; i < editors.length; i++) {
editors[i].style.height = '800px';
}
},

You can also target jsoneditor-vue class in css/scss
.jsoneditor-vue {
  height: 800px;
}

I thought I tried that, I'm not sure why it didn't work.  Is it because of scoped?

@markperri yes it looks like it does not work when scoped.

Thanks!
Mark

original: https://www.cnblogs.com/tanweiwei/p/13043125.html
/deep/.jsoneditor-vue{
height:500px;
}
/deep/.json-save-btn{
margin-top: 10px;
cursor: pointer;
width: 100px;
line-height: 30px;
font-size: 14px;
}


Update vcpkg-tool to 2022-01-19

The ci command segfaults

Would be fixed by https://github.com/microsoft/vcpkg-tool/pull/327

Ok not completely, it then fails at
Starting package 4/1734: absent:x64-osx
Building package absent:x64-osx...
-- Using cached rvarago-absent-0.3.1.tar.gz.
-- Extracting source /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/downloads/rvarago-absent-0.3.1.tar.gz
-- Using source at /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/absent/src/0.3.1-40487c5ce5.clean
-- Configuring x64-osx-dbg
-- Configuring x64-osx-rel
-- Building x64-osx-dbg
-- Building x64-osx-rel
-- Installing: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/packages/absent_x64-osx/share/absent/README.md
-- Installing: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/packages/absent_x64-osx/share/absent/copyright
-- Performing post-build validation
-- Performing post-build validation done
Error: vcpkg has crashed; no additional details are available.
The source line is /Users/leanderSchulten/git_projekte/vcpkg-tool/src/vcpkg/build.cpp(958)

Ok not completely, it then fails at

Right, that change sees when nulls happen and skips over them, but it doesn't fix that nulls got in there in the first place which is the actual bug. It regressed in https://github.com/microsoft/vcpkg-tool/pull/298 and I'm investigating.

https://github.com/microsoft/vcpkg-tool/pull/329/ is my current WIP after spending all day trying to diagnose the issue

Maybe change ports.cmake to trigger a full rebuild

That would trigger a rebuild for customers too which is undesirable.

I mean you only change it to trigger a full rebuild to test if everything still works. If everything still works you revert the change again.

I mean you only change it to trigger a full rebuild to test if everything still works. If everything still works you revert the change again.

Oh, I see. I suppose getting a full run is a good idea. For that I can just trigger a CI run: https://dev.azure.com/vcpkg/public/_build/results?buildId=66773&view=results


how to calculate the point posion of the die in wafer

def convert_coordinates(
        die_pitch: DiePitch,
        sample_center_location: SampleCenterLocation,
        xrel: float,
        yrel: float,
        xindex: int,
        yindex: int,
) -> Tuple[float, float]:
    """convert defect attributes to real x,y coordianates

    Args:
        die_pitch (DiePitch): _description_
        sample_center_location_x (float): _description_
        sample_center_location_y (float): _description_
        xrel (float): _description_
        yrel (float): _description_
        xindex (int): _description_
        yindex (int): _description_

    Returns:
        Tuple[float, float]: the x and y coordinates
    """

    x = xindex * die_pitch.x + xrel - sample_center_location.x
    y = yindex * die_pitch.y + yrel - sample_center_location.y

    return x, y

I am confused about the formula to calculate the point position. Would you like to give an explanation of how to convert the information to the point position?

Would you like to share your email with me? Can I send emails to you to discuss questions about the code?
Thanks

Resolved.


Stack on playerinteract

Caused by: java.lang.NullPointerException                                                                                │····························································        at vg.civcraft.mc.prisonpearl.managers.PrisonPearlManager.freePearl(PrisonPearlManager.java:248) ~[?:?]                                                                 │····························································
at vg.civcraft.mc.prisonpearl.listener.PlayerListener.freePearl(PlayerListener.java:695) ~[?:?]                                                                         │····························································        at vg.civcraft.mc.prisonpearl.listener.PlayerListener.onPlayerInteract(PlayerListener.java:673) ~[?:?]                                                                  │····························································        at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) ~[?:?]                                                                                │····························································
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_72-internal]                                                         │····························································        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_72-internal]                                                                                │····························································        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-db6de12-880a532]                                                │····························································
... 17 more

Working on this issue currently.

No need, I'll fix this with my other updates.


postRenderAsyncJobs doesn't work in watch mode

What package is the bug related to?
typedoc-plugin-markdown
Describe the issue
When running npx typedoc --watch the postRenderAsyncJobs only executes once. It should run after each render.
TypeDoc configuration
No response
Expected behavior
No response

As is the case for html theme, postRenderAsyncJobs are intentionally cleared after the first render so won't trigger after each change in watch node.
As a workaround I suppose you can re-assign the jobs after each render:
const postAsyncJobs = () => {
  app.renderer.postRenderAsyncJobs.push(async (output) => {
    // do something after render
   });
};

// initial
postAsyncJobs();

// set after each subsequent render
app.renderer.on(MarkdownRendererEvent.END, () => {
  postAsyncJobs();
});

Thanks, would be nice to document this in docs!


Fix (benchmarking-related?) CI issues

https://github.com/umccr/htsget-rs/runs/6725133792?check_suite_focus=true#step:11:294
It seems that criterion is trying to fish out some prior result to compare against?: https://github.com/umccr/htsget-rs/runs/6725133792?check_suite_focus=true#step:13:20
Could also be related with my recent await-ification of many of the tests. I'll investigate.
Future proofing warning worth fixing too: https://github.com/umccr/htsget-rs/runs/6725133792?check_suite_focus=true#step:11:139
Also need to investigate on whether to run the benchmarks with --release mode on as it's the production baseline we want to compare against.
Also when running the benchmarks locally, they don't seem to finish?:
cargo bench --bench search-benchmarks --bench request-benchmarks -- LIGHT --output-format bencher | tee output.txt

Real problem is that it doesn't seem to connect to the already spawned server (Connection refused)? It works fine locally though:
(...)
Status: Downloaded newer image for ga4gh/htsget-refserver:1.5.0
docker.io/ga4gh/htsget-refserver:1.5.0
Server started on port 3000!
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(<IP_ADDRESS>)), port: Some(8080), path: "/reads/bam/htsnexus_test_NA12878", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })) }', htsget-http-actix/benches/request_benchmarks.rs:52:61
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: bench failed

Local run is fine:
% time cargo bench --bench search-benchmarks --bench request-benchmarks -- LIGHT --output-format bencher
    Finished bench [optimized] target(s) in 0.44s
     Running benches/request_benchmarks.rs (target/release/deps/request_benchmarks-61adb651982bafd5)
Gnuplot not found, using plotters backend
    Finished dev [unoptimized + debuginfo] target(s) in 0.20s
     Running `target/debug/htsget-http-actix`
1.5.0: Pulling from ga4gh/htsget-refserver
Digest: sha256:b93ab0593f58165351a136f19661228aec203ccaa74d746bd309e8936d8038de
Status: Image is up to date for ga4gh/htsget-refserver:1.5.0
docker.io/ga4gh/htsget-refserver:1.5.0
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Server started on port 3000!
test Requests/[LIGHT] simple request htsget-rs ... bench:    50192597 ns/iter (+/- 2604779)
test Requests/[LIGHT] simple request htsget-refserver ... bench:   241670291 ns/iter (+/- 52979001)
test Requests/[LIGHT] with region htsget-rs ... bench:    51889638 ns/iter (+/- 1895549)

Warning: Unable to complete 100 samples in 30.0s. You may wish to increase target time to 46.1s, or reduce sample count to 60.
test Requests/[LIGHT] with region htsget-refserver ... bench:   431346333 ns/iter (+/- 9810885)
test Requests/[LIGHT] with two regions htsget-rs ... bench:    95558263 ns/iter (+/- 4413729)

Warning: Unable to complete 100 samples in 30.0s. You may wish to increase target time to 58.0s, or reduce sample count to 50.
test Requests/[LIGHT] with two regions htsget-refserver ... bench:   573878041 ns/iter (+/- 11200399)

Warning: Unable to complete 100 samples in 30.0s. You may wish to increase target time to 52.9s, enable flat sampling, or reduce sample count to 50.
test Requests/[LIGHT] with VCF htsget-rs ... bench:    10081166 ns/iter (+/- 327103)
test Requests/[LIGHT] with VCF htsget-refserver ... bench:   184615812 ns/iter (+/- 3240979)

     Running benches/search_benchmarks.rs (target/release/deps/search_benchmarks-2731ff10a82d3df1)
Gnuplot not found, using plotters backend
test Queries/[LIGHT] Bam query all ... bench:     4387442 ns/iter (+/- 193169)
test Queries/[LIGHT] Bam query specific ... bench:     5329601 ns/iter (+/- 321501)
test Queries/[LIGHT] Bam query header ... bench:      356823 ns/iter (+/- 71399)
test Queries/[LIGHT] Cram query all ... bench:      402423 ns/iter (+/- 59736)
test Queries/[LIGHT] Cram query specific ... bench:      658649 ns/iter (+/- 454257)
test Queries/[LIGHT] Cram query header ... bench:      329839 ns/iter (+/- 145571)
test Queries/[LIGHT] Vcf query all ... bench:      399011 ns/iter (+/- 15657)
test Queries/[LIGHT] Vcf query specific ... bench:      520640 ns/iter (+/- 10706)
test Queries/[LIGHT] Vcf query header ... bench:      226984 ns/iter (+/- 15869)
test Queries/[LIGHT] Bcf query all ... bench:      427458 ns/iter (+/- 20275)
test Queries/[LIGHT] Bcf query specific ... bench:      572761 ns/iter (+/- 30455)
test Queries/[LIGHT] Bcf query header ... bench:      250903 ns/iter (+/- 14151)

782.85s user 136.34s system 25% cpu 59:13.80 total

This almost feels like a concurrency, race-condition type of error, however it's not obvious where it is occuring. It seems to be related to generating self-signed certificates, e.g. here: https://github.com/umccr/htsget-rs/runs/6723277672?check_suite_focus=true#step:11:179.
The certificates are generated here, and placed into a temporary directory: https://github.com/umccr/htsget-rs/blob/75aed4760755a13d83e819fbcacbc77f40ee68b2/htsget-http-actix/benches/request_benchmarks.rs#L140-L141
But this should all be sequential processing, so I think it's something to do with how TempDir interacts with writing files. I know there's a bit of weirdness with dropping a reference to the directory clearing its contents. I think the base_path should be passed into the function so that it lives long enough, because maybe the spawned process doesn't have enough time to grab hold of the certificate before it is cleared.
As a side note, I think the github action should fail if either the spawned htsget-rs or htsget-refserver process fails with an error, as this would allow for easier debugging.

PR #94 seems to fix this issue, but issue #93 seems to persist, even if it really points to the same underlying race condition... most probably the CLI has a different codepaths and/or there's some duplicated code?


Added a possibility for passing Server options into Negroni (in parti…

…cular for Read/Write timeout

This one is important. I'm using Negroni in our production environment and behind CloudFlare it continues to open file handles (sockets) until it runs out of the max default allocated (1024).
By passing Server options I can force a timeout on ESTABLISHED and keepalive requests so I don't keep hitting my file descriptor limit.

@socceroos : I ended up instead doing a workaround in my code like this
// RunNegroni is a convenience function that runs the negroni stack as a
// provided HTTP server, with the following caveats:
// 1. the Handler field of the provided serverConfig should be nil,
//    because the Handler used will be the n Negroni object.
func RunNegroni(n *negroni.Negroni, addr string, timeout time.Duration) (*RestServiceInfo, error) {
	svr := &http.Server{Addr: addr, ReadTimeout: timeout, WriteTimeout: timeout}
	l := log.New(os.Stdout, "[negroni] ", 0)
	svr.Handler = n
	svr.ErrorLog = l
	return ListenAndServe(svr)
}

See https://github.com/romana/core/blob/c4a8fb6da995f5da8311ef0d2c6435c4d40e7240/common/service.go#L255

Thanks for that! I ended up writing a solution that was very similar, and it seems others have been doing this as well.

I like the idea of providing a convenient way to run with an existing *http.Server, although I'd want some minor changes made to the implementation.  @codegangsta || @jszwedko whaddya think?

I think you bring up a good point in #106 -- negroni aims to be a middleware stack so I don't want to push hard in the direction of being a "server". I almost want to see https://github.com/codegangsta/negroni/pull/107#issuecomment-204784686 as the default way to use negroni, but I realize that we already have the convenience functions for starting a real HTTP server providing another which takes a http.Server may be desirable.

Actually, my opinion is that we should keep at as-is with the one convenience Run function (to make it easy to spin up and play with) and add directions for using negroni with an existing *http.Server to the README as the normal usage.

Added documentation on how to use negroni as an http.Handler which I think is a more flexible way to approach this, but let me know if you have any further thoughts about this @debedb !


Custom metrics

The implementation of custom metrics.

I think this pull request is very close - although I havn't verified the actual functionality yet :)
Make sure that all queries are valid or logging has been performed in order to notify the user that something is wrong, and where.

I feel sorry for forgetting to reply :sob:.
I will fix the code according to the suggestion and improve the error log.

Sounds good !

This is looking good, but we need some updates for
.github/workflows/ci.yml
doc/CONFIGUTATION.md
doc/YAML.md

such that the code compiles in CI, and configuration and format are explained

Pull the server_type filter commit off - save it for another pull request, or squash it into the main patch. I would rename it to just server but keep the both, primary and replica settings.
I don't see an update to the reload code...

Pull the server_type filter commit off - save it for another pull request, or squash it into the main patch. I would rename it to just server but keep the both, primary and replica settings.
I don't see an update to the reload code...

OK! I pushed branch wrongly, now it is correct. I update the reload code.

Squashed, and merged - congrats on your first pull request !
Thanks for your contribution !

Thank you very much for your help!


Error 2406

Describe the bug
I can no longer login into Tuya IOT Developer platform
** Log file **
[6/6/2024, 3:30:20 PM] [HB Supervisor] Restarting Homebridge...
[6/6/2024, 3:30:20 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules -D -K --strict-plugin-resolution
[6/6/2024, 3:30:20 PM] [HB Supervisor] Started Homebridge v1.8.2 with PID: 2693
[6/6/2024, 3:30:23 PM] Loaded config.json with 0 accessories and 2 platforms.
[6/6/2024, 3:30:23 PM] Loaded 0 cached accessories from cachedAccessories.
[6/6/2024, 3:30:23 PM] ---
[6/6/2024, 3:30:24 PM] Loaded plugin<EMAIL_ADDRESS>[6/6/2024, 3:30:24 PM] Registering platform 'homebridge-tuya-platform.TuyaPlatform'
[6/6/2024, 3:30:24 PM] ---
[6/6/2024, 3:30:24 PM] Loading 2 platforms...
[6/6/2024, 3:30:24 PM] [TuyaPlatform] Initializing TuyaPlatform platform...
Initializing TuyaPlatform...
TuyaOpenAPI request: method = post, endpoint = https://openapi.tuyaeu.com, path = /v1.0/iot-01/associated-users/actions/authorized-login, params = null, body = {"country_code":34,"username":"jordi@majo.cat","password":"3e965ef0c2b3e76ef43fa3bd9217b18a","schema":"smartlife"}, headers = {"t":"1717680624340","client_id":"gjap3nvs4vpyggjm8eya","nonce":"edc69ed0-2408-11ef-82f7-67fd0d838289","Signature-Headers":"client_id","sign":"97AC9378BC4100D43B9AAF5A4C549F008B868EFB7BB6E01EA9DE193A2149415F","sign_method":"HMAC-SHA256","access_token":"","lang":"en","dev_lang":"javascript","dev_channel":"homebridge","devVersion":"1.5.0"}
[6/6/2024, 3:30:25 PM] Publishing bridge accessory (name: Homebridge 2AE5, publishInfo: {
username: '0E:31:0C:6D:2A:E5',
port: 51740,
pincode: '--**',
category: 2,
bind: undefined,
mdns: undefined,
addIdentifyingMaterial: true,
advertiser: 'bonjour-hap'
}).
Setup Payload:
X-HM://0024Z10M9O0BN
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ xxx-xx-xxx │
└────────────┘

[6/6/2024, 3:30:25 PM] Homebridge v1.8.2 (HAP v0.12.1) (Homebridge 2AE5) is running on port 51740.
TuyaOpenAPI response: {"code":2406,"msg":"skill id invalid","success":false,"t":1717680625389,"tid":"ee9cfc52240811efbe221ede1b7ee1c1"} path = /v1.0/iot-01/associated-users/actions/authorized-login
TypeError: Cannot destructure property 'access_token' of 'res.result' as it is undefined.
at TuyaSHOpenAPI._refreshAccessTokenIfNeed (/homebridge/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:49:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TuyaSHOpenAPI.request (/homebridge/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:145:7)
at TuyaSHOpenAPI.getDevices (/homebridge/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:63:15)
at TuyaPlatform.initTuyaSDK (/homebridge/node_modules/homebridge-tuya-platform/index.js:90:19)
Attention⚠ ⚠ ⚠ ! You get an error!
Failed to get device information. Please check if the config.json is correct.
Any help will be greatly appreciated

same issue


bug: snacks_notification gets written to a new buffer

Did you check docs and existing issues?

[X] I have read all the snacks.nvim docs
[X] I have updated the plugin to the latest version before submitting this issue
[X] I have searched the existing issues of snacks.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
NVIM v0.10.2 Build type: Release LuaJIT 2.1.1732813678
Operating system/version
macOS 15.2 Sequoia
Describe the bug
Thank you for creating snacks, it is awesome :-)
When committing to git with neogit (https://github.com/NeogitOrg/neogit) the commit message progress notification is written to a new buffer in nvim. I believe that this is done by snacks_notify. For me this buffer is undesirable since it prevents me from exiting nvim with :q, I do not want to quit with :qa! because of the risk of loosing unsaved work.

Steps To Reproduce

Commit a change with neogit
new buffer is created with commit message status

Expected Behavior
No messages should be written to a new buffer.
Repro
Full config https://github.com/ThorstenRhau/neovim
Plugin config https://github.com/ThorstenRhau/neovim/blob/main/lua/plugins/snacks.lua

return {
    "folke/snacks.nvim",
    priority = 1000,
    lazy = false,
    opts = {
        bigfile = {
            size = 1 * 1024 * 1024, -- 1 MB
            notify = true,
        },
        dashboard = {
            row = nil, -- dashboard position. nil for center
            col = nil, -- dashboard position. nil for center
            preset = {
                header = [[neovim :: by Thorsten]],
            },
            formats = {
                header = { "%s", align = "center" },
                text = { "%s", align = "center" },
            },
            sections = {
                {
                    section = "header",
                },
            },
        },
        git = { enabled = true },
        gitbrowse = { enabled = true },
        indent = { enabled = true },
        notifier = {
            timeout = 3000,
            style = "compact",
        },
        notify = { enabled = true },
        quickfile = { enabled = true },
        scope = { enabled = true },
        scroll = { enabled = true },
        statuscolumn = { enabled = true },
        terminal = { enabled = true },
        toggle = { enabled = true },
        words = { enabled = true },
    },

    keys = {
        {
            "<leader>z",
            function()
                Snacks.zen()
            end,
            desc = "Toggle Zen Mode",
        },
        {
            "<leader>Z",
            function()
                Snacks.zen.zoom()
            end,
            desc = "Toggle Zoom",
        },
        {
            "<leader>.",
            function()
                Snacks.scratch()
            end,
            desc = "Toggle Scratch Buffer",
        },
        {
            "<leader>S",
            function()
                Snacks.scratch.select()
            end,
            desc = "Select Scratch Buffer",
        },
        {
            "<leader>n",
            function()
                Snacks.notifier.show_history()
            end,
            desc = "Notification History",
        },
        {
            "<leader>bd",
            function()
                Snacks.bufdelete()
            end,
            desc = "Delete Buffer",
        },
        {
            "<leader>cR",
            function()
                Snacks.rename.rename_file()
            end,
            desc = "Rename File",
        },
        {
            "<leader>gB",
            function()
                Snacks.gitbrowse()
            end,
            desc = "Git Browse",
        },
        {
            "<leader>gb",
            function()
                Snacks.git.blame_line()
            end,
            desc = "Git Blame Line",
        },
        {
            "<leader>gf",
            function()
                Snacks.lazygit.log_file()
            end,
            desc = "Lazygit Current File History",
        },
        {
            "<leader>gg",
            function()
                Snacks.lazygit()
            end,
            desc = "Lazygit",
        },
        {
            "<leader>gl",
            function()
                Snacks.lazygit.log()
            end,
            desc = "Lazygit Log (cwd)",
        },
        {
            "<leader>un",
            function()
                Snacks.notifier.hide()
            end,
            desc = "Dismiss All Notifications",
        },
        {
            "<leader>t",
            function()
                Snacks.terminal()
            end,
            desc = "Toggle Terminal",
        },
        {
            "]]",
            function()
                Snacks.words.jump(vim.v.count1)
            end,
            desc = "Next Reference",
            mode = { "n", "t" },
        },
        {
            "[[",
            function()
                Snacks.words.jump(-vim.v.count1)
            end,
            desc = "Prev Reference",
            mode = { "n", "t" },
        },
    },
    init = function()
        vim.api.nvim_create_autocmd("User", {
            pattern = "VeryLazy",
            callback = function()
                -- Setup some globals for debugging (lazy-loaded)
                _G.dd = function(...)
                    Snacks.debug.inspect(...)
                end
                _G.bt = function()
                    Snacks.debug.backtrace()
                end
                vim.print = _G.dd -- Override print to use snacks for `:=` command

                -- Create some toggle mappings
                Snacks.toggle.option("spell", { name = "Spelling" }):map("<leader>us")
                Snacks.toggle.option("wrap", { name = "Wrap" }):map("<leader>uw")
                Snacks.toggle.option("relativenumber", { name = "Relative Number" }):map("<leader>uL")
                Snacks.toggle.diagnostics():map("<leader>ud")
                Snacks.toggle.line_number():map("<leader>ul")
                Snacks.toggle
                    .option("conceallevel", { off = 0, on = vim.o.conceallevel > 0 and vim.o.conceallevel or 2 })
                    :map("<leader>uc")
                Snacks.toggle.treesitter():map("<leader>uT")
                Snacks.toggle
                    .option("background", { off = "light", on = "dark", name = "Dark Background" })
                    :map("<leader>ub")
                Snacks.toggle.inlay_hints():map("<leader>uh")
                Snacks.toggle.indent():map("<leader>ug")
                Snacks.toggle.dim():map("<leader>uD")
            end,
        })
    end,
}

What do you mean with the progress message commit notification?
snacks does no such thing.
And any buffers created for notifications are hidden, so won't interfer with :q

Hello,
First of all thanks for the great plugin. Keep up the good work !!!
I'm also observing the behavior where the neogit progress msg are being written to a new buffer. I have setup the notifier
according to the suggest config using opts.snacks.notifier.enabled = true

And when I quit try quitting nvim following is showing up

I also have the noice plugin installed.
Any help is greatly appreciated.

@saitharun14 I have been trying to figure out why this happens. At first I thought that my configuration has a flaw that I am not able to figure out. But now that you also are seeing this behavior, with a different configuration (I suppose), I am even more curious as to what could be causing this.

Since you're both seeing this happening with neogit, that seems to be the culprit.

Neogit behaves as expected when I disable snacks in my configuration, preventing messages from being written to new buffers.
This is a catch-22 since both Neogit and Snacks work fine when loaded alone, without the other plugin present. Reporting this as a bug to either plugin is challenging since this behavior only exists when both are loaded simultaneously.

@saitharun14 I have been trying to figure out why this happens. At first I thought that my configuration has a flaw that I am not able to figure out. But now that you also are seeing this behavior, with a different configuration (I suppose), I am even more curious as to what could be causing this.

Yes, my configuration is different from the configuration you attached in the details. Similar to your observation, when I use them individually I don't observe the issue.

I think that I might have figured it out. There is an option in neogit that is not part of the plugin documentation 'process_spinner = false,'. After setting that in my plugin configuration I have had no problems with buffers etc.
As usual folke was spot on ;-)
Here is the complete configuration for reference in case anyone else finds this thread, looking for a solution to a problem that is not related to snacks: https://github.com/ThorstenRhau/neovim/blob/main/lua/plugins/neogit.lua

Hi @ThorstenRhau, setting process_spinner to false works but this will complete remove the processing indicator. This wan't an issue with noice, so I believe there can be a better solution. I may be wrong as I'm new to nvim.


TaskService.Connected property has wrong value when Task scheduler service is disabled

Envirinment: Windows 7 64-bit, TaskScheduler library release version 1.4.2
Repro steps:

Disable Task Scheduler service in Windows 7 through the registry
Run test application and create TaskService service = new TaskService();
Check service.Connected property is "true" though the service is really disabled
Also probably some other properties has wrong values, eg. HighestSupportedVersion = 1.1, but v1TaskScheduler is null and v2 equals "true" and v2TaskService is NOT null.

So I didn't find a way how to detect that the service is stopped in Windows 7.

Originally posted: 2010-10-15T23:31:45

This works as designed. If the Task Scheduler service is not running, when you try to register a task, you will get an error indicating so.
Originally posted: 2010-11-29T16:35:17


deepcopy: copy scalars with memset

To ensure that pointers get set to nil, we now set all the fields with a
shallow copy before copying each component. This should be both safer
and faster.
Signed-off-by: Stephen J Day<EMAIL_ADDRESS>

PTAL @aaronlehmann

LGTM

Current coverage is 53.55% (diff: 100%)

Merging #1887 into master will decrease coverage by 0.04%

@@             master      #1887   diff @@
==========================================
  Files           107        107
  Lines         18409      18403     -6
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           9868       9856    -12
- Misses         7330       7335     +5
- Partials       1211       1212     +1

Powered by Codecov. Last update 74bd6f2...fe0f07f


Explicitly add actions

Do we need to explicitly add actions? Or is there a way to just show all actions? I didn't add any actions in the config, here's what this plugin shows:

and here's vim.lsp.buf.code_action()

Is there any way I can get all of the actions without adding each one individually?

Well then, I updated and it started working!


Add support for event compendium

It is not currently possible to access the event compendium. Support for this should be added so that old events can be replayed.
Relevant endpoints (may be more):

[ ] /memory_event/activate

For each of /raid_event/, /earn_event/, /build_event/, /combat_event/, /clb_01_event/:

[ ] /entry
[ ] /get_event_data
[ ] /receive_point_reward

Closed by #303


Using multiple styleUrls does not work

If I pass multiple .css files into a @Component decorator’s styleUrls property, only rules in the last .css file are applied. For instance in the code below only the rules in two.css are applied:
@Component({
  selector: "foo",
  template: "...",
  styleUrls: ["path/to/one.css", "path/to/two.css"]
})

This is a reasonably big limitation because using @import in .css files imported by Angular also doesn’t appear to work (which might be another issue?).
Thanks.

It seems to work fine on my end.
The renderer doesn't contain any code that resolves CSS files -- the magic is done by Angular. Could you check if the path to the CSS file that doesn't get loaded is correct?

Ok this is super weird. This seems to work when the CSS files target the same component, but as soon as they target different components the styles no longer seem to be applied. I uploaded an example https://github.com/tjvantoll/angular-css-issue

It turned out there were two bugs lurking in that codebase. I fixed those, and your app runs fine on my end. Please upgrade to<EMAIL_ADDRESS>

Thanks for the fast turnaround @hdeshev.
I tried this out and it appears to work, although I’ve hit a possibly related bug now—rules that I apply in stylesheets in the stylesUrls of pages that aren’t the first page in my app aren’t applied.
It’s probably easiest to just see this in Groceries. These styles are applied exactly as I’d expect, and these aren’t. I can try to limit this down tomorrow, but it’s getting near the end of the day here and just wanted to make sure you were aware.

I’ll reopen this issue for now. If you’d prefer for this to be in a separate issue let me know.

Well fixing that one was a bit harder than I expected since it required a fix to tns-core-modules, but we're finally there. I just pushed an upgrade to<EMAIL_ADDRESS>and<EMAIL_ADDRESS>to the Groceries app that fixes the problem.

I used every available positive emoji to express my gratitude. The fix works great 😀

I'm kinda lost halfway tho


Error on Sickrage API

Thank you for contributing to ShowsRage. Please fill in the form corresponding to your request ("Bug report" or "Feature request"). The other sections can safely be removed.
Bug report

ShowsRage version: Git stable branch
Android version: 6.1.1
Device: Xiaomi Redmi 3S

Issue description
Error log on Sickrage portal
2016-11-23 15:21:02 API :: 'Core' object has no attribute 'STARTED'
API Key successfully received but connection fails.

This issue was already reported in #55, so I'm closing it to keep all discussion in one thread.
I was not able to reproduce this yet. So I don't know how to fix it in ShowsRage for the moment.
However, in the other issue, users seem to be able to work around the problem by changing the port SickRage is running on. Can you try that? If it does not work, don't hesitate to comment in the other issue.

Okay. Thanks.

Default port is 8081 = error
Port changed to 5700 = error
😑


errors: Simplify error codes

Remove RT- and JUTTLE- prefixes from error codes. Also remove the -ERROR suffix in cases where it was redundant.
The removed prefixes currently serve no purpose and in #59 we decided to go the namespaces route for distinguishing codes from adapters and Juttle itself.
This change will require adapting the adapters.
This is an improved version of #331. Part of work on #165.

@demmer
I removed the -ERROR suffix where the message still made sense without it (e.g. REQUIRED-OPTION, INVALID-JSON) but I kept it where the code would be incomplete or sound odd without it (e.g. TYPE-ERROR, JOIN-INPUTNUM-ERROR). I think there is quite some room for improvement and unification in naming the codes (which would get rid of some more -ERROR suffixes) and also in the messages themselves, but I didn’t want to get that deep in this PR in order to keep it mostly mechanical.
If the PR looks good to you, please merge it right away to prevent bitrot. Thanks.

Rebased one more time.
@demmer

lgtm +1


use_enum_values gives different result on model_dump when default value is set

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
If we use use_enum_values=True on a model and field has a default value, setting the value on model creation results a different model dump.
In the example model1 = SomeModel(some_enum=SomeEnum.BAR) gives the value of enum but print(model2.model_dump()) gives the enum itself. As it can be seen on the print.
Example Code
from enum import Enum
from typing import Optional

import pydantic

class SomeEnum(Enum):
    FOO = 'foo'
    BAR = 'bar'

class SomeModel(pydantic.BaseModel):
    model_config = pydantic.ConfigDict(
        use_enum_values=True
    )
    some_enum: Optional[SomeEnum] = pydantic.Field(default=SomeEnum.FOO)

model1 = SomeModel(some_enum=SomeEnum.BAR)
print(model1.model_dump())
# Prints; {'some_enum': 'bar'}

model2 = SomeModel()
print(model2.model_dump())
# Prints; {'some_enum': <SomeEnum.FOO: 'foo'>}

Python, Pydantic & OS Version
pydantic version: 2.4.2
        pydantic-core version: 2.10.1
          pydantic-core build: profile=release pgo=false
                 install path: <path-to-venv>/lib/python3.10/site-packages/pydantic
               python version: 3.10.12 (main, Jun 26 2023, 20:42:23) [Clang 14.0.3 (clang-14<IP_ADDRESS>.1)]
                     platform: macOS-13.5.2-arm64-arm-64bit
             related packages: mypy-1.5.1 typing_extensions-4.8.0

Hi @alkimake,
Thanks for reporting this! This does seem to be a bug 🐛. I'll look into a fix and keep you updated on this thread 😄.

Hi @alkimake,
I think the issue here is that use_enum_values takes effect when we're validating an object, and default values aren't validated by default. Instead, you could use the following to get the result you're expecting:
from enum import Enum
from typing import Optional

import pydantic

class SomeEnum(Enum):
    FOO = 'foo'
    BAR = 'bar'

class SomeModel(pydantic.BaseModel):
    model_config = pydantic.ConfigDict(
        use_enum_values=True, validate_default=True
    )
    some_enum: Optional[SomeEnum] = pydantic.Field(default=SomeEnum.FOO)

model1 = SomeModel(some_enum=SomeEnum.BAR)
print(model1.model_dump())
# Prints; {'some_enum': 'bar'}

model2 = SomeModel()
print(model2.model_dump())
# Prints; {'some_enum': 'foo'}

Similarly, you can see here that if you don't validate assignment (which is the default setting), enums could slip through the cracks instead of enum values:
# with `validate_assignment=False` (the default)
model3 = SomeModel()
model3.some_enum = SomeEnum.FOO
print(model3.model_dump())
#> {'some_enum': <SomeEnum.FOO: 'foo'>}

# with `validate_assignment=True` set on `model_config`
model3 = SomeModel()
model3.some_enum = SomeEnum.FOO
print(model3.model_dump())
#> {'some_enum': 'foo'}

Does this make sense? Feel free to let me know if you have any follow up questions.
The main reason that we don't validate default values automatically is that it's time consuming and costly, but we recognize that there's definitely a need in some cases, hence the configurable setting.
Hope this helps 😄

#2010 reports the same issue from V1, with a similar solution.
Going to close this given that it's the expected behavior + has been reported before, but feel free to follow up with any questions you might have 😄.

Hello @sydney-runkle
Thanks for taking care of the issue.
I believe validation and translation completely 2 different process and it feels weird to me that translation depends on validation. I will fix my issue by adding validate_default=True but this might raise unwanted results or conflicts for other cases or users of pydantic. The user is being pushed to validate all models that just to get proper translation on model_dump. Not to mention this will have a performance hit.
Best,
Ake

Hi @alkimake,
Thanks for following up. I can understand the confusion regarding this behavior. However, for an enum set during model initialization, the value is extracted during validation (and later when model_dump is called, the value of the enum is already assigned to the field in question) so we must handle the case of the default at validation as well.
Perhaps a documentation update regarding this behavior could be helpful, as it has come up for many people. I'll open a PR later this week with a docs update 😄.


add amplitude telemetry

This somehow broke the build. https://github.com/iasql/docs/runs/7589614071?check_suite_focus=true can you build the docs locally?

This somehow broke the build. https://github.com/iasql/docs/runs/7589614071?check_suite_focus=true can you build the docs locally?

I hadn't pushed the latest. Fixed now :)


fixed undefined browserscope scheme

Using default (commented out) or custom values for SCHEME in .env resulted faulty query strings from browserscope.js
api_key=xxxxxxxxxxxxxxxxxxxxxxxx&name=First%20Test&description=This%20is%20just%20a%20test%20case&url=undefined%3A%2F%2Flocalhost%2Ffirst-test
Adding scheme: process.env.SCHEME to var config = {... in config.js corrected the issue.
If there's a more elegant fix (I couldn't figure out what the exports.get = function... does) please let me know.

great find! I expanded the fix of the root issue in #349


Cookie sessionid you are searching found was either not found or not valid!

Cookie sessionid you are searching found was either not found or not valid!
why this happen??

please update your app to the latest version. This issue was fixed in the past. If you still experience this issue after updating, then please feel free to reopen this issue :)


please support copying metdata of blobs when using azcopy sync command

Which version of the AzCopy was used?
A: the latest version v10.3.2
Which platform are you using? (ex: Windows, Mac, Linux)
A: windows 10
What command did you run?
A: azcopy sync
What problem was encountered?
A: the metadata of source blob is not copied.
How can we reproduce the problem in the simplest way?
A: just use "azcopy sync" command, and set metadata for some source blobs
Have you found a mitigation/solution?
A: no

@zezha-msft , hello, may I know when this can be done? Thanks.

Hi @imeya, we'll be able to provide a reliable estimate once this work has been scheduled.

Adding my vote for this!

Fixed in release 10.3.3.

Verified it, it works! Thank you.


streaming_decode.py or decode.py under stateless5?

Hey guys, I see both streaming_decode.py and decode.py under stateless5 support streaming decoding, what's the difference?

In decode.py, it is simulate streaming decoding (i.e. using masking when calculating attention).
In streaming_decode.py it is real streaming decoding (i.e decoding chunk by chunk).
So, you can decode a streaming model with either simulate_streaming in decode.py or streaming_decode.py, the decoding resutls should be almost the same.

Got it, thanks !


Heroku Build fails with 'missing script: build'

What I did:

I created a react app with create-react-app
I ran heroku app:create and passed the create-react-app-buildpack url in the --buildpack argument.
I went to heroku and connected my app to github.
I wrote a static.json for nginx, as per your instructions in the buildpack repo.
I pushed my app to master and saw that this build worked.

And everything worked.  Then, I realized that I wanted to add authentication and to deliver a node backend as well, so I found this repository and tried to follow the instructions.

I did heroku --app my-app config:unset <buildpack_url>
I created a folder called react-ui and moved my react app under it
I created the index.js for the express app
I created the package.json for the express app (name is my-app)
I added the proxy config in the package.json of the react app and renamed it (my-app-ui)

And when I run these two locally via npm install && npm start they both start, and they work together - the react app reaches out to the express app, which returns data.  Hooray!
Then, I push to my master branch to kick off a heroku build - but the build fails.  I'm going to post the build log right after this paragraph, and you'll see that it's complaining about a missing script called build.  At first, I thought it wasn't finding the build script for the react-ui, but look closer at the log and you'll see that the react-ui app builds successfully.  In fact, you can see that each part of the heroku-postbuild command runs successfully.  So I don't know which 'build' is not being found.  I do note that the create-react-app-inner-buildpack writes out a static.json - which is weird because I no longer want an nginx front-end, but the node backend that I've just provided.
-----> React.js (create-react-app) multi app detected
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-multi.git
=====> Detected Framework: Multipack
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
=====> Detected Framework: Node.js
-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=false
       NODE_VERBOSE=false
       NODE_ENV=development
       NODE_MODULES_CACHE=true
-----> Installing binaries
       engines.node (package.json):  6.9.x
       engines.npm (package.json):   unspecified (use default)

       Resolving node version 6.9.x via semver.io...
       Downloading and installing node 6.9.5...
       Using default npm version: 3.10.10
-----> Restoring cache
       Skipping cache restore (new runtime signature)
-----> Building dependencies
       Installing node modules (package.json)
<EMAIL_ADDRESS>/tmp/build_658494bc568082290fd55dab3cd2145e/org-my-app-f27879f8323ffc9b378e383271603d4539b8ad6a
      <snipped all the npm install stuff>

      Running heroku-postbuild

       ><EMAIL_ADDRESS>heroku-postbuild /tmp/build_658494bc568082290fd55dab3cd2145e/org-my-app-f27879f8323ffc9b378e383271603d4539b8ad6a
       > cd react-ui/ && npm install --only=dev && npm install && npm run build

<EMAIL_ADDRESS>/tmp/build_658494bc568082290fd55dab3cd2145e/org-my-app-f27879f8323ffc9b378e383271603d4539b8ad6a/react-ui
       <snipped npm install stuff>

<EMAIL_ADDRESS>/tmp/build_658494bc568082290fd55dab3cd2145e/org-my-app-f27879f8323ffc9b378e383271603d4539b8ad6a/react-ui
      <snipped npm install stuff>

       ><EMAIL_ADDRESS>build /tmp/build_658494bc568082290fd55dab3cd2145e/org-my-app-f27879f8323ffc9b378e383271603d4539b8ad6a/react-ui
       > react-scripts build

       Creating an optimized production build...
       Compiled successfully.

       File sizes after gzip:

       116.49 KB  build/static/js/main.9dde2828.js
       314 B      build/static/css/main.97c43581.css

       The project was built assuming it is hosted at the server root.
       To override this, specify the homepage in your package.json.
       For example, add this to build it for GitHub Pages:

       "homepage": "http://myname.github.io/myapp",

       The build folder is ready to be deployed.
       You may also serve it locally with a static server:

       npm install -g pushstate-server
       pushstate-server build
       open http://localhost:9000

-----> Caching build
       Clearing previous node cache
       Saving 2 cacheDirectories (package.json):
       - node_modules
       - react-ui/node_modules
-----> Build succeeded!
=====> Downloading Buildpack: https://github.com/mars/create-react-app-inner-buildpack.git
=====> Detected Framework: React.js (create-react-app)
       Writing `static.json` to support create-react-app
       Enabling runtime environment variables
npm ERR! Linux 3.13.0-110-generic
npm ERR! argv "/tmp/build_658494bc568082290fd55dab3cd2145e/org-my-app-f27879f8323ffc9b378e383271603d4539b8ad6a/.heroku/node/bin/node" "/tmp/build_658494bc568082290fd55dab3cd2145e/org-my-app-f27879f8323ffc9b378e383271603d4539b8ad6a/.heroku/node/bin/npm" "run" "build"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! missing script: build
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/build_658494bc568082290fd55dab3cd2145e/org-my-app-f27879f8323ffc9b378e383271603d4539b8ad6a/npm-debug.log
 !     Push rejected, failed to compile React.js (create-react-app) multi app.
 !     Push failed

I see that the app is still being built with create-react-app-buildpack.
Run heroku buildpacks to check what buildpacks are set. I suspect your attempt to unset the buildpack was not correct; see heroku buildpacks --help for those commands.
Try heroku buildpacks:clear then retry the deployment.

That was exactly the problem.  One of the apps in the pipeline still had the create-react-app-buildpack set.  The clear command caused the detection and the deploy to work correctly, thanks!
  Start with a React app and then try to move to this?  Maybe it's worth adding a line in the README.md just in case someone else makes the same mistake.
Great buildpack, btw.  Really appreciate your examples - they've helped me to get up and running.

Happy that fixed it!
Thanks for the feedback. I added "Switching from create-react-app-buildpack" to the docs.


bufexists() function expects a number as a parameter.

Since bufnr is used as a key to various dicts like s:sign_queue,
s:placed_signs, etc. its value is converted to string. So we have to
explicitly convert it back to number when calling bufexists() function.
It fixes an issue when calling :Neomake! clippy doesn't clean the old signs. Introduced by #935 PR.

Nice find.
The problem is that dictionary keys are always strings..!
I will try to come up with a test and/or change existing ones to actually catch this.


User cannot add env in EA mode

Describe the bug
User unable add env in EA mode if he required
To Reproduce
The user goes to Global configurations
Then User selects the Clusters
Expected behaviour
Add environment button should be there in cluster option
Current behaviour
User unable to add any environment in cluster option
Screenshots

AB#959

This is resolved, feel free to reopen if this still exist @nitish6660


inline-block has enough width for table row

fix ENG-328
i don't know why block isn't working. but i notice the header uses inline-block and works good. so I test inline-block and it works good too

oh maybe i miss another css, let me double check


No method matching error in various notebooks

There is a "no method matching" error in various notebooks.
The issue is in file UNSflow\src\solvers.jl and is probably caused by a type incompatibility while calling not_in_place (exported from NLsolve) which expects a Function type where immutable data types are passed instead.
A few examples are given below.

This error occurs in notebooks UNSflow/examples/LAUTAT_example1.ipynb and UNSflow/Notebooks/3D extensions - notes.ipynb

MethodError: no method matching not_in_place(::UNSflow.KelvinCondition)
Closest candidates are:
not_in_place(::Function) at INCOGNITO.julia\v0.5\NLsolve\src\differentiable_functions.jl:61
not_in_place(::Function, ::Function) at INCOGNITO.julia\v0.5\NLsolve\src\differentiable_functions.jl:68
not_in_place(::Function, ::Function, ::Function) at INCOGNITO.julia\v0.5\NLsolve\src\differentiable_functions.jl:78
in lautat(::UNSflow.TwoDSurf, ::UNSflow.TwoDFlowField, ::Int64, ::Float64, ::UNSflow.DelVortDef, ::Array{Float64,2}, ::Float64) at INCOGNITO\UNSflow\src\solvers.jl:30
in lautat(::UNSflow.TwoDSurf, ::UNSflow.TwoDFlowField, ::Int64) at INCOGNITO\UNSflow\src\solvers.jl:3

The same error also occurs in notebook UNSflow/Notebooks/Typical section test (Tiago).ipynb

MethodError: no method matching not_in_place(::UNSflow.KelvinCondition2DOF)
Closest candidates are:
not_in_place(::Function) at INCOGNITO.julia\v0.5\NLsolve\src\differentiable_functions.jl:61
not_in_place(::Function, ::Function) at INCOGNITO.julia\v0.5\NLsolve\src\differentiable_functions.jl:68
not_in_place(::Function, ::Function, ::Function) at INCOGNITO.julia\v0.5\NLsolve\src\differentiable_functions.jl:78
in ldvm(::UNSflow.TwoDSurf_2DOF, ::UNSflow.TwoDFlowField, ::Int64, ::Float64, ::UNSflow.DelVortDef, ::Array{Float64,2}, ::Float64) at INCOGNITO\UNSflow\src\solvers.jl:1019
in ldvm(::UNSflow.TwoDSurf_2DOF, ::UNSflow.TwoDFlowField, ::Int64, ::Float64, ::UNSflow.DelVortDef) at INCOGNITO\UNSflow\src\solvers.jl:988

Hi,
Here's the fix:
These instructions are good for osx/linux. For a windows computer, just go to the correct location where Julia packages are installed:
cd /home/username/.julia/v0.5/NLsolve/src/
Open differentiable_functions.jl
Find the not_in_place function and change the definition from
function not_in_place(f::Function)
to
function not_in_place(f)
Essentially, the not_in_place defined in NLsolve accepts only functions, but has to be changed to accept any general argument. There is possibly a better workaround.
Let me know if you encounter further issues.


Highcharts-ng with Highchart Indicator plugin not working

Hello,
Is it possible to use Highchart-ng with the highchart indicator plugin to display SMA, EMA, ATR, RSI on a highstock candelstick chart ?
I didn't manage to make it working until now.
Highchart indicators plugin :
https://www.highcharts.com/plugin-registry/single/24/Indicators/
http://demo.blacklabel.pl/
https://jsfiddle.net/BlackLabel/RE7sS/?utm_source=website&utm_medium=embed&utm_campaign=RE7sS
Best regards

make a broken jsfiddle and I can have a look

Hi Pablo, sorry for the late reply. I built up my own directive to solved this issue.
Thanks a lot
Sebastien


Fix GDScript Tokenizer being very strict about the number of underscores

I was to lazy to open an issue, too. So here the bug:
var score : int = 0b000_000_000

results in:
  built-in:12 - Parse Error: Only one underscore can be used as a numeric separator.
  modules\gdscript\gdscript.cpp:816 - Method/function failed. Returning: ERR_PARSE_ERROR

According to the 3.2 docs the above is valid for any number. This issue applies to any number, not just binaries. As the issue applies to all numbers, the fix does too 😄
(For the reference, I group by three bits, because I make a quick'n dirty tic tac toe game)

I agree we shouldn't prevent using multiple underscore separators in number, as long as the separators aren't contiguous (e.g. 1__000 shouldn't be allowed, 1_000_000 should be).

It works exactly this way

Thanks!


Update to use _id instead of ID in instances

Describe the bug
On the Go side, we've now switched to using _id for the identifier on instances. This is great as it will feel more mongodb-like, and is pretty standard in JS. Since we don't rely on Go to validate our instances here, we'll need to make sure we implement this the same way that we do in Go. This ticket therefore is linked with #57, which is also what we use by default in Go now.

Fixed with #129


Add details to legacy requests

Continuation of https://github.com/paritytech/substrate/pull/6698
Unfortunately it seems that we still receive requests. This PR adds the details of what we receive.

bot merge

bot merge

bot merge

(previous CI failure seems to be caused by crates.io being down)

bot merge

bot merge


InvalidConfiguration Error after upgrade of KubeOne

After I upgraded from some earlier version (not sure which exactly) to the the recent kubone 1.2.3 used machine contorller docker.io/kubermatic/machine-controller:v1.33.0 I get on before applied Machines (by Machine Deploymenet) the error on deletion:
An error of type = InvalidConfiguration, with message = Failed to
    parse MachineSpec: operatingSystemSpec in the MachineDeployment cannot be empty
    occurred. Please manually delete machine-delete-finalizer finalizer from the machine
    object.

It seams in earlier versions it was ok to not have the operatingSystemSpec set, now it leads to this error.
The machine object:
apiVersion: cluster.k8s.io/v1alpha1
kind: Machine
metadata:
  creationTimestamp: "2021-05-16T15:48:34Z"
  deletionGracePeriodSeconds: 0
  deletionTimestamp: "2021-07-28T22:14:56Z"
  finalizers:
  - machine-delete-finalizer
  - machine-node-delete-finalizer
  generateName: run-alpha-az-b-5b86b45956-
  generation: 4744
  labels:
    machine-template-hash: "1642601512"
    machinepool: run-alpha-az-b
  name: run-alpha-az-b-5b86b45956-jhzl4
  namespace: kube-system
  ownerReferences:
  - apiVersion: cluster.k8s.io/v1alpha1
    blockOwnerDeletion: true
    controller: true
    kind: MachineSet
    name: run-alpha-az-b-5b86b45956
    uid: 43fa1642-3a5e-4b9a-8deb-d46c6885b8f6
  resourceVersion: "348576566"
  uid: a2b080f3-ae5a-4925-9005-eeca6342dcad
spec:
  metadata:
    creationTimestamp: null
    labels:
      machinepool: run-alpha-az-b
    name: run-alpha-az-b-5b86b45956-jhzl4
  providerSpec:
    value:
      cloudProvider: gce
      cloudProviderSpec:
        assignPublicIPAddress: true
        diskSize: 100
        diskType: pd-ssd
        labels:
          machinepool: run-alpha-az-b
        machineType: n1-standard-2
        network: https://www.googleapis.com/compute/v1/projects/kubermatic-run/global/networks/run-2-alpha
        preemptible: false
        regional: true
        subnetwork: https://www.googleapis.com/compute/v1/projects/kubermatic-run/regions/europe-west1/subnetworks/run-2-alpha-subnet
        tags:
        - firewall
        - targets
        - run-alpha-az-b
        zone: europe-west1-b
      labels:
        machinepool: run-alpha-az-b
      operatingSystem: ubuntu
      sshPublicKeys:
      - |...
  versions:
    kubelet: 1.20.7
status:
  addresses:
  - address: <IP_ADDRESS>
    type: ExternalIP
  - address: run-alpha-az-b-5b86b45956-jhzl4.europe-west1-b.c.kubermatic-run.internal
    type: InternalDNS
  - address: run-alpha-az-b-5b86b45956-jhzl4.c.kubermatic-run.internal
    type: InternalDNS
  - address: run-alpha-az-b-5b86b45956-jhzl4
    type: InternalDNS
  - address: <IP_ADDRESS>
    type: InternalIP
  conditions:
  - lastHeartbeatTime: null
    lastTransitionTime: null
    status: "True"
    type: Ready
  errorMessage: 'An error of type = InvalidConfiguration, with message = Failed to
    parse MachineSpec: operatingSystemSpec in the MachineDeployment cannot be empty
    occurred. Please manually delete machine-delete-finalizer finalizer from the machine
    object.'
  errorReason: DeleteError
  nodeRef:
    apiVersion: v1
    kind: Node
    name: run-alpha-az-b-5b86b45956-jhzl4
    resourceVersion: "345167616"
    uid: f5bc58e2-7130-4b05-be73-2fd44b7400d5
  versions:
    kubelet: v1.20.7

It's not a bug, it's a feature, please see #923.

The problem is that it was valid in  a old version, e.g. machine-controller:v1.25.0. Then you update to kubeone 1.2.3, the machine is still running and valid. Now in my case the auto-scaler delete a old machine, then you can't fix the machine spec anymore and it hanging forever in deletion.
When a new enforcement get introduced, what's great, in my opinion the current objects needs to get the default value set, to not get broken for deletion.
This will effect all users when they update and didn't specified the operatingSystemSpec before they delete a machine.

Manual Workaround to destroy hanging machines, executed in kube-system namespace

scale deployment of machine controller to 0

kubectl scale deployment --replicas=0 machine-controller
kubectl scale deployment --replicas=0 machine-controller-webhook

delete mutating webhook kubectl delete mutatingwebhookconfigurations machine-controller.kubermatic.io
Edit in deletion Machines kubectl edit ma xxx > set e.g for ubunt

        operatingSystem: ubuntu
        operatingSystemSpec:
          distUpgradeOnBoot: true

Revert change by kubeone apply

The fact that we allowed to avoid specifying operatingSystemSpec is a bug, and it always was, now it's fixed.

And kubeone terraform configs included operatingSystemSpec, is it's someone outsmarted themselves by specifically not writing operatingSystemSpec.

@toschneck we will default operatingSystemSpec in a mutating hook if it's absent.


Spike: CI/CD promotion build process for multi-region clusters

In this spike let's determine some options to have a GitOps CI/CD with the following features:

[x] Build promotion and rollback
[x] Automated testing
[x] Multi-Region configuration
[x] Istio based canary deployment configuration
[x] Automation of build promotion
[x] Automated test environment creation

For instance a build process would go from DEV-->QA-->Staging--> Prod Canary --> Prod Stable.
Some of these environment transitions can be manual and some can be automated. We may transition from one environment and decide to rollback.

The spike has completed an a document is being drafted on the learning from the effort.


Typo "@v"→"@v"

https://docs.microsoft.com/en-us/sharepoint/dev/general-development/social-feed-rest-api-reference-for-sharepoint
Category

[ ] Content fix
[ ] New article
[x] Example checked item (delete this line)

DELETE THIS LINE BEFORE SUBMITTING | For the above list, an empty checkbox is [ ] as in [SPACE]. A checked checkbox is [x] with no space between the brackets. Use the PREVIEW tab at the top right to preview the rendering before submitting your issue.

Related issues

fixes #issuenumber
partially #issuenumber
mentioned in #issuenumber

DELETE THIS LINE BEFORE SUBMITTING | If this fixes (aka: closes) or references an issue, please reference it here. This helps maintaining the issue list as it will (1) link the PR to the issue & (2) automatically close the issue when this PR is merged in.

What's in this Pull Request?

DELETE THIS LINE BEFORE SUBMITTING | Please describe the changes in this PR. Sample description or details around bugs which are being fixed.

Submission guidelines

!!IMPORTANT!! - All submissions must complete the baseline sections included in this template. Ignoring or deleting this template may result in closing the issue with the label type:incomplete-submission.
Follow our guidance on How To Create Good Pull Requests.
Target the master branch of this repo. Released documents are in live branch.

DELETE THIS SECTION BEFORE SUBMITTING

Thank you for your submission... in the future, please use the PR template provided to explain what the changes are that you are submitting and why so we don't have to look at the code to figure it out.

Thank you for your submission... in the future, please use the PR template provided to explain what the changes are that you are submitting and why so we don't have to look at the code to figure it out.


Suggested fixes

First of all, this looks amazing, thanks so much. Sorry it's taken so long for me to review it.
Lets start using it and see how we get on with it.
My only concern is about check_related_issue_ref - there a legitimate case where someone is referencing an issue but not saying it's solved.
I think best solution would be to change the title to "Closed Issues" - then any issue in that section should be closed.
In answer to https://github.com/samuelcolvin/pydantic/pull/3584#discussion_r776894315:
I personally think I'd prefer to manually wrangle markdown than use BeautifulSoup, but what you have here looks great, so I'd go with the "if it aint broken, don't fix it" approach and keep this until we find it has a limitation.

Ignore this as per https://github.com/pydantic/pydantic/pull/3584#issuecomment-1211068648


Unable to prebuild

Current Behavior
Prebuild on fresh project using npm create tamagui@latest is unable to run getting error "Unable to resolve "../../App" from "node_modules/expo/AppEntry.js""

Expected Behavior
Should be able to run fresh project after npx expo prebuild.
Tamagui Version
1.76.0

Platform (Web, iOS, Android)
iOS

Reproduction
- Create new project `npm create tamagui@latest`
- Name: prebuild
- Select "Next Expo Solito - Prod-ready universal app with a monorepo"
- `cd prebuild/apps/expo/`
- `npx expo prebuild`
- `open ios/yourprojectsname.xcworkspace`
- shift + cmd + K
- Press play button

System Info
Unable to resolve module ../../App from /Users/USER/code/PROJECTNAME/APP_NAME/node_modules/expo/AppEntry.js:

None of these files exist:
  * App(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.cjs|.native.cjs|.cjs)
  * App/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.cjs|.native.cjs|.cjs)
  1 | import registerRootComponent from 'expo/build/launch/registerRootComponent';
  2 |
> 3 | import App from '../../App';
    |                  ^
  4 |
  5 | registerRootComponent(App);
  6 |

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0

I'm getting this same error, can't figure out how to run iOS in the simulator...

Have you found out what to do?

Ok, figured it out - need to cd apps/expo first before running npx expo run:ios

The issue is that node_modules/expo/AppEntry.js is using a relative path, so you have to make sure to start in the current expo folder.


Allow sebastian/diff ^2.0

Solves https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/3028

Hi and thanks for the PR.
However this cannot be merged because it would case a BC break within our project as diff 2 generates a different out than diff 1.
We are in the process of resolving this issue using a different approach.
Please see https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2998 and the referred PR's and issues if you want to know more about the background of this issue.


Generalize annotation support with actions

Currently for annotations we can only use either a normal name (like expr) or a name followed by star (expr_ty*), though at least for python, type annotations are a bit more broad. Some examples;
start[ast.mod]: statements
strings[List[str]]: STRING+

These are currently unsupported, so what this PR does is actually unifies the annotation syntax with the mini-action grammar. And opens up the possibility of the using any sort of expression as types (also includes a little bugfix that allows you to create empty dictionary on the action part)

Can you leave a comment explaining why you want this?

Uups, I thought I added it. Should be present in the description @gvanrossum

OK, got it. LGTM.

@isidentical Could you add some tests to cover this?

Thanks for the PR @isidentical :tada:


Report web compiler used with buildEventSettings

Fixes https://github.com/flutter/flutter/issues/125085
Effectively reverts https://github.com/flutter/flutter/pull/124331 - https://github.com/flutter/flutter/commit/97d5cd5eccabe9501017c9845434415203c199f6
Although changed the timing value to compile instead of dart2js since it could be dart2wasm

@zanderso @christopherfujino – buildEventSettings seemed like a good way to do things, but I don't see any (other) current usages.

Sorry to remove autosubmit. Wanted to make sure my question is seen before this lands.


Add activity feed API

This change is

#1641  👈
main

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

Join @dafnamatsry and the rest of your teammates on  Graphite


Roll Engine from d241105d7a84 to dccac088ce93 (1 revision)

https://github.com/flutter/engine/compare/d241105d7a84...dccac088ce93
2020-08-25<EMAIL_ADDRESS>Roll Skia from 84cdc27399ed to 578215be44d0 (5 revisions) (flutter/engine#20742)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md

Commit queue failed; closing this roll.


[LOW] UI Issue: Clicking MAX On Pool w/ No Tokens Engages Supply Button & Subsequent Error (USER REPORT)

Describe the bug
User reports in https://discord.com/channels/454734546869551114/1060692139245309983/1063067777767845918 that if you go to supply liq and click "Max", it will engage the Supply Button (and then error out if you click that), even if the user holds none of the token they attempt to supply.
To Reproduce
Steps to reproduce the behavior:

Go to Pools
Select a pool
Click "Max" on a token to supply liq for a token you have 0 of
Click "Supply"

mm i wasnt able to replicate this actually . @Grraarrgghh can you?

Nope, @alexwhte , not occurring for me either. I'll ask the user if it still occurs/can they replicate it

Not happening for me as well, let's reopen if required.


Specify CSV delimiter

Description
It seems that the CSV delimiter is currently hardcoded as ","
All my CSVs are using ";" as a delimiter.
It would be great if I can choose the delimiter of the CSV file within the import process.
Thanks!

Are you able to provide an example of the CSV you're trying to import?
I've just tried to import a CSV with a ; delimiter and it worked without any issues. 🤔


11.0.0 -> 9.2, Reformat after Downgrade to 10.7?

Im following the guide to downgrade my second n3ds which was on 11.0. I finished the dsiware downgrade tutorial and moved onto downgrading to 9.2. The intro says to format in order to avoid a softbrick. Would I/ Should I reformat? I'm not sure if it will affect the initial downgrade is all

Having DSiWare on your console increases the chances that the softbrick will happen, but if you format, then you essentially only have one shot to downgrade to 9.2. I suggest that you try without formatting a few times (redowngrading your NATIVE_FIRM every time the downgrade fails and you have to update to 11.0 again, if this happens) and if it fails repeatedly (as in, 100+ times) format and then downgrade.


Delete get-pip.py

Change Summary
Didn't mean to include this file in my last pull request (admin login)

Appoved!


Allow to change the main model directory name like staging_folder_name

Describe the feature
I would like to request a feature that allows changing the main models directory name in the package, similar to how we can change the staging_folder_name using a variable. This would provide greater flexibility for structuring DBT projects, especially for teams that may follow different conventions or naming standards across projects.
Describe alternatives you've considered
The primary alternative is manually renaming the models directory, but this approach is not ideal as it requires adjustments in multiple parts of the project configuration. Additionally, manually changing the folder name may introduce issues with path references and the packages internal workings that expect the default directory name to be models.
Who will this benefit?
This feature will be useful for DBT users who have complex model directory structures or who need to follow specific naming conventions across multiple DBT projects.
For example:

Teams working across multiple DBT projects may want to standardise or differentiate folder names to improve clarity and maintainability.
Users following specific naming standards set by their organisation.

Are you interested in contributing this feature?
I'm interested in contributing this feature and would appreciate guidance on getting started.

Isn't this a dbt_project.yml functionality by updating model-paths? I think by default it sets it to models, but you should be able to assign it multiple paths.


Custom Data Display

First things first, Good work! Impressive!
I'm just wondering however, Say I have a model with fields first_name and last_name, And in the template I want to render something custom. For Instance first_name last_name, or say I have a callable in my model get_full_name which returns f'{first_name} {last_name}'. How would I render this in the template?
PS: I have maneuvered dealing with foreign key Fields, that is by using __ in the columns list. For instance user__username. I think this should be included in the documentation as well.

@abedyngash You can use Django's annotate() for this purpose.
Example:
queryset = models.Person.objects.annotate(full_name=Concat('first_name', Value(' '), 'last_name')).all()
Thanks for your valuable feedback. I'll update the documentation soon.

Ooh. That's a brilliant workaround. I never thought the annotate  would work in your case. That is perfect.
What if I wanted a counter though. Like forloop.counter in the AjaxResponse?

@abedyngash I didn't understand that. Can you please explain?

Okay, so normally, when you iterate over items in a django template, you can use the {{forloop.counter}} variable inside a {% for %} loop to get the counter of items.
It literally produces 1,2,3.... for all the items in the iterable object.
How do you achieve with the Ajax response?

I think django template language doesn't work well inside ajax response handler function, because template is processed only at the beginning but ajax works after that.

Okay. I'll close this for the moment and try to think of a workaround.


[mod_proxy] forwarded is a string array only

The folllowing proxy configuration cannot be loaded
proxy.forwarded = (
	"for" => 1
)

2017-04-25 13:36:20: (configfile-glue.c.63) the value of an array can only be a string, variable: proxy.forwarded [ for ], type: 4
2017-04-25 13:36:20: (server.c.1286) Configuration of plugins failed. Going down.

As log reports, arrays can only contains strings values.
This patch removes support for integer values and fixes traces saying
that both 0 and 1 are valid values. The following configuration is also
invalid.
proxy.forwarded = (
	"for" => 1
)

2017-04-25 13:37:20: (mod_proxy.c.266) proxy.forwarded values must be one of: 0, 1, enable, disable; error for key: for

Thanks for putting together this patch.
Actually, since bd77abe0f81f196006dbd46d7be61e7cc36911be, that restriction in configfile-glue.c is no longer needed.  I'll allow the integer values with an alternate patch.


[SDS-716] Quantum Volume Computation

user data added more header data for usage in result handling
metadata from qiskit header needs to be serialized. Because of numpy arrays we use serializer from qilib
qilib added to setup
Some small pylint improvements, f-strings and setting encoding for opening files
Added parameter allow_fsp to run in order to prevent fsp (manually) for experiments

Coverage remained the same at 100.0% when pulling 101e3fb4a21123b291508cfabf5c75ac09870a25 on feature/SDS-716/quantum_volume_computation into 61b0821c03592674bd659de16a97aa62ff095c1f on dev.


Please document which arduino version and RF24 library you are using.

I was not able to find an RF24 library that is compatible with your example. Have you made your own version?
I get these compile errors using arduino 1.6.5 (via visual micro) and github.com/maniacbug/RF24:
Compiling 'nrf_BLE_beacon' for 'Arduino Uno'
RF24BLE.cpp:In member function 'void RF24BLE::begin()
RF24BLE.cpp:82:9: error: 'class RF24' has no member named 'disableRX
:_radio.disableRX()
RF24BLE.cpp:83:9: error: 'class RF24' has no member named 'setAddressLength
:_radio.setAddressLength(4)
RF24BLE.cpp:97:35: error: no matching function for call to 'RF24::openWritingPipe(long unsigned int&, int)
:_radio.openWritingPipe(address, 4)
RF24BLE.cpp:candidate is
RF24BLE.h:In file included from
RF24BLE.cpp:from
RF24.h:openWritingPipe(uint64_t)
:void openWritingPipe(uint64_t address)
RF24.h:note    candidate expects 1 argument, 2 provided
Error compiling project sources

Oh,yes indeed i modified it, I'll move to the more recent rf24 library by TMRh20 ,it is maintained and has a few important bugs resolved.
I'll resolve this within 24 hrs

Updated the library to work with TMRh20/RF24
tested using Arduino v1.6.5(windows) and Arduino v1.0.5 (ubuntu)
Please test, respond if it works and close the issue

Compiles cleanly now


Multipass interrogation window indices calculations are incorrect

The multipass interrogation window indices are dipping into negative numbers. The Java PIV may just set the out-of-bounds values to zero, but the Python PIV causing problems because it slices with the negative indices.

Closing because this is only a problem with the PIV python port, not the Android app. Opening an issue at https://github.com/mI-PIV/PIV_ports .


Provide the ability to change assigned generic inside a class

Suggestion
Provide the ability to change assigned generic inside a class - class Buzz<R>
Currently, it's possible to change class generic only by creating a new object.

class Buzz<R extends Object> {
    public add<N extends Object>(newValue: N): Buzz<R & N> {
        return ({} as unknown) as Buzz<R & N>;
    }
}

let buzz = new Buzz();
let buzz2: Buzz<{ a: number }> = buzz.add({ a: 123 });
let buzz3: Buzz<{ a: number; b: string }> = buzz2.add({ b: "string" });

But there's no way to change R if we call a member function of a class.
It's possible to make another workaround with this in a guard

class Buzz<R extends Object = {}> {
    public add<N extends Object>(newValue: N): this is Buzz<R & N> {
        return true;
    }
    public get<N extends keyof R>(name: N): R[N] {
        return ({} as unknown) as R[N];
    }
}

let buzz = new Buzz();
if (buzz.add({ a: 123 })) {
  let a: number = buzz.get("a")   // works fine
} else {
  let a: number = buzz.get("a") // TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
}

but in this case we still need to use if condition that doesn't work
🔍 Search Terms
class generic
✅ Viability Checklist
My suggestion meets these guidelines:

[X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[X] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[X] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion
use this as CurrentClass<NewGenericType> syntax to allow changing assigned generic.
class Buzz<R extends Object = {}> {
    public add<N extends Object>(newValue: N): this as Buzz<R & N> {
        // this.values.push(newValue);
    }
}

📃 Motivating Example
It allows using the OOP approach without a need to create new objects.
💻 Use Cases
Live example. Dependency Injection container is getting new definitions. It is supposed to be a singleton in the program.
const container = new DIContainer();

container.add({ key1: new Foo() });
container.add({ key2: new Bar() });
const value = container.get("key1");

// currently I can only do

let container = new DIContainer();
container = container.add({ key1: new Foo() });
container= container.add({ key2: new Bar() });

This sounds very much like #41339. Finding that issue again was tough.

Great, that's exactly what I was looking for. It was tough to find this in the docs. Thank you. Closing this one.


Display falsely classified images

Is there a way to display the images that were wrongly classified and they were classified right?
If turicreate does not have a function for this, creating one will help us understand the data and the model better.

@johnyquest7 - Here is how I would do that:
test_data['predicted_label'] = model.predict(test_data)
wrong_predictions = test_data[test_data['label_column_name'] != test_data['predicted_label']]
wrong_predictions[['image_column_name', 'label_column_name', 'predicted_label']].explore()

If you have ideas about how to make this easier, please let us know.

Thanks @TobyRoseman. This will help me.
 There was also code for displaying the "most ambiguous results" in which the predictions were near 0.5. I think having an inbuilt function for this in the future versions will help data scientists understand their data and the model in a better way. @znation please consider this as a feature request for future versions.

@nickjong Assigning to you as I think this is more of a toolkit API issue. We could include something like @TobyRoseman's snippet above as a method in the toolkit; the existing explore should suffice I think.


kurtosis enclave dump on kubernetes should return files/artifacts/etc

currently the enclave dump is quite barebones, would be nice if all the relevant files are in to make it easier to debug

Hey @parithosh , this is a core Kurtosis feature so would you mind migrating it to https://github.com/kurtosis-tech/kurtosis ?

(or linking)

closing in favour of https://github.com/kurtosis-tech/kurtosis/issues/2108


align centerlines of two views

I know this has to be possible, and I must just be missing this in the api documentation, but nonetheless I cannot figure this out using purelayout. I want viewA to align it's centerline to viewB.

Hi Nat,
Take a look at the -[UIView autoAlignAxis:toSameAxisOfView:] API. It should do exactly what you need.
Let me know if you have any other questions!

I'd definitely tried that.. with no effect, but i will revisit. Perhaps
something else was amiss. Thank you.
On Thu, Mar 12, 2015 at 5:50 PM, Tyler Fox<EMAIL_ADDRESS>wrote:

Hi Nat,
Take a look at the -[UIView autoAlignAxis:toSameAxisOfView:]
https://github.com/smileyborg/PureLayout/blob/master/PureLayout/PureLayout/ALView%2BPureLayout.h#L143
API. It should do exactly what you need.
Let me know if you have any other questions!
—
Reply to this email directly or view it on GitHub
https://github.com/smileyborg/PureLayout/issues/52#issuecomment-78638712
.

Make sure you aren't getting the axes mixed up -- you can reference this illustration if they aren't clear.


Fixed auth middleware

The auth middleware had an issue as the decodedIdToken was not being passed to the routes.
So, I used the claims object that was returned after decoding the Id token and then passed that as the user for req.user
Cheers

I signed it!

Thanks for taking the time to submit this, but I'm going to close this one. #596 fixes a number of bugs in the authenticated-json-api sample.


Create Service Bug

I have installed the latest version docker:
[root@docker-manager01 ~]# docker --version
Docker version 1.12.1, build 23cf638

There are 2 managers and 3 workers in the cluster.
I'd like to create a service with 5 replicas named hello-node and using an image called reg1.jzez.com/hello-node:1.0.
docker service create --replicas 5 --name hello-node --update-delay 10s -p 3000:3000 reg1.jzez.com/hello-node:1.0

However, there is no image called reg1.jzez.com/hello-node:1.0.
So,it'll not be successful.
After that, i pull reg1.jzez.com/hello-node:1.0 from my own private regirstry server at one node in the cluster.
Then the bug appered, about half an hour later, execute:
[root@docker-manager01 ~]# docker service ls
ID             NAME        REPLICAS             IMAGE               COMMAND
9rbcpg4qi712  hello-node    18/5      reg1.jzez.com/hello-node:1.0

you can see that  the REPLICAS was 18/5.
That's a bug.   :(

@brainqi1991
Thanks for your feedback about Swarm Mode in docker.
Actually It is a SwarmKit issue, not Swarm issue.
I think your had better to report this issue in https://github.com/docker/swarmkit/issues or https://github.com/docker/docker/issues.
Or you can get some reference about Swarm and Swarmkit project here: https://github.com/docker/swarm/blob/master/README.md#swarm-disambiguation
I am closing this. Good luck.

Thanks. I'll take a look the swarmkit project.