Block universe RPC calls to universe service until service is online

In a recent user report, litd dysfunction was shown because the universe RPC call ran before the universe sub service was online.
TODO

[ ] Add subservice operation check before allowing calls

@jharveyb debugged the issue

Thanks for the issue report! Should we allow any rpc requests to the tapd before the universe sub-service has been started?
If they should be separated, so that would want we allow some requests prior to the universe sub-service, would an ok first version be to just disallow any tapd RPCs until the universe sub-service is up, and then create the separation at a later stage?

I don't think they should be separated, or that there would be any benefit to that.
IIUC the desired fix is to disallow all tapd RPCs until all tapd sub-services are up.

LiT today should already take care of this. We only mark a subserver as "ready for calls" once the Start (for tap, this is the (s *Server) StartAsSubserver method) method of that subserver returns without an error. We want to keep lit as generic as possible in terms of handing of subservers and so it is expected for each subserver that it is ready to handle calls once that  start method has returned and we really should not be doing extra calls to check if various subserver specifics are ready - the SLA here is that things should be ready once that method has returned.

If yall dont want to permanently change the behaviour, then I suggest adding a "BlockTillUniverseStart" functional option or something on that call

Hmm, I see. That is the correct behavior as far as I can see. We only have a screenshot of a stack trace to go from and it looked like an RPC request did come through before the internal gRPC server in tapd was started.
But perhaps tapd stopped with an error and the request came through after the gRPC server was stopped?
Though from just the code it looks like that's handled correctly as well.
Need more info from the user then, preferably actual logs.

Reposting the stack trace as text:

2024-08-29 11:27:64.591 [DBG] RPCS: [/Lnrpc.State/GetState] requested

2024-08-29 11:27:64.682 [DBG] RPCS: [/Lnrpc.State/GetState] requested

2024-08-29 11:27:04.690 [DBG] RPCS: [/universerpc.Universe/ListFederationServers] requested

2024-08-29 11:27:64.692 [DBG] RPCS: [/Lnrpc.Lightning/ChecktacaroonPermissions] requested

2024-08-29 11:27:64.692 [DBG] RPCS: [/Lnrpc.Lightning/ListPeers] requested

panic: runtime error: invalid memory address or nil pointer dereference

[signal SIGSEGV: segmentation violation code=@x1 addr=0x38 pc=9x16c62a0]

goroutine 3224 [running]:

github. com/lightninglabs/taproot -assets. (*rpcServer).ListFederationServers(@x0?, {@x32b0ad0?, 0x40026efc50?}, @x1bb10407)
<EMAIL_ADDRESS>.g0:5654 +8x20

github. com/lightninglabs/taproot -assets/taprpc/universerpc._Universe_ListFederationServers_Handler .func1({@x3Zb0ad0?, @x40026efc50?}, {@x1bb1040?,
github.con/Lightninglabs/taproot<EMAIL_ADDRESS>-2110839696cb/taprpc/universerpc/universe_grpc.pb.90:688 +0xd0

github. com/lightningnetwork/Lnd/rpcperms.(*InterceptorChain) .CreateServerOpts. (*InterceptorChain) .middLewareUnaryServer Interceptor . func7({@x3zb0adé
github<EMAIL_ADDRESS>1b353b0bfd58/rpcperms/interceptor .go:832 +0xec

‘google.golang.org/grpc.getChainunaryHandler .funct({9x32bGad0, @x40026ef C50}, {@x1bb1049, 6x49026eFcB0})
google. golang.org/grpc@v1.59.0/server.go:1163 +0xa0

github. com/lightningnetwork/Lnd/rpcperms. (*InterceptorChain) .CreateServerOpts. (*InterceptorChain) .MacaroonUnaryServer Interceptor . func5({@x3Zb0ad0,
github. com/lightningnetwork/Lnd<EMAIL_ADDRESS>1b353b0bfd58/rpcperms/interceptor .go:689 +0x90

google. golang.org/grpc.getChainUnaryHandLer . func1({@x32b0ad0, @x40026efc50}, {@x1bb1040, @x40026efc80})
google.golang.org/grpc@v1.59.0/server.go:1163 +8xa0

github. com/lightningnetwork/Lnd/rpcperms. (*InterceptorChain) .CreateServerOpts. (*InterceptorChain) .rpcStateUnaryServer Interceptor . Func3({@x3Zb0ad0,
github. com/lightningnetwork/Lnd@vd. 18.0-beta.rc4.0.20240730143253-1b353bebfdS8/rpcperms/interceptor .go:781 +6x108

google. golang.org/grpc.getChainUnaryHandLer . func1({@x32b0ad0, @x40026efc50}, {@x1bb1040, @x40026efc80})
google.golang.org/grpc@v1.59.0/server.go:1163 +8xa0

github. com/lightningnetwork/Lnd/rpcperms.(*InterceptorChain) .CreateServer0pts.errorLogunaryServer Interceptor . funcl({@x32b0ad0?, @x40026efc50?}, {0:
github. com/lightningnetwork/Lnd<EMAIL_ADDRESS>18.0-beta.rc4.0.20240730143253- 1b353b0bfd58/rpcperms/interceptor .go:605 +0x48

google.golang.org/grpc.NewServer .chatnUnaryServerInterceptors.chainUnaryinterceptors.funci({@x32b0ad®, @x49026efC50}, {@x1bb1040, @x49026eFc8},
<EMAIL_ADDRESS>.go:1154 +0x88

github. com/lightninglabs/taproot -assets/taprpc/universerpc._Universe_ListFederationServers_Handler({@xleSe5a0, 0x400056e600}, {@x32b0ad0, 0x40026et
github.con/Lightninglabs/taproot<EMAIL_ADDRESS>-2110839696cb/taprpc/untverserpc/universe_grpc.pb.g0:690 +9x148

‘google.golang.org/grpc. (*Server).processUnaryRPC(Gx40008541e9, {Gx32bGad0, @x49026eF99}, {6x32c2920, 0x4000588340}, 0x40026b19e0, 6x4900591c20,
google<EMAIL_ADDRESS>.go:1343 +0xb40

google.golang.org/grpc. (*Server).handleStream(@x40008541e0, {0x32c2920, @x4000588340}, @x40026b19e9)
‘google<EMAIL_ADDRESS>.go:1737 +8x95c

google. golang.org/grpc. (*Server).serveStreams. func1.1()
google. golang.org/grpc@v1.59.0/server.go:986 +0x88

created by google.golang.org/grpc.(*Server).serveStreams.funcl in goroutine 3223
google. golang.org/grpc@v1.59.0/server.go:997 +0x14c

So today we have a middleware interceptor that'll bounce all calls until the server is fully started: https://github.com/lightninglabs/taproot-assets/blob/72b93f84a0afa08e01c99d582357672133fc9b20/rpcperms/interceptor.go#L380-L408
We then set to active after all the sub-systems have started here: https://github.com/lightninglabs/taproot-assets/blob/72b93f84a0afa08e01c99d582357672133fc9b20/server.go#L374-L378
From the trace, either the rpcserver or FederationDB was nil at that point, which is puzzling (all the sub-system structs have already been initialized at that point). So perhaps some mutation occurred somewhere?

This issue is coming from our team. When the terminal is restarted while lnd and tapd are still in the process of syncing, the terminal crashes continuously due to receiving various requests from tapd (such as assets list, subscribeRfqEvents, universe).

@lukegao209 could you send us a full log (including the stack trace) from the beginning of a startup sequence until it panics?

@lukegao209 also, what port are you issuing the ListFederationServers call on? The main litd port (8443) or the integrated tapd port (10029)?

@lukegao209 also, what port are you issuing the ListFederationServers call on? The main litd port (8443) or the integrated tapd port (10029)?

port 10029

@lukegao209  - ok cool thanks 🙏  This makes sense then - rather point your requests to Lit's port 8443 as then LiT will block calls to tapd until it is ready.
@Roasbeef  re

So today we have a middleware interceptor that'll bounce all calls until the server is fully started:

This is actually not the case for the Subserver startup of Tap.

this is done for the main startup of Tap when it is in its own process: see RunUntilShutdown which sets up the interceptor chain for Tap which does this blocking
but for StartAsSubserver which LiT uses , the interceptor chain in Tap is not set up

In conclusion, for the terminal, it should request lnd on port 10009; for other services (tapd, loop, pool, etc.), they should all request port 8443. ?

you can also point LND requests to 8443 👍

thanks

btw , will terminal’s account support taproot assets channel?

btw , will terminal’s account support taproot assets channel?

not out of the box, no. we'll need to update the litd account system once taproot asset channels are fully implemented.

If Taproot Assets are implemented through parsing the invoice’s custom_data, maybe I can start working on supporting it now.

@ellemouton

but for StartAsSubserver which LiT uses , the interceptor chain in Tap is not set up

Gotcha, ok that seems to be the core issue here. We should retain the interceptor chain for tapd, either using the same system, or a more explicit check.

@guggero  - with our latest offline discussion, do you rate we can close this and move it to the Tap repo?

Yes. TODOs are:

tapd: return false in waitForReady if tapd was shut down or errored out
tapd: don't set initialized=true when startup (StartAsSubserver) fails
tapd: add server nil check to global error interceptors

Transferring to tapd repo.


Type checking fails with beta.0

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
hundreds of weird typescript errors appear

Expected Behavior 🤔
typescript works correctly, as before

Steps to Reproduce 🕹
Just install @material-ui/core": "^5.0.0-beta.0" to your existing project. For very common try to write any condition inside JSX that return null. {Math.random() > 0.5 ?  : null}. I received following error after that
Type 'Element | null' is not assignable to type 'ReactElement<any, string | JSXElementConstructor<any>> & ReactNode'.
  Type 'null' is not assignable to type 'ReactElement<any, string | JSXElementConstructor<any>> & ReactNode'.  TS2322

Context 🔦

Your Environment 🌎
    "react": "^17.0.2",
    "react-dom": "^17.0.2",

    "@emotion/cache": "^11.4.0",
    "@emotion/react": "^11.4.0",
    "@emotion/styled": "^11.3.0",
    "@material-ui/core": "^5.0.0-beta.0", <- this cause the errors
    "@material-ui/icons": "^5.0.0-beta.0",
    "@material-ui/lab": "^5.0.0-alpha.39",
    "@material-ui/styles": "^5.0.0-beta.0",

tsconfig:
{
  "compilerOptions": {
    "allowJs": true,
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true,
    "isolatedModules": true,
    "jsx": "react-jsx",
    "lib": [
       "dom",
      "dom.iterable",
      "esnext"
    ],
    "moduleResolution": "node",
    "noEmit": true,
    "strict": true,
    "module": "esnext",
    "target": "esnext",
    "resolveJsonModule": true,
    "forceConsistentCasingInFileNames": true,
    "baseUrl": ".",
    "skipLibCheck": true,
    "noFallthroughCasesInSwitch": true
  },
  "exclude": [
    "node_modules",
    "babel.config.js",
    "jest.config.js",
    "**/*.spec.ts",
    "__tests__/**/*-test.ts"
  ],
  "include": [
    "src"
  ]
}

`npx @material-ui/envinfo`
browser: google chrome 89, mac os

It doesn't look like this bug report has enough info for one of us to reproduce it.
Please provide a CodeSandbox (https://material-ui.com/r/issue-template-next), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

okay, i'll create a CodeSandbox demo

https://codesandbox.io/s/pensive-borg-9zzir?file=/src/Demo.tsx - just clone this code to your machine and run it

Looks correct to me. You're missing the required open and children props. These were always required  and we probably just updated the types accordingly.

what do you mean required? i'm passing isOpen prop to my Modal component and inside the component, i pass open prop to material-ui Dialog.
<MyModal isOpen={open} setIsOpen={setOpen} />
So i'm passing the right open prop to Dialog component
import Dialog from '@material-ui/core/Dialog';

const MyModal = ({isOpen}) => {
  return (
    <Dialog onClose={handleClose} {...props} open={isOpen}>
  )
}


Add polyfill for use on Windows builds without native support

Fixes #39
Add tar package, update usage of tar

These changes are approved, but they're not merged. What's holding up the PR?

Sorry, totally missed this PR. Released as 1.0.7


Update README.md

Updated Vue installation instructions

import BottomSheetPlugin from "@nativescript-community/ui-material-bottomsheet/vue";
import { install } from "@nativescript-community/ui-material-bottomsheet";
install();
Vue.use(BottomSheetPlugin);
I see, this is
import { install } from "@nativescript-community/ui-material-bottomsheet";
install();

not marked in the documentation for view

thanks for this . makes me realize this should be done for you in the vue plugin. will change that in the future


Simplify slimmer

The slimmer is complex due to the need to federate (See #91) for homology and go assocs.

title Slimmer

App->Biolink: Fetch /slimmer/function
note left of App: params: subjects (genes) and slims
note left of App: for AGR subjects are HGNC+MOD IDs
Biolink->M-Solr: query gene-gene
note left of M-Solr: uses subject_closure
note left of M-Solr: subject_closure has e.g. HGNC for NCBIGene clique leader
M-Solr->Biolink: return gene-gene docs
note left of Biolink: subjs: NCBIGene/MODs
Biolink->GO-Solr: query associations
GO-Solr->Biolink: return assocs+facets
note left of Biolink: facets intersected for slims
note left of Biolink: all genes have data?
Biolink->Scigraph: query gene->protein
Scigraph->Biolink: return UniProts
Biolink->GO-Solr: query associations
GO-Solr->Biolink: return assocs+facets
note left of Biolink: merge both results
Biolink->App: slimmed assocs
note left of App: PROBLEM:
note left of App: HGNCs in Q are now UniProt

Once @yy20716 has made a triplestore for Monarch we could do this all with a single federated SPARQL call!

That would be nice. Also note that the graph isn't quite right. Sometimes (for example) an ortholog request for a mouse gene will return a UniProt ID for the human ortholog, then if that is used to get its annotations (via the slimmer) that also works great. However for AGR we also need to provide the HGNC id for the orthlogous gene, not the UniProt ID, and in this case need the link between these.
Look at the hacky thing I just pushed in scigraph-util

@selewis Could you add a commit hash?

52f608f175271df51b13790e2a40e54a52fd4eda


Set rfLatchupDisableGpioPin to output in all HW tests

Description
The pin for disabling the RF latch-up protection was correctly set to high or low in #300, but the direction was not set, so nothing really happened. This PR fixes this.

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

Project coverage is 88.34%. Comparing base (2042ca4) to head (ab34088).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #303   +/-   ##
=======================================
  Coverage   88.34%   88.34%
=======================================
  Files          27       27
  Lines         695      695
  Branches        8        8
=======================================
  Hits          614      614
  Misses         81       81

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


Idan

very detailed information here. as you can see.

you are Idan.
this is a PR to upload the CV of Idan.
please fix the title.

you said do pull request in class this pr is nothing but a test.


Use EmptyPageSource instead of FixedPageSource over an empty list

IIUC, it should have the same effect, but the code should be clearer with EmptyPageSource.

merged, thanks!


VimuxRunCommand does not open pane

I am trying to run
:call VimuxRunCommand("ls")
and a pane does not open and I do not get an error message
I am running tmux 1.6 on Ubuntu Server 12.04

I can't reproduce this. @corelon are you experiencing the same issue? If not please close this issue.

I started using vimux today and ran into this problem. I am running vim within tmux and it sill doenst work. Interestingly it only happens on a machine that is part of some shared infra.
I debugged this further and see that the failure seems to be in the function _VimuxNearestIndex within vimux.vim. When I run :echom system("tmux list-panes"), that too hangs from vim. Any idea why this is happening?

% tmux list-panes from the shell hangs too?

Nope. tmux list panes works fine.

Have you guys tried using MacVim? I can't use:
:call VimuxSendText('echo whatever')
Using :VimuxTogglePane it also errors out.
Error detected while processing function VimuxTogglePane[6].._VimuxTmux:
line    2:
E484: Can't open file /var/folders/_m/2_2m6b0j34n6g3r5qbdv6b480000gn/T/vgmSOPP/56

If I'm reading this correctly it should be this line 2 in VimuxTogglePane
https://github.com/benmills/vimux/blob/master/plugin/vimux.vim#L95
But it's probably the next line where it calls _VimuxTmux.
I don't know if this could be a Vim-issue. But I'm happy to take a look at it later.
I'm opening a separate issue for this.

@dezza See #160 for my MacVIM comments.
Everyone else: Is anybody still seeing this issue? I'm not on a Mac and am unsure if there is anything here that still needs to be tracked down or if this has become a moot issue. Any feedback?


Compatibility with .NET Framework 4.0

Hi, I need to run my application that manages WebRTC links on a Linux machine!
The version of MONO installed on this machine is 5.10.1 and is not compatible with the NET Framework 4.6.1 used by this library.
Is it possible to make the library compatible in any way?
Thanks a lot.

Has this library been used on Linux by anyone before? I have the following error on the dll: "unityplugin.dll":
unityplugin.dll
  at (wrapper managed-to-native) WebrtcSharp.PeerConnectionFactory.PeerConnectionFactory_new()
  at WebrtcSharp.PeerConnectionFactory..ctor () [0x00000] in <947f4841e37b44438ff4bf47abe8d5ad>:0
  at WebRtcTest.WebRTCTest.button1_Click (System.Object sender, System.EventArgs e) [0x0000d] in <047f5039986647f48429fcd1b39fac85>:0

Is there any setting to set in some configuration file?
Thanks a lot.


Explorer periodically lose focus on renaming

VS Code Version:
OS Version:

Version: 1.53.2 (user setup)
Commit: 622cb03f7e070a9670c94bae1a45d78d7181fbd4
Date: 2021-02-11T11:48:04.245Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19042

Steps to Reproduce:

Press F2 on any file/directory
Do nothing for a while
Focus lost

I doubt anyone can reproduce it with the description. It only occur on my particular repo, maybe even with special state. Because I cannot reproduce the state with a new folder/workspace.
The only thing I can say the cause must be the git extension. From Output tab of Git extension. I can see it periodically flush out logs and filename editing focus lost immediately before/after the flush. And the content of each flush is:
> git status -z -u
> git status -z -u
> git symbolic-ref --short HEAD
> git symbolic-ref --short HEAD
> git for-each-ref --format=%(refname)%00%(upstream:short)%00%(upstream:track)%00%(objectname) refs/heads/master refs/remotes/master
> git for-each-ref --format=%(refname)%00%(upstream:short)%00%(upstream:track)%00%(objectname) refs/heads/master refs/remotes/master
> git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname)
> git remote --verbose
> git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname)
> git remote --verbose
Warning: Failed to watch ref '<masked out on issue reporting>/refs/remotes/origin/master', is most likely packed.
> git config --get commit.template
> git config --get commit.template
> git ls-files --stage -- <masked out on issue reporting>
> git cat-file -s 7ddad5689c1788d424ca674d4f5aa2713d447022
> git show --textconv :<masked out on issue reporting>

And with a notification
TreeError [FileExplorer] Data tree node not found: [object Object]

Does this issue occur when all extensions are disabled?: Yes/No
I cannot do this, because I am working on a remote workspace

Sounds liek a duplicate of https://github.com/microsoft/vscode/issues/112293
Can you please comment on that issue, so we have all the info in one place. Thank you


Where clause getting ignored somtimes while updating hindi data to mysql database

I m updating table with hindi text using where clause but sometimes it updates all the row present in table.
I m using in below way -
$model = new TransModel();
$model->update($id,  $data);
Please let me know what is wrong here.
Thanks in advance

Please ask support questions in the forum.
Your passed $id is the problem. Make sure the ID you are passing is not empty (null, false, empty string, etc.).


Add Hubspot tracking code

Checklist

[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking,
as they show up in the changelog

LGTM, but the test are now kaput

@steffinchen @gerbermichi Can you point me out why the tests are failing?

@corvus-ch The cookie consent pop-up from Hubspot overlapped the item the test needed to click in some cases. I've added a step before each test which sets the cookie __hs_opt_out to yes, so telling Hubspot the user has opted out and therefore it doesn't show the cookie banner anymore.


Evaluating GPVAREstimator for multivariate series prediction

I am trying to understand how to use GPVAREstimator for multivariate series prediction. For the sake of simplicity, let's use a readily available exchange_rate dataset. Here is what I think one should do:
from gluonts.dataset.common import TrainDatasets
from gluonts.dataset.multivariate_grouper import MultivariateGrouper
from gluonts.dataset.repository.datasets import get_dataset
from gluonts.evaluation.backtest import make_evaluation_predictions
from gluonts.model.gpvar import GPVAREstimator
from gluonts.trainer import Trainer

num_of_series = 8  # num of series in dataset

def load_multivariate_dataset(dataset_name: str):
    ds = get_dataset(dataset_name)
    grouper_train = MultivariateGrouper(max_target_dim=num_of_series)
    grouper_test = MultivariateGrouper(max_target_dim=num_of_series)
    return TrainDatasets(
        metadata=ds.metadata,
        train=grouper_train(ds.train),
        test=grouper_test(ds.test),
    )

dataset = load_multivariate_dataset("exchange_rate")
metadata = dataset.metadata

estimator = GPVAREstimator(
    prediction_length=dataset.metadata.prediction_length,
    target_dim=num_of_series,
    freq=metadata.freq,
    trainer=Trainer(
        epochs=2
    )
)
predictor = estimator.train(training_data=dataset.train)

forecast_it, ts_it = make_evaluation_predictions(
    dataset.test, predictor=predictor, num_samples=100
)

When I inspect the values of the forecast_it I can see that predictions are generated for all eight series, using the horizon of 30 days. Predictions seem ok.
Am I doing everything correctly up there?
If so, how would I tune GPVAREstimator with Evaluator similar to this approach here? The evaluator does not seem to handle additional dimensions easily. Any suggestions on how to do evaluations with Evaluator for multivariate series?

Hi @vblagoje,
try the [MultivariateEvaluator](https://github.com/awslabs/gluon-ts/blob/master/src/gluonts/evaluation/_base.py#L560) instead.

Wow, cool, it works @mbohlkeschneider . I get individual dimension stats and aggregate as well. I can really start playing now. Thanks a lot!


Add Bazel BUILD file for sourcemap, rhino, and the compiler core

Updates #3461

While the PR and interest is appreciated, and we use Bazel internally to build CC, we don't currently want to maintain this.


Broken on latest release/firmware

I tried to get this and the Gadgetoid fork to work but couldn't.  I then tried the instructions here
https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md#troubleshooting
and built the c spi test program. That works if I link MISI MOSI and gives zeros if I break the link so nothing wrong with my configuration.  It seems pretty certain this code is broken on latest release/firmware.  The driver has changed to spi_bcm2835 if that is relevant.

Seems to work fine on a new raspberry 3 and a old raspberry 1. Could you provide a MWE?


Add development build feature to the razzle build script (on master)

so that the razzle build script can produce a development build (which is sometimes useful for testing) using just a parameter --node-env=development
see #1289
Tasks

[ ] the modified build script also seems to start a background process that still writes to the terminal after appearantly exiting the process
[ ] I replaced "nodeEnv === 'production' ? 'prod' : 'dev'," with "prod", as it was before and I don't know why it is was a mistake (?) but it solves this problem:

it produces the development build but it also starts it which seems wrong to me, although I put --noninteractive and when removing the --node-env=development it produces the production build without starting it

[ ] I think I still have to make some sort of test for the improved --node-env option, am I right?

@fivethreeo Please let me know if you can help me with any of these tasks/questions listed above. Any feedback is appreciated. Thanks.

@fivethreeo For some reason the command npm run build in the new example does not produce a dev build (I remember that, before this new PR, it produced a dev build). Now I have no idea how to make it produce a dev build.
> razzle build --node-env=development

If you have issues with css make sure postcss resolves to v8.2.4.
See: https://razzlejs.org/getting-started#common-issues

CssMinimizerPlugin currently uses clean-css,
we will switch to cssnano once it supports postcss v8.2.4.

Compiling client default build...

Client default build compiled with warnings

asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  static/js/client.14b40ff8.js (272 KiB)

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  client (272 KiB)
      static/css/client.aeb8fc1a.css
      static/js/client.14b40ff8.js

webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

File sizes after gzip:

  83.42 KB  build/public/static/js/client.14b40ff8.js
  185 B     build/assets.json
  185 B     build/public/static/css/client.aeb8fc1a.css

Compiling server default build...

Compiled server default build successfully.

The output files contain obfuscated and minified code.

Oh, you mean dev in that way. Actually that has to be done for each case because razzle decides how to configure webpack by the 'dev' 'prod' string. So using 'dev' will start the server and add react refresh and hot reloading code. So we have to change that in createConfigAsync but IS_DEV and IS_PROD vars decide what plugins to add in big if blocks and also decides what mode webpack runs in and assumes we run in razzle start. So what we need to do is to check actual env and set a different webpack mode, set the dev tool, change splitchunks, disable terser, maybe change something in the define plugin options. This is sort of a legacy from early razzle and will need to be addressed better in the next major version. But we can fix it for now by brute force without changing the razzle api.

'prod' and 'dev' should be 'start' and 'build' really, but backwards compatibility is a must until 5.0

I think I need to do this actually, needs lots of internal knowledge. But I can pull this one after I fix it 😀

@fivethreeo

I think I need to do this actually, needs lots of internal knowledge. But I can pull this one after I fix it grinning

Thanks. If you need some help from a beginner like me, please let me know, especially if my help can speed things up. I am restlessly waiting for the new version that has this feature.

I think that in about 30 minutes I'll start an attempt. Thank you very much for your work!

@fivethreeo How can I use npm link with the Razzle monorepo to reference the razzle package in it? Should I try to use Yalc?

@fivethreeo
$ NODE_ENV=development npx tsc -b && NODE_ENV=development npx razzle build --noninteractive --node-env=development

ERROR  Unexpected error

TypeError: Cannot set property 'noEmitOnErrors' of undefined
    at /some/path/to/razzle/monorepo/packages/razzle/config/createConfigAsync.js:971:46

Pushed a fix, retry now

Pushed a fix, retry now

I ran git pull.

Using yalc?

Using npm link. Should I try with Yalc?

Don't think you got the changes somehow, yalc works too.

@fivethreeo Yes, you are right.

https://github.com/jaredpalmer/razzle/blob/master/packages/razzle/config/createConfigAsync.js#L935

The razzle repo is up-to-date, but npm link does not work. When I run npm link razzle inside the directory of the app I am working on I get:
/path/to/app/directory/node_modules/razzle -> /home/silviub/.nvm/versions/node/v12.22.5/lib/node_modules/razzle -> /path/to/razzle/monorepo/packages/razzle

Does this look right?

Not sure, I only use yarn.

try rerunning npm install?

I solved with Yalc and now I get:
TypeError: ManifestPlugin is not a constructor
    at /path/to/my/app/node_modules/razzle/config/createConfigAsync.js:744:9

Ah, sorry, I missed one ;)

Now it should be fixed :)

Note yalc does a real install, so needs yalc update

Now I get:
TypeError: ManifestPlugin is not a constructor
    at /path/to/my/app/node_modules/razzle/config/createConfigAsync.js:747:9

I have to go to sleep. If nothing surprising happens I will be back Monday. Have a blessed Sunday!

I think the deps are messed up somehow, run npm install in the app

Likewise, see you.

The masked log is here. Good night!

https://github.com/jaredpalmer/razzle/blob/master/test/e2e/razzle-build.test.js#L212

When deploying, it requests the JS and CSS bundles from localhost instead of the domain name/IP address. It almost works. I think it has to do with the environment variable called RAZZLE_ASSETS_MANIFEST which is set by Razzle.

It seems to me that on the remote server RAZZLE_ASSETS_MANIFEST is set to /path/to/my/app/build/assets.json.

Fixed

https://github.com/jaredpalmer/razzle/blob/master/examples/with-webpack-public-path/src/server.js

When running NODE_ENV=development npx tsc -b && NODE_ENV=development npx razzle build --noninteractive --node-env=development I get, after successful client build,
Failed to compile server default build.

[
  {
    moduleIdentifier: '/path/to/my/app/node_modules/razzle/config/babel-loader/razzle-babel-loader.js??razzle-babel-loader!/path/to/my/app/src/server/index.tsx',
    moduleName: './src/server/index.tsx',
    loc: '95:11-54',
    message: "Module not found: Error: Can't resolve 'build/assets.json' in '/path/to/my/app/src/server'",
    moduleId: './src/server/index.tsx',
    moduleTrace: [ [Object] ],
    details: "resolve 'build/assets.json' in '/path/to/my/app/src/server'\n" +
      '  Parsed request is a module\n' +
      '  using description file: /path/to/my/app/package.json (relative path: ./src/server)\n' +
      '    resolve as module\n' +
      "      /path/to/my/app/src/server/node_modules doesn't exist or is not a directory\n" +
      "      /path/to/my/app/src/node_modules doesn't exist or is not a directory\n" +
      '      looking for modules in /path/to/my/app/node_modules\n' +
      "        /path/to/my/app/node_modules/build doesn't exist\n" +
      '      looking for modules in /run/media/silviub/T7-Touch/Lucru/node_modules\n' +
      "        /run/media/silviub/T7-Touch/Lucru/node_modules/build doesn't exist\n" +
      "      /run/media/silviub/T7-Touch/node_modules doesn't exist or is not a directory\n" +
      "      /run/media/silviub/node_modules doesn't exist or is not a directory\n" +
      "      /run/media/node_modules doesn't exist or is not a directory\n" +
      "      /run/node_modules doesn't exist or is not a directory\n" +
      "      /node_modules doesn't exist or is not a directory\n" +
      '      looking for modules in /path/to/my/app/node_modules\n' +
      "        /path/to/my/app/node_modules/build doesn't exist\n" +
      '      looking for modules in /path/to/my/app/src\n' +
      "        /path/to/my/app/src/build doesn't exist",
    stack: "ModuleNotFoundError: Module not found: Error: Can't resolve 'build/assets.json' in '/path/to/my/app/src/server'\n" +
      '    at /path/to/my/app/node_modules/webpack/lib/Compilation.js:1773:28\n' +
      '    at /path/to/my/app/node_modules/webpack/lib/NormalModuleFactory.js:811:13\n' +
      '    at eval (eval at create (/path/to/my/app/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:8:1)\n' +
      '    at /path/to/my/app/node_modules/webpack/lib/NormalModuleFactory.js:286:22\n' +
      '    at eval (eval at create (/path/to/my/app/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1)\n' +
      '    at /path/to/my/app/node_modules/webpack/lib/NormalModuleFactory.js:442:22\n' +
      '    at /path/to/my/app/node_modules/webpack/lib/NormalModuleFactory.js:124:11\n' +
      '    at /path/to/my/app/node_modules/webpack/lib/NormalModuleFactory.js:673:25\n' +
      '    at /path/to/my/app/node_modules/webpack/lib/NormalModuleFactory.js:882:8\n' +
      '    at /path/to/my/app/node_modules/webpack/lib/NormalModuleFactory.js:1002:5\n' +
      '    at /path/to/my/app/node_modules/neo-async/async.js:6883:13\n' +
      '    at /path/to/my/app/node_modules/webpack/lib/NormalModuleFactory.js:985:45\n' +
      '    at finishWithoutResolve (/path/to/my/app/node_modules/enhanced-resolve/lib/Resolver.js:296:11)\n' +
      '    at /path/to/my/app/node_modules/enhanced-resolve/lib/Resolver.js:362:15\n' +
      '    at /path/to/my/app/node_modules/enhanced-resolve/lib/Resolver.js:410:5\n' +
      '    at eval (eval at create (/path/to/my/app/node_modules/enhanced-resolve/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)'
  }
]

Thanks.

@fivethreeo The normal (production) build throws the same error.

If you git reset to the previous rev is the assets inlined in
build/server.js
On Sun, 22 Aug 2021 at 18:02, Silviu Bogan @.***> wrote:

@fivethreeo https://github.com/fivethreeo The normal (production) build
throws the same error.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jaredpalmer/razzle/pull/1693#issuecomment-903290871,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAADGV4JKAKVYYEHQOWX73T6ENRTANCNFSM5CRJS2XQ
.

--
Øyvind Saltvik

I checked it, loaded by webpack and inlined. I will just undo the relative path :)

By the way
You can just run
try-example with-development-build

In the razzle monorepo
Then
cd example
yarn build

If you change something in razzle run
yarn updateyalc

In the example dir

Now the remote server serves the JS bundle from e.g. http://localhost:3005/static/js/client.f7b441b5.js (similar issue) which is unavailable. But the local production build works well.

The local development build also does not work. The JS and CSS bundles are requested from similar URLs but the response from the server is SSR. I want to take another look at with-webpack-public-path to see if I'm missing some functionality in the SSR server.

What is the env vars in remote?

Also does the remote run start:prod

@fivethreeo

What is the env vars in remote?

I have this part of code in the server:
let assets: any;

const syncLoadAssets = () => {
  fs.writeFileSync("env-vars.json", JSON.stringify(process.env, null, 2));
  assets = require(process.env.RAZZLE_ASSETS_MANIFEST!);
};
syncLoadAssets();

that produces the following masked output in env-vars.json:
{
  "USER": "root",
  "SSH_CLIENT": "<some numbers>",
  "SSH_AGENT_PID": "<some numeric ID>",
  "XDG_SESSION_TYPE": "tty",
  "SHLVL": "3",
  "MOTD_SHOWN": "pam",
  "HOME": "/root",
  "SSH_TTY": "/dev/pts/0",
  "nvm_current_version": "v12.22.5",
  "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus",
  "FORCE_COLOR": "2",
  "LOGNAME": "root",
  "_": "/root/.local/share/nvm/v12.22.5/bin/npx",
  "PUBLIC_PATH": "http://<some IP address>:3005/",
  "XDG_SESSION_CLASS": "user",
  "TERM": "screen.xterm-256color",
  "XDG_SESSION_ID": "<some numeric ID>",
  "PATH": "/root/path/to/my/app/on/remote/node_modules/.bin:/root/.local/share/nvm/v12.22.5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
  "SSH_ENV": "/root/.ssh/environment",
  "XDG_RUNTIME_DIR": "/run/user/0",
  "LANG": "C.UTF-8",
  "STY": "<screen session identifier>",
  "SSH_AUTH_SOCK": "<irrelevant>",
  "SHELL": "/usr/bin/fish",
  "WINDOW": "0",
  "PWD": "</absolute/path/to/app/dir/in/remote/server>",
  "SSH_CONNECTION": "<some numbers here>",
  "TERMCAP": "SC|screen.xterm-256color|VT 100/ANSI X3.64 virtual terminal:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:li#41:co#140:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mh=\\E[2m:mr=\\E[7m:me=\\E[m:ms:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:po=\\E[5i:pf=\\E[4i:Km=\\E[M:k0=\\E[10~:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:k5=\\E[15~:k6=\\E[17~:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k;=\\E[21~:F1=\\E[23~:F2=\\E[24~:kB=\\E[Z:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:",
  "PUBLIC_URL": "http://<SOME IP ADDRESS>:3005/",
  "NODE_ENV": "production",
  "PORT": "3005",
  "CONNECTION_STRING": "<MongoDB connection string>",
  "ABS_PATH_TO_CA": "<Some path to a certificate file>"
}

Also does the remote run start:prod

The development bundle of the app on the remote server is started with:
PUBLIC_URL=http://<some IP address>:3005/ PUBLIC_PATH=http://<the same IP address>:3005/ NODE_ENV=production npx concurrently "node build/server.js" "node build/wsserver.js"

If you look in build/server.js what does webpack_public_path say?

In build/public/static/js/client.d41c432c.js I have

Try searching for localhost

In the client JS bundle:

In .env.local, which is manually loaded in the server, I have:
PORT=3005
PUBLIC_URL=http://localhost:3005/
PUBLIC_PATH=http://localhost:3005/
CONNECTION_STRING=<some MongoDB connection string>

Not .env.local but .env.production should be loaded. I check NODE_ENV and based on that, in the server, I load either .env.local or .env.production.

Does Razzle somehow load .env.local automatically?

https://github.com/jaredpalmer/razzle/blob/master/packages/razzle/config/env.js#L15

During build that is

PUBLIC_PATH is a build time var only, that is what causes the confusion, use your own var in deployment.

I've changed the .env.local file's name and correctly set the env vars at build time and, when I access the home page of the app, SSR runs, but the JS bundle request returns SSR HTML too.

@fivethreeo I had to set RAZZLE_PUBLIC_DIR before build time and now this new feature works very very well! Thank you for your work! You are awesome!

I often do process.env.PUBLIC_DIR||process.env.RAZZLE_PUBLIC_DIR


Running a cronjob on multiple hosts

Hello, I noticed that the readme states that using cron syntax only runs the job on one instance. Is it possible to use the cron syntax and have it run on all instances? For example, I want to run a job on each of my instances at 1 AM. every and interval don't seem to have that functionality.

I found the following syntax:
CacheWarmer:
#  every day at midnight UTC (7pm central)
  every: ["24h", first_at: "2017-10-16T00:00:00.000+00:00"]

from issue #223
Might give that a shot


Trying to run the benchmarks, SNAPSHOT deps require local builds?

Hi Nitsan,
This project and other libraries that I'm contributing are currently undergoing restructuring and consolidation. You're right, at the moment the benchmarking library requires local dependencies to compile (and further, some libraries are not available on Maven Central yet). I estimate that these build problems will be fixed by next week (see also Mavenize the Rascal Suite).
In the mean time, if you're interested in benchmarking persistent data structures (of Clojure, Scala, and CHAMP) I can refer you to https://github.com/msteindorfer/oopsla15-artifact, that contains an older snapshot of this library and is self-contained.
Let me know if you need further help in running the benchmarks.
Best regards,
Michael

This will work. Also, for the time being, a regular (or one off) upload of the JMH jar could help. Any chance of that?

Yes, there is already an available JMH jar in the msteindorfer/oopsla15-artifact project. For reproducing results of our paper, the binary should be all you need.

Are you planning to reproduce our benchmark results or do you have some extended benchmarks in mind? Anyhow, I would be interested to hear about your results.


[ValidateAntiForgeryToken] attribute causes POST actions to fail

The [ValidateAntiForgeryToken] attribute caused all of the POST actions to fail. I'm not sure if this is a configuration issue on my end or my SDK is out of date.
I'm using Visual Studio Community 2019 16.1.2 with https enabled and no authentication (Tutorial defaults). SDK version 2.1.700.

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

ID: 1d975a83-1550-b284-d0d8-7fe2ea206ff5
Version Independent ID: 48e81b42-7c2b-afbf-71e6-d4f442a4bd1f
Content: Add a model to an ASP.NET Core MVC app
Content Source: aspnetcore/tutorials/first-mvc-app/adding-model.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Hello! Thanks for contacting us. This sounds like a general question about using ASP.NET Core. While we try to look at and respond to all issues, for questions like this we recommend posting to a community support group like Stack Overflow with the asp.net-core tag.


Point of departure…

Hei!
I had some time on my hands and started creating individual markdown files for each of the APIs from Lars' GoogleDoc. I added the API documentation template to each file, so it's now about filling the information from the code part into the template.
I also created a new README.md) that serves as a first entry to our joined effort here. There needs to be some work done here, mainly filling in some info in the empty sections. Feel free!
I added a new page on the Wiki, called Workshops), where we can log the events we have around the documentation process.

Looks great ! We all come to a ready made table!
L
Den tor. 6. sep. 2018 kl. 18:38 skrev Annika Rockenberger <
<EMAIL_ADDRESS>
Assigned #5 https://github.com/Yoonsen/API-Sprakbank/issues/5 to
@Yoonsen https://github.com/Yoonsen.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/Yoonsen/API-Sprakbank/issues/5#event-1830893683, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABSxAmVoFpSzdK7Ag9xYC3vA7iAzQ4NGks5uYU9wgaJpZM4WdTjQ
.


jax.scipy.special.multigammaln fails under jit

Brief example below.
The need for d to be static is an implementation detail; the shape of the function result does not depend on the value of d.
Easiest fix would be to have better errors for a traced d.
Harder fix (and maybe not necessary) would be to implement the function in a way such that d need not be static.
from jax.scipy.special import multigammaln
from jax import jit
jit(multigammaln)(1, 2)

Traceback (most recent call last):
  File "tmp.py", line 4, in <module>
    jit(multigammaln)(1, 2)
  File "/Users/vanderplas/github/google/jax/jax/_src/scipy/special.py", line 162, in multigammaln
    lax.div(jnp.arange(d), _constant_like(a, 2))),
  File "/Users/vanderplas/github/google/jax/jax/_src/numpy/lax_numpy.py", line 2749, in arange
    start = require(start, msg("stop"))
jax._src.traceback_util.FilteredStackTrace: jax.core.ConcretizationTypeError: Abstract tracer value encountered where concrete value is expected.

It arose in jax.numpy.arange argument `stop`.

While tracing the function multigammaln at /Users/vanderplas/github/google/jax/jax/_src/scipy/special.py:154, this concrete value was not available in Python because it depends on the value of the arguments to multigammaln at /Users/vanderplas/github/google/jax/jax/_src/scipy/special.py:154 at flattened positions [1], and the computation of these values is being staged out (that is, delayed rather than executed eagerly).

You can use transformation parameters such as `static_argnums` for `jit` to avoid tracing particular arguments of transformed functions, though at the cost of more recompiles.

See https://jax.readthedocs.io/en/latest/faq.html#abstract-tracer-value-encountered-where-concrete-value-is-expected-error for more information.

Encountered tracer value: Traced<ShapedArray(float32[])>with<DynamicJaxprTrace(level=0/1)>

The stack trace above excludes JAX-internal frames.
The following is the original exception that occurred, unmodified.

--------------------

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "tmp.py", line 4, in <module>
    jit(multigammaln)(1, 2)
  File "/Users/vanderplas/github/google/jax/jax/_src/traceback_util.py", line 139, in reraise_with_filtered_traceback
    return fun(*args, **kwargs)
  File "/Users/vanderplas/github/google/jax/jax/api.py", line 218, in f_jitted
    out = xla.xla_call(
  File "/Users/vanderplas/github/google/jax/jax/core.py", line 1226, in bind
    return call_bind(self, fun, *args, **params)
  File "/Users/vanderplas/github/google/jax/jax/core.py", line 1217, in call_bind
    outs = primitive.process(top_trace, fun, tracers, params)
  File "/Users/vanderplas/github/google/jax/jax/core.py", line 1229, in process
    return trace.process_call(self, fun, tracers, params)
  File "/Users/vanderplas/github/google/jax/jax/core.py", line 595, in process_call
    return primitive.impl(f, *tracers, **params)
  File "/Users/vanderplas/github/google/jax/jax/interpreters/xla.py", line 569, in _xla_call_impl
    compiled_fun = _xla_callable(fun, device, backend, name, donated_invars,
  File "/Users/vanderplas/github/google/jax/jax/linear_util.py", line 251, in memoized_fun
    ans = call(fun, *args)
  File "/Users/vanderplas/github/google/jax/jax/interpreters/xla.py", line 645, in _xla_callable
    jaxpr, out_avals, consts = pe.trace_to_jaxpr_final(fun, abstract_args)
  File "/Users/vanderplas/github/google/jax/jax/interpreters/partial_eval.py", line 1230, in trace_to_jaxpr_final
    jaxpr, out_avals, consts = trace_to_subjaxpr_dynamic(fun, main, in_avals)
  File "/Users/vanderplas/github/google/jax/jax/interpreters/partial_eval.py", line 1211, in trace_to_subjaxpr_dynamic
    ans = fun.call_wrapped(*in_tracers)
  File "/Users/vanderplas/github/google/jax/jax/linear_util.py", line 160, in call_wrapped
    ans = self.f(*args, **dict(self.params, **kwargs))
  File "/Users/vanderplas/github/google/jax/jax/_src/scipy/special.py", line 162, in multigammaln
    lax.div(jnp.arange(d), _constant_like(a, 2))),
  File "/Users/vanderplas/github/google/jax/jax/_src/numpy/lax_numpy.py", line 2749, in arange
    start = require(start, msg("stop"))
  File "/Users/vanderplas/github/google/jax/jax/core.py", line 919, in concrete_or_error
    raise_concretization_error(val, context)
  File "/Users/vanderplas/github/google/jax/jax/core.py", line 896, in raise_concretization_error
    raise ConcretizationTypeError(msg)
jax.core.ConcretizationTypeError: Abstract tracer value encountered where concrete value is expected.

It arose in jax.numpy.arange argument `stop`.

While tracing the function multigammaln at /Users/vanderplas/github/google/jax/jax/_src/scipy/special.py:154, this concrete value was not available in Python because it depends on the value of the arguments to multigammaln at /Users/vanderplas/github/google/jax/jax/_src/scipy/special.py:154 at flattened positions [1], and the computation of these values is being staged out (that is, delayed rather than executed eagerly).

You can use transformation parameters such as `static_argnums` for `jit` to avoid tracing particular arguments of transformed functions, though at the cost of more recompiles.

See https://jax.readthedocs.io/en/latest/faq.html#abstract-tracer-value-encountered-where-concrete-value-is-expected-error for more information.

Encountered tracer value: Traced<ShapedArray(float32[])>with<DynamicJaxprTrace(level=0/1)>

I'm going to close this: I think requiring statid d is fine, and #5074 made improved the error message. In the scipy version, only an integer value is accepted.


Make and Design Layout for Children Page

[t:65]
Designed the children page to allow children information to be displayed, just dummy info right now


findInObjectArray is not returning the expected result

Hi guys,
first, thank you very much for this plugin.
As I try to add more than one tag, I get the second being invalid; after a research, I found out that this the line
!tiUtil.findInObjectArray(self.items, tag, options.keyProperty || options.displayProperty)
in the following code return false and this is why the tag is not added
return tagText &&                    tagText.length >= options.minLength &&                    tagText.length <= options.maxLength &&                    options.allowedTagsPattern.test(tagText) &&                    !tiUtil.findInObjectArray(self.items, tag, options.keyProperty || options.displayProperty) &&                    onTagAdding({ $tag: tag });

I think I found the source of this issue. It is because i set key different from displayed property. So, when a new tag is created, only the displayed property is set. So the function, consider the new word as a duplicate, duplicate in the key that is actually undefined.
Am I correct?

@silvanaacc Isn't that a duplicate of https://github.com/mbenford/ngTagsInput/issues/470 ?

This issue was selected to be spring-cleaned by a script. More information can be found here.
If anyone thinks this was a mistake and this issue should be reopened, please leave a message below explaining why. Before doing so, please consider reading the CONTRIBUTING file.


Gap created when controller on rootview is forcefully swiped with leftViewPresentationStyle as scaleFromBig

I have set a navigation controller as the rootcontroller a controller with collectionview in it is the root controller of the navigation controller. I have a controller with menu items as LeftController. With leftview open and the presentation style set as ScaleFromBig, I pull the screen up and down on the controller with collectionview. On tapping the leftmenu a gap is created between the navigationbar and the view and the navigation bar moves up.
I have attached the screenshot.
I'm using Xcode 11.3, Swift-5 and LGSideMenuController (2.1.1)

Can you try current master to check if the issue still actual?

Feel free to reopen if the issue is still reproducible.


Issue about calling channel B

Hello everyone,
in the last GRIFFIN meeting I mentioned a problem that I am currently dealing with regarding the shifts in the calibrated energy spectra of detectors 17 and 18.
As one of the possible solutions it was suggested to use Channel B as well, since so far I was only using Channel A.
So, my question is how can I call GetEnergy() function for channel B?
I am currently using grsisort version <IP_ADDRESS> .

Duplicate of #1194


ADD Python Project - Weather application

made using tkinter module.
It is gui based and user can search any  #city.

Add projects in group. You already created multiple issues. Mention this there.


Contribution Guidelines

Hi there,
I think it is really a good package, and I want to ask about how contributions can be made to this project?
Thanks.

Hi @DRMALEK!
Awesome that you like the package! We plan to add contribution guidelines in the fall.
Right now, it is a more manual process and review. If you want to contribute, let me know what you think to add - we can give you some pointers.
We can also chat in our Discord: https://discord.com/invite/xZjKRaNp8b

Hi,
here is a contributing guide: https://github.com/evidentlyai/evidently/blob/main/CONTRIBUTING.md
We are happy to get contributions to any part of the library, from documentation to the core modules and new dashboards :)


Updated Readme.md

added valuable links in the Coding practice for beginners section and News section.

Thanks for your contribution, kindly review the contributions guidelines


Rename watch icons to correspond with AB files

When generating icons and splash screens the files that are generated do not correspond with the files used from plugin.
When people start using the plugin they will expect the generated images to work properly. If we do not have same filenames, they will not.
We need to change the filenames in the plugin to avoid breaking user experience – if someone has already generated their icons, they will have two empty if we change the filenames in AB.
So it is better from user point of view to change them in the plugin.
ping @galexandrov

:+1:

:+1:

Nice! Would you prefer a retag (of 0.6.2) or a new version in this case?

Retagging will be better :smile:

Thanks, guys :smiley_cat:

0.6.2 has just been retagged :beers:


Fix compact rendering of properties of all types

Currently, the compaction of properties works for the standard and commonly used type but does not work for other types and are rendered under their expanded form, e.g.:

https://ontology.eglobalmark.com/WaterSmartMeter#alarmInProgress instead of alarmInProgress
https://ontology.eglobalmark.com/WaterSmartMeter#installedAt instead of installedAt
https://uri.fiware.org/ns/data-models#controlledProperty instead of controlledProperty

See also C.6 for explanations and examples on compaction / expansion of datetimes.


Update LAB_AK_01_Implementing_identity_services_and_Group_Policy.md

in providing the full powershell cmd for deploy a domain controller, the \ before the values of the parameters must be removed.
Module: 00
Lab/Demo: 00
Fixes # .
Changes proposed in this pull request:

Thanks, will update in GH end of this week.


21.rocfft.sh, CMAKE_BUILD_WITH_INSTALL_RPATH

Environment

Hardware
description

GPU
gfx803

CPU
ryzen7

Software
version

OS
debian bookworm

ROCm
4.3

Python
3.9.9

Linux
5.15.0-1-amd64

cmake
3.22.1

What is the expected behavior

21.rocfft.sh builds rocfft

What actually happens

build exits with error: CMake Error at library/src/CMakeLists.txt:62 (add_library): The install of the rocfft target requires changing an RPATH from the build tree, but this is not supported with the Ninja generator unless on an ELF-based or XCOFF-based platform.  The CMAKE_BUILD_WITH_INSTALL_RPATH variable may be set to avoid this relinking step.

How to reproduce

run 21.rocfft.sh

Adding -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON to the cmake cmdline seems to fix the issue.

Maybe this is an issue for cmake-3.22?
I am using cmake-3.16.8 for the minimal required.

I will close this issue, if you still meet the problem, please reopen it.


Updates code owners with latest from main

#Minor
Description
Updated codeowners file with latest from main

Pull Request Test Coverage Report for Build 289301

0 of 0   changed or added relevant lines in 0 files are covered.
10 unchanged lines in 4 files lost coverage.
Overall coverage decreased (-0.03%) to 78.656%

Files with Coverage Reduction
New Missed Lines
%

/libraries/Microsoft.Bot.Connector.Streaming/TaskExtensions.cs
1
82.61%

/libraries/Microsoft.Bot.Connector.Streaming/Application/TimerAwaitable.cs
2
85.71%

/libraries/Microsoft.Bot.Connector.Streaming/Session/StreamingSession.cs
3
89.62%

/libraries/Microsoft.Bot.Connector.Streaming/Application/WebSocketClient.cs
4
71.82%

Totals

Change from base Build 289299:
-0.03%

Covered Lines:
24849

Relevant Lines:
31592

💛  - Coveralls


Distribute APK with release

Is your feature request related to a problem? Please describe.
I don't have Play Store -- Can't use AnyTime
Describe the solution you'd like
I'd like to be able to download APKs
Describe alternatives you've considered
Using those sites that get the APKs, but I don't like having to trust middlemen.
Additional context
Breez distributes APKs with each release (on the github release page), that works well.

Hi @AbelLykens,
The latest Beta has been added to the release section.


Custom Layouts not working?

No matter what I can't get a custom layout to work based on the readme.
I'm pretty new to sanity, and I've gotten the component to show up in the studio but it always uses the default layout.
sanity.config.js
plugins: [
    structureTool(),
    visionTool(),
    generateOGImage({layouts: [TestCustomLayout]}),
  ],

TestCustomLayout.jsx
import React from 'react'

export const TestCustomLayout = ({title}) => {
  return (
    <div>
      <h1
        style={{
          color: 'red',
          fontSize: '2em',
        }}
      >
        {title}
      </h1>
    </div>
  )
}

That alone should allow for using the custom layout in the Generate Image tab, right?
When trying to add it to a schema I get an error of 'Unexpected Token "<"' if I follow the readme. Below works to add it to the schema, but it isn't using the custom layout either.
schemas/post.js
import React from 'react'
import {MediaEditor} from '@catherineriver/sanity-plugin-generate-ogimage'

export default {
  /* rest of the schema */
  fields: [
    {
      name: 'ogImage',
      title: 'OG image',
      type: 'image',
      options: {
        sources: [
          {
            name: 'sharing-image',
            title: 'Generate Image',
            component: MediaEditor,
          },
        ],
      },
    },
  ],
}

    {
      name: 'ogImage',
      title: 'Картинка для шаринга в соцсети',
      type: 'image',
      options: {
        sources: [
          {
            name: 'sharing-image',
            title: 'Сгенерировать картинку',
            component: (props) => (
              <MediaEditor {...props} layouts={[OgImageEditorLayout]} />
            ),
          },
        ],
      },
    }

@avodynamics Hello!
Sorry for the delayed answer. This is a working snippet with code from my project. Please, try to pass in component props.

    {
      name: 'ogImage',
      title: 'Картинка для шаринга в соцсети',
      type: 'image',
      options: {
        sources: [
          {
            name: 'sharing-image',
            title: 'Сгенерировать картинку',
            component: (props) => (
              <MediaEditor {...props} layouts={[OgImageEditorLayout]} />
            ),
          },
        ],
      },
    }

@avodynamics Hello! Sorry for the delayed answer. This is a working snippet with code from my project. Please, try to pass in component props.

Hello! I'm having the exact same problem. I tried copy-pasting your snippet but it didn't work.
By the way, I noticed the instructions for building a custom layout mention importing a LayoutData to use as prop types, but it doesn't seem the package hast it. generateOGImage() also requires passing a parameter and throws an error when you don't, even though the docs say you can just leave it without one.
I don't want to be hater or anything like that. I actually appreciate the plugin, but it's very frustrating to need it for a project and being unable to make it work properly even though I've spent many hours going back and forth through the docs. I don't want to share my blog posts without them having OG images because it pretty much guarantees no one will click it, so this problem is really holding my blog back. I hope you understand.

facing the same problem, were you able to get it to work @TheSirion


Update README.md

Fix a typography

Also, would be nice to precise that albatross_tls_endpoint works on *:1025.

thanks


[a -a][NODE_TLS_REJECT_UNAUTHORIZED=0][HTTPS_PROXY=https://non-existent-foo-goo.com]

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

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

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

test


feat: add option to suppress data in logger

User reports DEBUG level logging is too verbose. wants option to supress input/output data of intermediate execution steps (i.e. just show execution plan, tools used, queries executed ..etc)

While we're visiting this, refactoring gateway_logger might be worthwhile.
Right now, it looks something like this, requiring an additional import anywhere we wish to log:
import logging

gateway_logger.log(logging.DEBUG, "Cortex Request URL\n", url, block=True)

It might be nice if we could do:
gateway_logger.log("DEBUG", "Cortex Request URL\n", url, block=True)


Consider adding InnerXml to all ComplexType structs

Some components in the OVAL model are meant to be extended, e.g. TestType and ObjectType; with the current generated code in scap, there's option to do anything with extended tests if one unmarshals the XML with the oval_def.OvalDefinitions struct.
Adding InnerXml to ComplexType at least gives the option to get the raw inner xml for tests and unmarshal them afterwards.

Not yet.
This also solves the problem that enum types such as FamilyEnumeration are not generated in Go.
If you look at EntityStateStringType in the schema, it should contain an enum value, but as you know the struct is empty.
At least with InnerXml we can still get the value.

Thanks.
Would you mind to release v0.1.1?


Elyra workbench with Airflow support

The current ODH/RHOAI workbenches come with Elyra-KFP for out-of-the-box integration with Data Science Pipelines.
Upstream Elyra supports Airflow as an additional backend. I'm proposing a new community workbench image for the explicit purpose of developing and submitting Airflow pipelines through Elyra, with the option of integrating Github or Gitlab based git servers.

Hi @mamurak, good to hear from you again. Yeah, I think we have to i.e. explicitely enable gitlab option during pip install, correct? At least that is what I did in my custom image build.
And yes, I had to manually modifiy the list of runtimes in the array to again enable airflow. With Elyra 4.x, Airflow 2.x support for generic pipelines will come, by the way and Airflow 1.x support will be removed. I've been working with a lot of good people on that who have great input. Elyra overall will get more attention again, @LaVLaS told me that once we can show that Elyra is up to snuff regarding current Airflow, it might even make it back into the official notebook images (aside contrib) some time in future.

I am working on this and being quite successful, will make a PR soon, probably in 2-3 weeks.
i.e. elyra[gitlab] only without all the kfp fluff in here.
Will also propose what I found out to complete Elyra without kfp (got that working) as a PR in Elyra
https://github.com/elyra-ai/elyra/pull/3144

August 15, still some loose ends to tie up, but gettin' there. See my communication in Slack.


Optimize Smart Contract to reduce gas fees

Fixes: #7
Description: Optimization of  smart contract to reduce gas fees:
The following changes are done :-
1.Used bytes32 instead of string storage for transaction IDs. Because fixed-size byte arrays are less expensive to store and manipulate than dynamic strings, this improvement will cut gas expenditures.
2.Used an array to store transaction IDs instead of a mapping: Instead of using a mapping to store transactions, use an array to store transaction IDs. This update eliminates the requirement for the "all_ids" mapping, lowering storage and gas costs.
3.Use uint32 instead of enum for transaction type: Because there are only two transaction kinds, use uint32 instead of enum. Because uint32 requires less data than enum types, this adjustment will cut storage costs.
4.Instead of using the "is_deleted" flag in the Transaction struct ,I would remove it and track deleted transactions using the deleted transaction count in the Tracker struct. This change will reduce storage costs and simplify the logic.
5.restructure the contract to make it more tight and secure.

My proposal is

In addExpense() function we should not take the _id from user, as in case the user interacts with etherscan then they can mess it up. So we can have a counter member in Tracker struct, by which we can allocate id in sequential order.
Also we should have a check on category as well as date in the contract also, as for the same reasons, user can mess that up through etherscan


Add Rule0068 to LinterCop.ruleset.json

This rule checks if the current object has missing permission when data access of any kind is used.

added the wiki page
https://github.com/StefanMaron/BusinessCentral.LinterCop/wiki/LC0068

@Arthurvdv
Please also have a look at the test step in the pipelines I added, if needed I can move that to another branch of course.
But it seems like it does not work for all compiler versions and I am not sure what the reason is for this.

moved tests to its own branch
https://github.com/StefanMaron/BusinessCentral.LinterCop/pull/723


Please drop the pkg-config dependency from the precompiled gems

Not sure if that is possible, but there is no reason the precompiled versions of gem should depend on pkg-config. The java version does not depend on it, so hopefully this dependency can be avoided also for the other platforms.

There's another issue opened objecting to the license, and so we may remove
it entirely. Stay tuned.
On Jun 24, 2016 9:14 AM, "Vít Ondruch"<EMAIL_ADDRESS>wrote:

Not sure if that is possible, but there is no reason the precompiled
versions of gem should depend on pkg-config. The java version does not
depend on it, so hopefully this dependency can be avoided also for the
other platforms.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sparklemotion/nokogiri/issues/1496, or mute the
thread
https://github.com/notifications/unsubscribe/AAAgD68H--rrqthcOmOs5b_yp3jm2aIHks5qO9gqgaJpZM4I9wOo
.

@voxik The other issue is #1488

Will be fixed in <IP_ADDRESS>


Fix position on root node with RTL direction

If the root node has a position and we have a RTL layout, that position must be like LTR direction. See #477.

Look great! thanks


crashed when clicking on crafting grid

Issue description:click on crafting grid i did have invar in my hand from thermal expansion idk if that had anything to do with it seems like its was a random crash.
What happens: i crashed
What you expected to happen: for it to open without crashing
Steps to reproduce:

click on a crafting grid
with invar in your hand

...
Version (make sure you are on the latest version before reporting):

Minecraft: 1.11.2
Forge: 2393
Refined Storage: refinedstorage-1.4.18

Does this issue occur on a server? [yes/no] yes
If a (crash)log is relevant for this issue, link it here:
https://pastebin.com/znsf9VFC

Duplicate of #1338, will be backported to 1.11 soon.


Upgrade to native build tools 0.9.2

See the release notes for more details.

We can't upgrade to 0.9.2 due to https://github.com/graalvm/native-build-tools/issues/108.

See also https://github.com/graalvm/native-build-tools/issues/109 and #922.


Use Wrapping for intended underflow of unsigned integer value.

This fixes an warning made error on nightly builds.

r? @kamalmarhubi

I readded the (reworded) comment.

@homu r+ 2139c90

:hourglass: Testing commit 2139c90 with merge 7931e48...

:sunny: Test successful - status


Plausible not detected on website - 404 script error

Hi, we're new to using next-plausible and just installed v3.7.1.
We followed the instructions here for our _app.js file:
<PlausibleProvider domain="domain.com" enabled={true}>
    <Component {...pageProps} />
</PlausibleProvider>

We're using next dev to run both locally and in prod.
We're getting this error in the browser console, both locally and in prod:

Any pointers you have would be appreciated! We also followed the Troubleshooting guide in the Plausible docs but got stuck there as well.

Hi @jtiulentino!
Can you please paste your next.config.js file?

sure thing!
const { withPlausibleProxy } = require("next-plausible");

/** @type {import('next').NextConfig} */
const nextConfig = {
    reactStrictMode: true,
    swcMinify: true,
    webpack: (config, { isServer }) => {
        if (isServer) {
            require("./sitemap-utils/generate-sitemap");
        }
        return config;
    },
    images: {
        domains: [
            "storage.googleapis.com",
            "cdn.sanity.io",
            "***.supabase.co",
        ],
    },
    experimental: {
        fontLoaders: [{ loader: "@next/font/google", options: { subsets: ["latin"] } }],
    },
};

module.exports = withPlausibleProxy()(nextConfig);


WIP: Move NIRS tests to appropriate directory

What does this implement/fix?
A few months back someone (@cbrnr?) pointed out that the NIRS tests were not located with their code files and suggested we move them. I finally got around to it.
Additional information
Happy to leave as is too.

Any idea what's up with the failing Travis job?

https://github.com/numpy/numpy/issues/17761 workaround in https://github.com/mne-tools/mne-python/pull/8495

Rebased, lets see if that fixes it.

Thanks @rob-luke!


hub.ignore.failure does not work

Hub Maven Plugin Version: 1.1.0
Configuration:
        <hub.url>http://black-duck1-app.eng.qops.net:8080</hub.url>
        <hub.username>automation</hub.username>
        <hub.password><!-- REDACTED --></hub.password>
        <hub.ignore.failure>true</hub.ignore.failure>

And:
       <plugin>
            <groupId>com.blackducksoftware.integration</groupId>
            <artifactId>hub-maven-plugin</artifactId>
            <version>1.1.0</version>
            <configuration>
              <target>${project.build.directory}</target>
            </configuration>
            <executions>
              <execution>
                <id>create-black-duck-manifest</id>
                <phase>package</phase>
                <goals>
                  <goal>createHubOutput</goal>
                </goals>
              </execution>
              <execution>
                <id>deploy-black-duck-manifest</id>
                <phase>deploy</phase>
                <goals>
                  <goal>deployHubOutput</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

You can see the plugin runs:
[INFO] --- hub-maven-plugin:1.1.0:deployHubOutput (deploy-black-duck-manifest) @ audit-service ---
[INFO] Black Duck Hub deploying: audit-service_bdio.jsonld starting.
[INFO] Generating file: /workspace/target/blackduck/audit-service_bdio.jsonld

However, the deploy manifest goal fails when the hub is not available:
[ERROR] Failed to execute goal com.blackducksoftware.integration:hub-maven-plugin:1.1.0:deployHubOutput (deploy-black-duck-manifest) on project audit-service: Execution deploy-black-duck-manifest of goal com.blackducksoftware.integration:hub-maven-plugin:1.1.0:deployHubOutput failed: Invalid Hub Server Configuration: [WARN: ], [ERROR: Can not reach this server : http://black-duck1-app.eng.qops.net:8080]

The message originates from HubServerConfigBuilder.java where it throws an ISE:
String exceptionMessage = "Invalid Hub Server Configuration: ";
exceptionMessage += "[WARN: " + StringUtils.join(warningMessages, ", ") + "], ";
exceptionMessage += "[ERROR: " + StringUtils.join(errorMessages, ", ") + "]";

throw new IllegalStateException(exceptionMessage);

This is the NOT caught in DeployHubOutputGoal.java and therefore not translated to a MojoFailureException which is the only exception type ignored by HubMojo.java. This is why the original pull request #4 caught Exception instead of specific checked exceptions. The root cause originates from HubServerConfigBuilder in validateHubUrl called by assertValid which requires the URL to be reachable to consider the server configuration valid.
My recommendation would be to change the catch in DeployHubOutputGoal.java (and any other goals which support ignore) to catch Exception to cover all RuntimeExceptions as well as any current and future checked exceptions.

This is addressed in 1.3.0 (just released) - please keep these improvements coming!


Undocumented error TF50620

Hi,
Having a nightmare trying to upgrade from TFS2013 U5 to DevOps Server 2019. When I try to attach a collection database for a database that I copied over from the TFS2013U5 instance, I'm getting the following error in every collection (I have 3):
[12:41:06.937] Executing step: Set permissions for project already created
[12:41:06.937]   Executing step: 'Set permissions for project already created' AnalyticsCollection.SetProjectPermissions (2639 of 3182)
[12:41:06.943]   [Error] TF50620: The Azure DevOps identity scope 109DFB4E-21BA-4B5A-9646-A295BC5DDB7E does not exist
[12:41:06.943]   Microsoft.VisualStudio.Services.Identity.GroupScopeDoesNotExistException: TF50620: The Azure DevOps identity scope 109DFB4E-21BA-4B5A-9646-A295BC5DDB7E does not exist
[12:41:06.943]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.TranslateException(Int32 errorNumber, SqlException sqlException, SqlError sqlError)
[12:41:06.943]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.TranslateException(SqlException sqlException)
[12:41:06.943]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.MapException(SqlException ex, QueryExecutionState queryState)
[12:41:06.943]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.HandleException(Exception exception)
[12:41:06.943]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteCommand(ExecuteType executeType, CommandBehavior behavior, String performanceGroupName)
[12:41:06.943]      at Microsoft.VisualStudio.Services.CircuitBreaker.Command.<>c__DisplayClass7_0.<Execute>b__0()
[12:41:06.943]      at Microsoft.VisualStudio.Services.CircuitBreaker.CommandAsync.<Execute>d__30.MoveNext()
[12:41:06.943]   --- End of stack trace from previous location where exception was thrown ---
[12:41:06.943]      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[12:41:06.943]      at Microsoft.VisualStudio.Services.CircuitBreaker.CommandAsync.<Execute>d__30.MoveNext()
[12:41:06.943]   --- End of stack trace from previous location where exception was thrown ---
[12:41:06.943]      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[12:41:06.943]      at Microsoft.VisualStudio.Services.CircuitBreaker.Command.Execute(Action run, Action fallback)
[12:41:06.943]      at Microsoft.TeamFoundation.Framework.Server.DatabaseCircuitBreaker.ExecuteCommandWithBaseCircuitBreaker(ExecuteType executeType, CommandBehavior behavior, String performanceGroupName)
[12:41:06.943]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteReader()
[12:41:06.943]      at Microsoft.VisualStudio.Services.Identity.GroupComponent.QueryScopes(Guid scopeId, String scopeName)
[12:41:06.943]      at Microsoft.VisualStudio.Services.Identity.PlatformIdentityStore.GetScope(IVssRequestContext requestContext, IdentityDomain hostDomain, Guid scopeId)
[12:41:06.943]      at Microsoft.VisualStudio.Services.Identity.PlatformIdentityService.GetScope(IVssRequestContext requestContext, Guid scopeId)
[12:41:06.943]      at Microsoft.VisualStudio.Services.Identity.CompositeIdentityService.GetScope(IVssRequestContext requestContext, Guid scopeId)
[12:41:06.943]      at Microsoft.VisualStudio.Services.Analytics.AnalyticsPermission.GetProjectValidUserGroup(IVssRequestContext requestContext, Guid projectId)
[12:41:06.943]      at Microsoft.VisualStudio.Services.Analytics.AnalyticsPermission.SetAnalyticsProjectPermission(IVssRequestContext requestContext, ProjectInfo project, Func`2 shouldSetPermissionPredicate)
[12:41:06.943]      at Microsoft.VisualStudio.Services.Analytics.Extensions.AnalyticsCollectionStepPerformer.SetProjectPermissions(IVssRequestContext requestContext, ServicingContext servicingContext)
[12:41:06.943]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformHostStep(String servicingOperation, ServicingOperationTarget target, IServicingStep servicingStep, String stepData, ServicingContext servicingContext)
[12:41:06.943]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation, ServicingOperationTarget target, String stepType, String stepData, ServicingContext servicingContext)
[12:41:06.943]      at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Int32 stepNumber, Int32 totalSteps)
[12:41:06.943] Step failed: Set permissions for project already created. Execution time: 6 milliseconds.
[12:41:06.943]   [StepDuration] 0.0056331
[12:41:06.943]   [GroupDuration] 0.0247477
[12:41:06.943]   [OperationDuration] 0.0247715
[12:41:07.033]   Clearing dictionary, removing all items.
This issue is not documented. Many others reported that this was a bug in the earlier versions, but got resolved later.

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

ID: ccbb0190-3faa-1d24-27c3-4653a7ff65dc
Version Independent ID: 3a66cc20-3a18-a23e-2dbd-c211c96879d7
Content: Handling upgrade failures - Azure DevOps Server & TFS
Content Source: docs/troubleshooting/collection-upgrade-failure.md
Product: devops-server
Technology: tfs-admin
GitHub Login: @aaronhallberg
Microsoft Alias: aaronha

I encountered this issue today when running the tfsconfig ChangeServerID console command after cloning the TFS environment. I had to run it several times to complete the changes for all different projects, but the command ultimately completed successfully, only to run into this. And when I check the web.config file in the Application Tier/Web Services/ folder, the application ID value is still unchanged.
Would really love to know how to fix this. Is it safe to just manually change the GUID value in the applicationID key or do I need to programmatically change it via some command or UI option?


Optional Damage Sources

What problem does the feature solve
Add ability to damage players through, e.g. mobs, command blocks, falling, swords, etc
Describe the solution you'd like
Currently everything except PLUGIN damage is ignored. Add configuration to so different damage sources are not ignored. Each source should still only cause 1 damage (except command blocks which should be able to do any amount of damage)
Describe alternatives you've considered
none
Additional context

Implemented this in bee5abadc12. It's included in v0.7.0 but I forgot that I had done so and didn't document it.


Missing documentation on how to use the transaction build engine

[x] describe the step by step process;
[x] explain how to build a transaction manually;
[x] explain how to use select-input and change addresses  to automatize the input selection and saving the changes

pushed in #25


fix: switch direction of accordion arrows to point properly

Fix direction of accordion arrows which are currently pointing in the wrong direction when  in the open and closed state. Switched instances of   i.iconEl.classList.add('rotate-180')  to  i.iconEl.classList.remove('rotate-180')  and vice versa in accordion index.ts
Fixes #703

Thanks for the PR, @AlexMNet. Merged!

Awesome! Thanks @zoltanszogyenyi !!!

This issue still persists for me. I'm using CDN version 2.2.1. Is there a newer one?


feat: data-provider-sense package added

What does this PR introduce?
🚀 Feature
Added the data-provider-sense package to implement upload functionality for the Sense protocol.
PR Checklist

[ ] Wrote Tests
[x] Wrote & Generated Documentation (readme/natspec/dodoc)
[x] Ran npm run lint && npm run lint:solidity (solhint)
[x] Ran npm run format (prettier)
[x] Ran npm run build
[ ] Ran npm run test

@mastercodercat Added a new PR to rebase this. If you have time to rebase and create test scripts you can do it in a new branch. I will try to get the code to go in.

This code has been merged, so you can close this.


[2.0] scrollBehavior doesn't store a scrolling position on the first page

Vue.js & vue-router version
2.0.2, 2.0.1
Steps to reproduce
http://jsfiddle.net/sergeymakinen/zfwhp07p/

Click some Go to… links
Click Go back links until you're back
Watch the browser's console

Expected
scrollBehavior callback should return all saved positions on all pages back to the start page.
Actually happens
Instead the callback returns all except the very first page saved positions. It looks like there should be some replaceState call with a generated key when history mode initializes to be able to catch the key later in popstate.

The third argument, savedPosition,
is only available if this is a popstate navigation
(triggered by the browser's back/forward buttons).

As above, thanks for the explanation by @woshizja.
http://router.vuejs.org/en/advanced/scroll-behavior.html

Unfortunately, you're wrong because clicking on tag only emulates clicking the back button. There's a popstate event listener in the code. You can run it outside the fiddle and click the back button, it won't fix the issue. :)

when trigger browser's back, the browser itself will scroll to original location,
so, vue DON'T need to save the page's scrolling position.

Yes, you're right about the browser scrolling behavior but it's inconsistent in a way you have to write tests and look at the source to know savedPosition is null on unvisited pages (which is right) and undefined on the first page.
The official docs has this sample:
scrollBehavior (to, from, savedPosition) {
  if (savedPosition) {
    return savedPosition
  } else {
    return { x: 0, y: 0 }
  }
}

Maybe it's better to rewrite this sample as the following?
scrollBehavior (to, from, savedPosition) {
  if (savedPosition) {
    return savedPosition
  } else if (savedPosition === null) {
    return { x: 0, y: 0 }
  }
}

It works okay in this way.

I read the vue-router.js source code, when you click browser history back button，the following things will happen：
**1.**popstate event triggered，then we here：
window.addEventListener('popstate', function (e) {
      _key = e.state && e.state.key
      var current = this$1.current
      this$1.transitionTo(getLocation(this$1.base), function (next) {
        if (expectScroll) {
          this$1.handleScroll(next, current, true)
        }
      })
})

Note that  the original history entry (for http://example.com/example.html) has no state object associated with it.
So, _key will be null.
**2.**Then, the program will run into this handleScroll function:
HTML5History.prototype.handleScroll = function handleScroll (to, from, isPop) {
    ......
    // wait until re-render finishes before scrolling
    router.app.$nextTick(function () {
      ......
    })
  };
  return HTML5History;
}(History));

**3.**There is a $nextTick function, so program will run into it:
// content of $nextTick()
var position = getScrollPosition(_key)

// injection position only when isPop
var shouldScroll = behavior(to, from, isPop ? position : null)
if (!shouldScroll) {
    return
}
var isObject = typeof shouldScroll === 'object'
// deal hash string ......
 if (position) {
      window.scrollTo(position.x, position.y)
 }

Because the _key is null, so getScrollPosition(_key) will return null.
My config:
const router = new VueRouter({
    routes,
    mode: 'history',
    scrollBehavior(to, from, savedPosition) {
        console.log(savedPosition)
        if (savedPosition) {
            return savedPosition
        } else {
            return { x: 0, y: 100 }
        }
    }
});

shouldScroll will be {x:0, y:0}, program will run window.scrollTo(position.x, position.y), then page will scroll to top temporarily.
Attention： temporarily!
Continue running the program, The page will scroll to its original location, scrollTop(0, 100) will be invalid!
It doesn't work like the doc said：

This will simply make the page scroll to top for all route navigations.

I am very confused!
4.vue-router will listen 'scroll' event:
if (expectScroll) {
    window.addEventListener('scroll', function () {
        saveScrollPosition(_key)
    })
}

_key is null, won't save position.
But, when you already back to last page，your scroll behavior also trigger this，and the _key will have a value, because：
var genKey = function () { return String(Date.now()); }
var _key = genKey()

Now, I'm not sure I can use vue-router scrollBehavior.

不太理解在以下情况：

单击浏览器前进/后退按钮；
点击<router-link>跳转；
程序跳转（$router.push()）;

vue-router处理scroll behavior是什么策略？
_key和时刻监听scroll事件以savePosition的设计是为什么？
@fnlctrl 能解答以下我的疑惑吗？

yep big problem, because not even afterEach: => window.scrollTo(0,0) works anymore.

Hi. I have the same problem. [v2.5.3]
I'm not sure should this be reopened or its different bug..

I render page on backend. URL is exactly the same as requested(i think this is important).
new _key generated. For example 100
history.state have some garbage from previous  attempts. Lets say 234

I click on <route-url>
before route changes it try to save current offset by key 100, but current history.state has the same garbage (234). Its not used anywhere for now.
new _key generated(lets say 300), offset stored by this key.. and pushState({key:300}) performed  its not important now.

Then i click Back. popstate fired, event has 234 key, and vue-router tries to get offset from 234 which is obviously undefined.

Then I discovered that doing something like history.replace will force write current key to current state and everything will be just great, but it is encapsulated so much so I forced to write this report instead of putting in some cludge and resting :+1: .
The solution:
Looks like history.ensureURL should do exact the same native way, but condition does not satisfied for some reason to fire the replaceState with current _key

I've been struggling with the same problem.
When the router is initialized, the current route R1 does not have state registered in the history (window.history.state -> null). Let's say that R1 contains a long list view and the user scrolls to the bottom, so that window.scrollY becomes 2500.
Now the user navigates to another route R2 by clicking one of the list items. The scroll position of R1 ({ x: 0, y: 2500 }) is saved to the positionStore (scroll.js#L7). When clicking the back button, popstate event callback receives info about R1. Since it does not have its history state registered (e.state = null), no expected scrolling takes place. That's where it breaks.
My current workaround is to replace the history state of the current route when the router is initialized. I just added pushState(cleanPath(this.getCurrentLocation()), true) to the HTML5History constructor. The critical part is to have the generated key added to the first route's state.

@kadfak could you provide a code example of your solution? this bug/inconsistency is causing some headache


Bump bounds for fpco/stackage #2140.

Following from https://github.com/hvr/packunused/issues/28.
I think that should do it ...

HSE's major version bumps quite often signal significantly breaking API changes... :-)

Ah yes, I see ;).
I've moved to HSE 1.18.2, which should be fine for the >1.18 bounds error.
Once later versions of Stackage cover later versions of HSE, I'll move back to Stack LTS.

@hvr I'm interested in trying this package with GHC.
Is this branch ready to merge?

@igrep I think so... I just merged it (@lwm thanks!)

Great! Thanks :beers:

Great! Thanks :beers:


Kernel dies when exporting large dataframe to json

Problem
The kernel dies when I try to export relatively large data to json. No problems with short test data, it gets exported as it should. Also, exporting a large df to_csv works just fine, but to_json fails.
These are datasets of either tweets or newspaper articles, so at least one of the fields contains strings of different lengths.
Code Sample

df
[...]
[557807 rows x 25 columns]
df.to_json('data.json')
It seems the kernel died unexpectedly. Use 'Restart kernel' to continue using this console.

output of pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 32
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_GB
pandas: 0.16.2
nose: 1.3.7
Cython: None
numpy: 1.9.2
scipy: 0.15.1
statsmodels: None
IPython: 2.4.1
sphinx: 1.3.2
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.4
bottleneck: 1.0.0
tables: 3.2.0
numexpr: 2.4.3
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: 3.4.4
bs4: 4.3.2
html5lib: 0.99999
httplib2: None
apiclient: None
sqlalchemy: 1.0.6
pymysql: None
psycopg2: None

you need a more modern version of pandas, we have had 3 major releases since then (17, 18, and 19rc is out now).


Add resolveActionAttempt

Still need to decide on if we will provide this behavior in the client methods. However this method is a prerequisite for anything like that.

We could introduce an option to SeamHttp called awaitActionAttempts and either codegen something like this
  async lockDoor(
    body?: LocksLockDoorBody,
  ): Promise<LocksLockDoorResponse['action_attempt']> {
    const { data } = await this.client.request<LocksLockDoorResponse>({
      url: '/locks/lock_door',
      method: 'post',
      data: body,
    })
    if (this.awaitActionAttempts) {
      return resolveActionAttempt(data.action_attempt, this)
    }
    return data.action_attempt
  }

Or use an axios interceptor
  if (awaitActionAttempts) client.interceptors.response.use(actionAttemptInterceptor)

export const actionAttemptInterceptor = async <T>(response: T): Promise<T> => {
  if (isActionAttemptResponse(response)) await resolveActionAttempt()
  return response
}

Another idea: introduce a special method:
seam.actionAttempts.resolve<T extends ActionAttempt>(params: T | Promise<T> | string): Promise<SuccessfulActionAttempt<T>>

I don't like this as much since it breaks parity with the API. It is kinder for tree-shaking though,
Perhaps better is a top level method, this way the client does not need to be passed into the function
seam.resolveActionAttempt(actionAttempt)

This approach is not tree-shakeable though.


Add additional Steam search paths for Linux

Quick and easy PR to add support for other Steam install paths. Flatpak still take precedence over native, so dirs that persist after uninstallation may cause problems (issue #17).
I can also add Snap support if needed, however I would rather not obstruct the work done in PR #30.

Ported this directly from changes made to master, will update in a moment.

Things will be easier after the first PR since CI will run automatically

You can probably configure your editor to format as save btw. It's pretty typical for rust projects to enforce automated formatting (aka I have to disable formatting on save way less than I would enable it)

This is what I get for using WSL without setting up a real development environment 🥇 Lets just forget the CI and I had this little spat.


Server crash on boot

https://github.com/jaredlll08/CraftTweaker/issues/453
Issue Description:
when adding recipe for chickens:spawn_egg via crafttweaker server crashes on boot
doesnt happen with client only server
Steps to reproduce (important):
launch a server with crafttweaker on and a recipe like recipes.addShaped(<chickens:spawn_egg>.withTag({ChickenType: {id: "chickens:logchicken"}}), [[<ore:logWood>, <ore:logWood>, <ore:logWood>], [<ore:logWood>, <minecraft:egg>, <ore:logWood>], [<ore:logWood>, <ore:logWood>, <ore:logWood>]]);

Chickens: 6.0.3
Minecraft: 1.12.2
Forge: forge-1.12.2-<IP_ADDRESS>16-universal

Will look at.

Check #120 pull request for fix Issue.

Thanks for changing that.. I got busy with some RL stuff. had completely forgot. And I was about to do an update soon too.

Ok after about 2 days dealing with Github and issues and not be able to push anything from my computer. I should be able to get this all tested and posted soon.

I have tested DoctorFTB´s version and it works

Hopefully fixed on latest version


Chore: rename test project as NSpec.Tests

That would mean renaming, at least:

project directory
project name
project namespace

Closed by 70274d82f291c84aacc32faff5abe38e71eab4a9, ff16837bcf666e90bf0f5de409f1b65be162ab49, bb0d163dc99ebf5ce903289601761e0b9336993, ff424106c61ec1c38515d7ae80e22888a96a03e7


Add _count token to housing security and quality

breakdown the #217 to smaller pieces to meet our delivery time

this work is in progress #224


TP Integration Tests GHA still starts Riak container

I'm submitting a ...

improvement request (usability, performance, tech debt, etc.)

Traffic Control components affected ...

GitHub Actions

Current behavior:

The tp-integration-tests GitHub Action starts but does not use a Riak Docker container.
New behavior:

The Riak container should be removed.
Minimal reproduction of the problem with instructions:

https://github.com/apache/trafficcontrol/blob/295c31e3467d13163ec4a3f87fac5450389801ec/.github/actions/tp-integration-tests/entrypoint.sh#L133-L138

I'll take this one.

Fixed in #6188


grsec: Switch to paxctl-ng.

Issue description
paxctl doesn't support XATTR flags; only PT flags. paxctl-ng supports both. XATTR flags live in the filesystem; PT flags live in the ELF header.
See here for a guide!

For use with Nix, ELF header markings are the only reliable way of doing this. There's no provision for transmitting xattrs via nar, as far as I can tell. What is more, the fact that xattrs are even permitted in the store is considered an oversight iirc.

What is more, the fact that xattrs are even permitted in the store is considered an oversight iirc.

Why?

https://github.com/NixOS/nix/issues/185#issuecomment-30861622


Use Gradle 3.4 dependency configurations.

Migrates project to new dependency configurations.
compile and testCompile are deprecated as of Gradle 3.4:
https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#new_configurations

Thanks!


Please add North Kansas city schools

Institution/School Name
North Kansas City School District
Instiution/School Website
www.nkschools.org
Email Users
<EMAIL_ADDRESS>Please place an x between the square brackets if yes

[x ] Students
[x ] Academic/Teaching Staff
[x ] Other/Support Staff

Education Levels
Please place an x between the square brackets if yes

[ ] Post-graduate research
[ ] Graduate School
[ ] College (University) or Undergraduate School or equivalent
[ ] Community College or equivalent
[x ] High School or equivalent
[ ] Elementary School or equivalent

<EMAIL_ADDRESS>

Closing duplicate

Sorry closed wrong duplicate


Why I can't see subnetMask in Device ?

In current version, when MMLANScannerDelegate find new device, property subnetMask in Device object always == nil.

It might take a few secs to acquire. Does it stay nil, or will it correct after a while?

Op 25 jul. 2017 om 14:46 heeft DenisMashintsev<EMAIL_ADDRESS>het volgende geschreven:
In current version property subnetMask in Device object always == nil.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Yes, it stays nil. The problem is in the getMACDetails method of the MACOperation class. In this method, the subnetMask property of the Device object is not initialized.

I will check this out and I will let you know soon.


v1.3.2 release

Coverage remained the same at 85.868% when pulling 62e4542172e8fea762bc207c2cd5f4dffc4cc13c on rel-v1.3.2 into 2e2f2439496011642ac81b76189ffb36f9bf5569 on master.


Remove beta banner

The beta notice was removed, but removing the orange banner completely introduced a lot of CSS issues which were all linked to that extra height in the header.  Need to remove the bar and clean up layout.
OR
We keep the bar there as empty and use it for alerts...

Fixed in https://github.com/NYCPlanning/labs-community-portal/commit/fe7359405918dd5c4deffb29a26498b42e1c2d2d.


Can't install package

I'm not sure, but I can't install the package.
It can't read matches of whatever is null.

nvm, i used npm but pnpm in the project LOL, silly me lmao :skull:


checkbox input doesn't work with boolean value

Hi,
I tried to upgrade an existing typescript project to vite and<EMAIL_ADDRESS>(which uses vue-tsc@0.2.2). The code seems to run just fine in dev mode, but it fails during build.

Also, in VSCode, after commenting/uncommenting the offending line a couple of times, volar just suddenly marked the line in red with the following error (it didn't mark the line like this before):

I tried to create a smaller reproduction project, but the error doesn't appear. Unfortunately this bug only happens to a private project which I cannot readily share. :-/
As a workaround, I disable vue-tsc from npm run build for the time being.

Please check the version of node_modules/vscode-vue-languageservice/package.json, if it's not 0.26.15, try delete yarn.lock / package-lock.json and install node_modules again to update vscode-vue-languageservice.


Port to aarch64

Vagga should compile on aarch64 once you do the following:

replace the code that uses the old API from "unshare" once you release 0.2
remove uses of i8 where it should be c_char, if any are left (right now these are the lines with to_clone_flags() as *const i8 and in the extern definition of lchown in src/file_util.rs)
update "libmount", "openat" in "dir-signiture" and then "dir-signiture".

I managed to get vagga to compile on my odroid C2. All the tests passed. Eventually got error at runtime I didn't know how to fix:
ERROR:vagga::wrapper: Error executing _build: Could not run versioner: error when executing: No such file or directory (os error 2)

Maybe it's aarch64 specific, maybe not. What ever the case, it seems like getting vagga to work properly on aarch64, and not just compile, is a long way ahead and it seems unreasonable to ask of you to support another platform like that.
Sorry, I'll close this one.


notify call back of load failure

When the google  fails to load due to no internet, the  call back should be notified so that appropriate UI can be shown

@itsmichaeldiego thanks for spotting the bug 🐛  . It is because i edited the file on github and not my work station but am glad that the unit tests got me :) i have done a forced push with the correction