ERROR

Olá Boa noite!
Recebi o seguinte erro ao tentar visualizar a página de teste helloword:
Your report has an error and couldn 't be processed!\ Try to output the command using the function output(); and run it manually in the console.
in JasperPHP.php line 197
at JasperPHP->execute() in web.php line 84
at RouteServiceProvider->{closure}() in Route.php line 176
at Route->runCallable() in Route.php line 147
at Route->run(object(Request)) in Router.php line 642
at Router->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in SubstituteBindings.php line 41
at SubstituteBindings->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in VerifyCsrfToken.php line 65
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in StartSession.php line 64
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Router.php line 644
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 618
at Router->dispatchToRoute(object(Request)) in Router.php line 596
at Router->dispatch(object(Request)) in Kernel.php line 267
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Kernel.php line 149
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
at Kernel->handle(object(Request)) in index.php line 53
at require_once('/var/www/html/sglab/public/index.php') in server.php line 21

Opa, beleza Miguel?, verifique a sua rota, se precisar abrir uma issue fique a vontade.
Daniel Rodrigues

De: 7miguelsilva7<EMAIL_ADDRESS>Enviado: domingo, 6 de novembro de 2016 23:44:07
Para: geekcom/phpjasper
Assunto: [geekcom/phpjasper] ERROR (#13)
Ol? Boa noite!
Recebi o seguinte erro ao tentar visualizar a p?gina de teste helloword:
Your report has an error and couldn 't be processed!\ Try to output the command using the function output(); and run it manually in the console.
in JasperPHP.php line 197
at JasperPHP->execute() in web.php line 84
at RouteServiceProvider->{closure}() in Route.php line 176
at Route->runCallable() in Route.php line 147
at Route->run(object(Request)) in Router.php line 642
at Router->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request)) in SubstituteBindings.php line 41
at SubstituteBindings->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in VerifyCsrfToken.php line 65
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in StartSession.php line 64
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Router.php line 644
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 618
at Router->dispatchToRoute(object(Request)) in Router.php line 596
at Router->dispatch(object(Request)) in Kernel.php line 267
at Kernel->Illuminate\Foundation\Http{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Kernel.php line 149
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
at Kernel->handle(object(Request)) in index.php line 53
at require_once('/var/www/html/sglab/public/index.php') in server.php line 21

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/geekcom/phpjasper/issues/13, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADxc3b85E5S-M0fnllj1Ke5-JbbXmMbEks5q7pB3gaJpZM4KqyaC.

Vou verificar

@7miguelsilva7 , observe se voê tem o seguinte código em seu arquivo d rotas, routes.php,
`use JasperPHP\JasperPHP;
Route::get('/reports', function () {
$output = public_path() . '/report/'.time().'_hello_world';
$report = new JasperPHP;
$report->process(
    public_path() . '/report/hello_world.jrxml',
    $output,
    array('pdf', 'rtf', 'xml'),
    array(),
    array()
    )->execute();

});`
qual a versão do Laravel vc está usando?

Olá, segui o passo para instalação que se encontra no aqui no git, estou usando laravel 5.3, estava tendo problemas com o jasper oficial, mas já resolvi,  o problema do jasper é a incompatibilidade com conexões PDO, então, como estava um pouco apressado, tive que fazer um downgrade no servidor para versão mais antiga do PHP, ou seja, a 5.6, mas está de boa, por enquanto, depois com mais calma faço uns testes com este jasperPHP, de qualquer forma Obrigado.
Miguel Silva

@7miguelsilva7, se puder testar com php 7 seria muito bom pra comunidade


Refactor GameWindow to not extend OpenTK.GameWindow

As part of the upcoming iOS/Android builds, we will need to look at refactoring our GameWindow class.  It currently extends OpenTK.GameWindow, which is primarily for desktop platforms.  Attempting to use it on iOS or Android throws a NotImplementedException.
Proposal is to decouple our GameWindow class from OpenTK.GameWindow and instead use an OpenTK.IGameWindow property that's assigned the correct implementation for the platform.  OpenTK will assist us with most of this on the desktop side, but iOS/Android will need to manually instantiate and assign the window (not a big deal).

For reference:
#1420 crashed on Windows with the following exception:
OpenTK.Graphics.GraphicsContextException: Failed to make context 65537 current. Error: 170
65537 is the GraphicsContext's handle (a pointer).
Error 170 in Windows translates to ERROR_BUSY: The requested resource is in use. (source)
Note that there were also two calls to MakeCurrent in the constructor, MakeCurrent() and Implementation.MakeCurrent() (which are the same, so one of those is most likely redundant).


create github oauth app for stageing instance

new github oauth app on dev instance (for cms), which pushes content to dev branch

@laureD19 you should now be able to sign in at https://sshoc-marketplace-stage.acdh-dev.oeaw.ac.at/admin.


Allow clients to check and download immutable DB incrementally

Why
We know we'll want to provide some way to have mithril snapshots be more incremental, in order to allow clients to download (and verify) only the parts they are missing and are interested in.
To make what we currently have more useful, having the possibility to download only the immutable files you are missing (and the relevant ledger state), would be great. It would allow eg. a desktop wallet user to sync up their node in minutes, or even seconds, using mithril.
What

Archive and serve each immutable file independently (or as a range)
Sign and certify a Merkle-Tree root of all immutable files' hashes
Allow mithril-clients to request download of only "missing" immutable files:

The client would request whatever snapshot they are interested in, check the latest immutable file number, compare with what they have locally, and only download the missing parts.
This might not be totally trivial as this would imply the client wipes out the volatile and ledger DBs

When a fragment is retrieved, associate a MT inclusion proof so that the client only have to verify the root certificate once

Superseded by #2047


Enable gradients in validation_step

🚀 Feature
Enable gradient calculations during evaluation loops.
Motivation
Some loss functions require the gradients of the outputs with respect to the inputs. For example, a physics informed neural network uses these gradients in a differential equation as its loss function.
Pitch
Add a set_grad_enabled flag to validation step to make the following possible for learning the cosine function, for example:
def validation_step(self,
    batch: torch.Tensor,
    batch_idx: int,
    set_grad_enabled=True
) -> dict[str, torch.Tensor]:

    x, t = batch

    u_hat = self.forward(x, t)

    dydx = torch.autograd.grad(
              u_hat,
              x,
              grad_outputs=torch.ones_like(u_hat),
              create_graph=True
          )

    physics_loss = torch.sin(x) - dydx

    return {"loss": physics_loss}

Alternatives
I tried simply adding with torch.set_grad_enabled(True) to my code but of course that didn't work.
Additional context
Physics Informed Neural Networks are a recently introduced architecture for learning differential equations by embedding them in the loss function of a neural network. The key innovation involves repurposing auto-differentiation machinery to obtain derivatives of network outputs wrt its inputs, then plugging those into the residual form of a differential equation. The network learns accurate derivatives by minimizing this residual.
PINNs paper: https://faculty.sites.iastate.edu/hliu/files/inline-files/PINN_RPK_2019_1.pdf

If you enjoy Lightning, check out our other projects! ⚡

Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.

Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.

Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging PyTorch Lightning, Transformers, and Hydra.

Hi!
You can enable grad during validation. You need to pass Trainer(inference_mode=False) and then you are free to use the context manager.
Duplicate of https://github.com/Lightning-AI/lightning/issues/13948

Oh fantastic, I'll check this out, thank you!

I've tried this but still seeing RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn during validation steps, but I can get gradients successfully during a training step. Is there something else I'm missing?

You will need to set tensor.requires_grad_() for the tensors you want to compute grads for.

Thanks for such a quick response! In my training step, I don't need to do that for the net output, and the loss function is working well. However in my validation_step, if I specify requires grad like so
output = self.net(x)
output.requires_grad_(requires_grad=True)

and then take the grads like so
  grads = torch.autograd.grad(
      output,
      [x],
      grad_outputs=torch.ones_like(output),
      create_graph=True,
      retain_graph=True
  )

it gives
RuntimeError: One of the differentiated Tensors appears to not have been used in the graph. Set allow_unused=True if this is the desired behaviour.

which is the same error I would get if I didnt set inference_mode=False. If I set allow_unused=True in torch.autograd.grad then grads are None. It seems as though my Trainer(inference_mode=False) is maybe not doing the trick? Should I perhaps open another issue with a steps to reproduce?
Thanks again for your eyes on this!

Ahh in addition to .requires_grad_() I had to put everything in my validation step under with torch.enable_grad():, and now it works! Thanks again.

Have you tried using functorch to compute the partials ? It's much easier to use.


Directly change case group status

Remove calls to backstage when changing case group response status
^Branch name is wrong

Codecov Report

Merging #155 into master will decrease coverage by 1.1%.
The diff coverage is 81.66%.

@@            Coverage Diff             @@
##           master     #155      +/-   ##
==========================================
- Coverage   95.15%   94.05%   -1.11%
==========================================
  Files          35       35
  Lines        1651     1698      +47
==========================================
+ Hits         1571     1597      +26
- Misses         80      101      +21

Impacted Files
Coverage Δ

response_operations_ui/views/case.py
100% <100%> (ø)
:arrow_up:

...ponse_operations_ui/controllers/case_controller.py
80.26% <100%> (-16.57%)
:arrow_down:

...se_operations_ui/controllers/survey_controllers.py
98.21% <100%> (+0.21%)
:arrow_up:

..._ui/controllers/collection_exercise_controllers.py
76.36% <21.42%> (-4.89%)
:arrow_down:

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 52bacda...e8920e3. Read the comment docs.

 US050d: INT Manually change the response status for a given RU, Survey, CE to No Longer Required (L)

 response-operations-ui should directly call case service (not via backstage)


Translation v3 samples

these samples are largely generated

I updated the samples first, and am doing the tests right now. Working on confirming they pass.

@googlebot I consent.

This should be ready now

@bshaffer there have been a few changes since you signed off, if it isn't too much trouble would you mind doing another pass?

thank you! latest changes LGTM. this is looking much better than the mess I left y'all with.

DO NOT DELETE the branch, docs are staging from here. We'll need to update them once this is merged.


fix: 🐛 missed visitor

Summary

Closed #5590

Require Documentation?

[ ] No
[ ] Yes, the corresponding rspack-website PR is __

!canary


[REFACTOR] Logging

Need to refactor and improve logging

is this complete?

For the most part, I think so. What do you think about the current logging? Are there any additional places that require it?

I think there are some places that take verbose arguments that do not use however I think overall we are at a good spot?

I think there are some places that take verbose arguments that do not use however I think overall we are at a good spot?

Yip I think so, can close this then


Autocrafting deleting items it shouldn't be

Crafting recipes that leave an item behind, such as cake leaving empty buckets or any EE transmutation recipes consume the items instead of leaving them in the system.
Repro steps:
-set up a system with an assembler
-teach the system to craft cake
-request cake
-the cake will be crafted, but the buckets will be gone

Fixed, leftover items will be sent back to the network or be thrown on the ground if needed.


[SPARK-45940][PYTHON] Add InputPartition to DataSourceReader interface

What changes were proposed in this pull request?

This PR introduces a new Python class InputPartition that represents the partition value returned by the partitions method in DataSourceReader.
Why are the changes needed?

Before this PR, the partitions method can return anything, and it can be confusing to infer what is the partition argument in the read(self, partition) method.
Adding InputPartition can make the Python data source API more intuitive and user-friendly.
Does this PR introduce any user-facing change?

No
How was this patch tested?

New unit tests.
Was this patch authored or co-authored using generative AI tooling?

No

cc @HyukjinKwon @cloud-fan

The test failure seems unrelated

Merged to master.


feat(wallet): add wallet service API

Description

[x]  Get Total Stake - Get the total stake of the wallet
[x] Get Address Info - Get the address info for the given address
[x] Set Label - Set label for the given address
[ ] Get Wallet Info - Return the information about wallet
[ ] List Wallets - Return the list of wallets inside wallet directory
[ ] List Address - Return the list of addresses in wallet, it accepts

Related issue(s)

Resolves #1210
Resolves #1342

@b00f Can write more details what is it response of:

Get Wallet Info
List Wallets
List Address

Get Wallet Info

Information about wallet, like Wallet name, version, Is Encrypted, Creation time, etc

List Wallets

For listing wallets, we can list files inside the wallets directory. The better solution is to keep the list of wallets in wallets.json.

List Address

The list of all addresses in a wallet.


Failed jobs are never executed again if InvisibilityTimeout is not set

Hi,
I recently discovered that the failing jobs were never executed again, remaining in Processing state.
Steps to reproduce:

Start a job.
Stop the service/application during the job execution
Restart the service.

Testing and investigating this I discovered that the issue was introduced with 0.6.6 version, with some changes regarding "InvisibilityTimeout should not be obsolete (yet) #220" issue.
To be more precise, in the TryGetEnqueuedJob method from MongoJobFetcher class there is an issue with the filter. The problem seems to be that the threads that are polling the database are using each one the same instance of MongoJobFetcher and thus, the _invisibilityTimeout computed in the constructor have the same value on every database interrogation. For this reason, The failed jobs are fetched after the Invisibility Timeout has passed, but only if the service is restarted.
On the other hand, If the _invisibilityTimeout is null, then the way fetchedAtQuery is build makes that the failed jobs never be fetched from database, because they do not have FetchedAt property null.
fetchedAtQuery = new BsonDocument(nameof(JobQueueDto.FetchedAt), BsonNull.Value);
We fix this by saving in the _invisibiltyTimeSpan field the exact TimeSpan value from configs and dynamically computing the date reference of the fileter on every database call:
var date = DateTime.UtcNow.AddSeconds(_invisibilityTimeout.Value.Negate().TotalSeconds);
fetchedAtQuery = new BsonDocument("$or", new BsonArray
{
new BsonDocument(nameof(JobQueueDto.FetchedAt), BsonNull.Value),
new BsonDocument(nameof(JobQueueDto.FetchedAt), new BsonDocument("$lt", date))
});

@ionutbob,
Thank you for your explanation.
Would you accept that we create a new instance of "MongoJobFetcher", so they dont share instance?
Thanks

@ionutbob,
please review: https://github.com/sergeyzwezdin/Hangfire.Mongo/pull/227

@gottscj
Thank you for your quick feedback. Create a new instance of  MongoJobFetcher seems to be a valid approach. However this would fix half of the problem. If InvisibilityTimeout is null, then the filter will contain "...new BsonDocument(nameof(JobQueueDto.FetchedAt), BsonNull.Value);" (line 109 from MongoJobFetcher). Failed jobs have FetchedAt set from their first run and are never retrieved, so this filter must be changed also.
Thank you!

@ionutbob,
I see your point. I would need to change the configuration also so InvisibilityTimeout is not nullable. Agreed?
Thanks

@gottscj ,
Hi,
Ok, invisibilityTimeout not nullable is a valid aproach, I guess
Thanks,

@ionutbob,
I read your inital post again. I think I get it. give me a sec

@ionutbob,
please review. third time's a charm

@ionutbob,
I have released v0.6.7 with a fix for this issue, please let me know if it solves your issue!
Thanks

Closing due to inactivity.. assuming issue was fixed


Enh #6106: yii\widgets\Breadcrumbs added support for encode item's config option

Already implemented.


[PinterestBridge] Search doesn't work

I get :
Warning:  Invalid argument supplied for foreach() in /dev/rss-bridge-master/bridges/PinterestBridge.php on line 62

Looking at the code, it should parse json content from #jsInit1, which is now blank when doing a search:

(eg. request: https://www.pinterest.com/search/pins/?q=wood)

Thanks for reporting this issue.
I can confirm that keyword search is broken for Pinterest.
The script still exists (if you disable JS when loading the page), but it does no longer have any contents inside "resourceDataCache": [], and no alternative endpoints. In fact, the page does no longer contain any usable search results. Unless there is another way to acquire search results without JS, keyword search should be removed.

Closed via #1206


Overwrite option

Hello,
Could you add functionality when backup keep old version of file do not overwrite

Added --keepold true in version 1.19.0


Metadata transaction details view

When we are sending Metadata transactions in value field, we have a delta (xor) compared to the previous value. So:

when we create new metadata for the account/mosaic/namespace we send the entire value (since there is no previous one)
when we edit existing metadata we are sending just value change

The wallet is trying to present value change (in the case of edition) as a utf-8 text which causes invalid presentation.
In transaction details view we should:

always present binary (hex) representation of value change
text value shows only if it's possible to decode it
rename "Value" to "Value delta" or "Value change"
also "ScopedMetadataKey" and "ValueSizeDelta" could be changed to "Scoped Metadata Key" and "Value Size Delta"
we have two times ScopedMetadataKey which I think is redundant?

Example tx view:

Fixed in https://github.com/symbol/desktop-wallet/pull/1839

Released in 1.0.11


404 on Time Off Page

Describe the bug:
PTO Form page is no longer working.
To Reproduce:
Steps to reproduce the behavior:

Go to Home Page, by clicking on the
Click on time off

Expected behavior:
Goes to the PTO page
Actual Behavior:
404 error
Environment:

OS: Windows

Additional context:
Add any other context about the problem here.
Possible Fix
fix html maybe?

Fixed by merging in #45


[HUDI-5731] Cleaning up unnecessary relocation for com.google.common packages

Change Logs
Addresses an issue of following relocations configs in MR/Spark bundles stranded after removal of Guava from Hudi Spark and MR bundles:
<relocation>
  <pattern>com.google.common.</pattern>
  <shadedPattern>org.apache.hudi.com.google.common.</shadedPattern>
</relocation>

Such relocations entailed that all references from any class (included into the Hudi bundle) referencing Guava would be shaded, even though Hudi isn't packaging Guava anymore, potentially resulting in exception when these classes try to access Guava provided by Spark for ex:
Caused by: java.lang.NoClassDefFoundError: org/apache/hudi/com/google/common/base/Preconditions
	at org.apache.curator.ensemble.fixed.FixedEnsembleProvider.<init>(FixedEnsembleProvider.java:39)
	at org.apache.curator.framework.CuratorFrameworkFactory$Builder.connectString(CuratorFrameworkFactory.java:193)
	at org.apache.kyuubi.ha.client.zookeeper.ZookeeperClientProvider$.buildZookeeperClient(ZookeeperClientProvider.scala:62)
	at org.apache.kyuubi.ha.client.zookeeper.ZookeeperDiscoveryClient.<init>(ZookeeperDiscoveryClient.scala:65)
	... 45 more

Impact
See above
Risk level (write none, low medium or high below)
Low
Documentation Update
N/A
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

Thanks for fixing this issue. And I think curator should be relocated/removed as well.
The issue happens on Kyuubi IT because

Kyuubi invokes the curator to access ZK
During the testing, Kyuubi loads the vanilla curator classes from the maven test scope classpath which includes both vanilla curator jars and Hudi bundle jars
Since Hudi bundle jar contains vanilla curator classes, there is a chance to be loaded by Kyuubi engine (a Spark job)
On production workloads, Kyuubi uses the shaded and relocated curator classes(shipped by Kyuubi fat jar) so there is no problem.

Based on the above facts, I think Hudi bundle jar should exclude the curator because the spark binary dist already shipped it, or relocated it to avoid class conflicts.
Has a quick glance, rocksdb and some other libs are in the same position w/ curator, please consider excluding or relocating them to avoid potential class conflicts.


discrete X and Xi matrix

Both in master and py3port need to use a single X and Xi matrix as in the continuous branch. In the actual versione is useless to store all the matrices for all the iterations.

The same apply in the currente version also to bp, cont, tot and ac matrices

solved


Fix for BaseUrl in C# base class not being used

Fix to use the BaseUrl from the base class when there is a base class and GenerateBaseUrlProperty is not set.
See issue #4764
Edit: This is for C# code generation

Added new commit to fix the If statement and added a new test case for when there is a BaseClass.

Can someone please help me understand why this PR is failing?  Looking at the errors in the latest run it doesn't seem to me to be related to something I changed.  Is there something more I need to do?

I finally got my local installation working properly and found that I had 4 extra spaces added to a line in the generated client which caused the file to not match the verified.  Hopefully this time the workflow works.

Everything runs successfully on my local machine.  The workflow error is
"You must install or update .NET to run this application."
I don't understand how anything I did could cause this, and I can't do anything about what is installed on the workflow server.
Can someone please advise?
Thanks

"You must install or update .NET to run this application."

Looks like it's trying to run the tests as .NET 6.0, and the build agent only has 7.0/8.0 installed.
Possibly because the CI build is set to use macos-latest and that recently became macOS 14 running on ARM cpus? (so nothing specific to do with the change here)

does this PR have any recent tractions?

I don't know what you mean by "recent tractions"  This PR addresses an issue that was first introduced in 14.0.1, possibly introduced by PR #4691.  There were further changes in this area after that PR, but they didn't fix this issue.
I believe this PR fixes issues #4764 and #4705.
This PR is needed by anyone setting BaseUrl in a base class. For anyone who does this, the recent versions are not usable - they cant upgrade to the  most recent version.

When will this issue be resolved?
Since 14.0.1 i tried every new release if the issue was fixed but setting the BaseUrl in a base class is still not possible.

@RicoSuter Can you please provide some feedback on acceptance of this pull request.  This issue is affecting a number of people who are waiting for it.  I know the MacOS checks failed, but this appears to be an issue with the build server, which I can't fix, and I don't see a way I can re-run the checks to see if the problem has been resolved.
Thanks

I don't see a way I can re-run the checks to see if the problem has been resolved.

Maybe update or rebase your branch on top of the latest master and push that to trigger the CI again?

You know that you can overwrite templates on your side without changing NSwag itself?
I'm super careful changing these templates because in the past PRs like this broke a lot of stuff and I had to work days to fix all issues introduced by untested PRs...

@RicoSuter thanks for coming into the discussion.  I am willing to help with anything I can do to resolve this issue.
I think the issue is that Base Url has been removed even when using a base class to set the Base Url, and there are a number of us (There are a couple of issue threads out there concerning this) that have base classes that do this.   In the template, I have set the IF conditions so that behavior is only changed if a Base Class is used and GenerateBaseUrlProperty is false.  In these cases the Base URL previously was controlled by the Base Class, and I think all of us affected would agree that we would like this capability restored.
If there is another way we should be now be doing this same thing, then please let me know and I will be happy to try it.  I really would prefer to not maintain a fork with customized templates as I think that would cause issues in my organization for version upgrades.
To my mind, this change simply restores the ability to control the Base Url in the base class.  If this pull request isn’t acceptable, how else should we change the base URL dynamically?  If this capability is intentionally permanently removed, what is your recommendation on how we should do this?
For background, I just changed from Swagger/AutoRest to all NSwag in January.  I implemented using a base class because then I could have a similar constructor that minimizes the code remediation in the projects that used the old AutoRest clients (BaseUrl came in on the constructor in our AutoRest clients).  About a month after changing to NSwag, this stopped working (It partially broke in 14.0.2 (I found a work around).  It fully broke in 14.0.3.  Maybe there is a alternate way to do things, but it would likely be a lot of work to re-structure the existing code base to work differently.
Please let mw know how to proceed.  I am committed to helping resolve this issue.

Thanks @soligen2010, your comment echoes my use case and I am eagerly awaiting a solution to this problem. I am also happy to adjust if there is a way.

This whole BaseUrl is now super messed up and very hard to understand... My personal recommendation is to not use BaseURL at all and instead set the base URL on the injected HttpClient... But will still look into fixing this.

That was one of the first things I tried, but doesn't work with our code base - it probably should work if things are done "right", but for me right now, that would involve a lot of remediation in the code base.  Looking through things again, perhaps it can be set using PrepareRequest.  I'll give it a try and report back.

Looking at this again, I agree there are issues with the base url logic.  In the current release (14.0.8) when a Base Class is used and GenerateBaseUrlProperty is false, this following is generated.
 #pragma warning disable 8618 private string _baseUrl; #pragma warning restore 8618
And it is used in each endpoint like this.
if (!string.IsNullOrEmpty(_baseUrl)) urlBuilder_.Append(_baseUrl);
However, there is no way to actually set a value for _baseUrl, so these lines of code never do anything useful.  This pull request removes _baseUrl, and instead uses BaseUrl from the base class instead so it seems to me it wont break other use cases.
As for using PrepareRequest, That is looking viable as a work around, but I would prefer the  BaseUrl solution.  I will post more on that after some testing.


feat: added Libya spec

Added Libya spec according to ISO/Swift IBAN registry release 88 - September 2020

@LaurentVB is it possible to merge this request?


[MBL-1373] ValidateCheckout Before Completing Checkout With ApplePay

📲 What
Calls ValidateCheckout mutation after ApplePay Context completes and before CompleteOnSessionCheckout
🤔 Why
We should be validating the current late pledge checkout for ApplePay pledges like we do for Stripe pledges.
🛠 How
When the ApplePay sheet completes, didCreatePaymentMethod is called and we pass our ApplePayParams object back to the ViewModel to complete the checkout. This method returns a StripePayments.STPPaymentMethod with an id (stripeId) that we need to validate the checkout. So, we'll use that ID to call ValidateCheckout before trying to complete the checkout.
👀 See
No visible changes
✅ Acceptance criteria

[x] ApplePay Late Pledges still work
[x] If ValidateCheckout fails, an error message banner is shown
[x] The processing view is still shown until the backing is complete

@ifosli Noted in regression that we should thoroughly test this in TestFlight before releasing. I also cleaned up the ApplePayParams stuff. Good call out!


Plotly reimplementation of Monthly Stripes-Plots

This PR implements the monthly aggregated stripes plot with plotly. The heatmap can now be hovered, panned and zoomed.
The plotly version tried to mirror the look and feel of the matplotlib version as much as possible.
It's a bit tricky to prevent streamlit and plotly from setting the auto-margin of the plot in an endless loop, thus, the margins are set explicitly and still have to be tested on muultiple devices and browsers.

I really like the interactivity of the plot, but I found some layout problems.
I think in general the axis and legend labels could be a bit bigger.
The plot contains only a (cut-off) title when include climate projections is selected.
In centered layout, the reference period label overlaps with the 'Year' column of the heatmap. Also the title of the graph is cut off.

In wide layout, the title is also cut off and the legend labels are also cut off on the right.

The option to show a second station for comparison was not available before when include climate projections was selected, that should work now.
I also made some modifications to the heatmap layout.
Title is now always shown for all plots.
I have not managed to display the title of the colorbar in the correct place in both wide and centered layout, this is because the reference point of x changes with the layout in the following code:
https://github.com/hydrocode-de/RUINSapp/blob/1fac0aea432417bd290f93ac5bba2224471c0f56/ruins/plotting/stripes_heatmap.py#L139

I have not managed to display the title of the colorbar in the correct place in both wide and centered layout, this is because the reference point of x changes with the layout in the following code:

I guess that's fine. We will just go for the wide layout, as that's the default within RUINS apps


App Rejected

I got a message from Apple after submitting App for approval-
_We discovered one or more bugs in your app when reviewed on iPad running iOS 10.2.1 on Wi-Fi connected to an IPv6 network.
Specifically, radio did not play any audible content._
It this issue related to Swift-Radio-Pro code or something else?

Probably your radio stream, as there are over 80 apps in the app store using this code in the past 6 months. One thing to check is to make sure your code is compliant with IPv6 networks- For example, No IP addresses for radio stations. Apple will reject a stream like http://<IP_ADDRESS> but http://shoutcast/rock123 is okay


State of project

Hi,
I have had a look at the webpage and the repository (which now only has the alpha release), and I was wondering what your plans are regarding source code, license, roadmap, or even pricing model?
Cheers,
Carl

+1 ?

Hi, i will open the source here as soon as i'll have time to organise it a little, but i don't plan to continue the development.

Hi @azazdeaz. Thank you for the update and your hard work on this project.
How far away from the alpha release is the code in the latest version? Optionally, how far away are you from releasing the latest version?
I might be interested in continuing development.

Sounds great! The latest version is a 100% rewrite of the first alpha and i'll do my best to opensource it on the next week.

Any news on this @azazdeaz? :)

I published the core repo here, i will continue with publishing its dependencies and write readmes

👍

Hi, i've published all the dependencies and added basic instructions to the readme to locally build and run the demos http://localhost:5435/#/Robots
I still own you with a bunch of documentations, but i can't promise anything...

+1. Very cool project. Thanks for sharing!
PS: I see a bunch of forks. as anyone taken animachine farther?


docs: ghpages

Well, I see the pages already exist ...

I think it's because aaron added this branch to trigger deployment too. I am going to remove it

@abock merging this now


dateFormat doesn't work correctly

Expected behavior
Before update I was using this dateFormat: dateFormat="M/D/YYYY" and it was showing date like: 2/28/2019 for 28 Feb 2019
Actual behavior
After update it shows 2/58/2019
I saw this issue which shows date in non-broken format at least, but what should I do if I don't need leading zeros?
Please add correct formats support

Oh, I just found that it works fine with "M/d/YYYY"

@flppv how did you found the format?

@activebiz I just tried until it worked as expected


Extra text track, kind caption. Expected no text tracks

Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.0.10, but I checked each release back to 3.0.0 and see the same behaviour.
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from master?
Yes
Are you using the demo app or your own custom app?
Custom, following the shaka ui basic usage tutorial
If custom app, can you reproduce the issue using our demo app?
Not sure, I wasn't able to run the demo app
What browser and OS are you using?
macos 10.14.6, safari 14.0.3 (146<IP_ADDRESS>.7)
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
n/a
What are the manifest and license server URIs?

https://github.com/djeikyb/shaka_player_spurious_caption_bug_report/blob/main/2MinTest/master.m3u8
What configuration are you using?  What is the output of player.getConfiguration()?

{
  "drm": {
    "retryParameters": {
      "maxAttempts": 2,
      "baseDelay": 1000,
      "backoffFactor": 2,
      "fuzzFactor": 0.5,
      "timeout": 0
    },
    "servers": {},
    "clearKeys": {},
    "advanced": {},
    "delayLicenseRequestUntilPlayed": false,
    "logLicenseExchange": false,
    "updateExpirationTime": 1
  },
  "manifest": {
    "retryParameters": {
      "maxAttempts": 2,
      "baseDelay": 1000,
      "backoffFactor": 2,
      "fuzzFactor": 0.5,
      "timeout": 0
    },
    "availabilityWindowOverride": null,
    "disableAudio": false,
    "disableVideo": false,
    "disableText": false,
    "defaultPresentationDelay": 0,
    "dash": {
      "clockSyncUri": "",
      "ignoreDrmInfo": false,
      "xlinkFailGracefully": false,
      "ignoreMinBufferTime": false,
      "autoCorrectDrift": true,
      "initialSegmentLimit": 1000,
      "ignoreSuggestedPresentationDelay": false,
      "ignoreEmptyAdaptationSet": false
    },
    "hls": {
      "ignoreTextStreamFailures": false,
      "useFullSegmentsForStartTime": false
    }
  },
  "streaming": {
    "retryParameters": {
      "maxAttempts": 2,
      "baseDelay": 1000,
      "backoffFactor": 2,
      "fuzzFactor": 0.5,
      "timeout": 0
    },
    "rebufferingGoal": 2,
    "bufferingGoal": 10,
    "bufferBehind": 30,
    "ignoreTextStreamFailures": false,
    "alwaysStreamText": false,
    "startAtSegmentBoundary": false,
    "smallGapLimit": 0.5,
    "jumpLargeGaps": false,
    "durationBackoff": 1,
    "forceTransmuxTS": false,
    "safeSeekOffset": 5,
    "stallEnabled": true,
    "stallThreshold": 1,
    "stallSkip": 0.1,
    "useNativeHlsOnSafari": true,
    "inaccurateManifestTolerance": 2
  },
  "offline": {
    "usePersistentLicense": true
  },
  "abr": {
    "enabled": true,
    "defaultBandwidthEstimate": 1000000,
    "switchInterval": 8,
    "bandwidthUpgradeTarget": 0.85,
    "bandwidthDowngradeTarget": 0.95,
    "restrictions": {
      "minWidth": 0,
      "maxWidth": null,
      "minHeight": 0,
      "maxHeight": null,
      "minPixels": 0,
      "maxPixels": null,
      "minFrameRate": 0,
      "maxFrameRate": null,
      "minBandwidth": 0,
      "maxBandwidth": null
    }
  },
  "preferredAudioLanguage": "",
  "preferredTextLanguage": "",
  "preferredVariantRole": "",
  "preferredTextRole": "",
  "preferredAudioChannelCount": 2,
  "restrictions": {
    "minWidth": 0,
    "maxWidth": null,
    "minHeight": 0,
    "maxHeight": null,
    "minPixels": 0,
    "maxPixels": null,
    "minFrameRate": 0,
    "maxFrameRate": null,
    "minBandwidth": 0,
    "maxBandwidth": null
  },
  "playRangeStart": 0,
  "playRangeEnd": null
}

What did you do?

I made a repo that reproduces the bug:
https://github.com/djeikyb/shaka_player_spurious_caption_bug_report

Host the files there in a web server. I used nginx in docker, like:

docker run --rm -p 8080:80 --name web -v "$PWD":/usr/share/nginx/html nginx:1.19

Open index.html in macos safari, I used safari 14.0.3 (146<IP_ADDRESS>.7): http://localhost:8080

Look at the text tracks, there is a track labeled "Unrecognized ()".

But you can see that no text tracks are configured. None in the hls playlist, none in the player config.
What did you expect to happen?
I expected no text tracks
What actually happened?
I found and can select a track labeled "Unrecognized ()". This is the output of player.getTextTracks()

JSON.stringify(player.getTextTracks(), null, 2)

[
  {
    "id": 1,
    "active": false,
    "type": "text",
    "bandwidth": 0,
    "language": "",
    "label": "",
    "kind": "captions",
    "width": null,
    "height": null,
    "frameRate": null,
    "pixelAspectRatio": null,
    "mimeType": "application/cea-608",
    "codecs": null,
    "audioCodec": null,
    "videoCodec": null,
    "primary": false,
    "roles": [
      "captions"
    ],
    "audioRoles": null,
    "videoId": null,
    "audioId": null,
    "channelsCount": null,
    "audioSamplingRate": null,
    "audioBandwidth": null,
    "videoBandwidth": null,
    "originalVideoId": null,
    "originalAudioId": null,
    "originalTextId": ""
  }
]

I used shaka packager to create the hls playlist and segments.

I should mention, this is the simplest reduction of the bug I could come up with. I first encountered this with an hls playlist with multiple video and multiple audio tracks, and with subtitle text tracks as child elements of the video tag. I would see all the expected text tracks, and then also the extra caption track.

Hi @djeikyb
Does this only happen on Safari or other browsers too?
If you just load the manifest directly in Safari (with no Shaka - post the manifest link into Safari's website navigation field), do you see the fantom text track?

This track is for a CEA track.  I think we add that because we assume there is CEA data even if it isn't present.  We should probably delay-add the track until we see some CEA data.

It's only in Safari, and yep I see this extra caption track shows up without shaka. It looks like Safari is intentionally adding this track. I found this from Apple:
https://developer.apple.com/library/archive/qa/qa1801/_index.html

As part of the new automatic media selection feature on iOS 7, the presence of closed captions and subtitles must be known prior to playback. Prior to iOS 7, there is no way to declare the presence of closed caption data in the playlist.
By default, the alternate track button (see Figure 1) will be displayed along with the various other player controls and will be set to the "Unknown CC" option

Apple's recommendation is to positively declare the lack of captions:

iOS 7 also supports a CLOSED-CAPTIONS attribute for the EXT-X-STREAM-INF tag. You can declare the absence of closed caption content in the playlist by specifying CLOSED-CAPTIONS=NONE on the EXT-X-STREAM-INF tag. The "Unknown CC" option as shown in Figure 1 will not be displayed in the selection when the absence of closed caption content is declared

They mention ios7 as the motivator for the behaviour, but it applies to Safari. I found that adding the cc=none attribute worked as documented. Our drm provider is using shaka packager, so I'm looking to see if there's a way shaka packager could add the attribute. A workaround we might use in the meantime is providing our own shaka.ui.TextSelection widget that filters out this caption.

@djeikyb, do you have an issue filed already against Shaka Packager for this?  If not, I believe I can transfer this issue to the other repo and edit the title to reflect this new information.

No I don't, if you feel it's better tracked there please feel free!

This track is for a CEA track. I think we add that because we assume there is CEA data even if it isn't present. We should probably delay-add the track until we see some CEA data.

I'm wondering if you want a separate issue for this idea?

We should probably delay-add the track until we see some CEA data.
I'm wondering if you want a separate issue for this idea?

If the track was created by Safari in src= mode, then we aren't in control of that.
Separately, in MediaSource mode, which is used in all other browsers, we only look for and expose CEA tracks when they are positively signaled in the content.  The idea to wait to create a track for CEA would only make sense if we changed that design and made it so that the player would look for CEA data in all content, even if it were not signaled in the content.
This could open up other problems, though.  For example, if broadcast TV content has CEA embedded, but has been augmented with VTT or TTML for streaming, the content owner may prefer to have CEA ignored.  Today, that can happen just by leaving out the signaling in the manifest/playlist.


Add py36/py37 to zuul gate

As we fixed those jobs we need to ensure we also run them inside gate.

Also add gate once approved.

recheck


Memory scaling issue with large number of services

Motivation:
Our business case needs memory to scale as number of services increases, especially in scenarios where the scale is very high.
1. What we did
Environment Details:

Kubernetes: 1.28 (CCE)
Istio: 1.19
Kmesh version: release 0.5
CPU: 8
Memory: 16 Gib
Tool for measuring memory: Inspektor-Gadget

We started scaling up in batches of 500 services using the below yaml file and command.

yaml file

# svc.yaml
kind: Service
apiVersion: v1
metadata:
  name: foo-service
  labels:
    foo: bar
spec:
  clusterIP: None
  selector:
    app: foo
  ports:
  - port: 5678

scaling up command

$ for i in $(seq 1 500); do sed "s/foo-service/foo-service-0-$(date +%s-%N)/g" svc.yaml | kubectl apply -f -; done

After every 500 services, we measured the memory consumption using inspektor gadget. The command used to measure the memory is kubectl gadget top ebpf --sort comm
2. What we observed:
The total memory usage of the kmesh bpf map remained constant, even though the number of entries in the bpf map increased (table below).

The detailed table that has the memory consumption is attached below. Please refer to the column MAPMEMORY in the table.
memory_hce.txt
3. Why we think this is a problem
Our business case requires memory usage to scale as we deploy more services, instead of remaining fixed.

IN order to reduce the memory cost, we need to tune the scale up/in param, cc @nlgwcy

IN order to reduce the memory cost, we need to tune the scale up/in param, cc @nlgwcy

ok, maybe the step of scaleup/scalein is too big. I will optimize it later.

I tried to use Inspektor-Gadget, but it couldn't account for the memory of the inner_map, so there was no memory change.

I used the bpftool command to view bpf_map and statistics, and found that there is memory change.
I created 1000 services, and during the process, kmesh scale up
sudo bpftool map -j | jq ' group_by(.name) | map({name: .[0].name, total_bytes_memlock: map(.bytes_memlock | tonumber) | add, maps: length}) | sort_by(.total_bytes_memlock)'

[root@localhost kmesh]# sudo bpftool map -j | jq ' group_by(.name) | map({name: .[0].name, total_bytes_memlock: map(.bytes_memlock | tonumber) | add, maps: length}) | sort_by(.total_bytes_memlock)'
[
  {
    "name": "kmesh_events",
    "total_bytes_memlock": 0,
    "maps": 2
  },
  {
    "name": "map_of_sock_sto",
    "total_bytes_memlock": 0,
    "maps": 2
  },
  {
    "name": "bpf_log_level",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": "ig_fa_pick_ctx",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": "inner_map",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": "kmesh_version",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": "tmp_buf",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": "tmp_log_buf",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": ".rodata",
    "total_bytes_memlock": 49152,
    "maps": 6
  },
  {
    "name": "kmesh_listener",
    "total_bytes_memlock": 212992,
    "maps": 2
  },
  {
    "name": "kmesh_tail_call",
    "total_bytes_memlock": 278528,
    "maps": 8
  },
  {
    "name": "kmesh_manage",
    "total_bytes_memlock": 393216,
    "maps": 2
  },
  {
    "name": "ig_fa_records",
    "total_bytes_memlock": 1974272,
    "maps": 2
  },
  {
    "name": "containers",
    "total_bytes_memlock": 2113536,
    "maps": 2
  },
  {
    "name": "exec_args",
    "total_bytes_memlock": 3940352,
    "maps": 2
  },
  {
    "name": "map_of_router_c",
    "total_bytes_memlock": 8126464,
    "maps": 2
  },
  {
    "name": "kmesh_cluster",
    "total_bytes_memlock": 8388608,
    "maps": 2
  },
  {
    "name": "outer_map",
    "total_bytes_memlock": 16777216,
    "maps": 2
  },
  {
    "name": "map_of_cluster_",
    "total_bytes_memlock": 253771776,
    "maps": 4
  },
  {
    "name": null,
    "total_bytes_memlock": 268419072,
    "maps": 65532
  }
]

[root@localhost kmesh]# sudo bpftool map -j | jq ' group_by(.name) | map({name: .[0].name, total_bytes_memlock: map(.bytes_memlock | tonumber) | add, maps: length}) | sort_by(.total_bytes_memlock)'
[
  {
    "name": "kmesh_events",
    "total_bytes_memlock": 0,
    "maps": 2
  },
  {
    "name": "map_of_sock_sto",
    "total_bytes_memlock": 0,
    "maps": 2
  },
  {
    "name": "bpf_log_level",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": "ig_fa_pick_ctx",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": "inner_map",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": "kmesh_version",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": "tmp_buf",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": "tmp_log_buf",
    "total_bytes_memlock": 8192,
    "maps": 2
  },
  {
    "name": ".rodata",
    "total_bytes_memlock": 49152,
    "maps": 6
  },
  {
    "name": "kmesh_listener",
    "total_bytes_memlock": 212992,
    "maps": 2
  },
  {
    "name": "kmesh_tail_call",
    "total_bytes_memlock": 278528,
    "maps": 8
  },
  {
    "name": "kmesh_manage",
    "total_bytes_memlock": 393216,
    "maps": 2
  },
  {
    "name": "ig_fa_records",
    "total_bytes_memlock": 1974272,
    "maps": 2
  },
  {
    "name": "containers",
    "total_bytes_memlock": 2113536,
    "maps": 2
  },
  {
    "name": "exec_args",
    "total_bytes_memlock": 3940352,
    "maps": 2
  },
  {
    "name": "map_of_router_c",
    "total_bytes_memlock": 8126464,
    "maps": 2
  },
  {
    "name": "kmesh_cluster",
    "total_bytes_memlock": 8388608,
    "maps": 2
  },
  {
    "name": "outer_map",
    "total_bytes_memlock": 16777216,
    "maps": 2
  },
  {
    "name": "map_of_cluster_",
    "total_bytes_memlock": 253771776,
    "maps": 4
  },
  {
    "name": null,
    "total_bytes_memlock": 536846336,
    "maps": 131066
  }
]

Below are the startup logs for kmesh. I started 1000 services, deleted them, and then brought them up again.
[root@localhost kmesh]# kubectl logs -f -n kmesh-system kmesh-57rbp
cp: cannot create regular file '/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64/kmesh.ko': Read-only file system
depmod: ERROR: openat(/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64, modules.dep.17.329771.1728891685, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64, modules.dep.bin.17.329771.1728891685, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64, modules.alias.17.329771.1728891685, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64, modules.alias.bin.17.329771.1728891685, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64, modules.softdep.17.329771.1728891685, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64, modules.symbols.17.329771.1728891685, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64, modules.symbols.bin.17.329771.1728891685, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64, modules.builtin.bin.17.329771.1728891685, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64, modules.builtin.alias.bin.17.329771.1728891685, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/6.1.19-<IP_ADDRESS>.oe2303.x86_64, modules.devname.17.329771.1728891685, 301, 644): Read-only file system
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --bpf-fs-path=\"/sys/fs/bpf\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --cgroup2-path=\"/mnt/kmesh_cgroup2\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --cni-etc-path=\"/etc/cni/net.d\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --conflist-name=\"\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --enable-accesslog=\"false\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --enable-bpf-log=\"true\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --enable-bypass=\"false\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --enable-mda=\"false\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --enable-secret-manager=\"false\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --help=\"false\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --mode=\"ads\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="FLAG: --plugin-cni-chained=\"true\"" subsys=manager
time="2024-10-14T07:41:25Z" level=info msg="kmesh start with Normal" subsys=bpf
Remaining resources are insufficient(0/0), and capacity expansion is required.
collect_outter_map_scaleup_slots:32767-32768-32767
time="2024-10-14T07:41:34Z" level=info msg="bpf loader start successfully" subsys=manager
time="2024-10-14T07:41:34Z" level=info msg="start kmesh manage controller successfully" subsys=controller
time="2024-10-14T07:41:34Z" level=info msg="service node sidecar~<IP_ADDRESS>~kmesh-57rbp.kmesh-system~kmesh-system.svc.cluster.local connect to discovery address istiod.istio-system.svc:15012" subsys=controller/config
time="2024-10-14T07:41:34Z" level=info msg="controller start successfully" subsys=manager
time="2024-10-14T07:41:34Z" level=info msg="start write CNI config" subsys="cni installer"
time="2024-10-14T07:41:34Z" level=info msg="kmesh cni use chained\n" subsys="cni installer"
time="2024-10-14T07:41:35Z" level=info msg="Copied /usr/bin/kmesh-cni to /opt/cni/bin." subsys="cni installer"
time="2024-10-14T07:41:35Z" level=info msg="wrote kubeconfig file /etc/cni/net.d/kmesh-cni-kubeconfig" subsys="cni installer"
time="2024-10-14T07:41:35Z" level=info msg="cni config file: /etc/cni/net.d/10-kindnet.conflist" subsys="cni installer"
time="2024-10-14T07:41:35Z" level=info msg="start cni successfully" subsys=manager
time="2024-10-14T07:41:35Z" level=info msg="start watching file /var/run/secrets/kubernetes.io/serviceaccount/token" subsys="cni installer"
Remaining resources are insufficient(22956/32768), and capacity expansion is required.
collect_outter_map_scaleup_slots:65534-32768-65534
The remaining resources are sufficient(19659/65536) and scale-in is required.
collect_outter_map_scalein_slots:57343-8192-57343
The remaining resources are sufficient(17180/57344) and scale-in is required.
collect_outter_map_scalein_slots:49151-8192-49151
The remaining resources are sufficient(14737/49152) and scale-in is required.
collect_outter_map_scalein_slots:40959-8192-40959
The remaining resources are sufficient(12282/40960) and scale-in is required.
collect_outter_map_scalein_slots:24739-8192-24739
time="2024-10-14T08:13:33Z" level=info msg="grpc reconnect succeed" subsys=controller
time="2024-10-14T08:30:40Z" level=info msg="wrote kubeconfig file /etc/cni/net.d/kmesh-cni-kubeconfig" subsys="cni installer"
time="2024-10-14T08:43:42Z" level=info msg="grpc reconnect succeed" subsys=controller
time="2024-10-14T09:12:46Z" level=info msg="grpc reconnect succeed" subsys=controller
time="2024-10-14T09:19:31Z" level=info msg="wrote kubeconfig file /etc/cni/net.d/kmesh-cni-kubeconfig" subsys="cni installer"
time="2024-10-14T09:45:27Z" level=info msg="grpc reconnect succeed" subsys=controller
time="2024-10-14T10:08:24Z" level=info msg="wrote kubeconfig file /etc/cni/net.d/kmesh-cni-kubeconfig" subsys="cni installer"
time="2024-10-14T10:14:09Z" level=info msg="grpc reconnect succeed" subsys=controller
time="2024-10-14T10:42:11Z" level=info msg="grpc reconnect succeed" subsys=controller
time="2024-10-14T10:57:16Z" level=info msg="wrote kubeconfig file /etc/cni/net.d/kmesh-cni-kubeconfig" subsys="cni installer"
time="2024-10-14T11:10:35Z" level=info msg="grpc reconnect succeed" subsys=controller
Remaining resources are insufficient(22954/32768), and capacity expansion is required.
collect_outter_map_scaleup_slots:65533-32768-65533


Update to JupyterLab v3.1.x

Fix #49
Unfortunately, this breaks compatibility with JupyterLab 2.x. We might need to work on separate branches/releases.

Yes, if there is no way to support both at once, 2 branches sounds good (with a v1.x branch?)... and the sooner we can drop the older branch the simpler.

If we break compatiblity with JLab 2, we might as well cross the bridge entirely and migrate to a prebuilt extension.
Therefore:

I reused most of #48 in ae30c63e88eede710d8768590e2eae64acd59524.
I updated the documentation, GitHub workflows and Binder.
I created a branch 0.x where the development of the extension for JLab 2 will continue.


Document GRPC vs HTTP2 client api as ADR

we should decide on the path forward for the client facing api. grpc or http2, cs3 or ms graph ...

Way too late for an ADR now. Closing.


how can I download?

How can I use the H flash player?

readme file updated.

how can I use the program?

please resubmit if still have questions


Windows 32/64 bit executables for Monochrome

Hello CPirc
can you create Windows 32/64 bit executables of the source code please? My Ivy Bridge 22nm-structure computer supports AVX and POPCNT, but not BMI2 (=Haswell component). I write together with Ron Murawski (USA) contributions for the ComputerChess Wikipedia http://computer-chess.org/doku.php - all available WinBoard/XBoard and UCI compatibles chess engines are there mentioned.
Best wishes,

Hi Matthias.
This is just a pet project of ours - we do not intend to release it any time soon.


Adding Mnemonic and Pseudoinstructions section

This patch adds a mnemonic and pseudo instruction section
similar to what other recently ratified specifications (e.g. bitmanip)
have.
Note, that the wrs pseudo-instruction allows omitting the register
operand if no timeout is given.

CC: @ptomsich @ved-rivos


Improve smart defaults for .NET Core apps

Use Linux by default
Create settings.json with...

preDeploy of dotnet publish
deploySubpath set to correct path bin/Debug/<framework version>/publish

Note that users with Omnisharp may already have the publish task created. This requires the user to confirm they want to add the config files.

mentioning @timheuer and @spboyer here as i discussed this with them too and they may have addendum.

"appService.deploySubpath": "bin\\Debug\\<fwversion>\\publish",
"appService.preDeployTask": "publish"

Even with these defaults the deploySubpath setting changes based on user interaction so that needs to be hardened once set or confirming overwriting more than it does today.

We could potentially add support for a special variable (something like ${targetFramework}) that automatically parses your csproj to get the value and replaces it when deploying. Should be easy enough in most cases, although not sure what we'd do if they have multiple csproj files or a weird folder structure

That would be helpful @EricJizbaMSFT but we'd have to do it on first deploy.  We don't want to assume every csproj is something that will be deployed to Azure, otherwise we could do all this in Omnisharp extension today on startup.

@timheuer I may have missed some context here, but I was already assuming all this logic would be in the appservice extension, not omnisharp

@EricJizbaMSFT no you are right...just meant at the time of parsing the csproj file can't annoy the non-Azure customer :-).  I am pretty sure we are saying the same things, just differently.  VS Code has a nice means to enable setting vars and inspecting things on startup of an extension in a workspace which would have made inspecting the csproj easier...but we wouldn't want to do that in this case IMO at that sequence.

Another test case: $ dotnet new mvp fails to deploy today.

@fiveisprime what is the framework?
can you dotnet --info

This was also reported by a customer. My result is:
.NET Core SDK (reflecting any global.json):
 Version:   2.2.300
 Commit:    73efd5bd87

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.18908
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.2.300\

Host (useful for support):
  Version: 2.2.5
  Commit:  0a3c9209c0

.NET Core SDKs installed:
  2.2.300 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

@bradygaster

I can try this again, but AFAIK, each time i've tried, the way with which i achieve success is to manually dotnet publish, then to right-click the actual publish folder, and then publish that to my App Service. that works every time, but i know those steps.

@fiveisprime - what are the replication steps for your failure?

Yes any pre-compiled option will hit this experience.

Followed Brady's steps and got it deployed. Thanks :)

if you set the settings that I note above now, then the extension will deploy correctly each time now as well.

in a perfect world, the stuff @timheuer mentions would be automatic if possible. ideally, i could do this:
dotnet new mvc -o MyNewMvcApp
cd MyNewMvcApp
code .

Then, i'd right-click anywhere in the explorer view and select publish and it'd "just work."

Hi @bradygaster @timheuer
I've been working on this, but ran into a snag when deploying.  I've been creating a netcoreapp2.0 with dotnet new mvc -o newapp, running publish, and then deploying it to a Linux Web app with the .Net Core 2.0 runtime, but it fails to recognize the .dll.
Here's the error from the log stream:

And here is the web app's directory.  The newapp.dll is definitely there.

Any ideas what I'm doing wrong here?

adding @spboyer to the discussion as well

Does the app run when you run on the listening port?

@timheuer Do you I run dotnet run locally?  If so, yes, it seems to run fine.

@nturinski can you hop onto the portal blade and customize the startup command to run the dotnet newapp.dll command?

I see the log error, I'm just wondering when you actually browse to the deployed site if it works or if there are further error messages?

@bradygaster That did it.  Is there a way we can make this easier for the user?  I remember @fiveisprime and you had discussed that after a publish and deploy, it used to just work.  Do you know what's changed?
@timheuer Oh, no there's only a 404 error response.

you should absolutely not need to do that in the portal...hmmm, i'm hastily trying now, but also in a meeting and can't quickly repro what you're seeing.

I believe that was only working because I was using basic creation, which deploys .NET apps to Windows. This seems to be a problem that's specific to Linux.


Migrate off of gorilla/mux as it is archived

As has been pretty publicly announced the gorilla project is basically archived at this point, no longer to be supported. We need to identify an alternative to use.
Or pick up maintenance of it that'd be pretty sick but I doubt any of us have the capacity for that unfortunately.

I think I'd really like to try migrating this to FastAPI - it'd be a good learning opportunity and python would be consistent with the rest of our services!


Support running both ClickHouse and ch-ui in same docker-compose project

Idea Statement
Currently I am unable to run both ClickHouse and ch-ui in same docker-compose project.
ch-ui needs VITE_CLICKHOUSE_URL env variable to talk to ClickHouse DB.

If used http://localhost:8123, it will work for UI in browser, as its UI's javascripts can access it from browser, but its not accessible within ch-ui's docker container, as it will check ch-ui's docker container for port 8123, which is not available, so UI will not render completely -

If used http://clickhouse:8123, then its accessible within ch-ui's docker container, but browser is not aware of any clickhouse host

Here is my docker-compose file -
services:
  clickhouse:
    image: clickhouse/clickhouse-server
    volumes:
      - ./.clickhouse_local_data:/var/lib/clickhouse
      - ./docker/dev.xml:/etc/clickhouse-server/users.d/dev.xml
    ports:
      - "9000:9000"
      - "8123:8123"
    ulimits:
      nproc: 65535
      nofile:
        soft: 262144
        hard: 262144
  ch-ui:
    image: ghcr.io/caioricciuti/ch-ui:latest
    env:
      VITE_CLICKHOUSE_URL: "http://clickhouse:8123" # http://localhost:8123"
      VITE_CLICKHOUSE_USER: "admin"
      VITE_CLICKHOUSE_PASS: "password"
    restart: always
    ports:
      - "${CH_UI_PORT:-5521}:5521"

Need some way to support this use case.
Workaround

Add clickhouse host to local /etc/hosts file as -

$ cat /etc/hosts
<IP_ADDRESS>	localhost clickhouse

Feature implementation brainstorm
No response

Hey, that's awesome! Thank you for bringing this up... What do you think is the most effective way to make this work?
This should fit...
version: '3.8'

services:
  ch-ui:
    image: ghcr.io/caioricciuti/ch-ui:latest
    restart: always
    ports:
      - "${CH_UI_PORT:-5521}:5521"
    environment:
      # Use localhost by default if no ClickHouse URL is specified
      VITE_CLICKHOUSE_URL: "${CLICKHOUSE_URL:-http://localhost:8123}"
      VITE_CLICKHOUSE_USER: "${CLICKHOUSE_USER:-}"
      VITE_CLICKHOUSE_PASS: "${CLICKHOUSE_PASS:-}"
    depends_on:
      - nginx # Ensure the UI starts only if the proxy is available
    networks:
      - app-network

  clickhouse:
    image: clickhouse/clickhouse-server
    volumes:
      - ./.clickhouse_local_data:/var/lib/clickhouse
      - ./docker/dev.xml:/etc/clickhouse-server/users.d/dev.xml
    ports:
      - "9000:9000"
      - "8123:8123"
    ulimits:
      nproc: 65535
      nofile:
        soft: 262144
        hard: 262144
    deploy:
      replicas: ${CLICKHOUSE_ENABLED:-0} # Default to 0 (disabled)

  nginx:
    image: nginx:alpine
    depends_on:
      - clickhouse
    ports:
      - "8123:8123" # Proxy to handle browser requests
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf
    networks:
      - app-network

networks:
  app-network:
    driver: bridge

and then... if you want to use with Clickhouse on the same docker-compose you can create a nginx.conf on the same folder and run as CLICKHOUSE_ENABLED=1 docker-compose up
or  Running Only ch-ui (External ClickHouse) docker-compose up
Would this solve the issue?

I haven't looked through this codebase very much so I apologize if this is an ignorant question, but is it reasonable to ask if it's possible to remove the need for the browser to directly access the Clickhouse host URL? What would need to change? If it doesn't require architectural changes in your app, could you point me in the right direction? I'd be happy to contribute to make the change.

@mwarnerdotme Hey! Sorry, I don't think I quite understood your question. Do you mean the connection part or the request itself?
Like in here (1) :

or here:

In either one, I don't think we can change that since @clickhouse/client-web  needs it to connect to the instance... you can read more at: Docs

In either one, I don't think we can change that since @clickhouse/client-web needs it to connect to the instance... you can read more at: Docs

I think this answers my question. I didn't know that Clickhouse offered a JS/TS web client - I originally figured that you were querying some kind of backend to execute queries. Since you're using the web client, it seems much more complicated and less feasible to put a ch-ui container into a Docker compose file and utilize a Docker network. I think in order to achieve this in an ideal way, the parts of the app that execute queries would need to be migrated to SSR.

ahhh I got you now, yep that's something that maybe you can do if you really need to... I mean, you can clone the project and user react-router v7 and apply the SSR, I think it's quite complex but doable if you are up too... I'll close this issue, feel free to reach out :)
PD: I'll not change the docker compose since no feedback was given.


npm install -g responds with "node: Permission denied"

Operating system and version:
ubuntu 16.04

nvm debug output:

root@ubuntu:~# nvm debug
nvm --version: v0.33.0
$SHELL: /bin/bash
$HOME: /root
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
nvm current: v6.10.0
which node: $NVM_DIR/versions/node/v6.10.0/bin/node
which iojs:
which npm: $NVM_DIR/versions/node/v6.10.0/bin/npm
npm config get prefix: $NVM_DIR/versions/node/v6.10.0
npm root -g: $NVM_DIR/versions/node/v6.10.0/lib/node_modules

nvm ls output:

root@ubuntu:~# nvm ls
         v6.9.5
->      v6.10.0
default -> 6 (-> v6.10.0)
node -> stable (-> v6.10.0) (default)
stable -> 6.10 (-> v6.10.0) (default)
iojs -> N/A (default)
lts/* -> lts/boron (-> v6.10.0)
lts/argon -> v4.8.0 (-> N/A)
lts/boron -> v6.10.0

How did you install nvm? (e.g. install script in readme, homebrew):
curl script from readme

What steps did you perform?
npm i -g testcafe

What happened?

root@ubuntu:~# npm i -g testcafe
/root/.nvm/versions/node/v6.10.0/bin/testcafe -> /root/.nvm/versions/node/v6.10.0/lib/node_modules/testcafe/bin/testcafe.js

><EMAIL_ADDRESS>postinstall /root/.nvm/versions/node/v6.10.0/lib/node_modules/testcafe/node_modules/testcafe-browser-tools
> node ./bin/fix-permissions.js

sh: 1: node: Permission denied
/root/.nvm/versions/node/v6.10.0/lib
└── (empty)

npm ERR! Linux 4.9.7-x86_64-linode80
npm ERR! argv "/root/.nvm/versions/node/v6.10.0/bin/node" "/root/.nvm/versions/node/v6.10.0/bin/npm" "i" "-g" "testcafe"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR<EMAIL_ADDRESS>postinstall: `node ./bin/fix-permissions.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'node ./bin/fix-permissions.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the testcafe-browser-tools package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./bin/fix-permissions.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs testcafe-browser-tools
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls testcafe-browser-tools
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/npm-debug.log
npm ERR! code 1

What did you expect to happen?
installation of testcafe globally

Is there anything in any of your profile files (.bashrc, .bash_profile, .zshrc, etc) that modifies the PATH?
Not that I see.

If you are having installation issues, or getting "N/A", what does curl -v nodejs.org/dist/ print out?

The error is coming from a postinstall script from testcafe-browser-tools<EMAIL_ADDRESS>Looking at the script, it should be working fine - but the implication is that you used sudo at one time to nvm install node v6.10.0.
You'll either need to fix the permissions manually, or, nvm uninstall v6.10 && nvm install v6.10 (you will lose any installed global modules).

Thanks @ljharb. Any tips on how to resolve permissions manually? I gave chmod to /lib folder a shot, but admittedly I'm a bit of a linux n00b and it didn't work. Plus maybe it'd be a good look-up resource for others who have the same issue.
I'll also try your uninstall/install suggestion.
(BTW, I'm logged in as root in the machine.)

Some combination of chmod or chown should do it, but without having an open shell it's hard to tell you from here :-)
(separately, i'd encourage not using root for anything, including nvm; that shouldn't stop it from working, however)

FYI, nvm uninstall v6.10 && nvm install v6.10 didn't work for me, still couldn't install testcafe globally.
(Agreed about using root, but just trying to get something working at the moment.)

Also tried sudo chmod a+w /root/.nvm/versions/node/v6.10.0/lib
Which now shows:
root@ubuntu:~# ls -la /root/.nvm/versions/node/v6.10.0/
total 164
drwxrwxrwx 7 root root  4096 Mar  3 20:11 .
drwxr-xr-x 4 root root  4096 Mar  3 20:11 ..
drwxrwxr-x 2  500  500  4096 Mar  3 20:12 bin
-rw-rw-r-- 1<PHONE_NUMBER>6 Feb 22 00:27 CHANGELOG.md
drwxr-xr-x 2 root root  4096 Mar  3 20:11 etc
drwxrwxr-x 3  500  500  4096 Feb 22 00:27 include
drwxrwxrwx 3  500  500  4096 Feb 22 00:27 lib
-rw-rw-r-- 1<PHONE_NUMBER>5 Feb 22 00:27 LICENSE
-rw-rw-r-- 1<PHONE_NUMBER>5 Feb 22 00:27 README.md
drwxrwxr-x 5  500  500  4096 Feb 22 00:27 share

Still no luck with npm i -g testcafe

Just to confirm, is this just a problem with testcafe?

Some things work fine, like http-server and pm2.
But vorlon does not either, though it installs fine on my Windows machine.
root@ubuntu:~# npm i -g vorlon
npm WARN deprecated<EMAIL_ADDRESS>Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated<EMAIL_ADDRESS>Deprecated, use jstransformer
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>use uuid module instead
/root/.nvm/versions/node/v6.10.0/bin/vorlon -> /root/.nvm/versions/node/v6.10.0/lib/node_modules/vorlon/bin/vorlon

><EMAIL_ADDRESS>install /root/.nvm/versions/node/v6.10.0/lib/node_modules/vorlon/node_modules/phantomjs-preb                                                                                uilt
> node install.js

sh: 1: node: Permission denied
/root/.nvm/versions/node/v6.10.0/lib
└── (empty)

npm ERR! Linux 4.9.7-x86_64-linode80
npm ERR! argv "/root/.nvm/versions/node/v6.10.0/bin/node" "/root/.nvm/versions/node/v6.10.0/bin/npm" "i" "-g" "vorlon"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR<EMAIL_ADDRESS>install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the phantomjs-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/npm-debug.log
npm ERR! code 1

The common thread seems to be global packages that have postinstall scripts that check/fix permissions. I would still suspect that it's because you're root - npm runs postinstall scripts as nobody for safety.

Let's call this one fixed! :)
I followed the instructions here to create a sudo user (called it worker1): https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
Then reinstalled nvm in that account. Then:
worker1@ubuntu:~$ npm install testcafe

><EMAIL_ADDRESS>postinstall /home/worker1/node_modules/testcafe-browser-tools
> node ./bin/fix-permissions.js

File permissions fixed
/home/worker1
└─┬<EMAIL_ADDRESS>. . .

I don't fully understand the ramifications of using a non-root user, but it's enough to nod my head, cheer, and move along :) Thanks for your help working through this; muchly appreciated kind sir! :+1: May others find this useful as well.

Glad you got something working!

You can run this as root
npm config set user 0
npm config set unsafe-perm true
npm install -g package
source

unsafe-perm is unsafe tho; you shouldn't need sudo or unsafe perms to do anything with node/npm.

@ljharb right, if for some reason someone want to use it with root that should work.

Had this issue when trying to set up a Dockerfile to handle my dependencies.
https://github.com/creationix/nvm/issues/1407#issuecomment-316858947 fixed it for me as well. I ended up creating my Dockerfile like this:
Dockerfile:
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
ADD setup_nvm.sh setup_nvm.sh
RUN sh ./setup_nvm.sh

setup_nvm.sh
#!/usr/bin/env sh

export NVM_DIR="$HOME/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
    [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

nvm install node
npm config set user 0
npm config set unsafe-perm true
npm install -g npm
npm install package

npm config set user 0
npm config set unsafe-perm true

Woks.

Im trying to install Tronbox and Im egtting this error can someone please chat with me to help? https://www.facebook.com/camjacko
Last login: Wed Jun 26 13:04:01 on ttys002
Camerons-iMac:~ Jacko$ git clone https://github.com/ThisIsCodeXpert/CodeXpert-Tron-DApp-Template.git
fatal: destination path 'CodeXpert-Tron-DApp-Template' already exists and is not an empty directory.
Camerons-iMac:~ Jacko$ npm install -g tronbox
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules']
npm ERR!   stack:
npm ERR!    'Error: EACCES: permission denied, access '/usr/local/lib/node_modules'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR!      /Users/Jacko/.npm/_logs/2019-06-26T09_12_04_096Z-debug.log
Camerons-iMac:~ Jacko$ root/Administrator npm install -g tronbox
-bash: root/Administrator: No such file or directory
Camerons-iMac:~ Jacko$ /Users/Jacko/.npm/_logs/2019-06-26T09_12_04_096Z-debug.log
-bash: /Users/Jacko/.npm/_logs/2019-06-26T09_12_04_096Z-debug.log: Permission denied
Camerons-iMac:~ Jacko$

@horseracetron you need to use sudo with npm install -g when you’re not using nvm (note that because you’re not using nvm, this repo doesn’t apply to your issue)

TLDR; don't run npm commands as root.
I just wanted to note here in line with @ljharb that it is highly discouraged to run npm commands as root.  Essentially this installs global JS modules (that are often updated) across the whole filesystem and can be used by any process, within or out of your control.

@britho fwiw the install scripts run as nobody, so the security risk is actually minimal.

sudo find ~/.vnm/ -type d -user root -exec sudo chown -R $USER: {} +
Works here

@gregoryderner's solution is the only one that worked for me here. Running on WSL2 Ubuntu

I've got this error when npm install
root@NewGlobal:/home/piaconnect.itebco.com/public_html# npm install --unsafe-perm=true --allow-root
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated<EMAIL_ADDRESS>See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated<EMAIL_ADDRESS>This version contains a breaking change for users depending on unspecified behaviors with repeated capital letters. See https://github.com/bendrucker/snakecase-keys/issues/47. Please upgrade to the identical 5.0.0 release instead.
npm WARN deprecated<EMAIL_ADDRESS>Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated<EMAIL_ADDRESS>Sorry but vue-analytics is no longer maintained. I would suggest you switch to vue-gtag, with love, the guy who made the package.
npm WARN deprecated<EMAIL_ADDRESS>https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated<EMAIL_ADDRESS>See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated<EMAIL_ADDRESS>The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated<EMAIL_ADDRESS>Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated<EMAIL_ADDRESS>Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated<EMAIL_ADDRESS>You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm ERR! code 127
npm ERR! path /home/piaconnect.itebco.com/public_html/node_modules/@fortawesome/fontawesome-free
npm ERR! command failed
npm ERR! command sh -c node attribution.js
npm ERR! sh: 1: node: Permission denied
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-02-21T17_29_55_530Z-debug-0.log
Please teach me to fix this error.

@gs-pro-engineer just run npm install, you don't need or want those other ones. Make sure you fully own the public_html folder (the project you're installing into). If you're still having trouble, please file an issue on nPm (not nVm).


Sliding Window Attention RoPE

Hi, thank you so much for releasing code for this cool work!
In the paper, it is mentioned that "The RoPE relative positions are applied within the sliding window". Does this mean in each sliding window of size 2048, RoPE embedding cache of length 2048 is applied? This seems complicated to implement since the same key in different sliding windows has different position.
However, I noticed that in code, during training, RoPE cache of sequence length (self.config.block_size) is directly applied on the entire Q and K. If this is the case, I'm wondering how I should add RoPE for extrapolation beyond training sequence length?
Thank you very much for your time and help!

Hi, thanks for your interest in our work!
Actually, it is just normal RoPE applied on the entire Q, K. Since RoPE is relative, it is equivalent to apply rope inside the sliding window.
This line shows how rope is handled when the sequence length is longer than training.

Thank you for your reply!
It's totally understandable from the perspective of efficiency to apply RoPE on the entire QK.
However, my original thinking was each window will use RoPE of length = window size, and reset RoPE for the next window, such that the length of RoPE on depends on window size rather than sequence length. This should not be equivalent to applying RoPE of length = sequence length to the entire QK, and may produce better extrapolation ability, as there's no dependency on a pre-specified context length.
I'm wondering if my understanding is correct and if there's any study about this? Thank you very much!

I see. Thank you very much!


SharePoint Adaptive Card - Dark Mode Color Issue

Now i have issue with ImageCard-HybridWork-Checkin Card when I change viva Sharepoint portal to dark mode the
the card below has some color issues which makes the input hard to see.
how to fix that

Thank you for the issue @ahmedmahmoudR.
To better help identify the issue, could you provide a little more clarity around the steps you took to apply your dark mode? We wanted to confirm if this was just the application of a dark Microsoft 365 theme or OS level dark mode or perhaps something else.
Thank you in advance. ☺🧡💜

I just change SharePoint theme to dark from look and feel
![This is an image](

Any Update about this issue ?

Hi @ahmedmahmoudR I have not had a chance to look into this yet. I will loop in the sample creator @ArijitCloud to see if he has a few minutes to look at this.

Thanks @dcashpeterson  for looping me in. I took a quick view at it. I can reproduce it and the same issue seems to be present for other "input form" type ACE solutions.
So the challenge is I don't see any specific resources that allows handling dynamic theme in ACEs as of now. I would need to check more though.

Hello All Thanks for support but is there any update with my issue

Hello @ahmedmahmoudR , Thank you for reporting this. It looks like this might be an issue with the samples not being created to be theme aware. As these are all community contribution based samples we welcome any community member to provide updates. If you would like to try to give it a try to fix it you could see if this link is helpful. https://n8d.at/develop-spfx-web-parts-for-different-section-designs-using-css.


implemented SourceLine to get a string representation of Location()

Just for convenience :)

Looks good, thanks.


How to register a custom op in Python API？

I just try to implement a zero_out op in tflite, and minimal project load the converted tflite model succesfully, but in python, it failed? How to register a custom op in Python API？
Thanks for your help!

@lizhen2017
please refer to this link as example to modify as per your requirement.
In specific zero_out is available as custom op here

@lizhen2017
please refer to this link as example to modify as per your requirement.
In specific zero_out is available as custom op here
Could you please let us know what tensorflow version are you using.

1.15

@S

@lizhen2017
please refer to this link as example to modify as per your requirement.
In specific zero_out is available as custom op here
Could you please let us know what tensorflow version are you using.
I have implemented the zero_op both in tflite and tf, and I have built the project located at tensorflow/lite/example/minimal, I loaded the tfllite model with zero_out op successfully.
And my question is how to register the zero_out op in tflite python API, because, I can't load the tflite model with zero_out op with python.

@lizhen2017 Please take a look at this article about Loading a TensorFlow-Lite model in Python with Custom Operators.

It has been 14 days with no activity and the awaiting response label was assigned. Is this still an issue?

Closing this issue as it has been inactive for more than 3 weeks. Please add additional comments for us to open this issue again. Thanks!

Closing this issue as it has been inactive for more than 3 weeks. Please add additional comments for us to open this issue again. Thanks!

Hello gowthamkpr!
I have been following the same article you suggested and now that the compilation finished I'm getting this error when trying to use it:
ImportError: /home/ec2-user/decoder/lib/python3.7/site-packages/tensorflow/lite/python/interpreter_wrapper/_tensorflow_wrap_interpreter_wrapper.so: undefined symbol: _ZN6tflite3ops6custom27Register_POSENET_DECODER_OPEv
I have opened an issue at #45944  but I found this and it would be really helpful if you can take a look at it, greetings!


image format of body index map has been changed in v0.9.2

Describe the bug

k4a_image_format_t of k4a_image_t that returned by k4abt_frame_get_body_index_map has been changed in the Azure Kinect Body Tracking SDK v0.9.1 to v0.9.2.
It is as follows for more details.

v0.9.1
v0.9.2

K4A_IMAGE_FORMAT_CUSTOM8
K4A_IMAGE_FORMAT_CUSTOM

Is this a specification of Azure Kinect Body Tracking SDK, or bug?
(I like K4A_IMAGE_FORMAT_CUSTOM8.)
To Reproduce

/*
 v0.9.1 : 6 (K4A_IMAGE_FORMAT_CUSTOM8)
 v0.9.2 : 8 (K4A_IMAGE_FORMAT_CUSTOM)
*/
k4a_image_t image = k4abt_frame_get_body_index_map( frame );
k4a_image_format_t format = k4a_image_get_format( image );
std::cout << format << std::endl;

Expected behavior

If it is not an intentional change, it should be K4A_IMAGE_FORMAT_CUSTOM8.
Desktop (please complete the following information):

OS with Version: Windows 10 (1903)
SDK Version: Azure Kinect Sensor SDK v1.2.0, Azure Kinect Body Tracking SDK v0.9.1/v0.9.2

Additional context

I would like to add the following:

Body depth map definitely should have K4A_IMAGE_FORMAT_CUSTOM8 because function k4a_transformation_depth_image_to_color_camera_custom doesn't support K4A_IMAGE_FORMAT_CUSTOM format.
K4A_IMAGE_FORMAT_CUSTOM8 and K4A_IMAGE_FORMAT_CUSTOM16 formats were introduced in version 1.2 of Sensor DK. And it was really clever decision to introduce K4A_IMAGE_FORMAT_CUSTOM8 format with the same numeric value (6) as K4A_IMAGE_FORMAT_CUSTOM format had in 1.1.x. Due to this, Body Tracking 0.9.1 returns body index maps in K4A_IMAGE_FORMAT_CUSTOM8 format when used with Sensor DK 1.2. And it was really convenient.
But I'm afraid that Sensor team didn't inform Body Tracking team about new formats and the way they should be used. As a result, in source codes of Body Tracking K4A_IMAGE_FORMAT_CUSTOM format is still used for body index maps. Thus, after rebuilding with updated headers from Sensor DK and publishing as 0.9.2, we now have K4A_IMAGE_FORMAT_CUSTOM as format for body index maps. oops...

@yijiew What do you think?

We also encounter this problem and need a fix. Please help.

Hi All, may i know is this bug able to bring any effect on body tracking sdk performance? Possible if i use the version of 0.9.1 first while waiting for the latest version 0.9.2 issue solved? Besides I get from somewhere know that Azure Body tracking SDK does not open source. may i ask confirmation on this?

@JMonkey94 I tried downgrading to v0.9.1 but it turned out v0.9.1 lacks a function I needed: k4a_transformation_depth_image_to_color_camera_custom. So I have to wait for the bug to be fixed and my project is seriously delayed because of it. And yes Azure Body tracking SDK is close source, and I'd love to see it go open source, thus the community can help to fix this kind of minor bugs more timely...

Sorry folks. I was on vacation in the past two weeks. The issue was caused exactly as @bibigone mentioned, we were not aware that the Sensor SDK introduced two additional custom image type enum. We will change the image type to K4A_IMAGE_FORMAT_CUSTOM8 in the next release. @binxie33 For anyone who needs to use k4a_transformation_depth_image_to_color_camera_custom function now, you can create your own k4a_image_t with K4A_IMAGE_FORMAT_CUSTOM8 and then copy the image content of the body map.

@yijiew  Thanks for the hint. k4a_transformation_depth_image_to_color_camera_custom works after creating a new k4a_image_t with K4A_IMAGE_FORMAT_CUSTOM8. So now I can settle with the workaround until the fix comes out. :)

@binxie33 That is good to know! Please stay tuned for the next release :)

Hi everyone, the new 0.9.3 release that solves this problem is published. You can download the latest release here: 0.9.3 | msi nuget


Assertion failed when encoding blank image at low quantizers

Describe the bug
thread 'main' panicked at 'assertion failed: `(left != right)`
  left: `0`,
 right: `0`', rav1e/src/encoder.rs:2243:3

To Reproduce
Version: rav1e p20220802-15-g725c941 (Release)
Sample input file: https://0x0.st/o2LY.y4m
Failing command line: rav1e test.y4m --bitrate 1000 --min-quantizer 0 --output out.ivf
Working: rav1e test.y4m --bitrate 1000 --min-quantizer 50 --output out.ivf
Expected behavior
The encode should not fail.
Version 0.4.1 also works.
Required Information
Version:
rav1e p20220802-15-g725c941 (Release)

Operating system:
Linux user 5.18.16-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 03 Aug 2022 11:25:04 +0000 x86_64 GNU/Linux

Console Output
Trace: trace.txt

CPU Feature Level: AVX2
Using y4m decoder: 640x480p @ 24/1 fps, 4:2:0, 8-bit
Encoding settings: keyint_min=12 keyint_max=240 quantizer=255 bitrate=1000000 min_quantizer=0 low_latency=false tune=Psychovisual rdo_lookahead_frames=20 multiref=true fast_deblock=false scene_detection_mode=Standard cdef=true lrf=true enable_timing_info=false min_block_size=8x8 max_block_size=64x64 encode_bottomup=false non_square_partition_max_threshold=8x8 reduced_tx_set=true tx_domain_distortion=false tx_domain_rate=false rdo_tx_decision=false prediction_modes=Complex-KFs fine_directional_intra=true include_near_mvs=false use_satd_subpel=true

Running git bisect with the reproduction identified #2933 as commit that introduced this assertion failure.
Curiously, it no longer reproduces after #2981. I will continue analysis to ensure the underlying issue is resolved.

Patch works for my sample. Thanks!