Make Queen's screech unable to penetrate walls

About the PR

Queen's screech no longer affects marines behind solid walls such as thick glass and resin. It still affects marines behind non-blocking walls like barricades (think walls that don't prohibit you from, say, grabbing an item on the other side of)
Why / Balance

For parity with CM13.
Technical details

The screech's stun and paralyze both check for InRangeObstructed between the queen and each marine.
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Ignore the shorter screech cooldown, that was done for demo purposes only.
https://github.com/RMC-14/RMC-14/assets/32344718/6a72da9c-78a1-42c3-bbdf-1ee347595493
Also see https://github.com/RMC-14/RMC-14/pull/2856 for discussion around it.
Breaking changes

Changelog

:cl:

tweak: The Queen's screech no longer affects marines behind solid walls. It still affects marines behind barricades.

(Ignore the first three commits, they're leftover from my first PR. https://github.com/RMC-14/RMC-14/pull/2856)

So it should be an Opaque check on the InRangeUnobstructed.

Doing this check seems to work better. It works as expected, with one minor quirk I feel may be an SS14 problem. Glass airlocks fit the "Opaque" description when closed, even though they're never given the flag?
https://github.com/RMC-14/RMC-14/assets/32344718/c731ad62-5356-4068-bca2-41bbe98f4278
I assume that's unintended. I'll experiment to see if perhaps I just implemented Opaque-checking wrong.
-----(More advanced stuff, may help with debugging)-----
See commit https://github.com/RMC-14/RMC-14/pull/2866/commits/5f57f3f05384f728acf5ad3b42c10f7efe4df87e and file https://github.com/RMC-14/RMC-14/blob/master/Content.Shared/Physics/CollisionGroup.cs . The glass airlock's CollisionMask is set to 158, a number not containing the bit 1 for opaque, meaning the screech should be passing through.

Update on the glass door issue
It's only certain doors. Here's a video showing the ones that work as expected and those that don't (that I found).
https://github.com/RMC-14/RMC-14/assets/32344718/2d9b66a0-feda-4740-94b7-acc1508e5854
It seems to me that the Alamayer doors have perhaps been given the wrong CollisionLayer value?
Glass airlock (top one): works

door (Medical, glass) (left one) and similar: blocks

So basically, I believe this PR is ready for review. There's just a door quirk that maybe should be looked at.


DataModel validator

FIWARE Data Model validator is an utility to help the management of NGSI DataModels. Its code leverage on the AJV JSON Schema Validator.
The FIWARE Data Model validator perform the following checks for each Data Model:

validity of JSON Schema
validity of JSON Examples
adherence of Data Model name to FIWARE Data Models guidelines
existence of Doc folder
existence of JSON Schema
existence of one or more JSON examples
existence of README file

This function could be used to support the continuous integration life cycle of fiware data models. see #150.

Cool!  The next step will be to change this line in .travis.yml to run the code in this PR and/or  validate.sh on every new pull request.  How do we make that happen?

I have to check how in the .travis.yml we can include nodejs beside python support. I know how to make it work in .travis.yml that use nodejs as language... i would do some test and commit the extended .travis.yml.

@cclauss not sure its the best way of doing a .travis.yml with multiple languages, but it's the only one i manage to make work. by the way, one example does not validate correctly:
Error: {
"Transportation": [
"Transportation/Bike/BikeHireDockingStation: Example Transportation/Bike/BikeHireDockingStation/example.json is invalid: [{"keyword":"type","dataPath":".status","schemaPath":"#/allOf/2/properties/status/type","params":{"type":"array"},"message":"should be array"}]"
]
}

in fact the value of status should be an array according to the schema:
"status": ["working"]

@jmcanterafonseca let me know when the pull request #164 to fix the example is approved, so that I merge the new master with this code and pass the travis-ci

@chicco785 This is really cool stuff that you are doing.  I am trying to track it all, given that I don't know node.  Instead of changing the language from Python to Node in .travis.yml, would it be possible to take all of those steps that you are adding to .travis.yml and instead put those steps into validate.sh.
Then in Travis, we could then run validate.sh which would:

install node_js
npm install -g fiware-model-validator
validate -p .

The reason that I would recommend this approach is because flake8 will generate different results on Python 2 and on Python 3 and compatibility with both is important at least until 2020.  Making node the Travis language has the effect of having all flake8 tests run in only one version of Python.    Travis used to do two test runs in parallel but this PR unfortunately removes that.
Also, we do not need sudo on pip in a virutalenv because, by definition, we are the only ones in that environment.
Finally, if the above is not possible or not desirable, it might also be possible to rely on the node 7 that is built into the Travis environment even when Python is the language https://travis-ci.org/Fiware/dataModels/builds/286899391#L392-L397 and then just do steps 2 and 3 in the Travis file.
Your thoughts on how to get the best of both worlds?

Hi,
Sure, I will try as you mentioned, I thought I could exploit the matrix construct, but that didn't work (maybe is my fault), and the annoying thing is that I don't have a local travis environment to test, so I stopped at the first successful configuration. (Which I knew was not the best one).
Do you know if it is possible to run travis locally? I looked around but didn't find any good solution.
iFede - Fede's mobile edition

Il giorno 12 ott 2017, alle ore 15:36, cclauss<EMAIL_ADDRESS>ha scritto:
@chicco785 This is really cool stuff that you are doing. I am trying to track it all, given that I don't know node. Instead of changing the language from Python to Node in .travis.yml, would it be possible to take all of those steps that you are adding to .travis.yml and instead put those steps into validate.sh.
Then in Travis, we could then run validate.sh which would:
install node_js
npm install -g fiware-model-validator
validate -p .
The reason that I would recommend this approach is because flake8 will generate different results on Python 2 and on Python 3 and compatibility with both is important at least until 2020. Making node the Travis language has the effect of having all flake8 tests run in only one version of Python. Travis used to do two test runs in parallel but this PR unfortunately removes that.
Also, we do not need sudo on pip in a virutalenv because, by definition, we are the only ones in that environment.
Finally, if the above is not possible or not desirable, it might also be possible to rely on the node 7 that is built into the Travis environment even when Python is the language https://travis-ci.org/Fiware/dataModels/builds/286899391#L392-L397 and then just do steps 2 and 3 in the Travis file.
Your thoughts on how to get the best of both worlds?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I do not know how to run Travis locally, but I do know how to set up my own repos that git clone in the source code from other repos and test them...  See https://github.com/cclauss/itinerant-tester  It is not local but at least it is not in the repo being tested.

now i am adding node on top of python as suggested by @cclauss, still given that bike schema is incorrect (see pull request #164), of course the ci process will fail.

@chicco785 This is an awesome piece of work!  Congratulations.

many improvements are possible :) such as supporting the asynch compile of schemas, let's see when me or someone else in my time has some cycle for that.

@jmcanterafonseca the refactor will take a while (i have few deadlines to follow up), let me know if you prefer to just get fixed major issues and merge this initial version, or postpone to the overall refactoring

@chicco785 I think it would be a good idea to fix the most urgent refactoring issues now and then later do a more extensive refactoring work.

Here is an example of a Travis test that mixes two different testing languages https://travis-ci.org/getsentry/sentry/builds/291509879?utm_source=github_status&utm_medium=notification

hi @cclauss python v2 vs python v3 are working correctly (simply there is not nodejs versioning), anyhow the matrix example you linked is quite interesting and we should try to have a similar approach.
currently, while the code should be ok (when i run locally everything works), i am having an issue on the validation. it seems that for whatever reason some json files get truncated :S

a major refactoring was applied trying to fix most of the request changes by @jmcanterafonseca, still an additional clean up may be good
#180 fix a bug that will allow again the datamodel to compile correctly
.travis.yml now use matrix construct suggested by @cclauss

also the linting is included, but as @cclauss mentioned, the old js code within the models need cleans up to pass the linting

@cclauss see the build split with the new .travis.yml configuration: https://travis-ci.org/Fiware/dataModels/builds/291561539?utm_source=github_status&utm_medium=notification

@chicco785  this PR needs more work particularly on the JS linting side, please use fixjsstyle and ensure everything is properly indented, lines of code not too long, etc.

Let' me test my understanding... In the node_js Travis pass, we are going to:

eslint --ext .json .
jshint .
validate -p .
Do I have that right?

yes, but for informative purposes, i would keep the linting and the
validation in tow different builds (but this is my personal preference, and
not a strong one)
On Wed, Oct 25, 2017 at 5:03 PM, cclauss<EMAIL_ADDRESS>wrote:

Let' me test my understanding... In the node_js Travis pass, we are going
to:

eslint --ext .json .
jshint .
validate -p .
Do I have that right?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Fiware/dataModels/pull/160#issuecomment-339360739,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAvcAp0iZZNkXn-H49zES0tQdb3YqzA1ks5sv03RgaJpZM4P2dsu
.

My sense if they are long runs then it is worth the complexity to separate into parallel passes but if they all run back-to-back in a single pass in a few minutes (like the Python runs) then it will be less confusing to consolidate the three steps above in a single pass.

@cclauss has you can see from code, i merged the the validation and the linting. the draw back, is that at this moment, validation is not even executed because of the validation failure.

Looks good enough for me, and I did some smoke testing, so landing!
thanks Fede!


+CME ERROR: Operation not allowed

Hi, I have a new error again.
What could this be related to?
The first few messages were sent successfully, and the fifteenth were not.
It always varies which message causes the problem.
Our device uses the 1nce service and goes to the backend via VPN.

Hi Alex: can you remind me again which module type you are using?
I assume that the previous fourteen messages, the ones that were successfully transmitted, were of a similar form, i.e. including commas and quotation marks in the same kind of pattern as the one that failed?  I ask because otherwise it looks like just the kind of thing that would fail if the module in question needs a string in that position and is being confused by the presence of the comma.
Assuming the previous fourteen messages that were sent successfully were of a similar form, so the message format is not the issue, a CME ERROR: Operation not allowed is usually caused by an event that preceded the transmission attempt: would it be possible to include that preceding stuff in a log pasted here please?

Hi Rob, we use SARA-R412M 02B-01
This used to work very well.
The developers who develop the backend for us have carried out an update and I don't know if that has anything to do with it.
RabbitMQ is running on the server with the extension for port 1883

Thanks.

This used to work very well.

If this used to work then there can't be an issue with the formatting of the AT command, the commas/quotes etc., the CME ERROR: Operation not allowed must be due to something that happened earlier in the log.
If we take the AT+UMQTTER response at face value then, from A.7.4.1 of the AT manual, 28 means "No MQTT connection when attempting UMQTTC".  Is there any sign, earlier in the log, of the cellular or the MQTT connection dropping?

The +UMQTTC: 1,3 will be your problem.  From section 29.6.2 of the AT manual:

...and from section 29.6.4 of the AT manual:

In this case it might be best to disconnect from the broker with +UMQTTC=0 and then try to connect again. This will [hopefully] help the client get its internal state correct and fresh again instead of trying again and again with these stalls/timeouts.

Hmmm, actually, there is a flaw in the logic here.  Assuming Alex has registered a uMqttClientSetDisconnectCallback() it wouldn't be triggered in this case: for a disconnect the ubxlib code is expecting a +UUMQTTC: 0, x, i.e. a "logout" URC, but good 'ole SARA-R412M, bless its little cotton socks, is sending a "login with failure" URC, +UUMQTTC:1 x where x is non-zero.  A little bit odd, since it was plainly logged in successfully, but still we should handle it.  I will make that change...

Ah, that's excellent, and indeed the change was a very worthwhile catch, so all is good in the world.  Well, this bit anyway :-).

Bjr tout le monde, Monsieur alexmaron81, je peux avoir votre code pour tester. J'ai la même erreur depuis plus de 4 semaines. La seule différence je n'utilise pas MQTT, mais ce serait bon d'utiliser. Vraiment cela me fera plaisir.
J'envoie des données vers un serveur en ligne en utilisant la commande AT.


[Request for External] codeunit 1373 "Batch Posting Print Mgt.". procedure PrintJournal(RecRef: RecordRef)

Hello colleagues,
Could you please change/remove the scope of procedure PrintJournal?
We would like to call it from our (cloud) extension:
Before change:
    [Scope('OnPrem')]
    procedure PrintJournal(RecRef: RecordRef)

Requested change:
    procedure PrintJournal(RecRef: RecordRef)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 11478.


Include new custom headers in messaging.publish

Fixes a problem where additional custom headers are not propagated via a messaging Publish call.
Only headers present at the start of the worker-request were previously propagated.

Something has broken here with the examples tests. I don't think it's related to this PR but I will leave this open until the issue is fixed.


BUG FIX: For owner no action button in members list

Fixed #4460
Proposed changes
The action button will be visible only for the editor and viewer in the member's list.
Summarize your changes here to communicate with the maintainers and make sure to put the link of that issue
Types of changes
What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

[ ] New feature (non-breaking change which adds functionality)
[x] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices applies)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING doc
[x] I have signed the commit for DCO to be passed.
[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[ ] I have added necessary documentation (if appropriate)

Dependency

Please add the links to the dependent PR need to be merged before this (if any).

Special notes for your reviewer:

Hi @kanhaiya04 , Can you also show us a screenshot result?


Ready for Prime Time?

I've been hosting all my stuff on Alpine and was wondering if something like this existed.
After some googling I found this, and it made me super happy. Do you think this is ready for prime time? I'm also happy to start testing the package. How can I help?

I don’t consider it ready yet.

packages_blacklistis currently hack-ish and a bit flawed (see [apk-autoupdate.in:75-98](https://github.com/jirutka/apk-autoupdate/blob/7ec9519818a122fabc2f629a796f6ec7a35a17b1/src/apk-autoupdate.in#L75-L98)). I’m waiting for support ofapk upgrade --exclude` in apk-tools (issue #8792).
Parameters services_blacklist and services_whitelist are currently quite confusing, I need to redesign them somehow.

Except these two issues it should be solid.

I'm abit unsure about the necessity of services_blacklist and services_whitelist I think apk-tools already handles something like this in the post-upgrade script.
If the services should be updated post-upgrade they should be encouraged to use that hook no? And if it's a sensitive service that need to stay up then, well, they don't need to included the post-upgrade script or write a script that allow the service to be restarted without interruption (like hot code reloading)
seems like it should not be the responsibility of apk-autoupdate but the responsibility of the packages themselves.

Ahoj Kubo!
As this topic is few years old, how you see status now? There is apk upgrade --ignore if it changes anything.
You probably run apk-autoupdate in production, how do you feel about having updates automated generally?

I know it's been years @zacksiri, but I have the same issue now. No, it is not the responsibility of the package to restart its installed service, because it doesn't know about openrc. apk-autoupdate most likely calls rc-service $SERVICENAME restart.
Unlike Debian, Alpine doesn't offer a security-upgrade repository. So, apk-autoupdate can never mimic unattended-upgrades, for instance to only install security patches. However, while Debian has only major version branches, Alpine has a minor version branches.
apk-autoupdate should be sufficient if you stay on an "sec fixes" support level branch.

Is there something new? The last commit is 3 years ago and before that 6 years ago. IMO, it would be awesome to have that included in the 3.20 Alpine release instead of waiting for the last issues to be fixed (which nobody picked up in the last 6 years).


Update scalafmt-core to 3.2.2

Updates org.scalameta:scalafmt-core from 3.2.1 to 3.2.2.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (3.2.1).
You might want to review and update them manually.
yarn.lock

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

labels: library-update, early-semver-patch, semver-spec-patch, old-version-remains

Codecov Report

Merging #226 (ebc5b84) into main (524b90d) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##              main      #226     +/-   ##
===========================================
  Coverage   100.00%   100.00%
===========================================
  Files           51         1     -50
  Lines         1757        65   -1692
  Branches       107        29     -78
===========================================
- Hits          1757        65   -1692

Impacted Files
Coverage Δ

...s/quine/labo/recheck/automaton/EpsNFABuilder.scala

...la/codes/quine/labo/recheck/automaton/NFAwLA.scala

...scala/codes/quine/labo/recheck/automaton/DFA.scala

...ne/labo/recheck/diagnostics/AttackComplexity.scala

.../scala/codes/quine/labo/recheck/fuzz/FString.scala

...s/quine/labo/recheck/diagnostics/Diagnostics.scala

...rc/main/scala/codes/quine/labo/recheck/ReDoS.scala

...in/scala/codes/quine/labo/recheck/vm/Program.scala

...a/codes/quine/labo/recheck/util/GraphvizUtil.scala

...ala/codes/quine/labo/recheck/unicode/UString.scala

... and 40 more

Continue to review full report at Codecov.

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


Posts | Add Posts to the Language Details page

@sethmcknight any details unique to this setting that we should note?


getActiveSpan returns undefined after awaiting a promise

[x] This only affects the JavaScript OpenTelemetry library
[x] This may affect other libraries, but I would like to get opinions here first

I am setting up open telemetry with the following
  const fetchInstrumentation = new FetchInstrumentation({ propagateTraceHeaderCorsUrls: 'https://localhost/' });
  const provider = new WebTracerProvider({
    resource: new Resource({ [SemanticResourceAttributes.SERVICE_NAME]: 'UI' })
  });
  fetchInstrumentation.setTracerProvider(provider);

  provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));
  provider.register({ contextManager: new ZoneContextManager() });

then I call some http service
trace.getTracer('tracerName').startActiveSpan('spanName', async span => {
  console.log(trace.getActiveSpan()); // this returns the active span
  await fetch(...);
  console.log(trace.getActiveSpan()); // this logs undefined
  span.end();
});

The issue is that the active span becomes undefined after the await. Even awaiting for a simple timer based promise clears the active span.
Is this the correct way to start a span?

As far as I know this is a limitation of zone.js which is not able to track context across await.
Improvements are expected via https://github.com/tc39/proposal-async-context

Found this https://github.com/open-telemetry/opentelemetry-js/issues/1502


Build target not importing implicit imports when using MSBuild API

I've been struggling with this for a while now. When I build with the MSBuild API, it doesn't appear that the imports are being processed. At a minimum, NETStandard.Library.targets is not imported which means the core assemblies aren't added to references so I get a ton of errors like this:
obj\Debug\netstandard2.0\ProjectToBuild.AssemblyInfo.cs(10,12): error CS0246:
The type or namespace name 'System' could not be found (are you missing a using
directive or an assembly reference?)

...

Class1.cs(5,18): error CS0518: Predefined type 'System.Object' is not defined or imported

Class1.cs(7,16): error CS0518: Predefined type 'System.Void' is not defined or imported

I thought at first maybe it was something exotic with my project (I'm doing a lot of hacky stuff), but I was able to repro with a much simpler set of conditions. Basically, given a .NET Standard project to compile, and a .NET Core host with the following code:
StringBuilder logBuilder = new StringBuilder();
ConsoleLogger logger = new ConsoleLogger(Microsoft.Build.Framework.LoggerVerbosity.Normal, x => logBuilder.AppendLine(x), null, null);
string path = @"..\..\..\..\ProjectToBuild\ProjectToBuild.csproj";
Dictionary<string, string> environmentVars = new Dictionary<string, string>
{
    { "MSBuildExtensionsPath", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\" },
    { "MSBuildExtensionsPath32", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\" },
    { "MSBuildExtensionsPath64", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\" },
    { "MSBuildSDKsPath", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\Sdks" },
    { "MSBUILD_EXE_PATH", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\MSBuild.dll" }
};
Dictionary<string, string> globalProps = new Dictionary<string, string>
{
    { "MSBuildExtensionsPath", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\" },
    { "MSBuildExtensionsPath32", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\" },
    { "MSBuildExtensionsPath64", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\" },
    { "MSBuildSDKsPath", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\Sdks" },
    { "RoslynTargetsPath", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\Roslyn" },
    { "NuGetRestoreTargets", @"C:\\Program Files\\dotnet\\sdk\\2.1.300\\\\NuGet.targets" }
};
ProjectCollection projectCollection = new ProjectCollection(globalProps);
projectCollection.RemoveAllToolsets();  // Make sure we're only using the latest tools
projectCollection.AddToolset(new Toolset(ToolLocationHelper.CurrentToolsVersion, @"C:\\Program Files\\dotnet\\sdk\\2.1.300", projectCollection, string.Empty));
projectCollection.DefaultToolsVersion = ToolLocationHelper.CurrentToolsVersion;
using (new TemporaryEnvironment(environmentVars))
{
    using (Stream stream = File.OpenRead(path))
    {
        using (XmlReader reader = XmlReader.Create(stream))
        {
            ProjectRootElement root = ProjectRootElement.Create(reader);
            root.FullPath = path;
            Project project = new Project(root, globalProps, ToolLocationHelper.CurrentToolsVersion, projectCollection);
            Console.WriteLine(project.Imports.Count);
            ProjectInstance instance = project.CreateProjectInstance();
            BuildResult buildResult = BuildManager.DefaultBuildManager.Build(
                new BuildParameters(projectCollection)
                {
                    Loggers = new[] { logger }
                },
                new BuildRequestData(instance, new[] { "Restore", "Clean", "Build" }));
            Console.WriteLine(buildResult.OverallResult.ToString());
            Console.WriteLine(logBuilder);
        }
    }
}

I've tried various permutations of "Restore" before "Clean" and "Build", both as a separate submission and as part of the same submission. The result is always the same.
Note that if Visual Studio builds the target project first and creates obj and bin folders with artifacts the build will succeed, so it appears I'm clearly missing some part of the process.
I've attached a solution that can repro the problem, but note that the library to build needs to have all artifacts cleared from obj and bin for the repro to fail in this way (which is important for my use case - I need to be able to build projects from scratch).
I would greatly appreciate any tips or insight into what I'm doing wrong.
MSBuildTest.zip

If it's getting to the point of running the compiler, it's importing implicit imports--otherwise a .NET Core project wouldn't have any targets defined and would error out to that effect.
Sounds like you're hitting the evaluation cache. As a first approximation, you need to set different global properties for the call to Restore. That will ensure that we re-evaluate the project and thus run the does-the-nuget-generated-props-and-targets-files check again, so they can be imported in the Build request.
Can you give that a shot?

@rainersigwald How much difference are we talking about, and any tips on where to make the change (there's so many spot where global props get passed)? I tried:

Mutating the dictionary I passed to the Project before each submission
Setting an empty dictionary when creating the Project and then setting BuildParameters.GlobalProperties to the actual dictionary for the second submission following Restore
Creating a new ProjectInstance from the Project for each submission and then calling ProjectInstance.SetProperty(...) with different key/value pairs before each submission

For example:
Project project = new Project(root, new Dictionary<string, string>(), ToolLocationHelper.CurrentToolsVersion, projectCollection);
ProjectInstance instance = project.CreateProjectInstance();
BuildResult buildResult = BuildManager.DefaultBuildManager.Build(
    new BuildParameters(projectCollection)
    {
        Loggers = new[] { logger },
        GlobalProperties = new Dictionary<string, string>()
    },
    new BuildRequestData(instance, new[] { "Restore" }));

buildResult = BuildManager.DefaultBuildManager.Build(
    new BuildParameters(projectCollection)
    {
        Loggers = new[] { logger },
        GlobalProperties = globalProps
    },
    new BuildRequestData(instance, new[] { "Clean", "Build" }));

Nothing I do seems to make much difference.

Mentioning cache problems got me on the right track :tada:. It turns out I have to create a Project for the Restore target submission and then instantiate an entirely new one for the Clean and Build target submission. Something must be getting cached inside the Project. There might be some way to invalidate the cache and use the same Project instance, but I couldn't find it.
Totally thrilled I've got it working now, but would love to understand more about how the cache is working under the hood and why a new Project is needed to get the restore/build sequence to work correctly.


[WFCORE-5606] Refactor resource closing (draft only)

PR just to test integrated on CI.

Core - Full Integration Build 11016 outcome was FAILURE using a merge of ce92e200aaa91fa20440d0148b7c3185775595aa
Summary: Tests failed: 1 (1 new), passed: 7197, ignored: 148 Build time: 03:20:35
Failed tests
org.jboss.as.test.integration.domain.HostExcludesTestCase.testHostExcludes: java.lang.AssertionError: The ExtensionConf.CURRENT has extensions added or removed but it no longer points to the current release. Modify this test adding new ExtensionConf enums for each previous releases undefined in this test by using the list of extensions added or removed on ExtensionConf.CURRENT.Then remove all the extensions from ExtensionConf.CURRENT enum and correct the MAJOR number accordingly to point out to the current release.
	at org.jboss.as.test.integration.domain.HostExcludesTestCase.testHostExcludes(HostExcludesTestCase.java:331)
------- Stdout: -------
 [0m03:56:42,233 INFO  [org.jboss.modules] (main) JBoss Modules version 1.12.0.Final
 [0m [0m03:56:42,417 INFO  [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final
 [0m [0m03:56:42,430 INFO  [org.jboss.as.process.Host Controller.status] (main) WFLYPC0018: Starting process 'Host Controller'
 [0m[Host Controller]  [0m03:56:42,869 INFO  [org.jboss.modules] (main) JBoss Modules version 1.12.0.Final [0m
[Host Controller]  [0m [0m03:56:43,131 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.13.Final [0m
[Host Controller]  [0m [0m03:56:43,146 INFO  [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final [0m
[Host Controller]  [0m [0m03:56:43,200 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 26.0.0.Beta1-SNAPSHOT (WildFly Core 18.0.0.Beta1-SNAPSHOT) starting [0m
[Host Controller]  [0m [0m03:56:43,610 INFO  [org.wildfly.security] (Host Controller Service Threads - 4) ELY00001: WildFly Elytron version 1.17.1.Final [0m
[Host Controller]  [0m [0m03:56:43,974 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0003: Creating http management service using network interface (management) port (9990) securePort (-1) [0m
[Host Controller]  [0m [0m03:56:43,984 INFO  [org.xnio] (MSC service thread 1-5) XNIO version 3.8.4.Final [0m
[Host Controller]  [0m [0m03:56:43,997 INFO  [org.xnio.nio] (MSC service thread 1-5) XNIO NIO Implementation Version 3.8.4.Final [0m
[Host Controller]  [0m [0m03:56:44,080 INFO  [org.jboss.as.patching] (MSC service thread 1-8) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none [0m
[Host Controller]  [0m [0m03:56:44,096 INFO  [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version 5.0.23.Final [0m
[Host Controller]  [0m [0m03:56:45,725 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0062: Http management interface listening on http://[::1]:9990/management and https://[::1]:-1/management [0m
[Host Controller]  [0m [0m03:56:45,726 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0053: Admin console listening on http://[::1]:9990 and https://[::1]:-1 [0m
[Host Controller]  [0m [0m03:56:45,756 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 26.0.0.Beta1-SNAPSHOT (WildFly Core 18.0.0.Beta1-SNAPSHOT) (Host Controller) started in 3248ms - Started 71 of 71 services (13 services are lazy, passive or on-demand) [0m


refactor: use whiskers

Adds Whiskers, Catppuccin's in-house templating tool, to build the themes. Instead of editing the catppuccin_<flavor>-zsh-syntax-highlighting.zsh files directly, edit the zsh-syntax-highlighting.tera file and then run just build to build the output themes. You will need Whiskers (linked above) and optionally Just installed.

That works nicely, thanks!

That works nicely, thanks!

There were some off palette colors in the mocha version, namely it used the latte version of the colors, but thar should be fixed now


Not recognized

I keep getting this message on every PC I try this in. Also tried a raspberry pi 4 and a Chromebook. Nothing. Only the display shows the Hackypi splash screen then nothing else happens.
In device manager it's not recognized as a com port. How do I fix it. It's brand new and it's never worked right once.
It shows a description error. It should say Pico, but there is no description.
Ive tried 2 laptops
Recommendation, a 4 port hub, a chromebook, and a raspberry pi 4, All with known working USB ports.
On windows, I only get this message.
"Try reconnecting the device. If Windows still does not recognize it, your device may not be working properly."

Hello, Currently having the same issue here
Only the display shows the HackyPi splash screen then nothing
Tested on Desktop PC / 3 x Dell Laptops / Toshiba Laptop / RPi 3
Device manager shows nothing at all - device is not detected
Device is brand new arrived after 3 months in shipping and does not work as advertised.
Have tried device on a powered hub and non powered hub
Please advise


HDDS-7229. Introduce container location cache in ScmClient

What changes were proposed in this pull request?
Introduce container location cache in ScmClient.
https://issues.apache.org/jira/browse/HDDS-7229
How was this patch tested?
Standard CI with added unit test to cover new ScmClient interfaces: https://github.com/duongkame/ozone/actions/runs/3099408939

Looks good, will continue to review it. For now I think a merge conflict needs to be resolved.

cc @tanvipenumudy @DaveTeng0

Looks good, will continue to review it. For now I think a merge conflict needs to be resolved.

Thanks @kerneltime . I resolved the merge conflict.
Also, this is done without DatanodeDetails normalization. Just did an experiment to confirm the cache size on top of the changes in this PR and the results are documented as per (HDDS-7249)[https://issues.apache.org/jira/browse/HDDS-7249]. In summary, 10K containers take 35mb heap and that number linearly grows with the number of containers.

CC @neils-dev

I plan to go over the test code one more time.


[SUPPORT] Upsert overwrting ordering field with invalid value

Describe the problem you faced
I'm writing an application to upsert records from a table. The problem is when an upsert operation is done, the ordering column of records that exists in base table and not exists in incoming data is overwritten to invalid value.
E.g.
The base table has a record with id = 1 and createddate = 2022-04-01
The incoming data has a record with id = 2 and createddate = 2022-04-02
After upsert operation the createddate of record with id = 1 is changed to 1970-xx-xx and the record with id = 2 remains intact.
To Reproduce
from pyspark.sql.functions import expr
from pyspark.sql import DataFrame, SparkSession

database = 'db'
table = 'tb'
table_path = f'/{database}/{table}'

spark = SparkSession.builder.config(
    'spark.sql.shuffle.partitions', '4').enableHiveSupport().getOrCreate()

options = {
    'hoodie.datasource.write.keygenerator.class': 'org.apache.hudi.keygen.CustomKeyGenerator',
    'hoodie.datasource.write.recordkey.field': 'id',
    'hoodie.datasource.write.partitionpath.field': 'field:simple',
    'hoodie.datasource.write.precombine.field': 'createddate',
    'hoodie.payload.event.time.field': 'createddate',
    'hoodie.datasource.write.table.type': 'COPY_ON_WRITE',
    'hoodie.table.name': table,

    'hoodie.datasource.write.hive_style_partitioning': 'true',
    'hoodie.datasource.hive_sync.partition_extractor_class': 'org.apache.hudi.hive.MultiPartKeysValueExtractor',
    'hoodie.datasource.hive_sync.enable': 'true',
    'hoodie.datasource.hive_sync.mode': 'hms',
    'hoodie.datasource.hive_sync.support_timestamp': 'true',
    'hoodie.datasource.hive_sync.database': database,
    'hoodie.datasource.hive_sync.table': table,
    'hoodie.datasource.hive_sync.partition_fields': 'field',

}

full = spark.read.parquet(
    '/opt/spark/conf/full/')
delta = spark.read.json(
    '/opt/spark/conf/delta')

full_parse: DataFrame = full \
    .withColumn('createddate', expr(f'cast(substr(createddate, 1, 19) as timestamp)'))

delta_parse: DataFrame = delta \
    .withColumn('createddate', expr(f'cast(substr(createddate, 1, 19) as timestamp)'))

full_parse \
    .write \
    .format('org.apache.hudi') \
    .options(**options) \
    .option('hoodie.datasource.write.operation', 'bulk_insert') \
    .mode('overwrite') \
    .save(table_path)

delta_parse \
    .write \
    .format('org.apache.hudi') \
    .options(**options) \
    .option('hoodie.datasource.write.operation', 'upsert') \
    .mode('append') \
    .save(table_path)

Example full file content
+------------------+-------------------+-----------+-------------------+------------------+---------+----------------+--------+------------------+
|createdbyid       |createddate        |datatype   |field              |id                |isdeleted|newvalue        |oldvalue|parentid          |
+------------------+-------------------+-----------+-------------------+------------------+---------+----------------+--------+------------------+
|0055G00000808dFQAQ|2022-03-16 16:55:13|DynamicEnum|Status_do_Imovel__c|0175G0000jIvmN7QAJ|false    |Visita Cancelada|null    |a015G00000kpbM3QAI|
+------------------+-------------------+-----------+-------------------+------------------+---------+----------------+--------+------------------+

After upsert operation
+------------------+-----------------------+-----------+-------------------+------------------+---------+----------------+----------------------+------------------+
|createdbyid       |createddate            |datatype   |field              |id                |isdeleted|newvalue        |oldvalue              |parentid          |
+------------------+-----------------------+-----------+-------------------+------------------+---------+----------------+----------------------+------------------+
|0055G00000808dFQAQ|1970-01-20 01:37:29.713|DynamicEnum|Status_do_Imovel__c|0175G0000jIvmN7QAJ|false    |Visita Cancelada|null                  |a015G00000kpbM3QAI|
+------------------+-----------------------+-----------+-------------------+------------------+---------+----------------+----------------------+------------------+

Obs: A random number of records is affected by this bug. For each execution a different number of records is affected.
1rst execution
spark-sql> select count(id) from db.tb where createddate < '1971-01-01';
97801

2nd execution
spark-sql> select count(id) from db.tb where createddate < '1971-01-01';
76356

Environment Description

Hudi version : 0.10.0

Spark version : 3.1.2

Storage (HDFS/S3/GCS..) : Local

Running on Docker? (yes/no) : Yes

@jasondavindev Thanks for reporting this issue and detailed information, I'll try to reproduce it.  Have you tried the latest master of Hudi to see if the problem still exists?

I tried with the version 0.10.1 and there are error yet.
With the version 0.11.0 launched this weekend, zero records was found with wrong date.

@jasondavindev Thanks for confirming.  If this is solved by Hudi 0.11.0 release and there is no other ask for this issue, feel free to close it.

When used INSERT operation instead BULK_INSERT, no records are affected by the bug. Thus the BULK_INSERT has a bug.

@jasondavindev to clarify, do you still see issues with BULK_INSERT in 0.11.0?


fix: remove unnecessary toArray since it leads to overhead of memory consumpion especially when the collection is large

Fixes #30615

Internal previews

📄 File
🔗 Preview link

aspnetcore/blazor/hybrid/class-libraries.md
Share assets across web and native clients using a Razor class library (RCL)

Hello @mulei2023 ... Let's discuss this over on the issue. I don't think we'll be able to accept this PR. If we do tho, no problem ... we can just re-open this. I'll explain further on the issue.


Graphite-web whisper module not found when loading renders on Ubuntu 12/14

Created using:
Host: precise64 (Using Vagrantfile vagrant up)
Puppet (v2.7.19):

puppetlabs-stdlib (v4.5.1)
stankevich-python (v1.8.3)
puppet-graphite (master && v2.0.2)

Receiving the following error from requests to:
http://GRAPHITE-HOST/render/?width=586&height=308&_salt=1423489320.156

OR
http://GRAPHITE-HOST/metrics/find/?_dc=1423489528351&query=*&format=treejson&contexts=1&path=&node=GraphiteTree

Error:
Traceback (most recent call last):
  File "/var/lib/graphite/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 101, in get_response
    request.path_info)
  File "/var/lib/graphite/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 300, in resolve
    sub_match = pattern.resolve(new_path)
  File "/var/lib/graphite/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 300, in resolve
    sub_match = pattern.resolve(new_path)
  File "/var/lib/graphite/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 209, in resolve
    return ResolverMatch(self.callback, args, kwargs, self.name)
  File "/var/lib/graphite/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 216, in callback
    self._callback = get_callable(self._callback_str)
  File "/var/lib/graphite/local/lib/python2.7/site-packages/django/utils/functional.py", line 27, in wrapper
    result = func(*args)
  File "/var/lib/graphite/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 92, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)
  File "/var/lib/graphite/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/var/lib/graphite/webapp/graphite/render/views.py", line 36, in <module>
    from graphite.render.evaluator import evaluateTarget
  File "/var/lib/graphite/webapp/graphite/render/evaluator.py", line 5, in <module>
    from graphite.render.datalib import fetchData, TimeSeries
  File "/var/lib/graphite/webapp/graphite/render/datalib.py", line 20, in <module>
    from graphite.storage import STORE, LOCAL_STORE
  File "/var/lib/graphite/webapp/graphite/storage.py", line 4, in <module>
    import whisper
ImportError: No module named whisper

Also able to recreate on a Ubuntu 14.04 host again with module config defaults using puppet 3.x

Apologies for the quite large delay in responding to this issue. Due to the version bumps and changes in pretty much every part of this tool chain I'm going to mark this as closed. If it is still an issue can you please reopen with the current versions you are having issues with so we can try and diagnose.
Again, apologies.


AdoptAWidget: Dismissible

Added a DartPad sample to demonstrate the use of the Dismissible widget.
This pull request is:

[x] A code sample

closes #69486

@abd99 Thanks for participating in AdoptAWidget. We would like to send you a special thanks. If you are interested, please send an email to nyener at google dot com and provide a link to this issue.


style: last goes callback

Context: https://github.com/tigerbeetle/tigerbeetle/pull/1309#discussion_r1400953128

Ah, you included the discussion in your original post and I didn't notice :facepalm:

It was a ninja edit. Let me actually add this to the commit message, so that it's recorded in git...


improved login when login input invalid

Before: invalid login input--redirect to error_login only with a message
After: redirect to login_html with error message and reminder and the login in form to enable user to try again directly
Changes involved:
Deleted error_login.html, not usuable anymore
Error message added styled red + reminder message

logged in navbar, dummy links created, active tabs implemented

Verified with Google Chrome on Windows 8.1, devel branch, latest commit 4098113 .


js files not being loaded on watch mode

I tried running examples from the repo but the js files are giving 404 error (both chrome & firefox).

I'll look into this sometime this week. What OS are you using? Which commands are failing?

I'll look into this sometime this week. What OS are you using? Which commands are failing?

Found the issue, the dev server was running on 3001 but the js file was being fetched with port 3000

Ahh, ok, so you had another application running on 3000, so vite started up on 3001?

yes


Vulkaninfo.exe of SDK running error

Windows 10 64bit
Vulkan SDK <IP_ADDRESS>

Also cube and cubeapp doesn't work, nothing after execute, not even a window 😕
Is there something wrong with ICD? I'm using AMD 480 graphic card, I noticed the API Version item is MISSING

Both of the drivers look pretty old.  You might try updating at least the AMD driver.
It looks like you have a nvidia driver installed.  If you don't have a nvidia graphics card installed, you might try uninstalling the driver.
I think it is allowed for older drivers to not report an API Version.  If they do not, the loader assumes that they are 1.0 drivers.  So, I don't think that is the problem.

It looks like you have a nvidia driver installed. If you don't have a nvidia graphics card installed, you might try uninstalling the driver.

This seems like a likely cause of the problem to me. Old drivers generally did crash when a there were no installed GPUs that used them. Newer drivers shouldn't be loaded in this situation (whcih means no crash). Your Nvidia driver looks like its a little under a year old, so I wouldn't be surprised if its unable to handle a missing GPU. Removing it would be the best thing. but if you're doing something like regularly swapping out GPUs, then I would highly recommend making sure you update both drivers.

I think it is allowed for older drivers to not report an API Version. If they do not, the loader assumes that they are 1.0 drivers. So, I don't think that is the problem.

It is. We also added the warning that you see in vulkaninfo to try to encourage people to update their manifest files to more recent versions, but there's still plenty of situations where people use the old versions.

@karl-lunarg @lenny-lunarg Thanks!


Speed up WP through reducing unnecessary header tags and similar

eg use plugin: https://de.wordpress.org/plugins/nietzsche/
https://gist.github.com/Auke1810/f2a4cf04f2c07c74a393a4b442f22267
Or get inspired by: https://gitlab.com/wholegrain/granola/-/blob/master/granola/wordpress/cleanup.php
I like the way plate organized optimisations via theme support (so no database settings and small step optimisation):
https://github.com/wordplate/plate/blob/master/plate.php
Maybe we could start a plugin and we could also check in with wholegrain if they won't to collaborate. As they are thinking about having a plugin instead of using their cleanup.php within the theme.

Great thought, yes, let's do that with a plugin and see if we can collaborate with others.


Rust instructions don't tell how to cargo init the project

The docs do not say how to cargo init a project. If you are doing a cargo init for a spin package, you need to do cargo init --lib and then it appears that at minimum you need to add the following to your Cargo.toml:
[lib]
crate-type = [ "cdylib" ]

[dependencies]
# Useful crate to handle errors.
anyhow = "1"
# Crate to simplify working with bytes.
bytes = "1"
# General-purpose crate with common HTTP types.
http = "0.2"
# The Spin SDK.
spin-sdk = { git = "https://github.com/fermyon/spin" }
# Crate that generates Rust Wasm bindings from a WebAssembly interface.
wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "2f46ce4cc072107153da0cefe15bdc69aa5b84d0" }

(I'm not entirely sure whether anyhow is actually required. It probably is not. But leaving out any of the rest causes the macros to barf.)

This is primarily intended to be covered by templates (ref #186 and #273), but I can also see the appeal in having a documentation section describing how to initialize from scratch.

Yeah, if the templates take care of it, that's fine.

The templates do take care of it, so closing.  Please reopen if anyone feels we should publish manual instructions too!


None of examples on README page works

Same errors on 3 different Linux distros.
I have installed from source:
pushd intel-extension-for-transformers/
pip install -r requirements.txt
python setup.py install
Then start to try examples from README (obviously,  my first steps after install):

Chatbot - a lot of missing dependencies, figured names running from errors and installed one by one
pip install uvicorn
pip install yacs
pip install fastapi
pip install shortuuid
pip install python-multipart
pip install python-dotenv

And finally got the following  error:
from intel_extension_for_transformers.neural_chat import build_chatbot
PydanticImportError: BaseSettings has been moved to the pydantic-settings package. See https://docs.pydantic.dev/2.5/migration/#basesettings-has-moved-to-pydantic-settings for more details.

INT4 Inference (CPU only)

from transformers import AutoTokenizer, TextStreamer
from intel_extension_for_transformers.transformers import AutoModelForCausalLM
model_name = "Intel/neural-chat-7b-v3-1"     # Hugging Face model_id or local model
prompt = "Once upon a time, there existed a little girl,"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
inputs = tokenizer(prompt, return_tensors="pt").input_ids
streamer = TextStreamer(tokenizer)
model = AutoModelForCausalLM.from_pretrained(model_name, load_in_4bit=True)
outputs = model.generate(inputs, streamer=streamer, max_new_tokens=300)
ModuleNotFoundError: No module named 'intel_extension_for_transformers.llm.runtime.graph.mistral_cpp'

INT8 Inference (CPU only) - same error

hi, @lvliang-intel,
Thanks, it is partially helps:
I. Chatbot

On my Linux (Archlinux) system with GPU and CUDA chatbot works (I need to install both requirements and requirements_cpu) to make it working
On my another Linux system (same Archlinux OS) without GPU/CUDA chatbot doesn't work:
...
In [4]: chatbot = build_chatbot()
2024-01-09 23:09:10 [ERROR] neuralchat error: System has run out of storage
On my laptop (Ultra7 155H, meteor lake, linux, Ubunta & Archlinux) it doesn't work (and Yes, I've installed  intel-extension-for-transformers by both ways):
In [4]: chatbot = build_chatbot()
Loading model Intel/neural-chat-7b-v3-1
model.safetensors.index.json: 100%|████████| 25.1k/25.1k [00:00<00:00, 77.8MB/s]
model-00001-of-00002.safetensors: 100%|█████| 9.94G/9.94G [01:33<00:00, 106MB/s]
model-00002-of-00002.safetensors: 100%|████| 4.54G/4.54G [00:55<00:00, 81.5MB/s]
Downloading shards: 100%|█████████████████████████| 2/2 [02:29<00:00, 74.80s/it]
Loading checkpoint shards: 100%|██████████████████| 2/2 [00:03<00:00,  1.91s/it]
generation_config.json: 100%|███████████████████| 111/111 [00:00<00:00, 753kB/s]
2024-01-09 20:04:11 [ERROR] neuralchat error: Generic error
...

II. Inference int* same error everywhere:
...
FileNotFoundError: [Errno 2] No such file or directory: 'Intel/neural-chat-7b-v3-1'
AssertionError                            Traceback (most recent call last)
Cell In[12], line 1
----> 1 model = AutoModelForCausalLM.from_pretrained(model_name, load_in_4bit=True)
File ~/py3p10_itrex/lib/python3.10/site-packages/intel_extension_for_transformers/transformers/modeling/modeling_auto.py:173, in _BaseQBitsAutoModelClass.from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs)
170     from intel_extension_for_transformers.llm.runtime.graph import Model
172     model = Model()
--> 173     model.init(
174         pretrained_model_name_or_path,
175         weight_dtype=quantization_config.weight_dtype,
176         alg=quantization_config.scheme,
177         group_size=quantization_config.group_size,
178         scale_dtype=quantization_config.scale_dtype,
179         compute_dtype=quantization_config.compute_dtype,
180         use_ggml=quantization_config.use_ggml,
181         use_quant=quantization_config.use_quant,
182         use_gptq=quantization_config.use_gptq,
183     )
184     return model
185 else:
File ~/py3p10_itrex/lib/python3.10/site-packages/intel_extension_for_transformers/llm/runtime/graph/init.py:118, in Model.init(self, model_name, use_quant, use_gptq, **quant_kwargs)
116 if not os.path.exists(fp32_bin):
117     convert_model(model_name, fp32_bin, "f32")
--> 118     assert os.path.exists(fp32_bin), "Fail to convert pytorch model"
120 if not use_quant:
121     print("FP32 model will be used.")
AssertionError: Fail to convert pytorch model
...

I have just tried the "INT4 Inference (CPU only)" example.
It seems that:
if it is the first run (no runtime_outs/ne_mistral_q_nf4_jblas_cfp32_g32.bin generated).
the model name ("Intel/neural-chat-7b-v3-1") wont works, I need to pass the model path (something like: .cache/huggingface/hub/models--Intel--neural-chat-7b-v3-1/snapshots/6dbd30b1d5720fde2beb0122084286d887d24b40).
in the later runs, the model_name works ok.
I wandor if this is supposed behavior.

I have just tried the "INT4 Inference (CPU only)" example. It seems that:
if it is the first run (no runtime_outs/ne_mistral_q_nf4_jblas_cfp32_g32.bin generated). the model name ("Intel/neural-chat-7b-v3-1") wont works, I need to pass the model path (something like: .cache/huggingface/hub/models--Intel--neural-chat-7b-v3-1/snapshots/6dbd30b1d5720fde2beb0122084286d887d24b40).
in the later runs, the model_name works ok.
I wandor if this is supposed behavior.

Yes, for Intel/neural-chat-7b-v3-1, we need first download the model to disk, then pass local path to us.
and only llama/ mistral/ neural chat model need do this process. other model should be ok to just fill with HF model id.
And we will support it soon.

Hi, @Tuanshu,
Thanks, it works! Read a poem on a little girl that can see :)
@a32543254 , @lvliang-intel
It would be extremely useful to put necessary details in a README file to avoid questions from newcomers, like me.
Chatbot issues are remaining, though...


Move OperandsAndPartials out of namespace stan::agrad

This really shouldn't be in the stan::agrad namespace.

This issue was moved to stan-dev/math#25


Upload replays of each match to their own replay group

To organize replays better, upload the replays of each match to a replay group of their own.
If there's a match thread in Discord named "Solita Herkku vs Solita Ninja, Challengers, 15.5.2023", the bot should create a new subgroup under Challengers group with the the name of the thread in Discord and then upload all the replays in that thread to that subgroup. After the upload, the bot should post a link to that subgroup in the Discord thread instead of individual replay links.

How do you wanna handle duplicate replays? As far as I know, you can't upload an duplicate replay into another group.

Have you tried if that duplicate detection only applies within the replay group? It must?
The duplicate handling shouldn't change with this change,as with this change the replays should only be uploaded to the match specific subgroup within the division subgroup, not in both.


Save atlases under .brainglobe/atlases

See https://github.com/brainglobe/BrainGlobe/issues/26

Closing as duplicate of https://github.com/brainglobe/brainglobe-atlasapi/issues/291


Add send_with_config Function To Anchor Client

replaces https://github.com/project-serum/anchor/pull/768

LGTM. Please run cargo fmt for the build to succeed.

LGTM. Please run cargo fmt for the build to succeed.

done

this will close #542

PR looks dead, so closing for now.


Compiling loop

CRA: Latest
Windows 10
vscode 1.47
node 10.13.0
npm 6.4.1
Hey guys, I was wondering has it happened to you that using vscode and its embedded terminal, running npm start and then touching some file there's a compilation loop? I mean, after touching one file dev server keeps compiling forever every 10-15sec which is quite annoying and makes the browser refreshing. I thought it was related to some vscode extensions but it's not.
If I try running npm start from the console and editing files with UltraEdit that does not happen so I think it's something related to vscode. Do you have a clue? Thanks.

Have you tried running with all extensions disabled?

I’m going to retry it tomorrow but I remember I tried with no extensions installed whatsoever.

Even though I disable all the extensions it does not work. Any clue?

no idea. id ask in the VSCode project.


Add Features for simple use

1- Adding the possibility to limit the number of input characters in the form fields instead of checking the number when inserting into the database
2- Ability to show/hide form fields by selecting values by radio/checkbox    ex: select component
3- The possibility to check the format of fields such as email and phone when user insert
4- English language in Rich-text component (Current Chinese)
5- Connect to an IDP for login page  ex: casdoor
6- Ability to display tooltip on form fields
7- Ability to see the value of the password field in the form
8- Ability to copy a record in the page action  (edit/delete/copy)

@HRNasr First of all, thank you very much for your advice. About your question, I'll be sure to provide you with some answers.

maybe you can use .FieldLimit(number),
Take a look at whether .FieldOnChooseMap can meet your requirements.
There's no ready-made API available for now, but you can start by using .SetPostValidator to implement it.
4/5. I'll continue to follow up on this.
Can you give me more examples, and screenshots better?
mark it.
Need an example.


partials: make titles uniform

Current coverage is 97.76%

Merging #209 into master will not affect coverage as of 73d9cc6

Powered by Codecov. Updated on successful CI builds.


google_compute_instance's assigned_nat_ip considered unresolved

It looks like the (somewhat long-winded) way to get the external IP of a google compute instance in terraform is:
google_compute_instance.node.network_interface.0.access_config.0.assigned_nat_ip

But this is considered an unresolved reference in the IntelliJ HCL plugin:

Would be nice to get it recognized since terraform (tested in 0.9.5) recognizes it just fine.

Hm... so I'm running 0.6.3 here which looks like should have assigned_nat_ip defined in https://github.com/VladRassokhin/intellij-hcl/blob/v0.6.3/res/terraform/model/providers/google.json#L3191

Weird. There's even a test for it - I tried invalidating caches and restarting but it still shows up red.
Any idea what I might have wrong?

Hi @matschaffer
Sorry for not answering for so long.
How resource "google_compute_instance" "node" is defined?
Do you have network_interface and access_config blocks there?

No worries :) Thanks for getting back to me.
We have network_interface and access_config in there. The access_config is blank to pick up an auto-assigned IP.
Here's a mostly-redacted version of the file that's showing the warning:

AFAIK defining access config as block, not property with 'object' solves problem, e.g.
network_interface {
    access_config {}
  }

Anyway, I've fixed that and it would work both ways in next plugin release


ENH: 20.2.0 LTS

Upgrading to fMRIPrep version 10.2.0 Long Term Support (LTS)
Add a lot of tests

Great and thorough review!  Thanks for all of the improvements that are now in the code.  I didn't do some of your suggestions because I want to keep all of the BIDS App gears in sync with the bids-app-template.  There are a lot of things that are done to be generally useful in BIDS Apps for both existing and future gears.
I left one comment unresolved -- I'd like to get a better idea about what you are suggesting and why.

More changes will be made later.


Is this not available in dbt 1.6?

Is your feature request related to a problem? Please describe.
The new manifest format does not seem to be supported.
I am developing in the following environment.
Do you plan to support this in the future?
❯ poetry run dbt --version
Core:
  - installed: 1.6.0
  - latest:    1.6.0 - Up to date!

Plugins:
  - snowflake: 1.6.0 - Up to date!

❯ piperider compare-reports --base /tmp/piperider-base/run.json --target /tmp/piperider-target/run.json -o /tmp/piperider-comparison
────────────────────────────────────────────────────────────────────────────────── Comparison report ──────────────────────────────────────────────────────────────────────────────────
Selected reports:
  Base:   /tmp/piperider-base/run.json
  Target: /tmp/piperider-target/run.json
Warning: Runtime Error
  Expected a schema version of "https://schemas.getdbt.com/dbt/manifest/v9.json" in input file, but found "https://schemas.getdbt.com/dbt/manifest/v10.json". Are you running with a
different version of dbt?. Got problem to generate changeset.

We will support dbt 1.6 in the next release (ETA 8/24)
You can try the nightly version and see if it works
$ pip install piperider-nightly
$ piperider version
<IP_ADDRESS>30815
GitCommit: bf26319bb87dd83859d623d2aba5ad95b774f335

Change detection is working, but no summary report is generated.
Column additions are detected.

It does not appear in the summary report.

piperider version.
piperider version
<IP_ADDRESS>30815
GitCommit: bf26319bb87dd83859d623d2aba5ad95b774f335

at main branch.
PIPERIDER_SKIP_TARGET_CHECK=1 piperider run --dbt-target-path target/ -o /tmp/piperider-base

at future branch.
PIPERIDER_SKIP_TARGET_CHECK=1 piperider run --dbt-target-path target/ -o /tmp/piperider-target

piperider compare-reports --debug --base /tmp/piperider-base/run.json --target /tmp/piperider-target/run.json -o /tmp/piperider-comparison
────────────────────────────────────────────────────────────────────────────────── Comparison report ──────────────────────────────────────────────────────────────────────────────────
Selected reports:
  Base:   /tmp/piperider-base/run.json
  Target: /tmp/piperider-target/run.json
Warning: Runtime Error
  Expected a schema version of "https://schemas.getdbt.com/dbt/manifest/v9.json" in input file, but found "https://schemas.getdbt.com/dbt/manifest/v10.json". Are you running with a
different version of dbt?. Got problem to generate changeset.

Comparison report: /tmp/piperider-comparison/index.html

So, I changed the dbt_schema_version in the following file from https://schemas.getdbt.com/dbt/manifest/v10.json to https://schemas.getdbt.com/dbt/ manifest/v9.json and now I get a summary report.
Selected reports:
  Base: /tmp/piperider-base/run.json
  Target: /tmp/piperider-target/run.json
```

Thank you for your feedback, we will troubleshoot the problem you mentioned.

Hi, after investigation, i can reproduce your case only when

base report is https://schemas.getdbt.com/dbt/ manifest/v9.json
target report is https://schemas.getdbt.com/dbt/ manifest/v10.json
The environment to run piperider is dbt-core=1.5.x

To solve this, just also upgrade the dbt package in your environment you run the PipeRider
Here is my reproducing steps.
Run compare-reports in dbt 1.5.5, target report is generated in dbt 1.6.0 environment.
$ pip list | grep 'piperider\|dbt'
dbt-core                  1.5.5
dbt-duckdb                1.5.2
dbt-extractor             0.4.1
piperider-nightly         <IP_ADDRESS>30817

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip

$ piperider compare-reports --last
 Comparison report
Selected reports:
  Base:   /private/tmp/jaffle_shop/.piperider/outputs/dev-20230818082235/run.json
  Target: /private/tmp/jaffle_shop/.piperider/outputs/dev-20230818082336/run.json
Warning: Runtime Error
  Expected a schema version of "https://schemas.getdbt.com/dbt/manifest/v9.json" in input file, but found "https://schemas.getdbt.com/dbt/manifest/v10.json". Are you running with a different version of dbt?. Got problem to generate changeset.

Comparison report: /private/tmp/jaffle_shop/.piperider/comparisons/latest/index.html

Upgrade to dbt 1.6
$ source ./dbt16/bin/activate
$ pip list | grep 'piperider\|dbt'                                                                                 dbt16  base  3.0.0
dbt-core                 1.6.0
dbt-duckdb               1.6.0
dbt-extractor            0.4.1
dbt-semantic-interfaces  0.2.0
piperider-nightly        <IP_ADDRESS>30817

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip

$ piperider compare-reports --last                                                                                Comparison report
Selected reports:
  Base:   /private/tmp/jaffle_shop/.piperider/outputs/dev-20230818082235/run.json
  Target: /private/tmp/jaffle_shop/.piperider/outputs/dev-20230818082336/run.json

Impact Summary:
  Code Changes: added=0, removed=0, modified=0
  Resource Impact: potentially_impacted=0, assessed=0, skipped=0, impacted=0

Comparison report: /private/tmp/jaffle_shop/.piperider/comparisons/latest/index.html

I think i can solve this problem.
Great thank you.


Document cluster mode

Looking through the code base, I have noticed several mentions of clustering and etcd and I wanted to know how best to set this up locally to try it out.
I haven't seen any docs on this so far so I'd appreciate any advice on it.

The regular gateway base does not need coordinated clustering. If you're not using our Microservices APM offering, you only need this base Gateway and can simply deploy multiple instances behind an HTTP load balancer for HA and scalability.
When in the context of SignalFx's Microservices APM, you need to use our Smart Gateway, which does require coordinated clustering with Etcd. The documentation for that is available on our product documentation site at https://docs.signalfx.com/en/latest/apm/apm-deployment/smart-gateway-clusters.html
We have some work lined up in the future to help rationalize what gets documented where between GitHub vs Product Docs, and in this "base" gateway repository.

What I understand from your comment is that this clustered mode isn't intended for the default SignalFx gateway but it is for the smart gateway; this code being the basis of the smart gateway.
If this is the case then why does clustering code exist in the "base" code base instead of being inside the smart gateway code?
The reason why I wanted to know about clustering is because I wanted the deployment to be durable to AZ outages or instance failures. Furthermore, I haven't ventured too deep within the code but having a HTTP load balancer might not be enough due to the aggregation of metrics before forwarding. In order to get a correct local aggregation, I would have to imagine that I would need some load balancing rules that uses sticky sessions which I don't want to do that where possible.

Clustering-related code in this codebase is just the (unfortunate) result of how the code and the application is structured, forcing us to put this Smart Gateway specific clustering mode into this base repository.


chore: write the README.md and update the CHANGELOG.md for the gem

Write the README.md and update the CHANGELOG.md for the serverless:exec gem and change documentation regarding Rakefile require statement.

pushed up the edits of the repo description and combined the Rack Quick Start section with the Setting up serverless:exec execution


Filter sentry issues - part 2

Do Sentry logs triage to filter the issues that are still relevant in 0.4.1, identify the origin and create the corresponding issues in the repository, with priority to data pipeline errors.
Acceptance criteria:
1 - All app-related logs in the Sentry dashboard are marked as reviewed with the corresponding issue link or ignored.

Nothing for review


Reslug “Exporting to Belgium”

To get rid of the --2 suffix.
Zendesk: https://govuk.zendesk.com/agent/tickets/2854759

Using the rake task instead


Question: How to log Datareader or result value via ef core logger

Hi,
From IBM EF Core provider we are trying to capture result of ExecuteReader().
We could see value of output parameter but unable to see result.
Our context is:
 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            IServiceCollection serviceCollection = new ServiceCollection();
            serviceCollection.AddLogging(builder => builder

                .AddConsole()
                .AddFilter(level => level >= LogLevel.Information)

            );

            var loggerFactory = serviceCollection.BuildServiceProvider().GetService<ILoggerFactory>();
  optionsBuilder.UseDb2(connectionString,
                  p => { p.SetServerInfo(IBMDBServerType.OS390); p.UseRowNumberForPaging(); });

            optionsBuilder.UseLoggerFactory(loggerFactory).EnableSensitiveDataLogging();

}

not sure what extra we need to configure to see the result.
Would you please suggest ?
Thanks,
Archana

@archanasoni From just the information above it is not at all clear to me what you are asking. Please post a small, runnable project/solution or complete code listing that demonstrates the issue so that we can investigate.

@ajcvickers , We are actually running Code First scenario testing via IBM EF COre pkg against DB2 zOS from package manager console.
In our implementation for Code First in IBM EF Core, we had to use ExecuteReader() to call Stored Procedure, and we used below method to log the resulting data for ExecuteReader()
Logger.CommandExecuted(
command,
DbCommandMethod.ExecuteReader,
commandId,
connection.ConnectionId,
result,
false,
startTime,
stopwatch.Elapsed);
from our test application we have configured logger :
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
IServiceCollection serviceCollection = new ServiceCollection();
serviceCollection.AddLogging(builder => builder
            .AddConsole()
            .AddFilter(level => level >= LogLevel.Information)

        );

        var loggerFactory = serviceCollection.BuildServiceProvider().GetService<ILoggerFactory>();

optionsBuilder.UseDb2(connectionString,
p => { p.SetServerInfo(IBMDBServerType.OS390); p.UseRowNumberForPaging(); });
        optionsBuilder.UseLoggerFactory(loggerFactory).EnableSensitiveDataLogging();

}
But in package manager console we see the output:
Executed DbCommand (1,259ms) [Parameters=[p1='0' (Direction = Output)], CommandType='Text', CommandTimeout='30']
call DSNUTILU(uniqueID,'NO',command,?);
In above output data, only value for out parameter is getting displayed. But DSNUTILU returns resultset as well which is not getting displayed in log.
We want to know from test application what else we can configure to see the resultset which is being returned via DSNUTILU.

@archanasoni What does it mean to "display the resultset" in the log?

@ajcvickers , code from RelationLoggerExtension:
public static void CommandExecuted(
[NotNull] this IDiagnosticsLogger<DbLoggerCategory.Database.Command> diagnostics,
[NotNull] DbCommand command,
DbCommandMethod executeMethod,
Guid commandId,
Guid connectionId,
[CanBeNull] object methodResult,
bool async,
DateTimeOffset startTime,
TimeSpan duration)
{
var definition = RelationalStrings.LogRelationalLoggerExecutedCommand;
        var warningBehavior = definition.GetLogBehavior(diagnostics);
        if (warningBehavior != WarningBehavior.Ignore)
        {
            definition.Log(
                diagnostics,
                warningBehavior,
                string.Format(CultureInfo.InvariantCulture, "{0:N0}", duration.TotalMilliseconds),
                command.Parameters.FormatParameters(ShouldLogParameterValues(diagnostics, command)),
                command.CommandType,
                command.CommandTimeout,
                Environment.NewLine,
                command.CommandText.TrimEnd());
        }

        **if (diagnostics.DiagnosticSource.IsEnabled(definition.EventId.Name))**
        {
            diagnostics.DiagnosticSource.Write(
                definition.EventId.Name,
                new CommandExecutedEventData(
                    definition,
                    CommandExecuted,
                    command,
                    executeMethod,
                    commandId,
                    connectionId,
                    methodResult,
                    async,
                    ShouldLogParameterValues(diagnostics, command),
                    startTime,
                    duration));
        }
    }

We are calling commandexecuted method and as one of argument passing methodResult (DataReader)..
I suppose that second if block that is: if(diagnostics.DiagnosticSource.IsEnabled(definition.EventId.Name))
......
......
Should print methodResult as well, But in our case it's not even entering inside second if block. For trial purpose I tried disabling it then in write(.. , ..) method of DiagnosticListner :
public override void Write(string name, object value)
{
for (DiagnosticSubscription curSubscription = _subscriptions; curSubscription != null; curSubscription = curSubscription.Next)
curSubscription.Observer.OnNext(new KeyValuePair<string, object>(name, value));
}
_subscriptions contains null in our case.
My question is- Do we need to add some configuration to capture methodResult(DataReader)
like we used EnableSensitiveDataLogging() to capture value of OUT parameter ?
What we are missing here..

@archanasoni Logging a data reader makes no sense unless you mean to iterate the results and log those, but obviously we can't do that. Can you post an example of the kind of output you would expect if this was logged?

@ajcvickers , here is basic DataReader value which we have to log, this is output when we run DSNUTIL sp:
soft.EntityFrameworkCore.Database.Command[35029]
Output of Reorg Command: 1ms
1	1DSNU000I    238 06:42:16.33 DSNUGUTC - OUTPUT START FOR UTILITY, UTILID = UTILITYID
2	 DSNU1045I   238 06:42:16.34 DSNUGTIS - PROCESSING SYSIN AS UNICODE UTF-8
3	0DSNU050I    238 06:42:16.34 DSNUGUTC -  TEMPLATE EFCOPY DISP(NEW, DELETE, CATLG)
4	 DSN=DSNNAME
5	 DSNU1035I   238 06:42:16.34 DSNUJTDR - TEMPLATE STATEMENT PROCESSED SUCCESSFULLY
6	0DSNU050I    238 06:42:16.34 DSNUGUTC -  TEMPLATE EFSYSREC UNIT(SYSDA) DISP=(MOD, DELETE, CATLG)
7	 DSN=DSNNAME
8	 DSNU1035I   238 06:42:16.34 DSNUJTDR - TEMPLATE STATEMENT PROCESSED SUCCESSFULLY
9	0DSNU050I    238 06:42:16.35 DSNUGUTC -  REORG TABLESPACE TSNAME FORCE ALL SHRLEVEL CHANGE COPYDDN(EFCOPY)
10	 UNLDDN EFSYSREC SCOPE PENDING
11	 DSNU1155I ]Q7C2 238 06:42:16.52 DSNURFIT - AUXILIARY TABLESPACE TSNAME WILL BE REORGANIZED IN PARALLEL WITH
12	 BASE TABLESPACE
............
...........

@archanasoni We have discussed this as a team and we're still struggling to understand what it is you are actually asking for. Would it maybe be possible for you to submit a PR showing what changes you would like? It might allow us to get past this communication gap.

@ajcvickers I really dont get what is not clear here.. But before answering anything now I've another question:
To log executed command we have method which takes methodResult as one of argument :
public static void CommandExecuted(
[NotNull] this IDiagnosticsLogger<DbLoggerCategory.Database.Command> diagnostics,
[NotNull] DbCommand command,
DbCommandMethod executeMethod,
Guid commandId,
Guid connectionId,
[CanBeNull] object methodResult,
bool async,
DateTimeOffset startTime,
TimeSpan duration)
what is the purpose of this argument ?

@archanasoni It's used for interception.

@ajcvickers  :) what is the end result of it ? I mean methodResult will contain what kind of data ? will it print that data ?

@archanasoni The CommandReaderExecuted (in 3.0; concepts are similar in 2.2) method follows a standard pattern in EF Core as an entry point to create a variety of logging/diagnostics events after a call has been made to DbCommand.ExecuteReader. The type of "events" are:

A log message sent to an ASP.NET-style ILogger
A diagnostic message sent to a .NET DiagnosticListener
A database interception hook defined on IDbCommandInterceptor

The method accepts various state and uses it differently depending on the type of event being generated:

Both interception and DiagnosticListener get a CommandCreatedEventData object which contains references to the actual runtime objects being used for command execution. This event data contains the methodResult, so this can be examined and used as needed in either a DiagnosticListener or IDbComandInterceptor implementation.
ILogger gets instead a formatted log message suitable for directly printing/saving.

In addition, IDbCommandInterceptor gets the methodResult separately because interception can change it to some other object and EF will then continue with that result instead.
All of this happens before any results have been read--that is, the data reader has not been enumerated. We don't print any value out from this data reader in the log message since most data reader implementations are just vehicles for carrying the results (which have not yet been read) and don't inherently have anything interesting to log, other than the results, which have not yet been read, and typically can't be logged without reading them. We certainly would not read the results to log them here since that would essentially mean double enumerating, which would be very slow, among other issues.
So there shouldn't be any issue using methodResult in a DiagnosticListener or IDatabaseInterceptor, if that's what you want to do. And it's by-design that we don't include it in the string sent to ILogger.

@ajcvickers , thanks for the detailed info, as per our requirement we have to print results. As it takes methodResult as an argument so just had a thought that in some configuration or condition result will be printed. But it does not..


hardware/clock.h lists wrong definition for auxsrc XOSC for clk_sys

https://github.com/raspberrypi/pico-sdk/blob/6a7db34ff63345a7badec79ebea3aaef1712f374/src/rp2_common/hardware_clocks/include/hardware/clocks.h#L57
Documentation for the auxiliary clock sources in hardware/clocks.h has an error. The XOSC row in the table should list CLOCKS_CLK_SYS_CTRL_AUXSRC_VALUE_XOSC_CLKSRC in the clk_sys column but instead lists CLOCKS_CLK_SYS_CTRL_AUXSRC_VALUE_ROSC_CLKSRC.
This is just a documentation error; the actual definition is correct.
https://github.com/raspberrypi/pico-sdk/blob/6a7db34ff63345a7badec79ebea3aaef1712f374/src/rp2040/hardware_regs/include/hardware/regs/clocks.h#L564

Fixed in develop.


Question about using @idata

I have a test and I want to decorate it with @idata.
The iterable I want to use as the idata argument is member in my class.
@ddt
class TestRunnable(BaseTest):
    def __init__(self, *args, **kwargs):
        super(TestRunnable, self).__init__(*args, **kwargs)
        self.lst = []
    @idata(self.lst)
   def test_something(self):
        pass

Is it possible to do it?

Greetings Balderman1.
It's ok about decorate it with @idata.
Thanks for asking.

When in doubt, try things and see if they work. Did you try it? Did you get an error? Was the error informative?

The issue you will bump into, I imagine, is that at the time when the Python interpreter will try to process the line @idata(self.lst), self is not in scope, so you will get an interpreter error.
Try to understand how the interpreter would go about parsing your code and running it, to figure out why things are working or not.

You are right - I get an error.
Is there a clean workaround for this?
On Sat, Feb 18, 2017 at 8:50 PM, Carles Barrobés<EMAIL_ADDRESS>wrote:

When in doubt, try things and see if they work. Did you try it? Did you
get an error? Was the error informative?
The issue you will bump into, I imagine, is that at the time when the
Python interpreter will try to process the line @idata(self.lst), self is
not in scope, so you will get an interpreter error.
Try to understand how the interpreter would go about parsing your code and
running it, to figure out why things are working or not.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/txels/ddt/issues/48#issuecomment-280866526, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AMSH2XLIg-lhHCnEkhvSw7Q815wHfkzkks5rdz1pgaJpZM4MC8Nx
.

--
Avishay Balderman

There isn't. ddt acts at class creation time (it's the class decorator that does the work). It manipulates class code before your class is instantiated. Therefore you cannot rely on instance data to drive ddt operation.

Seems like nothing really could be done about this.


tour: missing example 9 in the Interfaces section

Context: https://tour.ardanlabs.com/tour/eng/interfaces/1
Missing example 9 in the Interfaces section.

There is a bug in the UI where you can see it. Those tabs will scroll. Try it. :(


Have shopping list display total_cost and average_cost_per_craft

total_cost and average_cost_per_craft are fields that get included in the shopping list results.
we should display them
this should be a simple one @jackoliver do you want to try?
i think the fix will go in here https://github.com/ff14-advanced-market-search/saddlebag-with-pockets/blob/master/app/routes/ffxiv.shopping-list.tsx

missed this notif, i can pick this up.


Added community rule set for consistent code style

PR checklist

[ ] Addresses an existing issue: #0000
[ ] New feature, bugfix, or enhancement

[ ] Includes tests

[x] Documentation update

Overview of change:
Added community rule set for consistent code style
Is there anything you'd like reviewers to focus on?
No
CHANGELOG.md entry:
[no-log]

Thanks for your interest in palantir/tslint, @CSchulz! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.


Cant find latest release version code

can u please mention latest release aar version?
Not able  to find it any where.

It is at the top of the README as a jitpack badge


Implemented Loading Animation

Pull Request Description
Summary:
This PR implements a loading animation to enhance the user experience while waiting for repository analysis results.
Related Issue:
Closes #7
Tasks:

[x] Implement loading animation.
[x] Ensure the animation is visually engaging and GitHub-themed.
[x] Integrate the animation into the user interface.

Checklist
Please ensure that your pull request meets the following criteria:

[x] I have tested my changes locally.
[x] I have followed the coding guidelines.
[x] I have reviewed my code for any potential issues.
[x] I have added necessary documentation (if applicable).
[x] I have checked for conflicts with other pull requests.

Additional Comments
Make sure to add hacktoberfest-accepted to make this a valid submission to Hacktoberfest 2023.

I have closed this PR , please create new PR so I can see the deployment


Preload shaka player or other media ahead of time

Hello, i have an app with a grid of videos and I would like to preload them as the user scrolls, and stop loading them as the user scrolls past them (user unlikely to play those they scroll past).
shaka player provides a preload api to prefrtch the manifest and the first segment, as well as destroy/stop preloads midflight. Does this library expose any way for the media elements to preload things, or at least have access to the underlying instance?
hls.js also has a loadSource function, can I utilize that with hls-video?
if not, how do you recommend someone preload something (ideally from a cache)

related https://github.com/muxinc/media-elements/issues/37


Support Decimal type serialization

For those of us using Prisma and the Decimal type, the current result of a serialized value is coming across as an object and not sticking with the true decimal.js type. 😄

Opened #29 with similar implementation to the main superjson repo.
I realize Decimal.js is pretty large, happy to discuss alternatives for supporting this properly.
Thanks 😄

Yes! Had this issue just now - have you figured out any other workaround in the meantime?

Here's the preliminary API I added to support custom types. This way you can register custom types without bloating the existing package. Essentially "pay-for-use". You only pay the cost of the custom type if you use it.
API
type CustomTypeEntry<T> = {
  type: string
  is: (value: unknown) => boolean
  serialize: (value: T) => string
  deserialize: (value: string) => T
}

export function registerCustomType<T>(entry: CustomTypeEntry<T>) {
  customTypeMap.set(entry.type, entry)
}

Usage
Register the custom type in root.tsx once.
// root.tsx
import {
  typedjson,
  registerCustomType,
  useTypedLoaderData,
} from "remix-typedjson";

import Decimal from "decimal.js";

registerCustomType({
  type: "decimal",
  is: (value: unknown) => value instanceof Decimal,
  serialize: (value: Decimal) => value.toString(),
  deserialize: (value: string) => new Decimal(value),
});

// route.tsx
export function loader() {
  var d = new Decimal("1234567890123456789012345678901234567890");
  return typedjson({ greeting: "Hello World", today: new Date(), d });
}

export default function Index() {
  const loaderData = useTypedLoaderData<typeof loader>();

  return (
    <>

Loader Data

{JSON.stringify(loaderData, null, 2)}

today: {loaderData.today.toLocaleString()}

d instanceof Decimal: {loaderData.d instanceof Decimal ? "true" : "false"}

d: {loaderData.d.toFixed(0)}

    </>
  )
}

This has been published as v0.2.0


ENYO-3411: Clear job function in case of destroy

Job should be executed although control is destroy.
Enyo-DCO-1.1-Signed-off-by: Yeram Choi<EMAIL_ADDRESS>

LGTM


Scheme for handling virtual documents

In #48777, we attempted to limit HTML/CSS extensions to only handling file and untitled schemes. However, this breaks embedded HTML/CSS completions and other language features in Intelephense. It is reverted for release.
Intelephense creates a virtual HTML document and runs command vscode.executeCompletionItemProvider to get list of completions from HTML language server (which includes CSS/JS embedded in HTML).
We should find a way to let languages mark themselves able to handle virtual documents.

@jrieken I'm suggesting having a virtual scheme in parallel to file and untitled.

@octref What would virtual match? Any document scheme that was defined via the registerTextDocumentContentProvider API? But it wouldn't match schemes provides by custom FileSystemProviders?

@lostintangent

What would virtual match? Any document scheme that was defined via the registerTextDocumentContentProvider API?

Yes. From language server's perspectives if they declare themselves as able to handle file, they may not be able to provide some functionalities for untitled files, which might not exist on disk and not have a path. I think it's the same thing for virtually created files.
For example, the Intelephense extension creates virtual html files out of the PHP files on disk, and call VS Code command vscode.executeCompletionItemProvider to get completions. HTML server is now able to handle it, because our HTML file support is single-file (no understanding of dependencies). However as we add more capabilities to HTML, we might need to selectively  enable features for untitled or virtual files. There might be LS which don't want to handle untitled and virtual files, and they should be able to say so.

But it wouldn't match schemes provides by custom FileSystemProviders?

Yep files backed by custom FileSystemProviders still have a fs behind it. Just need to make extension author aware to always use that provider instead of Node's fs.

@jrieken I'm suggesting having a virtual scheme in parallel to file and untitled.

The problem with that is that there can only one provider per scheme (one truth) and I don't understand who that should be. In other words, you cannot be a document provider anymore but we need to invent another indirection.
TBH, this looks like a dependency between Intelephense and the Html/CSS extension (without explicitly being declared). IMO if we want to constrain Html/CSS to certain schemes then we should have a reasonable default and the Html/CSS extension needs to export API that allows to manage those schemes, e.g. Intelephense calls a function that Html/CSS exports

One of the main points for virtual documents is to avoid extension dependencies. That allows users to replace our html/css/json extensions. Also the problem is that many more language extensions that are similar to html/css/json would need such an API.
If we want to store meta information about URI based on the scheme, that could be added to the file system provider or the document providers. What would that information be?
If that's what you mean, I think that's what @alexandrudima suggested on the liveshare channel with the 'private' flag on file system providers.
I think the idea there is to say that html/css/json still register without any scheme restriction (equivalent to schema: '*'), but what it means is 'all schemes but the private ones'.

One of the main points for virtual documents is to avoid extension dependencies. That allows users to replace our html/css/json extensions. Also the problem is that many more language extensions that are similar to html/css/json would need such an API.

I understand, but do we have samples/scenarios for both statements? Otherwise I'd suggest to start simple before bringing out the bigger hammer.
Also when did the virtual document renaissance start? Didn't we conclude that it's best to integrate via libraries because its impossible to simply embed a language, e.g. TypeScript with imports embedded inside my new-super-language?

I think the idea there is to say that html/css/json still register without any scheme restriction (equivalent to schema: '*'), but what it means is 'all schemes but the private ones'.

If we do that then this issue resolves itself, right? Isn't the point of Intelephense creating virtual documents that they are not private to the html/css/json extension?


See if table-cell is better for older align method

Goal: to get multiple elements to vertical/horizontally align instead of just stacking them on top of each other with the current old implementation.

It's not. It fixes stuff but breaks stuff too. http://codepen.io/corysimmons/pen/xGxOKY


System.ArgumentException when using CreateProgram with string[] as source parameter

Summary
calling
cl.CreateProgramWithSource(nint context, uint count, string[] stringsSa, nuint* lengths, out int errcode_ret);

with a valid context and valid kernel as a string in Kernels.LayoutKernel throws a "System.ArgumentException" from within the string array to pointer conversion code. The Kernel is about 4500 characters long, can be found here. providing a valid length didn't help, and is not needed per se if the string is null terminated according to the OpenCL docs.
Stacktrace
System.ArgumentException
  HResult=0x80070057
  Message=The output byte buffer is too small to contain the encoded data, encoding codepage '65001' and fallback 'System.Text.EncoderReplacementFallback'. Arg_ParamName_Name
  Source=System.Private.CoreLib
  StackTrace:
   at System.Text.Encoding.ThrowBytesOverflow() in /_/src/libraries/System.Private.CoreLib/src/System/Text/Encoding.cs:line 1090
   at System.Text.Encoding.ThrowBytesOverflow(EncoderNLS encoder, Boolean nothingEncoded) in /_/src/libraries/System.Private.CoreLib/src/System/Text/Encoding.cs:line 1101
   at System.Text.Encoding.GetBytesWithFallback(ReadOnlySpan`1 chars, Int32 originalCharsLength, Span`1 bytes, Int32 originalBytesLength, EncoderNLS encoder) in /_/src/libraries/System.Private.CoreLib/src/System/Text/Encoding.Internal.cs:line 687
   at System.Text.Encoding.GetBytesWithFallback(Char* pOriginalChars, Int32 originalCharCount, Byte* pOriginalBytes, Int32 originalByteCount, Int32 charsConsumedSoFar, Int32 bytesWrittenSoFar) in /_/src/libraries/System.Private.CoreLib/src/System/Text/Encoding.Internal.cs:line 497
   at System.Text.UTF8Encoding.GetBytes(Char* chars, Int32 charCount, Byte* bytes, Int32 byteCount) in /_/src/libraries/System.Private.CoreLib/src/System/Text/UTF8Encoding.cs:line 358
   at Silk.NET.Core.Native.SilkMarshal.StringIntoSpan(String input, Span`1 span, NativeStringEncoding encoding)
   at Silk.NET.Core.Native.SilkMarshal.StringToMemory(String input, NativeStringEncoding encoding)
   at Silk.NET.Core.Native.SilkMarshal.StringToPtr(String input, NativeStringEncoding encoding)
   at Silk.NET.Core.Native.SilkMarshal.StringArrayToMemory(IReadOnlyList`1 input, NativeStringEncoding e)
   at Silk.NET.Core.Native.SilkMarshal.StringArrayToPtr(IReadOnlyList`1 input, NativeStringEncoding encoding)
   at Silk.NET.OpenCL.CL.CreateProgramWithSource(IntPtr context, UInt32 count, String[] stringsSa, UIntPtr* lengths, Int32& errcode_ret)
   at Translator.Explorer.OpenCL.OpenCLManager.CreateProgram() in F:\Lenny\source\repos\HousePartyTranslator\TranslatorAdmin\Explorer\OpenCL\OpenCLManager.cs:line 74
   at Translator.Explorer.OpenCL.OpenCLManager.SetUpOpenCLImpl() in F:\Lenny\source\repos\HousePartyTranslator\TranslatorAdmin\Explorer\OpenCL\OpenCLManager.cs:line 296
   at Translator.Explorer.OpenCL.OpenCLManager.SetUpOpenCL() in F:\Lenny\source\repos\HousePartyTranslator\TranslatorAdmin\Explorer\OpenCL\OpenCLManager.cs:line 46
   at Translator.Explorer.NodeLayout..ctor(NodeProvider provider, Form parent, CancellationToken cancellation) in F:\Lenny\source\repos\HousePartyTranslator\TranslatorAdmin\Explorer\NodeLayout.cs:line 51
   at Translator.Explorer.Window.StoryExplorer.Initialize(Boolean singleFile) in F:\Lenny\source\repos\HousePartyTranslator\TranslatorAdmin\Explorer\StoryExplorer.cs:line 77
   at Translator.Fenster.<>c__DisplayClass80_1.<CreateStoryExplorer>b__0() in F:\Lenny\source\repos\HousePartyTranslator\TranslatorAdmin\MainForm\House Party Translator.cs:line 362
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 268

  This exception was originally thrown at this call stack:
    System.Text.Encoding.ThrowBytesOverflow() in Encoding.cs
    System.Text.Encoding.ThrowBytesOverflow(System.Text.EncoderNLS, bool) in Encoding.cs
    System.Text.Encoding.GetBytesWithFallback(System.ReadOnlySpan<char>, int, System.Span<byte>, int, System.Text.EncoderNLS) in Encoding.Internal.cs
    System.Text.Encoding.GetBytesWithFallback(char*, int, byte*, int, int, int) in Encoding.Internal.cs
    System.Text.UTF8Encoding.GetBytes(char*, int, byte*, int) in UTF8Encoding.cs
    Silk.NET.Core.Native.SilkMarshal.StringIntoSpan(string, System.Span<byte>, Silk.NET.Core.Native.NativeStringEncoding)
    Silk.NET.Core.Native.SilkMarshal.StringToMemory(string, Silk.NET.Core.Native.NativeStringEncoding)
    Silk.NET.Core.Native.SilkMarshal.StringToPtr(string, Silk.NET.Core.Native.NativeStringEncoding)
    Silk.NET.Core.Native.SilkMarshal.StringArrayToMemory(System.Collections.Generic.IReadOnlyList<string>, Silk.NET.Core.Native.NativeStringEncoding)
    Silk.NET.Core.Native.SilkMarshal.StringArrayToPtr(System.Collections.Generic.IReadOnlyList<string>, Silk.NET.Core.Native.NativeStringEncoding)
    ...
    [Call Stack Truncated]

Workaround
using a byte[] works, which can be easily achieved like so
byte[] codeBytes = new byte[Encoding.Default.GetByteCount(Kernels.LayoutKernel) + 1];
Encoding.Default.GetBytes(Kernels.LayoutKernel, 0, Kernels.LayoutKernel.Length, codeBytes, 0);
fixed (byte* code = codeBytes)
{
	_program = _cl.CreateProgramWithSource(_context, 1, in code, null, out err);
	if (err != 0) return err;
}

Steps to reproduce

Platform: Desktop
Framework Version: .NET 7.0
API: OpenCL (Silk.NET.OpenCL v 2.16.0)
API Version: OpenCL 2.2? 3.0? no idea how to find out

create a valid context
get a device pointer
call the function above with valid parameters

Comments
if you need the rest of the setup code, its in the repo linked with the kernel

I've fixed this issue in an upcoming PR.
I unfortunately couldn't reproduce. I added this file's contents (perma link because original link was dead) as a single string constant, and passed a string array of length 1 containing that constant to SilkMarshal.StringArrayToPtr.
However, I did manage to find what I think was the bug. For a while now we always encode LPStrs as if they were LPUTF8Strs, but didn't account for this in GetMaxSizeOf. The calculation for LPStr can vary from system to system. As such, I've just changed it to use the proper calculation which will fix your issue.

Oh very nice, your plausible cause of the bug is also what I found when I stepped through the conversion, the lengths were off by a few bytes iirc. "Fixed" it on my end with the proposed workaround, but thanks anyways for maintaining!

Closed by #1372


Release 0.30.0

Rebased to include the unit test fix.

merging without @augray approval, since we need to release this soon and i have another approval