Fixes to download + SBOM validation scripts

Post-GA fixes to the download + SBoM validation scripting introduced via https://github.com/adoptium/temurin-build/issues/3484. Note that this does not address the other issues with this as per #3621 #3565

Stop forcing VERBOSE to false
Show start/end times for downloads because ... it's interesting to note
Stop displaying the GPG output in the log because it's just noise
Fix minimum number of artifacts in tarballs (AIX static libs has 38)
Stop checking for FREEMARKER as we don't use it
Freetype version is now appearing as "Unknown" since we started using bundled freetype - Raised at https://github.com/adoptium/temurin-build/issues/3661
Multiple other freetype versions corrected.
OpenJDK Source Commit in the SBoM appears multiple times - this dedups before trying to use it in a grep operation (!)
Adjust detection of git SHA in the remote repository

Note that jdk8u402-b02 does not pass the tests due to an issue with the Win32 MSI checksum which has a path prefix on the filename. This has been raised at https://github.com/adoptium/temurin-build/issues/3662
Related (and not addressed by this PR):

https://github.com/adoptium/temurin-build/issues/3565
https://github.com/adoptium/temurin-build/issues/3621

When I started on this I thought it was going to be a simple fix but there ended up being quite a lot of changes and a couple of real bugs identified. This is now ready for review and mergin. I have verified it on all four release lines from January, and the only issue is with the sha checksum of jdk8/win32/MSI as linked in the description.
Noting that the compilers checked for in these scripts should be kept in sync with https://github.com/adoptium/temurin-build/blob/master/FAQ.md#what-are-the-prerequisites-for-a-system-used-for-builds

Adding Andrew as reviewer as he volunteered yesterday :-)


BaseWorkflow should parse string, not read a file

What would you like to be added:
BaseWorkflow.fromSource relies on a path to read a file and then parse its content. This means it requires access to either the nodejs' fs api or browser's file api to access the file's content before parsing it. I think BaseWorflow should at least expose a method to parse Workflow from a string.
Why is this needed:
Removes the need of file/fs api and provides a more flexible method (the developper can then read the source from an URL, a DB, whatever he fancies)
Related to #66
Related to #65

agree @JBBianchi , thank you!!


Permission settings in json-server

Could PUT DELETE permissions to individual users can change it？
Such as user1 can PUT or DELETE http://localhost:3000/posts/1  but user2 can't .
or session verification？

Yes, but for this you need to use the project as a module.
Basically, JSON Server is just an Express server with a REST router linked to a JSON file.
Therefore, you can add authentication middlewares, routes, and so on... before getting to the JSON Server router.
This is a very basic example, but it should give you an idea:
var jsonServer = require('json-server')

var server = jsonServer.create()
var router = jsonServer.router('db.json')
var db = router.db // See https://github.com/typicode/lowdb

server.use(jsonServer.defaults)

server.put('/posts/:id', function (req, res, next) {
  var loggedUserId = ... // Retrieve logged user id
  var post = db('posts').get(req.params.id) // Get resource by id
  if (post.userId === loggedUserId) { // Test if loggedUser owns post
    // Yes? Continue to JSON Server router
    next()
  } else {
    // No? Stop
    res.sendStatus(403) // Forbidden
  }
})

server.use(router)

server.listen(3000)

There must be other middlewares that makes the authentication easier.
Personally, I don't have much experience with them but suggestions are most welcome.
Feel free to ask any other question if needed.

Thx @typicode .


Cannot run without doppler shift

I am trying to simulate gps signals specifically without a doppler shift. How would I achieve this? So far, I've tried editing/commenting out parts of lines 1324-1328 in gpssim.c, but my attempts either don't produce a valid gps signal or the doppler remains shifted. Any help would be greatly appreciated.
Thanks.

How did you test the validity of the simulated GPS signal?

I use a ublox receiver and I calculate what the doppler shift should be (given the satellite's ephemeris) and what the measured doppler actually is. The code uses the ublox libraries and can precisely predict what the doppler should be.
When spoofing the satellites, I am well indoors, so I am unable to get real satellite signals. The problem that I'm having is that I can't get the measured spoofed signals' doppler to be different than the predicted values.

The Doppler measurements contain the receiver clock frequency offset. You can't compensate for it without calculating the velocity of the antenna (and the receiver clock frequency) from the Doppler measurements.

Ah, so that's what the offset is. I am not compensating for the receiver clock frequency offset, but it remains relatively constant so I can still look at trends between the calculated vs measured. Think of it as being precise, but not accurate.  Also, I'm running my tests stationary, so I know the velocity is zero.


Add endpoint to create categories

Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.

[x] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your master!
[x] Make sure you are making a pull request against the dev branch. Also you should start your branch off dev branch.
[x] Check you have added tests that prove your fix is effective or that your feature works.
[x] Check your code additions will fail neither code linting checks nor unit test.
[x] Check you added any notable changes to the CHANGELOG.md file.

Description
This PR fixes #190, adding an endpoint to create categories.
💔Thank you!
👍 Happy to help!

Codecov Report

Merging #328 into dev will increase coverage by 0.84%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##                dev     #328      +/-   ##
============================================
+ Coverage     77.91%   78.75%   +0.84%
- Complexity      251      256       +5
============================================
  Files            87       88       +1
  Lines           824      838      +14
============================================
+ Hits            642      660      +18
+ Misses          182      178       -4

Impacted Files
Coverage Δ
Complexity Δ

app/Models/Category.php
0% <ø> (ø)
1 <0> (ø)
:arrow_down:

app/Http/Controllers/CategoryController.php
100% <100%> (ø)
3 <2> (+2)
:arrow_up:

app/Http/Requests/CategoryStoreRequest.php
100% <100%> (ø)
2 <2> (?)

app/Repositories/CategoryRepository.php
100% <100%> (ø)
3 <3> (?)

app/Http/Requests/StoreMessageRequest.php

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 2edbc11...a20c527. Read the comment docs.


Support session-timeout of 0 or less (no session expiration)

From martin.grotzke on March 12, 2011 21:15:19
The servlet spec (2.5/3.0: SRV.13.4 Deployment descriptor) says that if the session-timout is 0 or less that by default sessions never expire (while setMaxInactiveInterval(0) causes a session.expire()).
Right now this is not supported by msm as the session timeout is used to determine the expiration in memcached. A session stored in memcached with a 0 or negative expiration will not be returned by memcached on subsequent requests.
If the application uses a session-timeout <= 0 the session should be stored with the maximum possible expiration in memcached.
Original issue: http://code.google.com/p/memcached-session-manager/issues/detail?id=88

From martin.grotzke on March 12, 2011 12:15:43
(No comment was entered for this change.)
Summary: Support session-timeout of 0 or less (no session expiration)

From martin.grotzke on March 12, 2011 14:19:54
Fixed in master and tomcat7 branch.
Status: Fixed


Laziness

Laziness can be useful with algebraic types.  I recently implemented an experimental approach to laziness in my partial.lenses library.  The idea is briefly discussed in issue 56.
The experimental approach used in partial.lenses is based on having an optional delay operation.
Concretely, in the case of Monoids, the optional delay has a signature like:
delay :: Monoid a => (() -> a) -> a

And in the case of Applicatives, the delay has a signature like:
delay :: Applicative c => (() -> c a) -> c a

In some cases, it is possible to derive the delay operation from other operations.  In the case of Monads:
const deriveDelayForMonad = M => u2xM =>
  M.chain(_ => u2xM(), M.of(undefined))

The support for laziness in partial.lenses is considered experimental partly due to not having the concept in the Static Land Specification.  Perhaps Static Land could be enhanced with support for laziness?
Addition: The F# Computation Expression Zoo paper contains some relevant discussion on considerations for impure effects and delayed computations in a strict language in conjunction with algebraic types (mostly Monads).

Interesting. Basically delay() would allow to provide a function returning value of type a whenever we're supposed to provide a value of type a. It's like we can replace any value with something like Haskell's thunk containing the value.
Nice idea! I have no strong opinion about adding this to the spec yet though. Very curious what others think.

how lazy evaluation with thunks is useful in the context of iterative functions

It allows e.g. iteration to be stopped after a fixed point has been reached.
Here is a self-contained example.  Note that I'm writing the code here in a naïve, inefficient, way to make it clearer.
As we are programming in an eager language, we need some explicit machinery to express laziness.  Here is a kind of minimal vocabulary for laziness:
// lazy :: (() -> a) -> Lazy a
const lazy = th => () => {
  if (typeof th === "function")
    th = {value: th()}
  return th.value
}

// force :: Lazy a -> a
const force = delayed => delayed()

lazy introduces a lazy computation and force extracts the result of such a computation.
Here is a lazy monoid for computing disjunctions:
const LazyOr = {
  delay(th) {
    return lazy(() => force(th()))
  },
  empty() {
    return lazy(() => false)
  },
  concat(lhs, rhs) {
    if (force(lhs))
      return lhs
    else
      return rhs
  }
}

The implementation of delay may seem odd.  The type of a LazyOr element is:
type LazyOr = Lazy Bool

and the type of delay is:
delay :: (() -> LazyOr) -> LazyOr

This explains the delay.  First of all it must return a LazyOr value without immediately invoking the thunk.  So, it must call lazy with a new thunk. Inside the new thunk it must first invoke the given thunk to get a LazyOr value.  But this is not sufficient.  The LazyOr value must also be forced.
A monoid can be lifted to an applicative:
function ConstOf(Monoid) {
  const Const = {
    map(_, x) {return x},
    ap: Monoid.concat,
    of(_) {return Monoid.empty()}
  }
  if (Monoid.delay)
    Const.delay = Monoid.delay
  return Const
}

Here is the lazy traversal from the partial.lenses issue without Ramda:
const traverse = (A, x2yA, xs) => A.delay(() =>
  xs.length === 0
  ? A.of([])
  : A.ap(A.map(x => xs => [x].concat(xs), x2yA(xs[0])),
         traverse(A, x2yA, xs.slice(1))))

We can now use traverse to fold over lists lazily:
force(traverse(ConstOf(LazyOr),
               x => (console.log(x), lazy(() => x > 3)),
               [3, 1, 4, 1, 5, 9]))
// 3
// 1
// 4
// true

@polytypic thanks for this in-depth reply. The sketch is impressing!
I think e.g. purescript forgoes general lazy evaluation because with Javascript as a compile target it gets pretty expensive. And directly encoded in Javascript the resulting code is somehow hard to read or at least looks unfamiliar.
The crucial question is, what benefits entail with laziness that you can't achieve by other means.
For instance, I use a special version of fold when I want to exit an iteration prematurely. Admittedly, foldable is not traversable, but I guess you can implement a corresponding traverse easily:
const foldlk = f => acc => xs => {
  const next = (acc, i) => xs.length === i
   ? acc
   : f(acc, xs[i], i) (acc => next(acc, i + 1));

  return next(acc, 0);
};

const any = f => foldlk(
  (acc, x) => k => f(x)
   ? true
   : k(acc)
) (false);

const xs = [3, 1, 4, 1, 5, 9];
const gt = y => x => (console.log(x), x > y);
any(gt(3)) (xs); // 3, 1, 4, true

However, I don't have enough experience to say yes or no to a delay function. Maybe others can chime in.


Added azlen.me

Doesn't meet requirements met in README
> Submit a Pull Request with the location of the webring icon on your site.

Feel free to submit another PR with the correct information.


Pagination: Moves position

Tested it out and noticed some issues:
Issue 1
When on page 1 and clicking on next arrow, the prev-arrow is added and push the buttons so if I click again w/o moving mouse I go to last page.

Maybe arrows should always keep it's space?
The dots are also changing right arrow position, but maybe not a problem.
Issue 2
Doesn't seem to work with keyboard navigation (Enter or Space) to select pages or prev/next
Originally posted by @vsjolander in https://github.com/sebgroup/green/pull/735#pullrequestreview-1321664359

I agree it is troublesome it changes position and width depending on what is selected.
Looks like enter now works (but not space).


Auto import doesn't work in VS Code

Every time we should type imports by hand and VS Code doesn't help us with imports.
Is this a problem with library or VS Code? I tested this in several computers and none of them work.

I've noticed that too - I thought it was my VSCode. If it's a problem with the library I have no idea what it could be, but I'll look into it. And if anyone knows how to solve it, I would appreciate the help :)

Oh yes you're right. This project is using a monorepo somehow. I close this issue since it is working fine in a normal project.


pattern match with exhaust

Hi, thanks for the effort to showcase the power of SoN IR, really appreciate it.
May I ask if a demo of  pattern match with exhaust can be done in SoN IR? Thanks

I'm not sure what "pattern match with exhaust" is!?
Certainly C2/HotSpot uses SoN IR, and certainly C2 compiles all of Java, including the Pattern & Match classes.

Sorry, I am talking about how to check if one of the branches is redundant in the match expression.
For example, in the following match expression in Rust, here we see the 4th pattern is redundant with the 1st, that branch will get an "unreachable" warning.
// x: (bool, Option<Foo>)
match x {
    (true, _) => {} // 1
    (false, Some(Foo::Bar)) => {} // 2
    (false, Some(_)) => {} // 3
    (true, None) => {} // 4
}

understood that in Java, we can implement switch with default, just wondering how to check branch redundancy in swith  in SoN IR without default
void checkResult(Result result){
    return switch (result) {
        case Success s -> System.out.println("ok");
        case Failure f -> System.out.println("not ok");
        default -> throw new IllegalArgumentException("Unexpected Input: " + result);
    };
}

@yorickpeterse wrote about implementing pattern matching in https://github.com/yorickpeterse/pattern-matching-in-rust after surveying the literature. It's currently used by Inko and Gleam, so you can also look there (both extend it in various ways).
Pattern matching and exhaustiveness analysis are orthogonal to Sea of Nodes, so I doubt they'd be added to Simple. Matches are lowered to a decision tree of ifs and bindings and the codegen doesn't require the analysis.

Yeah @thaliaarchi has it right, mostly orthogonal.  Some simple patterns can be picked up by the type system "for free", in that they'd just happen without doing anything special.  But past simple patterns... I'd do a custom analysis in both Simple and e.g. GCC

Closing as an issue, although happen to have more discussion.


unable to load save files

Error
An exception was thrown (press Ctrl+C to copy):
System.IO.FileLoadException: Could not load file or assembly 'protobuf-net, Version=<IP_ADDRESS>0, Culture=neutral, PublicKeyToken=257b51d87d2e4d67' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'protobuf-net, Version=<IP_ADDRESS>0, Culture=neutral, PublicKeyToken=257b51d87d2e4d67'
at Gibbed.Borderlands2.FileFormats.SaveFile.Deserialize(Stream input, Platform platform, DeserializeSettings settings)
at Gibbed.Borderlands2.SaveEdit.ShellViewModel.<>c__DisplayClass29.b__1e()
at Caliburn.Micro.Contrib.Results.DelegateResult.Execute(ActionExecutionContext context)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
thats what i get when i try and open any of my save files in gibbed. not sure if i need to update it or not. ive got the latest version from your other site and dont see anything to click to see if theres any updates

You did not extract it properly or are missing files. For the old version on my site, there should be an assemblies directory next to Gibbed.Borderlands2.SaveEdit.exe with protobuf-net.dll in it.

whats the latest version??? ive never used github and cant figure out where to find the download button for the installer

never mind i got it working thanks for the quick reply and thanks for the help


[FLINK-3879] [gelly] Native implementation of HITS algorithm

Hey @greghogan,
was there consensus regarding this change? I see the numbers, but did anyone review this PR?

I don't doubt that you have done a great job, but it is always better to let someone review your code before you merge. We don't usually merge PRs without a +1 unless it is something trivial. I understand things move faster this way, but we are in a community and we should try to collaborate.
Please, leave a comment next time you think a PR has stayed with no review for a long time or ping me personally if you want a 2nd pair of eyes on gelly stuff :)
Thanks!


Wrong min attribute in Modelica.Blocks.Nonlinear.SlewRateLimiter

Reported by christiankral on 26 Sep 2015 07:11 UTC
In model Modelica.Blocks.Nonlinear.SlewRateLimiter the positive and negative slew rates are
  parameter Modelica.SIunits.DampingCoefficient Rising( min= small) = 1
    "Maximum rising slew rate [+small..+inf)";
  parameter Modelica.SIunits.DampingCoefficient Falling(min=-small) = -Rising
    "Maximum falling slew rate (-inf..-small]";

Since the Falling shall be negative according to the doc string and the equation
  der(y) = smooth(1, noEvent(min(max((u - y)/Td, Falling), Rising)));

The correct parameter delcaration of Falling shall be
  parameter Modelica.SIunits.DampingCoefficient Falling(max=-small) = -Rising
    "Maximum falling slew rate (-inf..-small]";

This issues applies to trunk and the actual maintainence branch of the MSL.

Migrated-From: https://trac.modelica.org/Modelica/ticket/1790

Comment by dietmarw on 26 Sep 2015 22:37 UTC
This is a duplicate of #1571 and has already been fixed in milestone:MSL3.2.1+build.3


ValueError: cannot reshape array of size 0 into shape (500000,87)

I refer to this link: https://blog.csdn.net/dakeboy/article/details/88065399
Under the directory of training, I run the command of "./bin2hdf5.py /Users/suizhongyuan/Desktop/RNNoise/rnnoise/src/output.f32 500000 87 > ./denoise_data9.h5".
And I got this error as below:

suizhongyuan@suizhongyuandeMacBook-Pro training % ./bin2hdf5.py /Users/suizhongyuan/Desktop/RNNoise/rnnoise/src/output.f32 500000 87 > ./denoise_data9.h5
Traceback (most recent call last):
File "./bin2hdf5.py", line 10, in
data = np.reshape(data, (int(sys.argv[2]), int(sys.argv[3])));
File "/Library/Python/2.7/site-packages/numpy/core/fromnumeric.py", line 292, in reshape
return _wrapfunc(a, 'reshape', newshape, order=order)
File "/Library/Python/2.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: cannot reshape array of size 0 into shape (500000,87)
I have no idea to handle it. Can I get a clue?

I fixed it by myself. It should run on Python3, and Keras needs TensorFlow 2.2 or higher.

I fixed it by myself. It should run on Python3, and Keras needs TensorFlow 2.2 or higher.

I refer to this link: https://blog.csdn.net/dakeboy/article/details/88065399
Under the directory of training, I run the command of "./bin2hdf5.py /Users/suizhongyuan/Desktop/RNNoise/rnnoise/src/output.f32 500000 87 > ./denoise_data9.h5".
And I got this error as below:
suizhongyuan@suizhongyuandeMacBook-Pro training % ./bin2hdf5.py /Users/suizhongyuan/Desktop/RNNoise/rnnoise/src/output.f32 500000 87 > ./denoise_data9.h5
Traceback (most recent call last):
File "./bin2hdf5.py", line 10, in
data = np.reshape(data, (int(sys.argv[2]), int(sys.argv[3])));
File "/Library/Python/2.7/site-packages/numpy/core/fromnumeric.py", line 292, in reshape
return _wrapfunc(a, 'reshape', newshape, order=order)
File "/Library/Python/2.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: cannot reshape array of size 0 into shape (500000,87)
I have no idea to handle it. Can I get a clue?

I fixed it by myself. It should run on Python3, and Keras needs TensorFlow 2.2 or higher.

I refer to this link: https://blog.csdn.net/dakeboy/article/details/88065399
Under the directory of training, I run the command of "./bin2hdf5.py /Users/suizhongyuan/Desktop/RNNoise/rnnoise/src/output.f32 500000 87 > ./denoise_data9.h5".
And I got this error as below:
suizhongyuan@suizhongyuandeMacBook-Pro training % ./bin2hdf5.py /Users/suizhongyuan/Desktop/RNNoise/rnnoise/src/output.f32 500000 87 > ./denoise_data9.h5
Traceback (most recent call last):
File "./bin2hdf5.py", line 10, in
data = np.reshape(data, (int(sys.argv[2]), int(sys.argv[3])));
File "/Library/Python/2.7/site-packages/numpy/core/fromnumeric.py", line 292, in reshape
return _wrapfunc(a, 'reshape', newshape, order=order)
File "/Library/Python/2.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: cannot reshape array of size 0 into shape (500000,87)
I have no idea to handle it. Can I get a clue?

I fixed it by myself. It should run on Python3, and Keras needs TensorFlow 2.2 or higher.


[Question] Separate or-statements when using left join

Further technical details
EF Core version: 1.1.2
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2017 Community
I have posted a question to Stackoverflow but the response is low so I take a shoot here to see if any one can point me in the right direction
So another approach that fails on

Intersect wont evaluate on the server side
`LEFT JOIN ... ON .. = .. AND Id IN ( ... INTERSECT ...)

var budget = _context.InstagramChannels
                        .Where(i => i.Cost / _multiplicator <= message.Budget)
                        .Select(i => i.Id);
                    if (message.Gender == Gender.Female || message.Gender == Gender.Male)
                    {
                        var g = message.Gender;
                        var gender = _context.Set<InstagramGenderDistribution>()
                            .Where(d => d.Gender == g && d.Distribution >= 0.5m)
                            .Select(d => d.ChannelId);
                        budget = budget.Intersect(gender);
                    }

                    if (message.Ages.Any())
                    {
                        var a = message.Ages;
                        var ages = _context.Set<InstagramAgeDistribution>()
                            .Where(d => d.Distribution > 0 && a.Contains(d.AgeRangeId))
                            .Select(d => d.ChannelId);
                        budget = budget.Intersect(ages);
                    }

                    var ids = budget.ToList();

query = from q in query
                            join c in _context.InstagramChannels on
                            new
                            {
                                q.Id,
                                In = true
                            } equals
                            new
                            {
                                Id = c.ProfileId,
                                In = ids.Contains(c.Id)
                            } into grouping
                            from g in grouping.DefaultIfEmpty()
                            select q;

Desired SQL

declare @gender int = 2

SELECT [p].[FullName], [p.YoutubePrimary].YoutubeId, [p.Blog].Id [Blog], [p.Instagram].Id [Instagram]
FROM [Profiles] AS [p]
LEFT JOIN [PrimaryYoutubeChannel] AS [p.YoutubePrimary] ON [p].[Id] = [p.YoutubePrimary].[ProfileId]
LEFT JOIN [BlogChannels] AS [p.Blog] ON [p].[Id] = [p.Blog].[ProfileId]
LEFT JOIN [InstagramChannels] AS [p.Instagram] ON [p].[Id] = [p.Instagram].[ProfileId] AND [p.Instagram].[Id] IN
( SELECT [d].[ChannelId]
    FROM [InstagramGenderDistribution] AS [d]
    WHERE ([d].[Gender] = @gender) AND ([d].[Distribution] >= 0.5)
	INTERSECT
    SELECT [i].[Id]
    FROM [InstagramChannels] AS [i]
    WHERE ([i].[Cost] / 0.35) <= 50000)
WHERE (([p].[IsCertified] = 1) AND ([p].[Country] = N'se')) AND

([p.Instagram].[Id] IN (
    SELECT [d].[ChannelId]
    FROM [InstagramGenderDistribution] AS [d]
    WHERE ([d].[Gender] = @gender) AND ([d].[Distribution] >= 0.5)
	INTERSECT
    SELECT [i].[Id]
    FROM [InstagramChannels] AS [i]
    WHERE ([i].[Cost] / 0.35) <= 50000
))
OR
([p.Blog].[Id] IN (
    SELECT [d0].[ChannelId]
    FROM [BlogGenderDistribution] AS [d0]
    WHERE ([d0].[Gender] = @gender) AND ([d0].[Distribution] >= 0.5)
) AND [p.Blog].[Id] IN (
    SELECT [i0].[Id]
    FROM [BlogChannels] AS [i0]
    WHERE ([i0].[Cost] / 0.35) <= 50000
)) OR
 ([p.YoutubePrimary].[YoutubeId] IN (
    SELECT [d1].[ChannelId]
    FROM [YoutubeGenderDistribution] AS [d1]
    WHERE ([d1].[Gender] = @gender) AND ([d1].[Distribution] >= 0.5)
) AND [p.YoutubePrimary].[YoutubeId] IN (
    SELECT [i.Youtube].Id
    FROM [PrimaryYoutubeChannel] AS [p1]
    INNER JOIN [YoutubeChannels] AS [i.Youtube] ON [p1].[YoutubeId] = [i.Youtube].[Id]
    WHERE ([i.Youtube].[Cost] / 0.35) <= 50000
))

Closing this as I can't identify the original issue


User should not be able to add to cart if product does not have a price

Environment Details
Spartacus: develop
Browser: Chrome
Device: mac
Happens on: http://dev-com-10.accdemo.b2c.ydev.hybris.com:4200/electronics-spa/en/USD
Steps to Reproduce
I don't remember the exact steps, because I've been playing with the prices. I'll try again tomorrow and put the exact steps. But I think it's these:
Scenario 1

remove the price rows from a product in the online catalog in backoffice.
Go to pdp page of the product
Add to cart
Go to cart page -> The product is $0.

Scenario 2

Add a price row to that product in the online catalog in backoffice.
GO to pdp page of the product.
Add to cart
Remove the price rows from a product in the online catalog in backoffice.
Go to cart page
Try to remove the product, update the qty or checkout -> cannot do any of these, so user is stuck with that cart and cannot do anything with it.

Actual Result
In Scenario 1, user should not be able to add to cart if the item does not have a price. So either, disable to button or give an error.
In Scenario 2, maybe display a message to the user to remove the item from cart and allow him to remove it from cart, and not proceed with checkout. Or remove it from cart for the user.

There's a difference between no price and a price of 0 too i assume...
Proposing we:

disable add to cart whenever price doesn't exist
remove item from cart if price doesn't exist (for example, a product was added and then price was changed) - display a message in this case like "The product xyz was removed due to an error." This is a weird case but possible I guess. I'm wondering why the backend cart doesn't handle this and reject adding to cart.

I got an error message Cart model 00000012 was not calculated due to: No price defined for product: ProductModel<PHONE_NUMBER>113@27) in Scenario 1. So, product is not added to cart.
In Scenario 2, there is also an error message.
I don't think we should disable the "add to cart" button, because if there is no price (not 0.0) for a product, then it is the product setting error in backend. It should be fixed in backend.
The only property that determine whether "add to cart" button disable or not is purchasable. If product is purchasable, then it should be able to be added to cart.

I've tried to reproduce it today but I see a different behavior today.

If you were already on the pdp, and the price is removed, then you can add the item. But then after refreshing the page, the item is removed from the cart, which is ok. The error message could be nicer though. (at 1:45min)
Then if you keep trying to add an item, it looks like it wasn't added. But then when you add the price row again, and add the item, it adds 2 items (at 4:05)

I can't attach the video here, will send it to Wei.

I managed to reproduce the $0.00 issue. but I still haven't pinned down the exact steps.
I think the user needs to be logged in.

After talking to Wei, conclusion is:
When the product does not have a price, the status will be "check". When that's the case, the product isn't visible to the user, so he cannot add it to cart.
However, if the user already had the product in his cart, prior to removing the price and changing the status to 'check', this ends up in a non-functional cart. The user cannot remove the item, update the qty or proceed to checkout. So basically, the user can no longer shop at this point, which is not good for business :) Wei said it's a backend issue. So opened this ticket: https://jira.hybris.com/browse/C3PO-1917

Hi @KateChuen we're having a similar issue with SAP Commerce 1905 and Spartacus, I do not have access to see ticket https://jira.hybris.com/browse/C3PO-1917, I would like to know what was the conclusion of this, if this is OOTB behavior and we should customize disabling add to bag button when the product does not have a price?
I don't think it is a good idea changing the status of the product to "check" since some clients want to still display products for SEO purposes.
Let me know your thoughts, thanks.


New package: Dataflare.Dataflare version 1.7.0

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

@microsoft-github-policy-service agree

/azp run

Hi, how can I fix it? Is it related to the installer being unsigned?

/azp run

Automatic Validation ended with:

Installation failed with exit code -1978335226
2024-07-31 02:13:00.582 [CLI ] ShellExecute installer failed: 2

Automated error analysis suggests -1978335226 may mean Running ShellExecute failed
(Automated response - build 887.)

@wingetbot waivers Add Validation-Shell-Execute

Verify:


CMake script for c++11 version

Hi kreopt,
Unfortunately, I'm keeping this repo to have only code files. Each user will use their own tool chains with the codes.
Thanks for using sqlite3pp and your contribution.


Graceful error handling when loading malformed data.

When loading data using the COPY command if the input file is malformed, then we abort printing the following message:
libc++abi.dylib: terminating with uncaught exception of type quickstep::TextScanFormatError: TextScanFormatError: Malformed data encountered during text scan (Row has too many fields)

Handle such errors gracefully by warning the user and aborting the load, and not crashing the system.

There are a lot of throw statements in the file. I can replace them with SQL_ERRORS which will be caught by the CLI.

Oh I see, specifically, the errors defined by Glob.h:
    The glob() function shall fail and return the corresponding value if:
    GLOB_ABORTED
        The scan was stopped because GLOB_ERR was set or (*errfunc()) returned non-zero.
    GLOB_NOMATCH
        The pattern does not match any existing pathname, and GLOB_NOCHECK was not set in flags.
    GLOB_NOSPACE
        An attempt to allocate memory failed.

From glob.h


fix: 🐛 remove swc dependencies

https://github.com/wechaty/wechaty/issues/2549

Why isn't CI running...


Define: Fitness Functions

Architecture as Code: Glossary Definition
Please see Architecture as Code: Glossary Definition for details on how to help with this definition.
Title
Fitness Functions
Definition
Ability to map a systems documented architecture against verifiable fitness scores

A fitness function is a particular type of that is used to summarise, as a single [figure of merit], how close a given design solution is to achieving the set aims (1).
Ideally, fitness functions should describe the intent of the “-ility.” It addresses it in terms of an objective metric that is meaningful to product teams or stakeholders. Monitoring critical qualities as fitness functions can help product teams avoid architectural drift and objectively measure technical debt. (2)
The fitness function metaphor encompasses a variety of mechanisms we employ to ensure architecture doesn’t change in undesirable ways, including metrics, tests, and other verification tools. When an architect identifies an architectural characteristic they want to protect as things evolve, they define one or more fitness functions to protect that feature. (3)
References:

https://en.wikipedia.org/wiki/Fitness_function
https://www.thoughtworks.com/en-gb/insights/articles/fitness-function-driven-development
Ford, Parsons, Kua and Sadalage (2022), Building Evolutionary Architectures, 2nd Edition, O'Reilly


about the "get_free_gpus()" function

https://github.com/hitachi-speech/EEND/blob/b851eecd8d7a966487ed3e4ff934a1581a73cc9e/eend/chainer_backend/utils.py#L40
when there are 2 process running on the same GPU IDs，the "del gpus[busid]" will raise key error.

If there are 2 process running on the same GPU IDs, You should change the code here. First determine whether the key exists in gpus now. If exist, then delete,otherwise do nothing. This way, the second attempt to delete won't raise key error.


Add central SECURITY file for all repos

Done in https://github.com/jazzband/.github/commit/5961641bc973525d9e1eca24a5d985cf3df2fdb1.


Add import for ComponentParser, MetaComponent, and EnvironmentParams

These imports ensure that the orchestrator components are available for testing. This change addresses potential missing dependencies during test execution by explicitly importing necessary modules.

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

Project coverage is 90.05%. Comparing base (3c694e9) to head (4461d44).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #14   +/-   ##
=======================================
  Coverage   90.05%   90.05%
=======================================
  Files           9        9
  Lines         191      191
=======================================
  Hits          172      172
  Misses         19       19

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


Create a subclass of MediaStore for model_3d: Model3DStore

Problem

We need to clean the 3D Models data before saving it to a TSV.
Description

Catalog uses the MediaStore class to clean up the ingested data and to save it to TSV files. To add support for model_3d media type, we need to create a Model3DStore subclass that would be similar to AudioStore and MediaStore.
Additional context

This will be in openverse_catalog/dags/common/storage/model_3d.py, and will use the data fields defined in WordPress/openverse#1588.
Implementation

[ ] 🙋 I would be interested in implementing this feature.

Closing as 3d models are indefinitely on hold and no work should be done on them until we re-plan this project.


Using BigInt primitives

Is this a bug report?
No
Did you try recovering your dependencies?
n/a
Which terms did you search for in User Guide?
bigint, babel plugin,babel syntax macro, "Identifier directly after number"
Environment
n/a
Steps to Reproduce
(Write your steps here:)

Use a BigInt primitive, e.g., 42n
Define supported browsers in package.json to be last 1 chrome version. I.e., ignore targets that haven't implemented BigInts yet.

Expected Desired Behavior
A way to use BigInt primitives in CRA without ejecting.
BigInt (Spec) is currently at Stage 4, with support in Node (since 10.4) and all major desktop and mobile browsers Caniuse details.
Side note: You can get partial support by declaring the global (/* global BigInt */) if each BigInt is wrapped (BigInt(42) or BigInt('42')). However this still means that a code rewrite will be needed once full support lands to remove the clunky syntax.
Actual Behavior
Syntax error:
Identifier directly after number
Reproducible Demo
const foo = 42n;

(Edited to reflect this proposal has moved to Stage 4 and has additional browser support and removed reference to the Babel plugin which is no longer necessary.)

BigInt is now shipped in evergreen browsers (https://caniuse.com/?search=bigint). But create-react-app doesn't seem to allow it yet.

it is now possible to use BigInt in supported environments, however it is not possible to use the ** operator as it is converted to Math.pow which doesn't support BigInt causing transpiled/optimised code to fail.
Apparently the solution is to somehow deactivate babel-plugin-transform-exponentiation-operator but I have not managed to disable it in react-scripts or babel-react-preset.
My workaround was to write my own pow function that uses BigInt for my simple usecase

export function simplePow(x: bigint, y: bigint) {
	let calced = 1n;
	for (let i = 0, e = y; i < e; i++) {
		calced *= x
	}
	return calced;
}


[CARBONDATA-1624]Set the default value of 'carbon.number.of.cores.while.loading' as per the spark conf 'spark.executor.cores'

Use 'spark.executor.cores' as the default value for 'carbon.number.of.cores.while.loading'
Use 'CarbonProperties.getNumberOfCores()' to get 'carbon.number.of.cores.while.loading' uniformly

Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

[ ] Any interfaces changed?

[ ] Any backward compatibility impacted?

[ ] Document update required?

[ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@ravipesala @sounakr @jackylk please take a look, thanks.

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/755/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/756/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1392/

retest this please

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1393/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/757/

retest this please

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1394/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/758/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1395/

@ravipesala please help to check why it builded failed. All modules were builded successfully.

retest this please

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/765/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1401/

retest this please

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/773/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1406/

retest this please

@zzcclp Can you please put this proposal to dev mailing list for discussion.  why change the settings, what benefit can get ?

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/781/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1414/

retest this please

@chenliang613 we have discussed this in mailing list Optimize the default value for some parameters, and some discussions are in CARBONDATA-1624.

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/785/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1418/

retest this please

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/786/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1419/

retest this please

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/787/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1420/

@ravipesala @jackylk please help to review.  I don't know why it builded unsuccessfully, how to resolve it?

@zzcclp Because of you have changed the number of cores the test case fails. You may require updating the test case to fix it.

but there is no error showed in the console?

@ravipesala @jackylk why it used 2 as the default value of 'carbon.number.of.cores.while.loading' before?

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/793/

@jackylk @ravipesala I have fixed the error of test case, please review.

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1426/

Please do not delete the PR template, it is useful for reviewer and committer to maintain this PR later. Please add it to the description of this PR:
 - [X] Any interfaces changed?
   No

 - [X] Any backward compatibility impacted?
   No

 - [X] Document update required?
   Yes, the XXX part document need to be updated

 - [X] Testing done
   A new testcase for XX is added

 - [X] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
    NA

@jackylk please review.

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/819/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1452/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/822/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1455/

@jackylk please review, thanks.

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/826/

retest this please

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1461/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/830/

retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/834/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1467/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/837/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/865/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1486/

According to the discussion with @jackylk  and @sounakr  offline, to modify the logic of getting value of 'carbon.number.of.cores.while.loading', default value is the value of 'spark.executor.cores'.
@jackylk  @sounakr , please review it, thanks.

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/889/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1504/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/901/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/1516/

LGTM, thanks for working on this

LGTM

thanks @jackylk @sounakr


use some nice C# features for more conscience boss rush injection code (LSP suggestions)

uses ^1 for accessing last element and variable ??= value as a shorthand for if(variable == null) variable = value

Awesome!


[FEA] Provide a way/example to use cuCIM with Dask for DataLoading(Pytorch's Dataloader-like API)

Is your feature request related to a problem? Please describe.
PyTorch's DataLoader class is used in many DeepLearning training applications to load training data and pre-process the data, before feeding to AI model.
Since PyTorch's DataLoader is running in multi-processes, it is hard to use cuCIM's scikit-image APIs (which makes use of CUDA) in the pre-transformations of the DataLoader due to CUDA context issues.
It would be nice to provide a way/example to use cuCIM with DeepLearning Frameworks such as PyTorch.
Describe the solution you'd like
PyTorch's DataLoader works like this. It would be nice if we have a PyTorch's DataLoader-like utility class in Dask that mimics Pytorch's DataLoader behavior but implemented with Dask (dask-cuda) for the parallelization of data loading (so providing a generator/iterator that gives a batch of processed image data).
Describe alternatives you've considered

To use cuCIM in the training pipeline, we currently move GPU-accelerated pre-transforms from PyTorch DataLoader's transformation(using Compose) to the main thread (place GPU-based batch pre-transformation right before feeding to the AI model, and right after getting CPU-loaded/pre-transformed training data by DataLoader.), to avoid CUDA context issues.
It would be good if we also provide an example with that approach.

Additional context
Relevant information regarding CuPy+PyTorch.

https://github.com/cupy/cupy/issues/2762
https://pytorch-pfn-extras.readthedocs.io/en/latest/user_guide/cuda.html
https://github.com/pytorch/pytorch/issues/31565
https://github.com/cupy/cupy/pull/4322

With Numba to get cuda context.

https://github.com/numba/numba/blob/1fc53ecb6183f441498c0e082e748e6792e29791/numba/cuda/cudadrv/devices.py#L130

I would be happy to take a look at this!

NVTabular's pytorch dataloader (which is built on Dask) may be agood reference here.  I'll be happy to help advise on this work and clarify what NVTabular is (and isn't) doing.

Thank you, @rjzamora !

Unfortunately,  I have come across some issues with the cuCIM codebase that are blocking this Dask-based DataLoading solution.
While everything in the cuCIM transform image_rotate_90() should be compatible with a Dask Array input, there is an explicit Type-Check here that throws a TypeError whenever trying to apply cuCIM transforms to a Dask Array.
In order to allow Dask to schedule cuCIM operations - we will likely want to make this "check" more of a duck-type check, that checks for the necessary API interface, as Dask Arrays should be able to pass those checks.


When I call CrossPushNotification.Current.Register I get a System.TypeLoadException

Everything was working fine when using 1.2.2.  Then I updated all the packages and since then I've been getting this System.TypeLoadException (Could not resolve type with token 01000059) when CrossPushNotification.Current.Register() is executed.
I've tried going back to 1.2.2 but the same thing is still happening...

I second this, I updated my packages as well and the same error occured for me!

I third this !
I am also getting this error.
System.TypeLoadException: Could not resolve type with token 0100005a
at Android.App.IntentService.n_OnHandleIntent_Landroid_content_Intent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_intent) [0x00011] in /Users/builder/data/lanes/4468/b16fb820/source/monodroid/src/Mono.Android/platforms/android-25/src/generated/Android.App.IntentService.cs:119
at at (wrapper dynamic-method) System.Object:8af4103f-e586-41bf-be4a-dc2579d006f0 (intptr,intptr,intptr)
With the typename as  : Android.Gms.Gcm.Iid.InstanceID
Any help here ?

@rdelrosario Tried to fix this here : https://github.com/rdelrosario/xamarin-plugins/pull/118

@Mrnikbobjeff I ended up rolling back using Time Machine.  Just not going to update this package unless I have a good backup first.

Try https://www.nuget.org/packages/Xam.Plugin.PushNotification/1.2.5-beta

Great, with 1.2.5-beta works now!  Error is gone!  Thanks!!

Works for me too @jordisnake. You are the true hero.


Convert from Azure Pipelines to GitHub Workflow

Use a new GitHub Workflow to cover the same scope of what is currently being done by Azure Pipelines
Remove the use of Azure Pipelines from this project
Update the badges on the README

This issue has been addressed by #30


runtime: Go program "just terminates" with exit 0

While hacking on a medium sized golang project, I've found that certain things seem to cause my program to terminate, but without any trace or exit code. I'm assuming this is a golang bug, since there's no clear reason why the program would exit without reason.
I've got a binary that I compiled that experiences this, and I can reproduce it on other machines.
I'm running golang:
go version go1.5.4 linux/amd64
On Fedora 23.
If this is a known issue someone can point me to, I'd appreciate it, otherwise please let me know what I can run to debug this.
Here is the output of my most recent terminate:
./mgmt run
06:12:56 main.go:65: This is: mgmt, version: 0.0.3-48-ga89c332-dirty
06:12:56 main.go:66: Main: Start:<PHONE_NUMBER>777766845
06:12:56 main.go:120: Main: Seeds: No seeds specified!
06:12:56 etcd.go:344: Etcd: Bootstrapping...
06:12:56 etcd.go:1089: Trace: Etcd: nominateCallback()
06:12:56 asm_amd64.s:438: Trace: Etcd: nominateCallback(): Finished!
$ echo $?
0

Of particular note is that the last line contains the contents of a log.Printf command, which is some debugging text I put there, but it doesn't happen at asm_amd64.s:438 (I've enabled logging of file and line numbers)
Thanks for your time, and I'm happy to post the binary if anyone is interested.

The runtime shouldn't exit with status 0,
there must be some code that is caling
os.Exit(0).
Please double check the source code,
and if you're using cgo, check the external
c/c++ code too.

@minux Of course I agree with you, otherwise I wouldn't have reported this. There's nothing I'm calling that calls Exit, and the etcd authors said there is nothing that does it either. When it happened an earlier time I figured it was my fault, but when I got the log with the assembly code, I realized it was probably a golang bug. There's no reason I would see that asm line AFAIK.

It's pretty hard to diagnose this without the source of your program. Can
you please provide a minimal example that demonstrates the problem.
On Mon, May 30, 2016 at 7:53 AM, James<EMAIL_ADDRESS>wrote:

@minux https://github.com/minux Of course I agree with you, otherwise I
wouldn't have reported this. There's nothing I'm calling that calls Exit,
and the etcd authors said there is nothing that does it either. When it
happened an earlier time I figured it was my fault, but when I got the log
with the assembly code, I realized it was probably a golang bug. There's no
reason I would see that asm line AFAIK.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/15873#issuecomment-222385016, or mute
the thread
https://github.com/notifications/unsubscribe/AAAcAwTXRE8fhcX4Qy9-vtllIMZrltwHks5qGgrtgaJpZM4IpQiM
.

On Sun, May 29, 2016 at 6:11 PM, Dave Cheney<EMAIL_ADDRESS>wrote:

It's pretty hard to diagnose this without the source of your program. Can
you please provide a minimal example that demonstrates the problem.

Once I can distill the code down, I will. I suppose the binary won't help?
Does the ASM message tell you anything?

You could try using gdb to debug the program and
use "catch syscall exit_group" to catch the point
where the process issues the exit syscall.
When the catchpoint is hit, please issue bt command
to see exactly where issues the exit syscall.

This seems to be related to issues where a null pointer would get used and in the protobuf golang package. So in theory if your code has zero bugs (mine doesn't) then you won't hit this. So something is either failing in a strange way, or something relating to protobufs is suppressing the trace dump on null pointer.

We need a test case or the backtrace that minux suggested.

I am running into the exact same problem in one of our microservices. The only thing we were able to observe is that some network polling fails before it happens, but that might or might not be related.
I searched the entire code base (including vendored libraries), and the only place where it calls os.Exit(0) is an the end of the main function. Before it exits, there are a few lines of log output which are never written.
It simply shouldn't be possible for the application to exit with code 0 and have no output at all, other than normal operation.

We need a test case.

Our issue was, in fact, unrelated to this. The shutdown messages were just hidden in front of hundreds of warnings in the log, as execution was terminating and closing everything down. The reason for the shutdown was an unexpected signal other than SIGINT, SIGTERM and SIGHUP being issues, and us deciding to catch all signals. After we stopped catching the signal, the software stopped "crashing". We still don't know what issued the signal, since we found nothing in OS logs.

Timeout. Closing this bug. Without details or a repro, we can't help.


Trellix (FireEye) False Positive on VirusTotal.com

I am a developer in the RINA Tech UK software team who authored a file which has been reported as "Gen:Variant.Lazy.398487" on virustotal.com by the Trellix (FireEye) engine, when 82% of anti-virus engines did not detect any issues. I believe the Trellix (FireEye) results to be a false positive.
I have uploaded it to a cloud storage service provided by my company:
https://depot.rina.org/access/kWvx5atetqkys4qoS5DWfMY2ch5n
[The password for the uploaded file is “infected” (without the double quotes)]
If you'd like any further information, please let me know.
Many thanks,
Clive

Hi @eracs-rina,
I'm curious about your case.
In you opinion, which Yara file from that repository is triggering an alert for your file?

Hello,
Thank you for reaching out. Please submit the alleged false positive per the Trellix documentation. This repository is for Yara rules, and it sounds like your issue is different from this repository's purpose.
Cheers,
Max


Compatibility with Angular

tldr: Add "skipLibCheck": true to your tsconfig.json.
I believe it to be important to support Angular out of the box without any special setup required for developers. There are a few issues needed to be done for the most basic new Angular 16 project.
ng new app
cd app
npm install @tbd54566975/web5

Then just import the package in app.component.ts
import { Web5 } from "@tbd54566975/web5";

This will result in multiple lines of this error:
Error: node_modules/@tbd54566975/dwn-sdk-js/dist/types/src/core/message-reply.d.ts:2:31 - error TS7016: Could not find a declaration file for module 'readable-stream'<EMAIL_ADDRESS>implicitly has an 'any' type.
  Try `npm i --save-dev @types/readable-stream` if it exists or add a new declaration (.d.ts) file containing `declare module 'readable-stream';`

2 import type { Readable } from 'readable-stream';
                                ~~~~~~~~~~~~~~~~~

This fix this issue, one option is to allow implicit any in the tsconfig.json:
"noImplicitAny": false,

This then reduces the errors to a single one:
Error: node_modules/@tbd54566975/dwn-sdk-js/dist/types/src/store/level-wrapper.d.ts:1:23 - error TS1452: 'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`.

1 /// <reference types="node" resolution-mode="require"/>

It's not a valid solution to change the moduleResolution to either of those options, this breaks Angular Core.
So one option to fix this issue is to add another configuration to tsconfig.json:
"skipLibCheck": true,

This can also be used to avoid setting noImplicityAny, as it removes validation of the dependent libraries.

With the latest 0.8.1 there are more issues and not possible to get it working easily with Angular. I will do some more attempts and likely it will require custom webpack configuration for it.

Instructions to reproduce usage and issues:

Create an new project using Angular CLI, with latest angular and latest Node.js (20.x)
 npm install @web5/api and import the package in any Agnular component.
npm start

This will result in errors like the following:

npm install crypto-browserify and npm install stream-browserify
npm start

Now results in:

npm i --save-dev @types/readable-stream
npm start

Now results in:

Next step is editing tsconfig.json by adding this to the compilerOptions section:

    "paths": {
      "crypto": ["node_modules/crypto-browserify"],
      "stream": ["node_modules/stream-browserify"]
    }

This reduces errors down to one, which sort of sounds like an actual TypeScript definition error in the package?

This can be fixed by doing same as in OP:
"skipLibCheck": true, within the tsconfig.json compilerOptions.
This makes the project compile successfully, not now it fails at runtime:

I have attempted various means of registering window as global in Angular, but this appears to have zero effect on this dependency and execution of the code in the screenshot.

The global error can be fixed with this workaround:
 <script>
    if (global === undefined) {
      var global = window;
    }
  </script>

Within the index.html file.
Then another issue appears:

By the sound of this error, I think the whole library believes to be running under Node.js context and not Web browser context? process is a Node.js native object.

The "hack" to define global is not enough, the process library is required. So adding a polyfill.ts and configuring global, Buffer and process is required.
I made a repo that does all the required steps and the Web5 API now runs successfully on latest Angular:
https://github.com/sondreb/web5-angular


No way to use natural duration of a spring easing

When specifying an animation using a spring, it doesn't seem possible to use the natural duration. While the code does account for it it's not possible to specify null as duration, because the jquery named duration detection causes an error.
Example is here: http://codepen.io/anon/pen/gLoMje

https://www.lucidchart.com/techblog/2015/08/31/the-worst-mistake-of-computer-science/
Needs looking into as the very use of null is bad... (Using undefined seems to work ok)

Using undefined is the same as not specifying a duration, which defaults to a duration of 400ms

That's where the default for "spring" should be the natural duration - so you don't need to do anything else to handle it.

I looked a bit further and with the current setup it's not really possible to calculate the natural duration easily. Would you be interested in a PR that fixes this?

Definitely - improvements and fixes are regularly accepted now :-)


[Discarded] Network - Filter buttons

The filters "Projects" should be in orange like in the results

Hello Carla,
Can we discuss the filters on the right?
Because I am able to select at the same time "Project" + an "Organisation typ" but only projects are displayed in the results:

JIRA ORC-440


Major refresh of Design TOC

Docs Build status updates of commit 109b1db:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/TOC.md
:white_check_mark:Succeeded
View

mixed-reality-docs/app-patterns-landingpage.md
:white_check_mark:Succeeded
View

mixed-reality-docs/hands-and-tools.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 56c5deb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/TOC.md
:white_check_mark:Succeeded
View

mixed-reality-docs/app-patterns-landingpage.md
:white_check_mark:Succeeded
View

mixed-reality-docs/hands-and-tools.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

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

File
Status
Preview URL
Details

mixed-reality-docs/TOC.md
:white_check_mark:Succeeded
View

mixed-reality-docs/app-patterns-landingpage.md
:white_check_mark:Succeeded
View

mixed-reality-docs/hand-menu.md
:white_check_mark:Succeeded
View

mixed-reality-docs/hands-and-tools.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 995c38e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/TOC.md
:white_check_mark:Succeeded
View

mixed-reality-docs/app-patterns-landingpage.md
:white_check_mark:Succeeded
View

mixed-reality-docs/hand-menu.md
:white_check_mark:Succeeded
View

mixed-reality-docs/hands-and-tools.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

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

File
Status
Preview URL
Details

mixed-reality-docs/TOC.md
:white_check_mark:Succeeded
View

mixed-reality-docs/app-patterns-landingpage.md
:white_check_mark:Succeeded
View

mixed-reality-docs/hand-menu.md
:white_check_mark:Succeeded
View

mixed-reality-docs/hands-and-tools.md
:white_check_mark:Succeeded
View

mixed-reality-docs/voice-input.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 53c5e03:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/TOC.md
:white_check_mark:Succeeded
View

mixed-reality-docs/app-patterns-landingpage.md
:white_check_mark:Succeeded
View

mixed-reality-docs/hand-menu.md
:white_check_mark:Succeeded
View

mixed-reality-docs/hands-and-tools.md
:white_check_mark:Succeeded
View

mixed-reality-docs/voice-input.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


WantedBy missing for "docker-prune" systemd service

:wave:,
collections/ansible_collections/arillso/container/roles/docker/defaults/main.yml:23
should include:
    systemd_unit_install_options:
      - "WantedBy=timers.target"

Even better would be to add this automatically when using type: timer  (54)

Fixed with https://github.com/arillso/ansible.system/commit/b40fda4318e78c7e7348db37b1d6ed665e692ed9
thx @sbaerlocher


Remove Type ignore from DataNode.storageType() method

The storageType method must return a str and not an Optional[str]. This is incompatible with the current implementation of the _class_map method

I am assuming you're referring to this method

in the file src/taipy/core/data/data_node.py.
Can you explain the changes that are needed and assign this issue to me

If you remove the # type: ignore, mypy will complain that:
Incompatible return value type (got "Type[NotImplementedError]", expected "str")

The purpose of this issue is to safely remove the # type: ignore and still follow mypy style guideline.

Alright I'll get started @trgiangdo . Please assign this issue to me

If you remove the # type: ignore, mypy will complain that:
Incompatible return value type (got "Type[NotImplementedError]", expected "str")

The purpose of this issue is to safely remove the # type: ignore and still follow mypy style guideline.

What command is leading to this error log?

You can try to remove the # type: ignore and run this command on the terminal:
mypy --ignore-missing-imports --implicit-optional .

Thanks!

i got this error 2 times , but not the one that you mentioned
 error: No overload variant of "asdict" matches argument type "_BaseModel"  [call-overload]

@trgiangdo

The full error message that you are looking for:
src/taipy/core/data/data_node.py:314: error: Incompatible return value type (got "Type[NotImplementedError]", expected "str")  [return-value]

If it's not showing up, maybe we are missing something.

Yeah that one isn't there

@trgiangdo ?

Can you show me:

The Python version
The mypy version
The screenshot of the src/taipy/core/data/data_node.py file at line 311-314

Sure, what command should i use for python @trgiangdo ?
The mypy version is giving the same result as before
Here is the ss of the code you asked for

Can you try to remove the # type: ignore from line 314?
Then the error I mentioned should show up.

This seems to solve the issue. This along with adding a attribute __STORAGE_TYPE="DataNode"
@trgiangdo

Also, thanks for the fast replies .Legit the fastest and the most helpful I've yet encountered. @trgiangdo

Both these solution seem to resolve this error

Also thanks for the fast replies. Definitely the fastest and the most helpful I've yet encountered.

@trgiangdo

Sorry for the late response, I was away for the weekend.
About your fix, it's contradictory with the purpose of the storage_type() method.
It should always return the NotImplemented exception to avoid the user from using the _DataNode class directly, or a child class without the storage type would raise an error.
Please find another work-around

This seems to work as well @trgiangdo

Hacktoberfest will be ending tomorrow so it will be really helpful if we could close this issue before then @trgiangdo . Please review this solution

Hey, i think there has been some mistake

because this repository is shown as not participating in hacktoberfest 2023.
Please look into it.
@trgiangdo @jrobinAV @FlorianJacta

Please confirm @trgiangdo

@ashutuptiwari The warning should go away now. Can you try again?

Yes it did @FlorianJacta . Thanks a  bunch!

I guess this issue can be closed?

We will review it and close done issue on every sprint. The merged PR should be sufficient for the hacktoberfest, no?

Oh yes it is. I was just curious.

Hi guys, I was wondering if i would recieve some sticker packs or some swag

@FabienLelaquais @jrobinAV @FlorianJacta @marisogo

Hi @ashutuptiwari, can you shoot me an email at<EMAIL_ADDRESS>So we can organize sending you the sawg :)


NextJS now dev crashes / hangs when build.env.NODE_ENV is set to production

NextJS now dev crashes / hangs when build.env.NODE_ENV is set to production.
"build": {
    "env": {
      "NODE_ENV": "production"
    }
  },

If now dev --debug is used:
Error: Cannot start server when target is not server. https://err.sh/zeit/next.js/next-start-serverless
    at new Server (/Users/williamli/projects/bbiHQ/ibcol/node_modules/next-server/dist/server/next-server.js:37:19)
    at new DevServer (/Users/williamli/projects/bbiHQ/ibcol/node_modules/next/dist/server/next-dev-server.js:28:9)
    at module.exports (/Users/williamli/projects/bbiHQ/ibcol/node_modules/next/dist/server/next.js:6:16)
    at main (/Users/williamli/Library/Caches/co.zeit.now/dev/builders/node_modules/@now/next/dist/dev-server.js:18:17)
    at Object.<anonymous> (/Users/williamli/Library/Caches/co.zeit.now/dev/builders/node_modules/@now/next/dist/dev-server.js:39:1)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

It works fine when deployed to Now.

might be a duplicate of https://github.com/zeit/next.js/issues/7439

This issue should be fixed in the latest canary of next, feel free to reopen if the issue persists.


Add SUB claim (subject) in settings and use it for token creation

Firebase requires to pass sub (subject) in JWT token: https://firebase.google.com/docs/auth/admin/create-custom-tokens
Would be great to add it in settings and during token creation so that this package can be used with Firebase custom authentication.

To be honest I think this requirement is important enough that a larger portion of the docs could be dedicated to it. An example under Customizing is perhaps appropriate.


Legalize CFD pass for Parfor

[x] Have you provided a meaningful PR description?
[X] Have you added a test, reproducer or referred to an issue with a reproducer?
[X] Have you tested your changes locally for CPU and GPU devices?
[X] Have you made sure that new changes do not introduce compiler warnings?
[X] If this PR is a work in progress, are you filing the PR as a draft?

Cherry-picked in #938


Speed up DNSCacheManagerSpec + simplify some code in DNSCacheManager.

Simplified and sped up DNSCacheManagerSpec

Can you please clarify why do you mean this speeds up the test?

It only does a DNS test/lookup once rather than on each @IgnoreIf, I've also used @Requires as it's more readable.
So if you were running this with slow DNS it would timeout once rather than 4 times and save you 1 or many seconds.

Ah, thanks. The change looks good to me.
@pmouawad , any comments?


Add check that literal values are valid to decode_field

Adds an explicit check that a literal field has a valid value when decoding. This will improve decoding when types in a Union have overlapping fields but may be discriminated by a literal.

Fix for https://github.com/s-knibbs/dataclasses-jsonschema/issues/163

@s-knibbs Looks like I can't add you as an assignee, but hope this looks good!

@s-knibbs updated re: your feedback


PRAW details

A suggestion; Store your details (client-id, client-secret of praw) as variables in a secrets.py file and import the variables from this .py file at the start of your notebook.
Then in your .gitignore you can add this secrets.py file such that it will not be pushed to github.
Currently everyone pulling your code is using your account.

Yes! I'm going to add the api credentials as env variables. Currently the exposed ones are from a throwaway account that I created just for this.


fix: prettier config was in the wrong place

Fixes this warning:
● Validation Warning:

  Unknown option "prettier" with value {"arrowParens": "always"} was found.
  This is probably a typing mistake. Fixing it will remove this message.

  Configuration Documentation:
  https://jestjs.io/docs/configuration.html

snyk is failing here, but it was updating in another PR a few minutes ago, so merging this assuming it is fixed based on that PR.


fix:  cannot read property 'length' of undefined

fixes: #1294

somehow "undefined" is passed to that function and so it throws error. This should fix it, but still this is strange :/


Consider adding a CHANGELOG to the project

First of all, thanks for the project!
Would you consider adding a CHANGELOG to the project? You already have two releases, and without looking at the comments in the code, one can't really say what's been changed. And especially for this kind of library, I dare say it's really crucial to have changes between releases announced clearly.

Thanks for your suggestion. First of all, I am truly sorry for my ultra-late answer. I don't know how I missed your opened issue :(
luatweetnacl is now in "low maintenance" mode. Basically I don't touch it any more, except in case of a blocking bug.
If I am to change anything, I will follow your advice and add a change description item to the project README.
Again, thanks and sorry!


Incompatibility with Sidekiq >= 6.1.0

Due to the refactoring in the Fetch API made in https://github.com/mperham/sidekiq/pull/4602 the gem is no longer compatible with latest Sidekiq versions.

Submitted a new PR with a fix that also works with Sidekiq 6.5.0: https://github.com/enova/sidekiq-rate-limiter/pull/42

Closing b/c #42 was merged. Thanks again!


fix(website): remove formatter options from biome lint

Summary
Removes biome formatter options from biome lint help from website.

Test Plan

@ematipico Is the CLI section on website auto-generated? Because there was no change in codegen-website.

@ematipico Is the CLI section on website auto-generated? There was no change relates this pr diff by executing codegen-website.

Not yet. I think we should remove it from those pages, and just add a paragraph with a link to the CLI reference page.


Adding a list of files to registermodel.json config

This is probably related to https://github.com/Azure/aml-registermodel/issues/27. Is there a way to add multiple files to registermodel.json config (or any other way) without having to pickle them into a single file? Would it accept a list of files?

@an185144 I added a solution to this issue: https://github.com/Azure/aml-registermodel/issues/27
I hope this helps!


Danish corrections

Hello,
I hope you are still accepting corrections.
Here is a number of fixes for our previous PR
https://github.com/morevnaproject/subtitles-translation/pull/30

Sure! Thank you for corrections! Can you please also submit updated version (after merge) as community contribution to YouTube video? - https://www.youtube.com/watch?v=cTb1_w8hvqY

@morevnaproject Great :-)
It does not look like I am allowed to submit a correction (screenshot in French, but it says "locked"):

@Alkarex I have temporary removed Danish subtitles from YouTube video. Please try to re-submit again. ^__^

Done :-)

Hmm... for some reason I do not see your submission... What could be wrong here?

@morevnaproject It says "submitted". I think you need to approve them before they appear

Any news regarding this approval? Please tell me if I can do anything more on my side

This is weird, I do not see any pending submission in the queue -

There was submissions for Spanish and Japanese, but I have approved them.
I think it is a problem with YouTube's system. I will add the Danish subtitles manually then.

Done! Apologies for the delay. ^__^

Hurrah 👍


Request for a "Vendor compatibility" page

Mentioned during the Sunday Jan 28th CDS Hooks breakout at the HL7 connectathon, I'm hoping for a new page on the CDS Hooks home page that reflects various information about the vendors & their CDS Hooks support:

Announced intent to support?
Target software platforms with date to support?
Details about supported functionality

Thanks!

While not quite the full detail you are requesting, we did collect some of this information on the Argonaut wiki page.

@Severian596 - Hey Brad - I've labeled this with our documentation label as any vendor compatibility information would fall outside of the specification.


LICENSE needs to be added

@yasmensarhan27 As you have made the License ready. It needs to be uploaded to our repository.

I'll merge it now please accept

Yes, it is accepted. Thank you.


Add index name prefix parameter

I was looking for a way to configure several environments in the same Algolia app and noticed this wasn't possible in the current state of the bundle. I added a way to configure a prefix for the index table names.
This would allow the user to add a "prod_" or "staging_" prefix on any index name.
This should not introduce any BC break as the parameter is optional.
What do you think of this ?

Did you had a look to https://github.com/algolia/AlgoliaSearchBundle#per-environment-indexing ?

Sure, but this only works with symfony environments (test, dev, prod, etc.)
This parameter would allow several installations of the project (on different servers for instance) to coexist inside the same Algolia App.
As an exemple, I have two servers running my code: a Production server and a staging server to test my code before a release. Both are running with the "prod" symfony environment to make sure they will behave exactly the same way. If I try to plug them on the same Algolia app, there will me a naming collision.
By the way, I could very well create different Algolia apps to make this work but I'm an enterprise customer and I wanted to take advantage of the unlimited API rates on my enterprise app.

Yes got it, I was just checking that the environnement settings could not fit your needs.
Let's merge this.


On page load action and on change action keep on working although I set them both to "none".

Describe the bug
I played with event/action/trigger at on page load and on change and finaly set both to "none".
But some how they still get triggered because I can see them in de developer console of Chrome.

is seemed that a "display as html" caused the ajax result directives in the console


Log ssh-keygen output on failure

It seems like keygen is failing, but not erroring. Log the output if the file wasn't created, to help debug.

/lgtm


Flood IO

https://flood.io/

@ivanvanderbyl perhaps you could help us :)

Hey guys, yes, I've been meaning to issue a PR for Flood. We're actually working on some new stuff, it's pretty ambitious (lots of D3, ember, custom data stores, websockets), should be ready to show the world by the end of this month. Until then, hang tight.

@ivanvanderbyl awesome, looking forward to it!


Cotton Disease Prediction Using Deep Neural Network

I will train the CNN Model on the image dataset of different
Cotton Disease.

Hii!
I am a participant in GSSOC'22. Please assign me this issue.


GO:0008935 definition update

There have been some changes to the menaquinone biosynthesis pathway, and the definition of GO:0008935 needs to be updated.  Or maybe the term needs to be obsoleted and a new one created.  The <IP_ADDRESS> reaction is really 4-(2-carboxyphenyl)-4-oxobutanoyl-CoA = 1,4-dihydroxy-2-naphthoyl-CoA + H2O, and had been updated in the EC in 2010.
Thanks,
Ingrid
Reported by: imk07
Original Ticket: geneontology/ontology-requests/10127

Changed definition as above.


jq not properly listed as a requisite

Installed the latest from GitHub
yum install https://github.com/IBM/ibmi-bob/releases/download/v2.4.8/bob.rpm

breaky breaky
-bash-5.1$ makei b
jq is not installed or not in your system PATH.

We should remove the check for jq as it is no longer needed/


Disallow filesystem storage in HA mode

Filesystem storage is only supported in cortex single-binary mode, so we should not allow it to be configured when HA mode is also selected.

There is a frontend check for this to make this restriction clear to users, but there should also be a safeguard in the backend, as configuring cortex this way could potentially be destructive.


fix build and test issues due to new nightly

This pull request contains patches required to make 'cargo test' build and pass again.
As described in pull request #97, parens in attribute macros are no longer included in the token stream. async and async_stream macro code needs to be changed accordingly.
This pull request contains both the commit from pull request #97 (which fixes this for the async macro), as well as a fix for the same issue in the async_stream macro.
Additionally, three files now have the proc_macro_non_items feature enabled as this was required to run the tests.

Thanks so much for this!


Update autoprefixer and gulp-sass in package.json

@vikrantnegi
Next time make sure you also update npmshrinkwrap.json also
npm prune
npm shrinkwrap --dev

ok. great.


Add OIDC authentication via service principal for automated tasks

ROPC is the only supported way for automated testing scenarios that covers the applications (Spo, Exo, etc). However, it is the least secure and not recommended by Microsoft.
MS LINK INFO
Certificate based authentication is not possible in all automation scenarios where it would be impossible to store the pfx.
I tried testing the ROPC flow, works for Exo but for SPO I get the error :
*** [Get-MonkeyMSALToken] - Acquire token failed. AADSTS9001023: The g
rant type is not supported over the /common or /consumers endpoints. Please use the /organizations
or tenant-specific endpoint. Trace ID: dca13de3-7c60-4fd6-ba53-7c6710104100 Correlation ID: 87060ba
9-97d0-4da3-9ee3-7c8c2b920b41 Timestamp: 2024-06-19 13:50:13Z - warning -
***  [Get-MSALTokenForGraphV2] - Unable to get token for Microsoft Grap
h - warning

I get the problem after doing some research, the token needs to be acquired from the /organizations endpoint for ROPC flow, I couldnt find any switch parameters in the code to force that, altough I am mentionning the Tenant ID when invoking Monkey365.
In an automated scenario where we could use a service principal that has all the relevant rights, per example in a Github action workflow, it would be amazing to be able to use a service principal? Is there a particular reason why SP with client/secret is not supported for M365 scans as it is possible to assign the required rights and roles?

Hi @Sar4D,
ROPC  only supports Microsoft Entra tenants and is mandatory to use a TenantId or the organizations authority.
For automated scenarios, such as GitHub Actions, you can store the certificate contents in a base64 encoded secret.
Regarding Service Principal limitation for Exchange Online and SharePoint Online, Microsoft has restricted the use of Service Principals for some core applications within Microsoft365. You can see for more information here
Having said that, I've updated the dev branch with some small additions for SharePoint Online, due that TenantId was not populated on ROPC scenarios. You can see some examples to use Monkey365 with ROPC here.

Hi @silverhack Thank you for the explanation and additions!
I will eventually try the certificate with the encoding, but for now we just want to try out the flow using ROPC.
I am still unable to connect but getting a different error.
I am using the authentication flow as mentioned in your documentation.
          $paramMS365Sp = @{               Instance = 'Microsoft365';               Analysis = 'SharePointOnline';               UserCredentials = $cred;               TenantId = $tenantId;               ExportTo = 'HTML';           }
This is the new error I am getting : (Inside a Github Actions)

Hi @Sar4D
Have you tried with the latest dev version? Seems that monkey365 is unable to find default domain name for SharePoint Online.

Hey @silverhack
Yes I tried with the dev version in GHA and locally, with PSCore and 5.1 Neither work and I am always getting the same error. Have you tried on your end and it works?

Hi @Sar4D,
Not tested in GitHub Action but tested locally and yes, it works. Please, note that Monkey365 relies on MSGraph access for various identity and tenant operations, and unwanted exceptions may occur if access to MSGraph is blocked for any reason.
You can also pass the SharePoint domain by using the -ScanSites parameter.
$p = @{
    Instance = 'Microsoft365';
    Analysis = 'SharePointOnline';
    UserCredentials = $cred;
    ScanSites = "https://rootdomain.sharepoint.com";
    TenantId = '00000000-0000-0000-0000-000000000000';
    ExportTo = 'PRINT';
}

Invoke-Monkey365 @p

Hope that helps,


[POAE7-2702] Updata in function yaml-file to support in:str_list

What changes were proposed in this pull request?

Updata in function yaml-file and code to support in:str_list
Update velox test case code to support function mapping between presto and cider.
Why are the changes needed?

Updata in function yaml-file to support in:str_list
Does this PR introduce any user-facing change?

No
How was this patch tested?

Uts
Which label does this PR belong to?

cider

Update code to solve problems encountered in performance test. Plz help to take a review. @yma11 @harborn @Ma-Jian1

Hot fix. Plz help to take a review. @yma11 @jikunshang


Custom dataset

Hello, do you support custom datasets

For example, if I convert the data into culane format, is there anything else that needs to be changed?

Maybe the max_lanes in config.
You can have a try.

refer this issue: https://github.com/Turoad/lanedet/issues/42


Add himanshuchandola's Portfolio

Closes #118

Change Done as requested

Replace your image URL with this : https://github.com/Kiran1689/Awesome-Dev-Portfolios/assets/75929997/7e775e22-2142-4af9-8fc9-f7e07dc37b20

Change Done as requested

@all-contributors please add @himanshuchandola for code


[FEAT] Image gallery

Is your feature request related to a problem? Please describe.
I need to create an image gallery.
Describe alternatives you've considered
I considered create an resource for image and other to album table and, after create gallery, upload images one per one choosing the gallery which it will be included.
Additional context
No response
Describe the thing to improve
Probably may have an better way to do this, creating an album register with fields for it images ands descriptions in just one form.

Hello @denisprado thanks for the suggestion. Could you elaborate more on your issue? We welcome any contributions if you want to add this feature.


Update actions/cache to 3.0.4 version

Description:
Updated actions/cache to latest version 3.0.4
Related issue:
Some bug fixes were made in the actions/cache module that are needed to be made available to the setup-java action users to utilise all the actions/cache feature.
Check list:

[ ] Mark if documentation changes are required.
[ ] Mark if tests were added or updated to cover the changes.

Hello @kotewar. Thank you for your pull request. The actions/cache 3.0.5 is available. Could you please update it to the 3.0.5 version ? Besides, could you please revert changes regarding to other dependencies ?

Hi @dmitry-shibanov, actions/cache 3.0.5 currently has one issue that's being figured out, hence kept it v3.0.4. I'll upgrade it to 3.0.5 as soon as we have a confirmation that issue. Meanwhile let's keep this PR on hold.
Secondly, the changes to other dependencies occurred as part of the checks where the package-lock.json had to be in sync with the package.json changes, and the corresponding licenses had to be updated to pass the checks. In case I am doing it wrong, please suggest me on how it can be done correctly.
Also, I suspect some of the dependencies upgraded could be a result of updated dependencies of actions/cache newer versions as it internally refers to actions/core and some other dependencies.

Thank you for your clarification. Could you please sync with main and run npm install --save<EMAIL_ADDRESS>or npm update<EMAIL_ADDRESS>commands because I've got the minimal update of package-lock.json. Besides, the actions/core is already to the latest version on main.

I can try that.
I actually updated the version of actions/cache package.json manually and ran npm install, and doing so updated the package-lock.json completely it seems.

I've made the necessary changes, let me know if it looks good to you (after the checks are all passed).
Let's also keep this PR on hold till we have a confirmation if we're good to upgrade it to 3.0.5.

It looks good. Thank you!


[UPSTREAM] Add culler timeout settings feature (#134)

[UPSTREAM] Cherry picked culling fix.

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] For commits that came from upstream, [UPSTREAM] has been prepended to the commit message
[ ] JIRA link(s):
[ ] The Jira story is acked
[ ] An entry has been added to the latest build document in Build Announcements Folder.
[ ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious)
[x] The developer has manually tested the changes and verified that the changes work.

@dlabaj I think this can be closed since https://github.com/red-hat-data-services/odh-dashboard/pull/207 has been merged now.  Is that right?


Add support for portal_historyStoreContent & portal_stateStoreContent…

What was wrong?
Added support for inserting content keys & content directly into an overlay database.
How was it fixed?
Implemented endpoints & added tests to ethportal-peertest
This requires wrapping PortalStorage in a Mutex to be able to write to PortableStorage from different threads. This seemed to me like the simplest approach, but maybe there's a better mechanism to use here?
To-Do

[x] Add entry to the release notes (may forgo for trivial changes)
[x] Clean up commit history

Is the intent for this to be a permanent JSON-RPC endpoint, or a temporary endpoint to facilitate development and testing? It's not clear from the PR description.

Yup, it's mainly a util for us (the devs) to use. Similar to the portal_historyLocalContent/portal_stateLocalContent endpoints we support, none of these are in the official spec. Imo, this is a useful endpoint for 1) seeding specific content into a node that we can use for testing FindContent/Content messages with. 2) We could update the seed_database script to use this endpoint (though, that's not urgent). I know @ogenev mentioned he would find this endpoint useful. I'm also aware that the fluffy team has implemented this endpoint, so maybe we coordinate with them tomorrow on the call, and add this endpoint to the official spec?

@ogenev @jacobkaufmann Ready for another :eyes: on this one.


feat!: add cosmwasm module

Description
Closes: #73

Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...

[X] included the correct type prefix in the PR title
[X] added ! to the type prefix if API or client breaking change
[X] targeted the correct branch (see PR Targeting)
[X] provided a link to the relevant issue or specification
[X] followed the guidelines for building modules
[X] included the necessary unit and integration tests
[X] added a changelog entry to CHANGELOG.md
[ ] included comments for documenting Go code
[ ] updated the relevant documentation or specification
[ ] reviewed "Files changed" and left comments if necessary
[ ] confirmed all CI checks have passed

Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...

[ ] confirmed the correct type prefix in the PR title
[ ] confirmed ! in the type prefix if API or client breaking change
[ ] confirmed all author checklist items have been addressed
[ ] reviewed state machine logic
[ ] reviewed API design and naming
[ ] reviewed documentation is accurate
[ ] reviewed tests and test coverage
[ ] manually tested (if applicable)

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@6ae7171). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #74   +/-   ##
=======================================
  Coverage        ?   54.42%
=======================================
  Files           ?       24
  Lines           ?     2258
  Branches        ?        0
=======================================
  Hits            ?     1229
  Misses          ?      951
  Partials        ?       78

Going to close this pull request for now as I work on some of the pieces that will allow us to test these changes.


Fusion: Moved implementation into OpenPype

Brief description
Moved implementation from avalon-core into openpype repository.
Changes

moved the code
fixed imports to match new code locations
moved prelaunch hook code from api to prelaunch hook
removed unused scripts from avalon

Testing notes:

Fusion should work as before (not sure if it worked?)

Task linked: OP-2542 fusion

Thanks. At first glance the code changes look solid. I'll test this as soon as possible. What do we want to do with the hound errors?

I've given this a go. And it works fine - has the same 'problems' that were there before the move so I think it's best to address them separately. I'll work towards a PR regarding that sometime soon. But in the basis the issues would be:

Loaders don't have "render" family set, and thus won't work for e.g. on Maya render outputs.
Fusion 17 isn't in the applications list currently.
The logic in the prelaunch hook checks whether os.path.normpath({envvar}) is a directory, but if the env var was not set an empty string would be passed to os.path.normpath which returns the current working directory. As such the logic is not correctly checking whether the variable was set at all.
Fusion needs to be manually set to use Python 3 by default instead of Python 2. Otherwise the menu script will not work.
Python 3.6 will need to be installed locally by default.
The Python 3.6 locally installed will need to have PySide2 (or another Qt) installed for the tools to work.

I'll set up a quick PR to fix 1 and 2 as they seemed the more pressing issues.
I'm also working on a bigger refactor of the Fusion implementation on the side already so I'm thinking to try and address the rest separate from this PR since this is mostly just for the move.

Updating a loader fails - fixed in my PR with this commit.
Traceback (most recent call last):
  File "S:\openpype\OpenPype\openpype\tools\sceneinventory\view.py", line 275, in <lambda>
    lambda: self._show_version_dialog(items))
  File "S:\openpype\OpenPype\openpype\tools\sceneinventory\view.py", line 726, in _show_version_dialog
    api.update(item, version)
  File "S:\openpype\OpenPype\repos\avalon-core\avalon\pipeline.py", line 1563, in update
    return loader.update(container, new_representation)
  File "<string>", line 208, in update
  File "<string>", line 253, in _get_first_image
NotADirectoryError: [WinError 267] The directory name is invalid: \path\to\file.1001.exr'

I'll set up a quick PR to fix 1 and 2 as they seemed the more pressing issues.

Changed
Changed by removing use_python_2 key from schemas

are nice features but not goal of this PR
Issue with templates seems to be more important than 5. and 6. but also not related to this PR.


Cloudflare D1 and DrizzleKit Support

Currently the D1 component only provides the databaseId but in order to run migrations in DrizzleKit the config is missing the token and accountId. The accountId could be hardcoded but ideally this could be dynamically injected via Resource.
https://discord.com/channels/983865673656705025/983865673656705028/1245550554382467082

i'm not sure that we have token anywhere - is this referring to the cloudflare token? you will have to pass that yourself

Could we have at least the accountid passed back so we can share the code across accounts?

I think if I could use the databaseId that is generated when I provision a D1 database that would solve the problem I have here. i.e. if we had this in sst.env.d.ts:
/* tslint:disable */
/* eslint-disable */
import "sst"
declare module "sst" {
  export interface Resource {
    "D1DatabaseName": {
      "type": "sst.cloudflare.D1"
      "id": "string"
    }
  }
}
export {}

Where D1DatabaseName.id is the DatabaseId from the cloudflare console


Add diagram for high level daemon architecture

New diagram for the high level componetized architecture of our daemon. I will add some more detailed diagrams for some of the components and put together a single architecture markdown file as an entry point to all of these. In the diagram I made, the boxes on the left represent the external network interactions. There is a lot of whitespace on the bottom right hand side of the graph, but this is the best I was able to get the graph to look for now. I think it still looks pretty good for a computer generated graph.

Transaction pool should be connected to proposer

I can think of 3 things missing: (1) Transaction database (2) receipt chain database (3) wallets database.
@johnwu93 can you talk about how Transaction database and receipt chain database connects to the rest of the components.
"Wallets" database just talks to the file system and the API, and isn't connected to any other components

See also #1449 ?

See also #1449 ?

Yes, this is really a redo of that work @bkase and I did earlier in the year. I will close that one as it is no longer relevant and is very out of date.

Transaction Database
There is an extension (which is actually an incremental variable) that represents a new block. Whenever this variable gets updated, it adds the transactions of the block into the Transaction_database. So there should be an edge from Transition_frontier_extensions to Transaction_database. Also, the API makes queries to the transaction database. So, there should be an edge from API to Transaction_database

Receipt Chain Database
Whenever a transaction is sent via GraphQL or the cli, the transaction gets added to Receipt_chain_database. Maybe there should be an edge from Protocol to Receipt Chain Database and an edge from API to Receipt Chain Database

Wallet Database
Graphql directly talks to the Wallet Database to make queries or updates to the Wallet. So there should be an edge from API to Wallet Database


Clean up ParserNodes

🔖 Changes

Minor clean up for all ParserNodes
Added declare_strict_types phpcs rule

Thanks. It is merged now!

Thanks. It is merged now!

Does it work?
I thought there were some tests which extend directly from some classes, and it was not possible to add to all the classes. 🤔

Does it work?
I thought there were some tests which extend directly from some classes, and it was not possible to add to all the classes. 🤔