text:
Model integration for Lit-GPT

Addresses https://github.com/stanford-crfm/helm/issues/1783 and https://github.com/stanford-crfm/helm/issues/1823 - this PR integrates Lit-GPT by Lightning AI to HELM
After this PR, users should be able to evaluate Lit-GPT directly through HELM CLI.
echo 'entries: [{description: "mmlu:model=lightningai/lit-gpt,subject=college_computer_science", priority: 4}]' > run_specs.conf

export LIT_GPT_CHECKPOINT_DIR="checkpoints/EleutherAI/pythia-1b"
export LIT_GPT_PRECISION="bf16-true"
export PYTORCH_ENABLE_MPS_FALLBACK=1

helm-run --conf-paths run_specs.conf --suite v1 --max-eval-instances 100 -n 1

helm-summarize --suite v1

Hi @aniketmaurya, sorry I haven't had time to review this PR yet, but I'll do so in the next couple of days.

@yifanmai just came back from leave. I'll work on your feedback. thank so much for adding your comments.

Hope you had a good break! Thanks for the progress on this PR. Feel free to ping me if you'd like me to help with anything.

@yifanmai could you please help review the updated PR

thank you for reviewing the PR again @yifanmai. I have updated the PR based on your feedback.
I evaluated lit-gpt and HF locally using Llama 2 7B model on MMLU and observed the following result.

Hi @yifanmai, I updated the PR with the remaining unresolved suggestions. Please do let me know if I missed anything. Looking forward to get this PR merged soon 😄 🚀

authors: aniketmaurya yifanmai


text:
wire up llm-eval-harness

CF https://github.com/kingoflolz/mesh-transformer-jax/blob/master/eval_harness.py

addressed in #675

source: gharchive/issue

repo: stanford-crfm/levanter

license_type: permissive

license_source: github-api


text:
Running on Raspberry PI results in "Exec format error"

Running on Raspberry PI (Ubuntu 20.04.2) with the Podman command from the README results in
{"msg":"exec container process `/usr/bin/npm`: Exec format error","level":"error","time":"2021-06-07T00:29:23.000360758Z"}

We only provide builds for x86_64 at the moment. If you would like to run on arm or arm64, you will need to rebuild the container using the Dockerfile in this repository.

Thank you - worked. Now trying to get it to recognize audio input, but past building & running. Thanks!

authors: gcampax julianpoy

repo: stanford-oval/almond-server


text:
Local Memory Reset API

Should BRAM/Cache reset/flush be supported as a user-facing API? Is this intuitive enough to include in Spatial?

I don't think it is necessary.   It is simple enough to explicitly flush a memory.
Although with GEMM, it would be really convenient to have a tile transfer from bigger brams to smaller brams with the same API as offchip tile loaders.  So if we decide to allow multiple levels of hierarchy for on-chip memories and support a tile transfer API, maybe we can also use the same API to specify a flush as well.

repo: stanford-ppl/spatial

license: MIT


text:
J list books

Classes BookController e BooksWindow atualizados, agora além de salvar os livros no banco de dados, eles aparecem na tabela das listagens de livros já cadastrados em nosso banco.

Fechando a issue, já que a maioria das modificações foram incluídas no PR #19

source: gharchive/pull-request

authors: StanleySathler jprogram


text:
data.unique_id does not get data from Unique ID data field

The variable "data.unique_id" does not call the tag field variable ("uniqueId") and does not find the data when you fill out the Unique ID data field
const uniqueId = data.unique_id || eventData.unique_id;

Hi,
Issue fixed.

repo: stape-io/klaviyo-tag


text:
confusing versioning strategy (0.4.4 vs 0.5.0)

Describe the bug
It seems like the most recent release 0.5.0 does not contain some changes from 0.4.4. The latest commits (including) the version bump went straight to main branch, which is still 16 commits behind develop.
To Reproduce
Use getCreateExchangeTransaction.  https://github.com/staratlasmeta/factory/pull/110 made the staking id optional. After upgrading to 0.5.0, the method expects me to pass the id again (PR 110 never made it to `master).
  node_modules/@staratlas/factory/dist/marketplace/services/GmClientService.d.ts:121:138
    121     getCreateExchangeTransaction(connection: Connection, order: Order, orderTaker: PublicKey, purchaseQty: number, programId: PublicKey, stakingProgramId: PublicKey, registeredStake?: PublicKey): Promise<{
                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    An argument for 'stakingProgramId' was not provided.

Expected behavior
It would be nice to have a proper verisoning / release path.
Maybe this was intentional, but it does not really look like it.

0.5.0 should have just been an update to the getTokenAccount function that was a breaking api change so required a minor bump. I'm going to look into what changed and we'll do a 0.5.1 release once we've resolved it.

0.4.4 is still compatible, there were no on-chain changes in 0.5.0 so should work until we resolve this release issue.

Yea, not a blocker. just confusion :) Thanks for looking at it.

0.5.1 released

authors: Buzzec mindrunner

repo: staratlasmeta/factory


text:
Support for overriden column types

Fixes #42
Still need to add tests, but like some feedback on the code.

@mdesmet could you please also add an info about your change in CHANGELOG.md?

authors: hovaesco mdesmet

repo: starburstdata/dbt-trino


text:
"he_heavy_augment" model

Hello,
Thank you so much for stardist and above all making access to pre-trained models so easy - 100% fan.
I've used the "he_heavy_augment" model with great success using the ImageJ stardist plugin (will cite stardist of course).
However, I'd like to run this model outside ImageJ using the stardist Python package, but it isn't available in the stardist repository. Maybe there is a trivial way to load/convert the keras model into a stardist model, but I have not yet managed.
Any help/pointers would be appreciated.
Cheers, Andre

Hi @afrendeiro ,
Thanks a lot for your feedback - highly appreciated 😄

However, I'd like to run this model outside ImageJ using the stardist Python package, but it isn't available in the stardist repository.

Yes, you can load the pretrained models as described in the python readme:
from stardist.models import StarDist2D

model = StarDist2D.from_pretrained('2D_versatile_he')

model.predict_instances(img, ...)

Hope that helps!
Martin

Hi @afrendeiro ,
Thanks a lot for your feedback - highly appreciated 😄

However, I'd like to run this model outside ImageJ using the stardist Python package, but it isn't available in the stardist repository.

Yes, you can load the pretrained models as described in the python readme:
from stardist.models import StarDist2D

model = StarDist2D.from_pretrained('2D_versatile_he')

model.predict_instances(img, ...)

Hope that helps!
Martin

Hmm, I did try that model - I guess my confusion comes from having very different results with the two implementations:

I assumed the models were different since the names are also slightly different.
I guess this comes from having different default arguments?

Hmm, I did try that model - I guess my confusion comes from having very different results with the two implementations:

I assumed the models were different since the names are also slightly different.
I guess this comes from having different default arguments?

Hi,
The defaults should be the same. Can you post the image that you are using?

Hi,
The defaults should be the same. Can you post the image that you are using?

Yes, here it is: https://wcm.box.com/shared/static/9mqe6bc1wm04f8cur8kpbzdlvs802yep.tif
And a little script to reproduce:
import io
import tempfile
import subprocess
from pathlib import Path

import requests
import numpy as np
import tifffile
import matplotlib.pyplot as plt
from stardist import random_label_cmap
from stardist.models import StarDist2D

IMAGE_J_PATH = Path("~/Downloads/fiji/Fiji.app/ImageJ-linux64").expanduser().absolute()
IMAGE_URL = 'https://wcm.box.com/shared/static/9mqe6bc1wm04f8cur8kpbzdlvs802yep.tif'

def get_image_from_url(url: str) -> np.ndarray:
    req = requests.get(url)
    if not req.ok:
        raise ValueError
    buf = io.BytesIO()
    buf.write(req.content)
    buf.seek(0)
    return tifffile.imread(buf)

def segment_imagej(input_file: Path, output_file: Path) -> None:
    macro_file = tempfile.NamedTemporaryFile(suffix='.py').name

    macro = f"""# @ DatasetIOService io
# @ CommandService command

from de.csbdresden.stardist import StarDist2D

f = "{input_file}"
imp = io.open(f)

res = command.run(
    StarDist2D,
    False,
    "input",
    imp,
    "modelChoice",
    "Versatile (H&E nuclei)",
).get()
label = res.getOutput("label")

io.save(label, "{output_file}")
    """
    with open(macro_file, 'w') as handle:
        handle.write(macro)
    # !subl $macro_file

    cmd = f"{IMAGE_J_PATH} --ij2 --headless --console --run {macro_file}"
    o = subprocess.call(cmd.split(" "))

_dir = Path(".").absolute()
img_file = _dir / 'test_image.tiff'
maskij_file = _dir / 'test_mask.imj.tiff'
maskpy_file = _dir / 'test_mask.py.tiff'

# Get and save image
img = get_image_from_url(IMAGE_URL)
tifffile.imwrite(img_file, img)

# Segment with ImageJ
segment_imagej(img_file, maskij_file)
maskij = tifffile.imread(maskij_file)

# Segment with native
model = StarDist2D.from_pretrained('2D_versatile_he')
maskpy, prob = model.predict_instances(img)
tifffile.imwrite(maskpy_file, maskpy)

# Plot
fig, axes = plt.subplots(1, 3, figsize=(3 * 4, 4))
axes[0].imshow(img)
axes[0].set(title="Original")
axes[0].axis('off')
for ax, mask, title in zip(axes[1:], [maskij, maskpy], ['ImageJ', "Python"]):
    # mask = np.ma.masked_array(mask, mask==0)
    ax.imshow(mask, cmap=random_label_cmap())
    ax.axis('off')
    ax.set(title=title)
fig.savefig(_dir / "test_result.png", dpi=300, bbox_inches="tight")

One'd need to change IMAGE_J_PATH.
I didn't quite get it to run as is for an unrelated issue (for some reason the macro won't save the image when run with headless ImageJ, but works fine if I run it in ImageJ console ¯_(ツ)_/¯

Yes, here it is: https://wcm.box.com/shared/static/9mqe6bc1wm04f8cur8kpbzdlvs802yep.tif
And a little script to reproduce:
import io
import tempfile
import subprocess
from pathlib import Path

import requests
import numpy as np
import tifffile
import matplotlib.pyplot as plt
from stardist import random_label_cmap
from stardist.models import StarDist2D

IMAGE_J_PATH = Path("~/Downloads/fiji/Fiji.app/ImageJ-linux64").expanduser().absolute()
IMAGE_URL = 'https://wcm.box.com/shared/static/9mqe6bc1wm04f8cur8kpbzdlvs802yep.tif'

def get_image_from_url(url: str) -> np.ndarray:
    req = requests.get(url)
    if not req.ok:
        raise ValueError
    buf = io.BytesIO()
    buf.write(req.content)
    buf.seek(0)
    return tifffile.imread(buf)

def segment_imagej(input_file: Path, output_file: Path) -> None:
    macro_file = tempfile.NamedTemporaryFile(suffix='.py').name

    macro = f"""# @ DatasetIOService io
# @ CommandService command

from de.csbdresden.stardist import StarDist2D

f = "{input_file}"
imp = io.open(f)

res = command.run(
    StarDist2D,
    False,
    "input",
    imp,
    "modelChoice",
    "Versatile (H&E nuclei)",
).get()
label = res.getOutput("label")

io.save(label, "{output_file}")
    """
    with open(macro_file, 'w') as handle:
        handle.write(macro)
    # !subl $macro_file

    cmd = f"{IMAGE_J_PATH} --ij2 --headless --console --run {macro_file}"
    o = subprocess.call(cmd.split(" "))

_dir = Path(".").absolute()
img_file = _dir / 'test_image.tiff'
maskij_file = _dir / 'test_mask.imj.tiff'
maskpy_file = _dir / 'test_mask.py.tiff'

# Get and save image
img = get_image_from_url(IMAGE_URL)
tifffile.imwrite(img_file, img)

# Segment with ImageJ
segment_imagej(img_file, maskij_file)
maskij = tifffile.imread(maskij_file)

# Segment with native
model = StarDist2D.from_pretrained('2D_versatile_he')
maskpy, prob = model.predict_instances(img)
tifffile.imwrite(maskpy_file, maskpy)

# Plot
fig, axes = plt.subplots(1, 3, figsize=(3 * 4, 4))
axes[0].imshow(img)
axes[0].set(title="Original")
axes[0].axis('off')
for ax, mask, title in zip(axes[1:], [maskij, maskpy], ['ImageJ', "Python"]):
    # mask = np.ma.masked_array(mask, mask==0)
    ax.imshow(mask, cmap=random_label_cmap())
    ax.axis('off')
    ax.set(title=title)
fig.savefig(_dir / "test_result.png", dpi=300, bbox_inches="tight")

One'd need to change IMAGE_J_PATH.
I didn't quite get it to run as is for an unrelated issue (for some reason the macro won't save the image when run with headless ImageJ, but works fine if I run it in ImageJ console ¯_(ツ)_/¯

Ah, I see. I suspect the image was not normalized before predicting in python (which is automatically done in Fiji)?
The following does work for me:

from stardist.models import StarDist2D
from csbdeep.utils import normalize

x = imread(...)

model = StarDist2D.from_pretrained('2D_versatile_he')

labels, _ = model.predict_instances(normalize(x,1,99.8))

Ah, I see. I suspect the image was not normalized before predicting in python (which is automatically done in Fiji)?
The following does work for me:

from stardist.models import StarDist2D
from csbdeep.utils import normalize

x = imread(...)

model = StarDist2D.from_pretrained('2D_versatile_he')

labels, _ = model.predict_instances(normalize(x,1,99.8))

Ah duh - that explains it. Thanks a lot and sorry about bothering you!

Ah duh - that explains it. Thanks a lot and sorry about bothering you!

authors: afrendeiro maweigert

repo: stardist/stardist-imagej


text:
Remove shared secret embedding provider options

Since we do not have a shared secret implementation directly in the Data API, we should simplify options in the embedding gateway configuration file to remove these options and only support header-based auth.

This will help prevent confusion for users using Data API with self-managed deployments such as those using DSE 6.9 / HCD so they aren't being shown options that aren't available.

repo: stargate/data-api


text:
Consistent logging

In Stargate many modules import logback-core, which is probably not ideal. It make log operation obscure in runtime since logging is not controlled in one place.
Most modules should probably import only slf4j. Then, we could have a separate OSGi bundle that would contain an isolated set of jars implementing slf4 and control logging in runtime.
Downstream project will have the option of providing their own log implementation bundles or simply overwrite the default logback.xml config.

Refactoring for Stargate V2 will require thinking through logging aspects (also due to move to Quarkus).
Closing as being tied to SGv1 design; will create new issue(s) as necessary.

authors: blerghh tatu-at-datastax

repo: stargate/stargate


text:
Added struct member completions

Stack:

#6566
#6565
#6564 ⬅
#6563
#6562

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

This change is

Closing pull request: commit has gone away

repo: starkware-libs/cairo


text:
rename into rpc method

Pull Request type
Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Does this introduce a breaking change?

[ ] Yes
[ ] No

Other information

This change is

Current dependencies on/for this PR:

main

PR #829

PR #830

PR #831

PR #832

PR #833

PR #834

PR #837

PR #845

repo: starkware-libs/papyrus


text:
feat(JSON-RPC): return syncing state

Pull Request type
Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Does this introduce a breaking change?

[ ] Yes
[ ] No

Other information

This change is

crates/papyrus_gateway/src/v0_3_0/api/test.rs line 162 at r5 (raw file):
Previously, yoavGrs wrote…
No :(
I need access to shared_highest_block.

ok, in a different PR consider returning it from the util (and ignoring elsewhere, or having two utils one that returns it and another one that doesn't and use the first one)

authors: dan-starkware yoavGrs


text:
fix(ci): fix warnings

Without --all-targets they don't run on tests and benchmarks.

This change is

authors: giladchase reviewable-StarkWare

repo: starkware-libs/sequencer


text:
refactor(consensus): additional lints found in the manager

This change is

#287
#329  👈
main

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

Join @matan-starkware and the rest of your teammates on  Graphite

Merge activity

Aug 5, 10:06 AM EDT: @matan-starkware started a stack merge that includes this pull request via Graphite.


text:
All CSS properties should be alphabetical

Summary
A clear and concise description of what the chore is.
Acceptance Criteria

All CSS properties should be in alphabetical order

https://github.com/starter-code/res-gen/blob/384691a/src/scss/App.scss#L13-L20

For the site-wide CSS refactor:
Patrick-
App.scss
CodeMirror.scss
EditorPage.scss
FAQPage.scss
MahomesTemplate
David-
HomePage.scss
Modal.scss
NavBar.scss
FolesTemplate
index.scss
Let me know if I missed anything but I think that about covers it.

repo: starter-code/res-gen


text:
What is Online mode?

Can you please explain online mode? I didn't specify -o, and curious what this means..

When you installing RDP Wrapper first time, in online mode it will download latest INI file from GitHub.

If you don't specify -o flag, it will extract built-in INI file from installer.

my PC was off line (without inernet access) and when i performed the "install.bat" two files (rdpwrap.dll and rdpwrap.ini) was created on "C:\Program Files\RDP Wrapper", and in my folder with the file installers did not have any dll or ini file.
can you please explain how to these files (dll and ini) was created on "C:\Program Files\RDP Wrapper" folder?

authors: AXEBro binarymaster espeditomelo

repo: stascorp/rdpwrap

license_source: bigquery


text:
Query Caching

Description
The overhead for queries on each page is heavy. Would it be possible to add hooks which enable caching, which busts on insert/update/delete?
These are the queries just on one simple page:

select * from "statamic"."global_sets"
select * from "statamic"."blueprints" where "namespace" is null and "handle" = 'user' limit 1
select * from "statamic"."navigations" where "handle" = 'sidebar' limit 1
select * from "statamic"."trees" where "handle" = 'sidebar' and "type" = 'navigation' and "locale" = 'default' limit 1
select * from "statamic"."entries" where "id" in ([snipped for brevity])
select * from "statamic"."collections" where "handle" = 'pages' limit 1
select * from "statamic"."blueprints" where "namespace" = 'collections.pages'
select * from "statamic"."blueprints" where "namespace" = 'navigation'
select * from "statamic"."trees" where "handle" = 'pages' and "locale" = 'default' and "type" = 'collection' limit 1
select "id" from "statamic"."entries" where "collection" = 'pages' and "site" = 'default'
select * from "statamic"."navigations" where "handle" = 'top_bar' limit 1
select * from "statamic"."trees" where "handle" = 'top_bar' and "type" = 'navigation' and "locale" = 'default' limit 1
select * from "statamic"."entries" where "id" in ('[snipped]')

Something like this in the config, using mins:
'caching' => [
    'global' => 60,
    'blueprints' => 60,
    'collection' => 60,
    'navigations' => 60,
    'trees' => 60,
    'entries' => 60,
],

We already pretty aggressively blink query results so that per page queries are (mostly) only run once.
Caching over a longer time period is pretty opinionated and your requirements/wants are likely to be different to those of other users. Creating invalidation rules that keep everyone happy would be a bit of a minefield.
There’s nothing stopping you binding your own models or even repositories and adding caching at that level. There are some laravel packages that provide support at the model level.
in short I feel you already have the capability to do this as things stand, albeit you need to code it yourself.

Closing this due to inactivity, but feel free to re-open if you want to continue the discussion.

authors: alexc-jeromes ryanmitchell

repo: statamic/eloquent-driver


text:
Regression: root-level invoked services not stopped after reaching final state

Description
When an interpreted machine reaches a final state, services invoked at the root level are no longer stopped.
#3126 changed the way the interpreter is stopped when this.state.done, calling the new _stop method where previously stop was called. stop handles stopping all children:
https://github.com/statelyai/xstate/blob/f2bf4924c291069204baab8b2f156574c0bd085f/packages/core/src/interpreter.ts#L664-L668
Expected result
When a service reaches a final state, all invoked services are stopped.
Actual result
When a service reaches a final state, services invoked at the root are not stopped.
Reproduction
https://codesandbox.io/s/kind-diffie-ewx8qk?file=/src/index.ts
Additional context
Reproduction of previous behavior (xstate@4.32.1): https://codesandbox.io/s/modern-rain-4serhm

Thank you for the report, It got fixed by https://github.com/statelyai/xstate/pull/3523 and the new release is already out.

@Andarist You're the best! Ty 💖

authors: Andarist with-heart

repo: statelyai/xstate


text:
How to use it? No document?

I want to use it but it no document?

The readme has an example: https://github.com/statianzo/Fleck/blob/master/readme.markdown
There's a sample application in the source as well:
https://github.com/statianzo/Fleck/tree/master/src/Samples/ConsoleApp

Thanks I try it

repo: statianzo/Fleck


text:
chore(main): release 0.2.0

:robot: I have created a release beep boop
0.2.0 (2023-05-24)
⚠ BREAKING CHANGES

deps: bump controller-runtime version to 0.15.x (#154)

Dependency Updates

deps: bump controller-runtime version to 0.15.x (#154) (2d172eb)
deps: bump github.com/onsi/ginkgo/v2 from 2.9.4 to 2.9.5 (#153) (3de531e)
deps: bump github.com/onsi/gomega from 1.27.6 to 1.27.7 (#158) (9ede79e)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/statnett/controller-runtime-viper/releases/tag/v0.2.0 :sunflower:

repo: statnett/controller-runtime-viper


text:
Refactor Team class to traits

I think it will be nicer overall if we remove the Team model entirely, and split its functionality out into a pair of Trait classes: HasUsers and HasInvites (names tbc).

Reference branch: fix-team-odk-project-link


text:
Heroku

Seems like you deleted it... :/

Yeah, I had to.
Heroku allows you to run free apps upto a limit (and I crossed it big time). I guess I could just create another account, but that'd be boring. I'll probably revive it when I get back to this.

What's the status of this project?
I want to start contributing again. I can knock out some Angular stuff since I write Angular applications everyday.

Hmm, I guess #41 kind sums it up.

repo: statusify/statusify


text:
Add ability to use external fdkaac encoder

We need HE-AACv2 for super low bitrates (NeroAAC included in eac3to and ffmpeg's acc not good enough and qaac only support HE-AAC and LC-AAC)
I know about license issues but compiled fdkaac.exe can be imported by user to StaxRip (like MeGUI did)
and why AviSynth+ must installed by setup file unlike the other apps witch pre-inistalled?
-Thanks in advance for your hard-working

fdkaac cauld be added relative easy. Portable avisynth and vapoursynth is more difficult, the pipe tools or encoder must support it, I can look how megui does it.

Thanks for your reply, I appreciate that
So I can wait for the future updates ... maybe god with you

Thanks, for fdkaac you can try the new build.
https://github.com/stax76/staxrip/blob/master/md/changelog.md

license: mit


text:
[RFC]: Add C implementation for math/base/special/round

Description
This RFC proposes adding a C implementation for math/base/special/round
Related Issues
Related issues #64
Questions
No.
Other
No.
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

Closing this as there are already PRs to fix this issue. Thank you!

repo: stdlib-js/stdlib


text:
feat: add string/base/last

Resolves #1696
Description

What is the purpose of this pull request?

This pull request adds the package @stdlib/string/base/last
This pull request:

resolves #1696

Questions

Any questions for reviewers of this pull request?

No.
Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.
Checklist

Please ensure the following tasks are completed before submitting this pull request.

[x] Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

tests pass - this pr is ready for review @kgryte @Planeshifter


text:
最近查看列表没有走判断权限规则

当一个用户原来有记录权限，后面把权限去掉了，这时，最近查看中还是能看到之前看过的记录，即最近查看列表没有判断权限。
这个可能挺麻烦，不处理也可以，比较极端，最后再考虑。

当权限调整的时候，删除对应人员的最近查看记录？

authors: steedos yinlianghui

repo: steedos/creator


text:
RPCError: Bad Cast:Invalid cast from type 'array_type' to Object

Expected behavior
Once the account_create operation is called an appropriate STEEM amount should be burned and a corresponding account should be created.
Actual behavior
A Bad Cast:Invalid cast from type 'array_type' to Object error is raised.
How to reproduce
Sample code:
steem.api.setOptions({ url: 'https://api.steem.house' });

var newAccountName = 'blaney',
    newAccountWif = steem.formatter.createSuggestedPassword(),
    publicKeys = steem.auth.generateKeys(newAccountName, newAccountWif, ['owner', 'active', 'posting', 'memo']);

steem.broadcast.accountCreate(
    '...', // ownerWif
    '3.000 STEEM', // fee
    'piotr42', // creator
    newAccountName, // newAccountName
    { weight_threshold: 1, account_auths: [], key_auths: [[publicKeys.owner, 1]] }, // owner
    { weight_threshold: 1, account_auths: [], key_auths: [[publicKeys.active, 1]] }, // active
    { weight_threshold: 1, account_auths: [], key_auths: [[publicKeys.posting, 1]] }, // posting
    publicKeys.memo, // memo
    '', // jsonMetadata
    function(err, response) {
        console.log(err, response);
});

Response:
{…}cause: RPCErrorcode: -32000columnNumber: 24327data: Object { code: 7, name: "bad_cast_exception", message: "Bad Cast", … }fileName: "file:///Users/piotr.cz/Documents/steem-client/node_modules/steem/dist/steem.min.js"lineNumber: 4message: "Bad Cast:Invalid cast from type 'array_type' to Object"name: "RPCError"stack: "e@file:///Users/piotr.cz/Documents/steem-client/node_modules/steem/dist/steem.min.js:4:24327\na/<@file:///Users/piotr.cz/Documents/steem-client/node_modules/steem/dist/steem.min.js:4:23853\n"<prototype>: Object { … }code: -32000data: {…}code: 7message: "Bad Cast"name: "bad_cast_exception"stack: Array [ {…} ]<prototype>: Object { … }isOperational: truemessage: "Bad Cast:Invalid cast from type 'array_type' to Object"name: "RPCError"stack: "e@file:///Users/piotr.cz/Documents/steem-client/node_modules/steem/dist/steem.min.js:4:24327\na/<@file:///Users/piotr.cz/Documents/steem-client/node_modules/steem/dist/steem.min.js:4:23853\n"<prototype>: Object { constructor: i(), "constructor$": Error(), stack: "" } undefined main.js:28:9

Environment information
OS: Mac OS High Sierra
Node: v8.11.4
Npm: 5.6.0

Does it work when you run JSON.stringify on the owner, active, and posting authorities?

Thanks for the suggestion @Smittyvb. Unfortunately it does not work that way too.

repo: steemit/steem-js


text:
Add cont, buf-conn, http2, pg, pg-types, racket-tcp, web-server-racket, web-server-racket-hello-world

Added packages, starting with the leaves of the dependency tree:

cont
Double-barreled continuations. Used in the pg, http2, web-server-racket packages.
buf-conn
Buffered connection (as in TCP). Based on continuations. Let's you only read the amount of bytes you want.
pg-types
Data types for PostgreSQL clients. Used in the pg and http2 packages.
http2
Continuation based HTTP2 server. No IO. Used in web-server-racket.
pg
Continuation based PostgreSQL client. No IO use. Used in web-server-racket.
racket-tcp
Thin bindings to the racket/tcp library. Supports concurrency using the Racket custodian.
web-server-racket
HTTP2 server with PostgreSQL access. See usage example in web-server-racket-hello-world. Only supports Racket due to reliance on the racket-tcp library.
web-server-racket-hello-world
Example demo web server that computes 1+1 on a PostgreSQL server and returns the result over HTTP2. Racket only.

Failure seems lsp related. I'll pull again once main passes CI

I just started a re-run. Let's see if this works now.

Could you please rebase this to be up to date with the current HEAD? We need the new split-up version of lsp from HEAD in order for the CI to succeed.

@stefan-hoeck I don't have access to a CLi right now and I don't think I can rebase using the web interface. But it should be possible to squash merge and achieve the same result.

@stefan-hoeck I have now rebased as requested!

Thanks for these additions!

authors: stefan-hoeck ysangkok


text:
[Feature] add checkout configuration

Resolve #33

I don't understand why some files are not marked as "Outdated" all the strict type declarations are ok on my cloned master branch

I think the comment I gave is outdated.. Hm. I still have to look into this, and I should do that soon. Sorry to let you wait so long.

You forget me :(

authors: Prometee stefandoorn


text:
Could not load when --environment=production

while works under development environment, however, the web page could not be loaded when serve under production environment with the following error:
Uncaught Error: Could not find module ember-moment/helpers/moment

Here's the same problem and workaround:
http://stackoverflow.com/questions/25018160/ember-cli-fails-on-environment-production-uncaught-error-could-not-find-modu

Closing as this isn't ember-moment related.

authors: jasonmit zhuoqiang

repo: stefanpenner/ember-moment


text:
Can you customize action/condition list?

Is it possible to remove certain actions/conditions seen in their select menus? Ideally, there would be an option to create custom elements, but the most important thing is probably to remove redundant ones (for example, in games where NPCs don't have their routines, seeing that option could be confusing for quest makers).

Good idea. I guess I could fit something like this into the project settings area. That way one could enable and disable certain features like this.

authors: Cestis steffendx

repo: steffendx/GoNorth


text:
CosmosDB 'MongoTopologyClosedError: Topology is Closed

Hello,
I am trying to use this package on an Azure CosmosDB that is essentially MongoDB API.
I get an error when I try to run any commands really:

I am not quite sure what that means, or how to troubleshoot it.
Does this support Azure CosmosDB?

Nevermind, I had to check the box for TLS then it succeeded.


text:
WIP integration tests for SAC

PR Checklist
PR Structure

[ ] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[ ] This PR's title starts with name of package that is most changed in the PR, ex.
services/friendbot, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[ ] This PR adds tests for the most critical parts of the new functionality or fixes.
[ ] I've updated any docs (developer docs, .md
files, etc... affected by this change). Take a look in the docs folder for a given service,
like this one.

Release planning

[ ] I've updated the relevant CHANGELOG (here for Horizon) if
needed with deprecations, added features, breaking changes, and DB schema changes.
[ ] I've decided if this PR requires a new major/minor version according to
semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.

What
[TODO: Short statement about what is changing.]
Why
[TODO: Why this change is being made. Include any context required to understand the why.]
Known limitations
[TODO or N/A]

Part of https://github.com/stellar/go/issues/4726

repo: stellar/go


text:
bump horizon tag to horizon-v22.0.0-rc1

We have just released the horizon v22.0.0 release candidate:
https://github.com/stellar/go/releases/tag/horizon-v22.0.0-rc1
This commit updates the quickstart builds to use this version of horizon which is compatible with both protocol 21 and 22

RPC never got updated in quickstart so I opened a PR already for that, and I'm going to update the horizon tag at the same time in that other PR, just because already updated the version there for our own testing. Normally it's these separate PRs are helpful and you should still open them in the future.

authors: leighmcculloch tamirms

repo: stellar/quickstart


text:
Guard against empty node results

I noticed that if my database call returned null when fetching a node, a TypeError was thrown. This fixes it.

Published in v0.5.8!

repo: stems/join-monster


text:
Feature request: A way to add paragraphs between fields.

I don't see a clear way to add content between fields. Could this be implemented?

@jonearley
See this:

https://gist.github.com/barseghyanartur/c6e0123dd961fbac1b39

Or switch to another form builder:

https://www.djangopackages.com/grids/g/form-builder/

Thanks @barseghyanartur - that's a neat recipe!

authors: barseghyanartur jonearley stephenmcd

repo: stephenmcd/django-forms-builder


text:
add a minified version of the collapse so non-debug mode works

Fixes #2005 - Per https://github.com/stephenmcd/mezzanine/issues/2005#issuecomment-1061264104 , when Django is running in non-debug mode, it incorrectly tries to load Django's version of collapse.js, because we don't have a minified version. Since the file is pretty small I ended up just minifying it via the uglify website. I'm not sure if there's a preferred minifier here.
My prior notes:
this is how django decides which version of the collapse.js to load: https://github.com/django/django/blob/119f227aa62885f12cd7dd2558a62148d02adbb4/django/contrib/admin/options.py#L2327
Collapse.min.js is actually pre-minified and included in the Django package: https://github.com/django/django/blob/cab36618326524b336517c2c5fd62633916818e0/django/contrib/admin/static/admin/js/collapse.min.js
Since there's no minified version of that file included here, the minified Django collapse.min.js will be picked up instead of the unminified collapse.js here.
and i guess prior to this PR: https://github.com/stephenmcd/mezzanine/commit/95b138a961d5a102cfe79ed792cba1e9b93d134a it would have still worked because it'd load the minified django collapse + the unminified mezzanine collapse still.

Thanks!

@jerivas - I saw you looked at the issue for this (https://github.com/stephenmcd/mezzanine/issues/2005) - could you please check my explanation to see if it makes sense, and if there any chance this fix could be included in a release anytime soon?  (I'd like to avoid forking if possible, but we have some customers asking about this.)
thanks!

Oh wait!  This stopped being an issue in Django 3.2 because the collapse isn't in the list of js here: https://github.com/django/django/blob/stable/3.2.x/django/contrib/admin/options.py#L651

This might still be worth it for 2.2 compat reasons, but doesn't affect me personally anymore....sorry for the needless tag

Django 2.2 is already end-of-life.

authors: caffodian henri-hulski

repo: stephenmcd/mezzanine


text:
Issue with Google Search Console / indexing

My site seems to be working fine to me, however it doesn't seem to be indexed by Google and my attempt at submitting it via Google Search Console show that Google thinks the page is 404ing.
Any ideas?

Same issue in the Bing search console. Some notion headers are being returned, however somehow both Google and Bing are getting a 404 despite the page working fine for me.

I have the same issue with mine. In general it doesn't work I think, for my friend as well.

I went with https://github.com/leoncvlt/loconotion instead

I went with https://github.com/leoncvlt/loconotion instead

Can you tell me the exact steps you took to migrate from Fruition to Loconotion? I have run into the same indexing issues and I can't seem to fix it.
It would be really helpful.

I have the same problem here
https://github.com/stephenou/fruitionsite/issues/63#issuecomment-749693283

I have the same problem here
https://github.com/stephenou/fruitionsite/issues/63#issuecomment-749693283

Any updates?

Try https://technicalseo.com/tools/fetch-render/ to fetch your site as the google bot.
You can see Notion is blocking google and bing's user agent. 404 is not something fruition is doing. Maybe extra code can bypass this.

Having the same issue.

Agree with @shyjal , it is the robots.txt setting that blocks the Google Bot from indexing. If wanting to make the site that built with Fruition indexable, you have to upgrade to the Pro plan to turn on "Search Engine Indexing" option in "Share" menu ( or use an education plan instead ).
Without turning on the index option in Notion Page share menu, the website will become 404 when being indexed by Search Engine. That is why you may see 404 code in Google Search Console.
There might be some method to bypass the default setting, but I have not found it yet. Just sharing what I got now. I was struggling to this issue.

Can confirm that enabling "Search Engine Indexing" works for me as well! You'll need to do this for all your top level pages (the root pages in the sidebar) that you want indexed but it'll cascade down to the child pages.
Thanks for the tip!

I have the same problem. I have the indexing on in notion, but the page does not index anywhere (even after I added it to search console). I checked the website @shyjal posted, and see that my main page (https://example.com/) gives a "301 Moved Permanently" error, but the page https://example.com/notion-ID is a 200 OK and is fetchable. Does anyone have an idea how to fix it?

Fruition actually uses the 301 redirection with Cloudflare. That's why you'll see the 301 code on https://technicalseo.com/tools/fetch-render/  It is normal, and won't impact the crawling process.
In normal, that doesn't impact the result of indexing for googlebot. The Search Engine can still reach the final page if you turn on the "Search Engine Indexing" in Notion. The 301 doesn't matter. Unless you had seen the 5** code error in Search Console.
In my case, my Notion page is also redirected ( showing 301 on technicalseo.com ), but it is still be indexed by Google.
I would suggest you pull a url request in Search Console, checking the real-time state of googlebot. If seeing the success message, then your page will be indexed.

Hello, i got the same issue, and i can confirm that my site is not indexed : https://repo-notion.taogasnier.com/

This site work with a subdomain of : taogasnier.com
I enabled "Search engine indexing" from notion.

The crazy thing is that my main site taogasnier.com is indexed by google...
Here the search console error :

Does anyone have an idea how to fix it?

Hello, i got the same issue, and i can confirm that my site is not indexed : https://repo-notion.taogasnier.com/

This site work with a subdomain of : taogasnier.com
I enabled "Search engine indexing" from notion.

The crazy thing is that my main site taogasnier.com is indexed by google...
Here the search console error :  Does anyone have an idea how to fix it?

Did you do something special for taogasnier.com site? Or did two sites do the same?

As @shyjal indicated, changing the User-Agent would solve the problem.
How about rewriting around line 113 as follows.
} else {
    var rq2 = Object.assign({}, request.headers);
    rq2['accept-language'] = 'ja_JP';
    rq2['user-agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36';
    response = await fetch(url.toString(), {
      body: request.body,
      headers: rq2,
      method: request.method,
    });

This is in Japanese, but I wrote an article with some modifications to Fruition. I hope it will be helpful.
https://shiden.com/Fruition-fbbecc180ee34ccdaeee1ebd6e6a2184

Hi @shiden-JP, wow, it seems to be working. Can you do that article in English? Thank you very much

As @shyjal indicated, changing the User-Agent would solve the problem. How about rewriting around line 113 as follows.
} else {
    var rq2 = Object.assign({}, request.headers);
    rq2['accept-language'] = 'ja_JP';
    rq2['user-agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36';
    response = await fetch(url.toString(), {
      body: request.body,
      headers: rq2,
      method: request.method,
    });

This is in Japanese, but I wrote an article with some modifications to Fruition. I hope it will be helpful. https://shiden.com/Fruition-fbbecc180ee34ccdaeee1ebd6e6a2184

@shiden-JP I'm just a beginner, so sometimes I can have mistakes 😄
If possible, it would be very cool if you posted your final code with all the edits. Thanks

authors: BennoKrojer CodeMedium TaoGasnier ThallyssonKlein bigansh gardssh jschang19 philfreo rohanb2090 shiden-JP shyjal vlafriday

repo: stephenou/fruitionsite


text:
how to get the camera parameters like other cameras(realsense)

when I use realsense cameras,I use "rs-enumerate-devices -c" to get all the camera parameters
so I wonder if there is the similar command or method to get the camera parameters
thanks

Hi,
you can use the sl::Camera::getDeviceList() static function to get the available cameras with their properties
See here : https://www.stereolabs.com/docs/api/classsl_1_1Camera.html#a1768d383f5e78746f58eda9d2c60b33e

sorry
I explain that I want to get the exact rotation matrix,translation vector between camera1 to camera2, camera1 to imu.
and the K matrix between every camera.
by the way I use the camera zed2
so can I use that website to get these parameters
thank you very much

Ok. In this case, you can use this sample to extract camera parameters
https://github.com/stereolabs/zed-opencv-native
This will load the SNxxxx.conf file where those informations are stored.

thank you

repo: stereolabs/zed-examples


text:
[Feature Request] Allow us to modify the Dialog Icon

Sometime we need when condition to render this message bar with customized icons:
Case 1: Internet is Unavailable - > Show Icon 1
Case 2: Exception -> Show Icon 2

There are already two params: errorIcon/successIcon. But I guess you would want a painterResource type instead?

authors: nirazv stevdza-san

repo: stevdza-san/MessageBarCompose


text:
Internal LDoc error using @within

When using "Functions" as section title, with @within, I got this:
/home/pedroalves/Desktop/ex.lua:28: internal LDoc error
/usr/local/share/lua/5.3/ldoc/tools.lua:111: table index is nil
stack traceback:
	/usr/local/share/lua/5.3/ldoc/tools.lua:111: in method 'add'
	/usr/local/share/lua/5.3/ldoc/doc.lua:399: in method 'finish'
	/usr/local/share/lua/5.3/ldoc/parse.lua:435: in function </usr/local/share/lua/5.3/ldoc/parse.lua:435>
	[C]: in function 'xpcall'
	/usr/local/share/lua/5.3/ldoc/parse.lua:435: in function 'ldoc.parse.file'
	/usr/local/lib/luarocks/rocks-5.3/ldoc/1.4.6-2/bin/ldoc:414: in upvalue 'process_file'
	/usr/local/lib/luarocks/rocks-5.3/ldoc/1.4.6-2/bin/ldoc:469: in local 'process_all_files'
	/usr/local/lib/luarocks/rocks-5.3/ldoc/1.4.6-2/bin/ldoc:493: in main chunk
	[C]: in ?

This is the test case that produces the error above:
-------------------------------------------------
-- @module ex
-------------------------------------------------

-------------------------------------------------
-- @type Example
-------------------------------------------------
local Example = {
  -------------------------------------------------
  -- function 1
  -------------------------------------------------
  one = function(self)
    return
  end
}

-------------------------------------------------
-- function 2
--
-- @within Functions
--
-- @param param1
-- @param param2
-------------------------------------------------
function two()
  return
end

Also, using @within Class Example produces a funny result.

repo: stevedonovan/LDoc


text:
Using Glide with ImageLoader causes memory leak

Hi,
I'm using Glide to load images with the MessagesListAdapter ImageLoader, and it seems to be causing a memory leak. Here is my setup:
In my fragment:
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
        adapter = new MessagesListAdapter<>(getUser().email, (imageView, url) -> {
            Glide.with(getContext())
                    .load(url)
                    .fitCenter()
                    .into(imageView);

            imageView.setOnClickListener(view -> goToFragment(FullImageFragment.newInstance(url, getTitleString())));
        });
}

@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_chat, container, false);

        MessagesList messagesList = (MessagesList)view.findViewById(R.id.messages_list);
        messagesList.setAdapter(adapter);
}

goToFragment in the onClickListener above uses a FragmentTransaction to replace the current fragment with the messages list, with another fragment that shows the full image blown up (for zooming in, etc).
However, when going back to the chat fragment, onCreateView is called again, and the memory spikes because the messages list is loading the image again. Is there something I should be doing in onDestroyView? onCreate is not called again when going back to the messages list.
I know the cause is the messages list and not the full image fragment because showing the full image fragment from other fragments (non message list fragments) does not cause the memory spike.
Any ideas?
Thanks

I think I am seeing the same issue in my App

This seems to fix the leak:
val requestOptions = RequestOptions()
requestOptions.diskCacheStrategy(DiskCacheStrategy.ALL)
Glide.with(getContext())
    .setDefaultRequestOptions(requestOptions)
    .load(url)
    .into(imageView)

But I got a followup issue: I am getting lots of  The application may be doing too much work on its main thread. which seems to get caused by glide loading images again and again

authors: MTRNord ryanthon

repo: stfalcon-studio/ChatKit


text:
Guidelines for outgoing links (ads to some degree)

There's quite a few links on Wikipendium that links to other sites which also is beneficial for the student, most of these are free to use and follow the same core philosophy as Wikipendium.
We should introduce some guidelines as to what is accepted and what is not when it comes to outgoing links and ads to some degree on Wikipendium. Doing so will prevent the ones contributing to a compendium adding links that should not be added.
We can use this issue to discuss what kinds of guidelines we should add. I'm thinking links are fine as long as they're non-commercial, as Wikipendium is also non-commercial. What do you guys think?

I think all useful links should be allowed, even links to commercial sites. For example, a link to a YouTube video that explains a concept nicely is useful. It doesn't matter much that YouTube is a commercial thing. What matters is that the link is useful and relevant.
Spammy links with no relevance should not be accepted.


text:
Why Stimulus does not look for the parent controller?

Look at this example, which is on your repo index page:

  <input data-target="hello.name" type="text">

  <button data-action="click->hello#greet">Greet</button>

This "framework" should be capable of detecting the current controller, since the click function is happening inside my controller scope, then call the method "hello" in that scope.
hello#get  + data-controller="hello" just why?

Because scopes may be nested or intermingled with other scopes.

  <button data-action="hello#respond">Say Hello</button>
  <button data-action="goodbye#respond">Say Goodbye</button>

This "framework" decided to avoid possible ambiguity by requiring an explicit and consistent naming convention.

authors: javan victorhazbun

repo: stimulusjs/stimulus


text:
How to modify the upload address when using DFU mode?

  -------------------------------------------------------------------
                   STM32CubeProgrammer v2.15.0
  -------------------------------------------------------------------

USB speed   : Full Speed (12MBit/s)
Manuf. ID   : STMicroelectronics
Product ID  : STM32 DownLoad Firmware Update
SN          : 205335724653
DFU protocol: 1.1
Board       : --
IAP
Memory Programming ...
Opening and parsing file: stm32mb.ino.bin
File          : stm32mb.ino.bin
Size          : 33.76 KB
Address       : 0x08000000
Right now the address is at 0x08000000, may I ask how should i change it to other address?

Hi @TangYanYee
First, do not open issue for question/support, forum or discussions are better place for this. Moreover it is not link to the BoardManagerFiles GitHub repository.
You have to specify the build.flash_offset linked to your board using the boards.local.txt

ok, thanks for your help. Sorry if I've caused any inconvenience.

authors: TangYanYee fpistm


text:
E2E deploy setup

Signed-off-by: Chris Ahl cahl@redhat.com
For issue https://issues.redhat.com/browse/CMCS-117 and based on https://github.com/stolostron/compute-operator/pull/24

/retest

/retest

/retest

/test e2e-cluster

/retest

/test e2e-cluster

/test e2e-cluster

/hold

repo: stolostron/compute-operator


text:
Replace the unique constraint of name with id for postgres status tables

Signed-off-by: myan myan@redhat.com
Ref: https://github.com/stolostron/backlog/issues/25809

/cc @clyang82 @morvencao

/lgtm

repo: stolostron/multicluster-global-hub


text:
Resolve Relations: sorting issue

Expected Behavior
If you try to resolve relations with (for example):
    $client->resolveRelations('popular-articles.articles');
    $story = $client->getStoryBySlug('home')->getBody();

The API provides you with the related stories in the 'rels' section (with a specific order).
In the main story, you have just the UUID of the related stories (so if you are using the API directly, you have to replace the UUIDs with the related story with the same UUID, found in the 'rels' section). The PHP client makes this for you.
The PHP client, under the hood, takes the related stories and injects them into the right place in the main story.
In this case parsing the main story (the home' in the example, you will find the related stories, and you can access them, for example, with:
$story['story']['content']['body'][1]['articles']

Current Behavior
If you have an array of related stories, the order could be not the same of the UUID listed in the main story.
This is because the UUID is used as key of the array while the library injects the related story, but the UUID as key is used as integer.

Steps to Reproduce
test('v2: check sorting for relations', function () {
    $client = new Client('test', null, $version = 'v2');
    // $client->editMode(false);
    $client->mockable([
        mockResponse('stories-relations', ['x-test' => 1], $version),
    ]);
    $client->resolveRelations('popular-articles.articles');
    $story = $client->getStoryBySlug('home')->getBody();
    $this->assertArrayHasKey('story', $story);
    $this->assertArrayHasKey('rels', $story);
    foreach (range(0, 2) as $i) {
        $this->assertEquals(
            $story['story']['content']['body'][1]['articles'][$i]['uuid'],
            $story['rels'][$i]['uuid'],
            'checking the ' . $i . ' relations'
        );
    }
});

Looking under the hood this is not an issue.
The element that determins the sorting of the relartions is the array of UUIDs .
In the dataset i created for testing stories-rleations.json the order is:
["997cfee2-cec3-4cad-9e06-7ef3d72f5b7d", "ba307a05-2b91-4ce8-ab24-bf328da1adb4", "c3a321a5-1163-4281-8643-2c79c13e22a3"]
so i created a specific test:
test('v2: check sorting for relations', function () {
    $client = new Client('test', null, $version = 'v2');
    // $client->editMode(false);
    $client->mockable([
        mockResponse('stories-relations', ['x-test' => 1], $version),
    ]);
    $client->resolveRelations('popular-articles.articles');
    $story = $client->getStoryBySlug('home')->getBody();
    $this->assertArrayHasKey('story', $story);
    $this->assertArrayHasKey('rels', $story);
    // With the dataset provided the right order should be
    // ["997cfee2-cec3-4cad-9e06-7ef3d72f5b7d", "ba307a05-2b91-4ce8-ab24-bf328da1adb4", "c3a321a5-1163-4281-8643-2c79c13e22a3"]
    $this->assertEquals(
        '997cfee2-cec3-4cad-9e06-7ef3d72f5b7d',
        $story['story']['content']['body'][1]['articles'][0]['uuid'],
        'checking the first relation'
    );
    $this->assertEquals(
        'ba307a05-2b91-4ce8-ab24-bf328da1adb4',
        $story['story']['content']['body'][1]['articles'][1]['uuid'],
        'checking the second relation'
    );
    $this->assertEquals(
        'c3a321a5-1163-4281-8643-2c79c13e22a3',
        $story['story']['content']['body'][1]['articles'][2]['uuid'],
        'checking the third relation'
    );

});

So i can close this issue.
I don't want to delete it to keep track in the history. If some developer has this kind of misunderstanding, the developer can find some explanation here (with the test I added in this comment).

repo: storyblok/php-client


text:
Add method to validate config file

See discussion: https://github.com/strangelove-ventures/noble-cctp-relayer/pull/49#discussion_r1508088961

This feature was implemented in v0.1.4, but it does not extensively validate all of the config options. It only tests the Circle API config settings. I'll work on creating a new PR which more extensively detects misconfigurations throughout the entire file.

repo: strangelove-ventures/noble-cctp-relayer


text:
Sync issue

The process of initial loading was infinite loop on block 642930:
======Connection======
Peer:[::ffff:110.140.196.230]:16178,     connected:outbound,        height:764253,        agent:/Stratis:2.0.0.3/
Peer:[::ffff:78.26.136.12]:16178,        connected:outbound,        height:764255,        agent:/Stratis:2.0.0.3/
Peer:[::ffff:82.42.142.246]:16178,       connected:outbound,        height:764255,        agent:/Stratis:2.0.0.3/
Peer:[::ffff:169.0.232.145]:16178,       connected:outbound,        height:764248,        agent:/Stratis:2.0.0.3/
Peer:[::ffff:67.176.161.183]:16178,      connected:outbound,        height:764254,        agent:/Stratis:2.0.0.3/
Peer:[::ffff:90.77.24.138]:16178,        connected:outbound,        height:764254,        agent:/Stratis:2.0.0.3/
Peer:[::ffff:151.229.223.1]:16178,       connected:outbound,        height:764255,        agent:/Stratis:2.0.0.3/
[2018-03-20 17:16:12.6283 11] ERROR: Stratis.Bitcoin.Features.Consensus.ConsensusLoop+d__40.MoveNext Block 'f89be0f9be2f5787a712a924a7f0765b92b03cd1b34daf90b42afb293d528205' rejected: proof-of-stake hash did not meet target protocol
[2018-03-20 17:16:12.9102 11] ERROR: Stratis.Bitcoin.Features.Consensus.ConsensusLoop+d__40.MoveNext Marking block 'f89be0f9be2f5787a712a924a7f0765b92b03cd1b34daf90b42afb293d528205' as invalid.
[2018-03-20 17:16:14.0871 8] INFO: Stratis.Bitcoin.FullNode.b__74_0 ======Node stats====== 03/20/2018 17:16:14 agent StratisBitcoin:1.0.10
Headers.Height:      642930   Headers.Hash:     8c2cf95f9ca72e13c8c4cdf15c2d7cc49993946fb49be4be147e106d502f1869
Consensus.Height:    642930   Consensus.Hash:   8c2cf95f9ca72e13c8c4cdf15c2d7cc49993946fb49be4be147e106d502f1869
BlockStore.Height:   642930   BlockStore.Hash:  8c2cf95f9ca72e13c8c4cdf15c2d7cc49993946fb49be4be147e106d502f1869
Wallet.Height:       No Wallet
======Mempool======
MempoolSize: 0    DynamicSize: 0 kb   OrphanSize: 0

And the test network does not work:

Could you please provide a copy of your data folder for the mainnet?

Testnet works just the dns seeders are not always up so its hard to discover the first connection try to put this in command line -addnode=51.140.231.125
And yes please also provide any logs you have for mainnet and perhaps a description of how you got this, this you sync from zero? where you staking?

Also, if you restart the node on mainnet, does it advance or is it stuck even after restart?

Also, if you restart the node on mainnet, does it advance or is it stuck even after restart?
Yes. At the same place.

Could you please provide a copy of your data folder for the mainnet?
Archive the entire folder? It's very big, but if necessary, I'll do it.

Archive the entire folder?

Yes, that will help 🙂

StratisMain.zip  https://yadi.sk/d/isNz10gj3Tc4ZR  725 MB

Ah one more question did your node crash anytime before that?

Ah one more question did your node crash anytime before that?

The node does not crashed , it continues to try to take block 642930. Can there any parameter change in POS?

@Igor-san which commit you've used for the node compilation?
Can you reproduce it with the latest master? (recently a bugfix was merged so there is a chance that this bug won't appear anymore)

@Igor-san which commit you've used for the node compilation?

I downloaded yesterday from here https://github.com/stratisproject/StratisBitcoinFullNode/archive/master.zip

I delete old data folder StratisMain and rerun the program - all syncronized. Strange.

Thank you for your support, this issue is resolved.

authors: Aprogiena Igor-san dangershony noescape00

repo: stratisproject/StratisBitcoinFullNode


text:
Activation of the 'core way of syncing`

https://github.com/stratisproject/StratisBitcoinFullNode/pull/1726

Closing as this is replaced with the tasks with the Activation label.

authors: bokobza dangershony


text:
Add better footer

Before tackling footer, please validate with Gene on Slack if it's been
Footer should point to:

Twiter https://twitter.com/StratumV2
GitHub https://github.com/stratum-mining/stratum
Discrod https://discord.gg/fsEW23wFYs

Link to figma https://www.figma.com/file/H42PrGnniKFtbfqHYBGevj/Stratum?node-id=0%3A1

PR https://github.com/stratum-mining/stratumprotocol.org/pull/37


text:
Bugfix: django dependency specification

This works:
Django = [
    {version = ">=2.2,<4", markers = "python_version < '3.8' and extra == 'django'", optional = true},
    {version = ">=2.2,<5", markers = "python_version >= '3.8' and extra == 'django'", optional = true}
]

I built the package locally and it produces this metadata:
[...]
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Provides-Extra: aiohttp
Provides-Extra: asgi
Provides-Extra: chalice
Provides-Extra: debug-server
Provides-Extra: django
Provides-Extra: fastapi
Provides-Extra: flask
Provides-Extra: opentelemetry
Provides-Extra: pydantic
Provides-Extra: sanic
Requires-Dist: Django (>=2.2,<4); python_version < "3.8" and extra == "django"
Requires-Dist: Django (>=2.2,<5); python_version >= "3.8" and extra == "django"
Requires-Dist: aiohttp (>=3.7.4.post0,<4.0.0); extra == "aiohttp"
Requires-Dist: asgiref (>=3.2,<4.0); extra == "django"
Requires-Dist: cached-property (>=1.5.2,<2.0.0)
[...]

I tested the marker:
Python 3.9.9 (main, Nov 21 2021, 03:23:44)
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from packaging.markers import Marker
>>> Marker('python_version >= "3.8" and extra == "django"').evaluate(environment={'extra': 'django'})
True
>>> Marker('python_version >= "3.8" and extra == "django"').evaluate(environment={'extra': 'pouet'})
False
>>> Marker('python_version >= "3.10" and extra == "django"').evaluate(environment={'extra': 'django'})
False

Closes #1488

Some extra context:

the Markers docs
a related poetry issue

Thank you! I'm just double checking if there's a bug in Poetry 😊 I'll merge this after I'm done with that :)

I haven't found on this specific case. The most related I mentioned above.

Thanks for adding the RELEASE.md file!

Here's a preview of the changelog:

This fixes the previous release that introduced a direct dependency on Django.

Here's the preview release card for twitter:

Here's the tweet text:
🆕 Release (next) is out! Thanks to Guillaume Andreu Sabater for the PR 👏

Get it here 👉 https://github.com/strawberry-graphql/strawberry/releases/tag/(next)

it seems to be a bug in poetry, haven't figured out yet how to fix it though :)

authors: botberry g-as patrick91

repo: strawberry-graphql/strawberry


text:
Fail transcoding on non-zero exit code

This fixes #158

Thank you.

repo: streamio/streamio-ffmpeg


text:
🛑 Pagina Web Streamlined is down

In df46c48, Pagina Web Streamlined (https://streamlined.cl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pagina Web Streamlined is back up in b12f2d1 after 16 minutes.

repo: streamlined-scs/upptime


text:
🛑 WSDL SAM Grupo America is down

In 5bc5cb0, WSDL SAM Grupo America (https://wsdl-ga.streamlined-app.io/api/Scsdocumentos/getLogo) was down:

HTTP code: 502
Response time: 3548 ms

Resolved: WSDL SAM Grupo America is back up in f7f9045.


text:
Add Pulsar unique autoscaling metrics

The autoscaling of FunctionMesh's resources is currently controlled by HPA.
We can add some Pulsar unique metrics to the HPA to determine if the target workload needs to be scaled.
Here are two approaches:

introduce KEDA to FunctionMesh since KEDA has supported the Pulsar scaler, also KEDA supports CRD as a scalable object, ref: https://keda.sh/docs/2.8/concepts/scaling-deployments/#scaling-of-custom-resources
add HPA extension adapter to FunctionMesh and develop a built-in scaler that aligns with the KEDA Pulsar scaler

what do you think?

and with the new scaler, FunctionMesh can downscale the replicas of a function to 0

+1 on this, was also thinking about using KEDA when, talking about the relationship between size and spinup duration / faster dynamic scaling in the distroless topic https://github.com/streamnative/function-mesh/issues/448

regarding KEDA: this is a good introduction:
https://medium.com/backstagewitharchitects/how-autoscaling-works-in-kubernetes-why-you-need-to-start-using-keda-b601b483d355
(the embedded video is also interesting)

there is already a blogpost saying that KEDA may be a future direction (at the end of https://streamnative.cn/blog/engineering/2022-01-19-auto-scaling-pulsar-functions-in-kubernetes-using-custom-metrics-zh/)

of course in some/many usecases the possibility to easily autoscale to zero would help a lot in the field of infrastructure costs...

Overview
Function Mesh's function instances can be dynamically scaled with the help of HPA based on CPU and memory metrics. However, Function Mesh has not yet been able to scale to/from 0 replica. This proposal aims to provide a solution that can implement this feature.
Motivation
Provides the ability to scale the function instances of Function Mesh to/from 0 replica.
Proposal
I propose to introduce the KEDA project as a basic solution for implementing the scaling of Function Mesh's function instances to/from 0 replica. The advantage of this solution is that Function Mesh's event engine is Pulsar, and KEDA already has a Pulsar scaler, which can use Pulsar's message backlog as a metric for function scaling.
Structure for scaling configurations:
type AdvanceScaleConfig struct {
	Driver   string            `json:"driver,omitempty"`   \\ Indicates the driver for Scaler, available: "keda"
	Topics   []string          `json:"topics,omitempty"`   \\ Indicates the topics used to trigger the Scaler
	Strategy map[string]string `json:"strategy,omitempty"` \\ Indicates the trigger strategy
}

Example:
spec:
  advanceScaleConfig:
    driver: keda
    topics:
      - persistent://public/default/my-topic-1
      - persistent://public/default/my-topic-2
    strategy:
      msgBacklogThreshold: 10
      activationMsgBacklogThreshold: 2
      pollingInterval: 30

According to the definition of KEDA Pulsar Scaler, a Scaler is triggered by only one Topic, so if there are multiple Topics in the Function (spec.inputs), the Operator will generate a Trigger for each Topic.
Example of KEDA ScaledObject resource for the above configuration:
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: <function-name>-scaler
  namespace: <function-namespace>
spec:
  scaleTargetRef:
    name: <function-sts-name>
  pollingInterval: 30
  triggers:
  - type: pulsar
    metadata:
      adminURL: http://localhost:80 # Get from spec.pulsar.pulsarConfig
      topic: persistent://public/default/my-topic-1
      subscription: sub1 # Get from spec.SubscriptionName
      msgBacklogThreshold: '10'
      activationMsgBacklogThreshold: '2'
  - type: pulsar
    metadata:
      adminURL: http://localhost:80 # Get from spec.pulsar.pulsarConfig
      topic: persistent://public/default/my-topic-2
      subscription: sub1 # Get from spec.SubscriptionName
      msgBacklogThreshold: '10'
      activationMsgBacklogThreshold: '2'

Example configuration of the Auth section, if the following is configured in Function:
spec:
  pulsar:
    tlsConfig:
      enabled: true
      allowInsecure: true
      certSecretName: "ca-name"
      certSecretKey: "ca-key"

Example of resources corresponding to KEDA:
apiVersion: v1
kind: Secret
metadata:
  name: <function-name>-keda-tls-secrets
  namespace: <function-namespace>
data:
  cert: "ca-name"
  key: "ca-key"
---
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
  name: <function-name>-keda-trigger-auth-pulsar-credential
  namespace: <function-namespace>
spec:
  secretTargetRef:
  - parameter: cert
    name: <function-name>-keda-tls-secrets
    key: cert
  - parameter: key
    name: <function-name>-keda-tls-secrets
    key: key
---
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: <function-name>-scaler
  namespace: <function-namespace>
spec:
  scaleTargetRef:
    name: <function-sts-name>
  pollingInterval: 30
  triggers:
  - type: pulsar
    metadata:
      tls: "enable"
      adminURL: https://localhost:8443
      topic: persistent://public/default/my-topic
      subscription: sub1
      msgBacklogThreshold: '5'
    authenticationRef:
      name: <function-name>-keda-trigger-auth-pulsar-credential

state-machine-diagram is here

of course in some/many usecases the possibility to easily autoscale to zero would help a lot in the field of infrastructure costs...

Hi @hpvd, it seems you are interested in this development, may I take the liberty to ask what company you work for? Also, what kind of cases are you using Function Mesh in?

@tpiperatgod thanks for your question.
We are still incubating our new company ;-) It's in the field of mechanical engineering...
We are looking into pulsar for streaming but also as high-load, on demand batch processors.
Because of the latter and the fact that we and our customers don't (always) work 24/7, scaling to zero is more than nice to have... (yes we could work with crons, but this not flexible and the amount of rules always keeps growing..)
Beside this, we are interested in a strong security of everything and of course the main features of pulsar -like great performance, build in geo-replication and functions, relative low effort for constant maintenance ...

@tpiperatgod thanks for your question. We are still incubating our new company ;-) It's in the field of mechanical engineering... We are looking into pulsar for streaming but also for high-load, on demand batch processing. Because of the latter and the fact that we and our customers don't (always) work 24/7, scaling to zero is more than nice to have... (yes we could work with crons, but this not flexible and the amount of rules always keeps growing..) Beside this, we are interested in a strong security of everything and of course the main features of pulsar -like great performance, build in geo-replication and functions, relative low effort for constant maintenance ...

Oh, I see. So for now you're worried about two things.

Security
Serverless
And the community is working on these issues.
This issue is being tracked on improvements to serverless (scaled down to zero)
And this issue is being tracked on improving the runtime environment (and thus addressing security vulnerabilities)
You are welcome to participate in building the community

thanks for your warm words.
Yes, there was a lot great progress and there are many good things on the way...
e.g.

your mentioned Kubernetes upgrade https://github.com/streamnative/function-mesh/issues/490
and also
security fixes https://github.com/streamnative/function-mesh/issues/371
looking into distroless https://github.com/streamnative/function-mesh/issues/448
finalize E2E encryption: https://github.com/streamnative/function-mesh/issues/44
auth for go functions https://github.com/streamnative/function-mesh/issues/362

these 2 points may be interesting for testing and release of this new functionality:
1) new in latest KEDA (v2.8): Activation and Scaling Thresholds
Previously in KEDA, when scaling from 0 to 1, KEDA would “activate” (scale to 1) a resource when any activity happened on that event source. For example, if using a queue, a single message on the queue would trigger activation and scale.
As of this release, we now allow you to set an activationThreshold for many scalers which is the metric that must be hit before scaling to 1.
This would allow you to delay scaling up to 1 until n number of messages were unprocessed. This pairs with other thresholds and target values for scaling from 1 to n instances, where the HPA will scale out to n instances based on the current event metric and the defined threshold values.
Details on thresholds and the new activation thresholds can be found in the KEDA concept docs
see https://keda.sh/blog/2022-08-10-keda-2.8.0-release/
2) next KEDA v2.9 will be released in some days (Nov 3rd)
see https://github.com/kedacore/keda/blob/main/ROADMAP.md

Keda 2.9 was released:
https://github.com/kedacore/keda/blob/main/CHANGELOG.md#v291

authors: hpvd tpiperatgod

repo: streamnative/function-mesh


text:
expose consumer stats to prometheus instead of consumer internal stats

Motivation
In order to expose consumer stats, KOP create a consumer and update the stats metric to consumer object.
It's too expensive.
Modifications

expose consumer stats to prometheus instead of consumer internal stats

TODO

groupid still should store in zookeeper, it's hard to remove.

I'm afraid it's hard to reuse the current consumer stats design. There's a point that if we're going to remove OffsetAcker, the consumers should be created somewhere else.
Or should we just remove OffsetAcker#ackOffsets only? Currently the consumers of OffsetAcker are created in

GroupCoordinator#handleSyncGroup

OffsetAcker#addOffsetsTracker

OffsetAcker#getOrCreateConsumer

Then we'll still create client side consumers and broker side consumers.

Sorry I missed something. I found getGroupConsumers is removed, the there's no problem with this PR.

I found FETCH latency metrics doesn't exist
kop_server_REQUEST_LATENCY{success="false",quantile="0.99", request="Fetch"} NaN

Could you take a look?

I found FETCH latency metrics doesn't exist
kop_server_REQUEST_LATENCY{success="false",quantile="0.99", request="Fetch"} NaN

Could you take a look?

@BewareMyPower  I have address the problem, just due to metric update delay, PTAL.

repo: streamnative/kop


text:
Doesn't seem to work correctly

I'm trying to implement this as a replacement to cloneable-readable and I don't think this code is working correctly at all.

The failures can be seen via the Vinyl test suite on this PR: https://github.com/gulpjs/vinyl/pull/155

@mafintosh it seems that data is being dropped in 2 tests still. See https://github.com/gulpjs/vinyl/actions/runs/3040224919

Looks to be working now! Thanks 🎉

repo: streamxorg/teex


text:
Normalize the grey for 'All filters' Pill

All filters has a different grey to other pills

@adambard1 done


text:
Repair projectwatcher

PR Details
Repairs Projectwatcher to behave correctly on reload
Description
The Problem is when you have Project A#1 references Project B#1, now you edit B#1 , B#1 gets reloaded and becomes B#2 but A#1 is dependent on it, A#1 has STILL B#1 types so the stamp of the roslyn workspace doesnt fit as #1 != #2 so the reference serializers die as the type dictionary is searched for it but type(BClass#1) isnt in the dictionary of registered serialziers, it has type(BClass#2) in it.
Now the proplem is in the ProjectWatcher

Get the Project which changed
Get its Dependencies
Register all of them to reload

First i changed the workspace to use solution as we need the dependency tree of the solution,
Then find all dependents on the project and sum them up in the list for the broadcast
Now lets send the list through the broadcast with the 2 projects A#2 and B#2
The only receiver is the debugger view model, it waits for events incomming
Now the problem with the debugger view model

it waits until an event comes
when an event comes consume it and block stride AND itself (  IDispatcher of stride blocks everything )
wait until button pressed

so B#2 and A#2 are getting sent through the broadcast, B#2 gets sent to the debugger view model, now it blcoks everything and waits for reload... now you press reload and you reload B#2... but what about A#2 ? its still in the queue
thats why i just wait until the project watcher sets the list of changes as public property and empty it then
this way A#2 and B#2 get reloaded when pressed
Problem with my solution:

Time dependency, on first occurence of an assembly change it locks itself again
its not good with multiple project changes .. it would be better to have a stack or something and pop and add changes
The reload button should be triggered when focus is set on the stride window, this way it gets blocked at the latest point possible, unity does the same

Related Issue
https://github.com/stride3d/stride/issues/2081
and partially #2107
Now what
I think the broadcasting is useless now?
I dont have much exp with async and await and how to manage this situation.
All i know is if i edit B then A and B get reloaded

I cant continue here, i would love to see someone else taking over this who has more knowledge about handling this
just ignore the positive 77... had the wrong base branch
Types of changes

[ ] Docs change / refactoring / dependency upgrade
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[x] I have built and run the editor to try this change out.

im open for any changes to make it a mergeable PR , like kryptos helped

https://github.com/stride3d/stride/pull/2106/commits/d13758e8c64ed5215ebc72a9ec78a3095341329b
with this i removed the broadcast  from roslynpad
ive tried it and roslynpad "works" ... the exact same bug persists in roslynpad, no idea where that is comming from
there a reload doesnt trigger the dependent projects to reload
can someone confirm that i made roslynpad not worse than it was before? ive never started that thing
my main target was to fix it for the "normal way"

and i think i fixed by accident that stride didnt reload the types after a failed compilation

its finished so far and ready

Minor nitpick but looks good otherwise. Sorry about the delay.

no problem, with the nitpick i found a nre , which may be the issue that projects dont reload on reference changes in the csproj

Looks good, any last comment @Kryptos-FR ?

fixes #2054

it didnt launch alohatest which is an xunit project, it launched the windows one

fixes  #2022 , couldnt reproduce it
removed half of the camera controller script , reloaded, added more syntax errors, reloaded again
reverted everything, camera controller is there to be added
added a syntactical wrong syncscript, reloaded, fixed syntax , reloaded, was there

there is a bug currently in my version and the current released one, when attaching a syncscript in a sub project then when opening stride it cant find the serializer for that one, dunno if i can track it down but its in both versions

ok so i investigated #2125
the error persists currently too, so even when this is merged then the "new bug" will come to the daylight as it wasnt possible for the bug to occurr since i fixed the project loading back then last year
when this is merged it would lead people into using that feature, then they will run into the next bug
i will add the fix for it, but im not too sure about it yet so i will add wip for now

startup is now also fixed of non root projects

is it now fine?

I'm guessing those last changes come from @Kryptos-FR - no need to ask him to review them. If so, sure, I can merge. Just let me know.

I'm guessing those last changes come from @Kryptos-FR - no need to ask him to review them. If so, sure, I can merge. Just let me know.

i will test tomorrow again everything to be sure it works, and then notify you

its fine, checked again the reloading  it can be merged

authors: Eideren IXLLEGACYIXL


text:
Report the Shard ID on the status page

This will let us add alerts for duplicates.
r? @jerry-stripe

Gerald Rule: Very broad rule to catch all status site related PRs, I hope
cc @asheesh-stripe

Now on the status page, not the debug page. And now checks if sharding is enabled first—nice catch there.
I also added back some older replication measures in the status JSON, because our Datadog checks were crashing, see https://github.com/stripe/datadog-checks/blob/a7a9e0f3b878a0ffcfba65f848473843fd196c13/checks.d/sequins.py#L34-L36

LGTM

authors: scottjab-stripe stripe-ci vasi-stripe

repo: stripe/sequins


text:
Add ability to expand logs request when listening

From BETA user:

“Start API logs streaming” could be much more than a wrapper for stripe logs tail. It would be cool if I could expand each request to see its parameters.

We should probably avoid showing more request logs data than what we currently display. There is a high risk of accidentally leaking PII if we show API request params and response bodies. I think a reasonable tradeoff would be to link to the dashboard like the CLI does, even though it's not the most seamless experience.

Closing. We added links to the dashboard instead of showing logs inside the editor.

authors: auchenberg-stripe vcheung-stripe

repo: stripe/vscode-stripe


text:
When Spring Context is refreshed/recreated some Cron Tasks configurations are duplicated in the strongbox-cron-tasks.yaml file

Task Description
Some cron tasks are created during the server startup (for example DownloadRemoteFeedCronJob) (see also NugetRepositoryManagementStrategy) and then saved in the strongbox-cron-tasks.yaml file. We should check and validate the existence of the same configuration, because on server restart, these entries are duplicated in the  strongbox-cron-tasks.yaml file.
Currently we have following cron jobs created during server startup:

[ ] DownloadRemoteFeedCronJob
[ ] FetchRemoteNpmChangesFeedCronJob
[ ] RebuildMavenIndexesCronJob
[ ] DownloadRemoteMavenIndexCronJob

We need to stop duplicating the same jobs in the strongbox-cron-tasks.yaml file.
Help

Our chat
Points of contact:

@carlspring
@sbespalov
@fuss86

@ptirador ,
Would this be something you'd like to look into?

@fuss86 @carlspring Let's assume that a new cron task is created, and it has a different UUID but the same job class as a task in the yaml file. Should we assume that this new cron task is in fact a duplicate, and we should skip it and don't add it to the file?

Hi @ptirador ,
Yes, you should, because you can have cron tasks for different repositories. For example, you can have a cron task that removes all the snapshots from a snapshot repository for all artifacts tha have been released. So, this could be set up per repository. OBviously, these different configurations will be using the same class, but will have different names.

Great, thanks!

@carlspring @fuss86 : Hi! I still have doubts with the cron tasks duplicates in the yaml file.
So, just to be clear, let's suppose we have this yaml file:
  - uuid: "4485a5ab-d785-4043-9ca7-e584a98a8faa"
    name: "Config 1"
    jobClass: "org.carlspring.strongbox.cron.jobs.FetchRemoteNpmChangesFeedCronJob"
    cronExpression: "0 0 * ? * * *"
    oneTimeExecution: false
    immediateExecution: true
    properties:
      repositoryId: "npmjs"
      storageId: "storage-npm"
- uuid: "5485a5ab-d785-4043-9ca7-e584a98a8faa"
    name: "Config 1"
    jobClass: "org.carlspring.strongbox.cron.jobs.FetchRemoteNpmChangesFeedCronJob"
    cronExpression: "0 0 * ? * * *"
    oneTimeExecution: false
    immediateExecution: true
    properties:
      repositoryId: "npmjs"
      storageId: "storage-npm"
  - uuid: "6485a5ab-d785-4043-9ca7-e584a98a8faa"
    name: "Config 2"
    jobClass: "org.carlspring.strongbox.cron.jobs.FetchRemoteNpmChangesFeedCronJob"
    cronExpression: "0 0 * ? * * *"
    oneTimeExecution: false
    immediateExecution: true
    properties:
      repositoryId: "npmjs"
      storageId: "storage-npm"

Are the 2nd and the 3rd element duplicates of the first one?
The second is exactly the same except for the UUID.
The third element is the same except for the UUID and name.

I see what you mean.
In this case, we have two options:

Let it be
Warn the user in the UI

I think we should probably warn in the UI, but, on the other hand, if you decide to call it like that, then you should live with your silly naming.
What do you think?

Hi  @ptirador , what's the status of this task ?

HI @fuss86, I haven't had time to look at it... I release it so that anyone can take it up.

authors: carlspring fuss86 ptirador

repo: strongbox/strongbox


text:
Deployed artifacts with curl do not appear when browsing

Bug Description
When you create a new storage, raw repository and then deploy an artifact it does not appear in the directory listing / browsing. If, however, you deploy the same artifact to storage-raw/raw-releases it'll work just fine.
Steps To Reproduce

mvn clean install -DskipTests
cd strongbox-web-core
mvn spring-boot:run
Go to http://localhost:48080/admin/storages
Add a new storage & raw reposiotry
curl -X PUT -u admin --data-binary ./strongbox-web-core/target/strongbox-web-core-1.0-SNAPSHOT.jar http://localhost:48080/storages/test-raw-storage/test-raw-repository/strongbox-web-core-1.0-SNAPSHOT.jar
http://localhost:48080/admin/storages/test-raw-storage/test-raw-repository

Expected Behavior
Should be listing the newly deployed artifacts.
Environment

Strongbox Version: 1.0-SNAPSHOT f8aa5c5
OS: Linux / Ubuntu

@sbespalov I'm guessing this issue is probably related to some  ArtifactEntry records not being added?

@steve-todorov I will have a look

@steve-todorov the issue is that you probably need to enable "Directory Browsing" for repository.

@steve-todorov you agree to close it as false positive?

Ahhh... Sorry I haven't had a chance to check it out but I think you're right. I didn't check the allow directory browsing checkbox. Let's close it. Thanks for looking into this!

authors: sbespalov steve-todorov


text:
Adding Multipart File support for putPackage NugetArtifactController

Pull Request Description
This pull request closes #1636
Acceptance Test

[x] Building the code with mvn clean install -Dintegration.tests still works.
[x] Running mvn spring-boot:run in the strongbox-web-core still starts up the application correctly.
[x] Building the code and running the strongbox-distribution from a zip or tar.gz still works.
[ ] The tests in the strongbox-web-integration-tests still run properly.

Questions

Does this pull request break backward compatibility?

[ ] Yes
[x] No

Does this pull request require other pull requests to be merged first?

[ ] Yes, please see #...
[x] No

Does this require an update of the documentation?

[ ] Yes, please see strongbox/strongbox-docs#{PR_NUMBER}
[x] No

@anki2189 thanks for the PR
can you please also make spring.servlet.multipart.enabled=true in strongbox-commons/src/main/resources/application.yaml and remove commented code?


text:
Bug at express.js line 5, "EventEmitter" requirement

Im having a error message when i try to use the express-generator via express <my_app_name> and this is sending me to the line 5 of the express.js file in the lib folder:
express/lib/express.js line 5:
var EventEmitter = require('events').EventEmitter;
Is someone having this error message either? Can we do something to fix it?
If this affects me and I dont know how many people called x, we are having x persons that cannot use the express generator to make an app.
Thanks for your time of reading and I dont have the intention to make spam or something. Im creating this issue as a way of help and contribuite to express reporting the problem.

Hi! What version of Node.js are you using?

Also, please try to post the error message you are getting, if possible.

I have the lastest version of Node.js (v0.12.0)

Ah, I see the problem. In Node.js, the .js files that are made you cannot double-click on them to run them. This is just a Node.js thing. If you open your Start Menu and navigate to "Node.js", you need to click on "Node.js Command Prompt". From there, you need to CD C:\Users\pc1\ and then npm start.
Basically, you need to start your Node.js application from the command line, similar to how you used the express command to generate your application.

The following video I found my help understand how to start your Node.js applicataions, like Express: https://youtu.be/yfemGT7DEgY?t=1m28s (in the video the user types node ./bin/www, but you can type npm start).

repo: strongloop/express


text:
feat(karma-runner): disable client.clearContext

Disable client.clearContext to avoid a race condition in Karma where a mutant is unfairly reported as "RuntimeError".
Fixes #2049

I just thought of a side effect of disabling client.clearContext.
When I disabled client.clearContext the integration tests for karma were failing. It had to do with an error in our integration tests that occur after a timeout of 200ms (see my change in packages/karma-runner/testResources/sampleProject/test-mocha/AddSpec.js). I found it strange that this error only now arises, but then I realized that it has to do with client.clearContext. Clearing the clientContext (loading about:blank in the iframe as soon as tests are done executing) ensures that no other errors occur when the tests are actually already done. I think this is the primary reason for karma to clear the client context.
This is a dilemma for us. We either disable context.clearContext so Stryker works for people that didn't forget to write there await statements and clean up after themselves, or we don't disable it and Stryker works somewhat for everyone.
I still think disabling clearContext is worth it, at least, until https://github.com/karma-runner/karma/issues/3424 is fixed.
We could also try to patch it more on our side. Right now, we ignore the exitCode that Karma provides us after a run. Instead, we report a RuntimeError whenever an error event occurred. We could use the exitCode that karma provides in our logic (0 = succeeded, 1 = failed tests OR error occurred).
https://github.com/stryker-mutator/stryker/blob/9d1fcc17e3e8125d8aa9174e3092d4f9913cc656/packages/karma-runner/src/KarmaTestRunner.ts#L146-L148
@simondel what do you think about this?

repo: stryker-mutator/stryker


text:
Code evaluates key rather than check for its presence

On line 28, quoted below:
if (cc._reactiveMethodData && cc._reactiveMethodData[serializedArgs]) {

cc._reactiveMethodData[serializedArgs] should be  _.has(cc._reactiveMethodData, serializedArgs) as in:
if (cc._reactiveMethodData && _.has(cc._reactiveMethodData, serializedArgs)) {

since the former is the value of the key, while the latter is checking for the presence of the key ... which is the condition I believe you were looking for. ;-)
Without this correction, I was getting infinite runs because the method I was calling returns booleans, and the if clause was not entered when the return value was false. Once I made the correction ... no more infinite runs.
Thanks for this package! It's just what I needed.

Just published 1.0.1 with this fix!

Cool!

authors: dgtlife stubailo

repo: stubailo/meteor-reactive-method


text:
Add notes review script

Who is this PR for?
educator teams who want to reflect on ways they're using notes in Student Insights
What does this PR do?
Adds a command-line script for getting them this data, for sharing via district Google Drive.
Checklists

[x] Add spec
[x] Manual testing made more sense here

selfie

repo: studentinsights/studentinsights


text:
Undefined array key error in SearchableBehavior.php when replicaIndex is true

I am running Scout 4.1.0 on Craft 4.9.7 and configuring a Replica Index.
My /config/scout.php file looks like this:
<?php

use craft\helpers\App;
use craft\elements\Entry;
use rias\scout\ScoutIndex;
use rias\scout\IndexSettings;
use craft\elements\db\EntryQuery;
use Modules\Serialization\Transformer;

function createSettings(): IndexSettings
{
    $settings = IndexSettings::create()
        // ...settings methods...
        ->alternativesAsExact(ALTERNATIVES_AS_EXACT);

    return $settings;
}

return [
    'indices' => [
        ScoutIndex::create('Site (English)')
            ->elementType(Entry::class)
            ->transformer([Transformer::class, 'scout'])
            ->criteria(fn (EntryQuery $query) => $query->site('default')->status('live'))
            ->indexSettings(
                createSettings()
                    ->replicas(['virtual(Site (English) (Sorted))'])
            ),
        ScoutIndex::create('Site (English) (Sorted)')
            ->replicaIndex(true)
            // ->criteria(fn (EntryQuery $query) => $query->id(0))
            ->indexSettings(createSettings(true)),
        ScoutIndex::create('Site (Spanish)')
            ->elementType(Entry::class)
            ->transformer([Transformer::class, 'scout'])
            ->criteria(fn (EntryQuery $query) => $query->site('spanish')->status('live'))
            ->indexSettings(
                createSettings()
                    ->replicas(['virtual(Site (Spanish) (Sorted))'])
            ),
        ScoutIndex::create('Site (Spanish) (Sorted)')
            ->replicaIndex(true)
            // ->criteria(fn (EntryQuery $query) => $query->id(0))
            ->indexSettings(createSettings(true)),
    ],
];

Based off this merged PR and the documentation, I expected the Replica Indexes to not require criteria, like this example:
        ScoutIndex::create('Site (English) (Sorted)')
            ->replicaIndex(true)
            ->indexSettings(createSettings(true)),

However, I get the following error when saving an entry:
PHP Warning – [yii\base\ErrorException](https://www.yiiframework.com/doc-2.0/yii-base-errorexception.html)
Undefined array key 0
In .../vendor/studioespresso/craft-scout/src/behaviors/SearchableBehavior.php

Line 88 && ($criteriaSiteIds[0] === '*' || in_array((int)$this->owner->siteId, $sit

If I add criteria to the Replica Indexes config, the error goes away. I'm using $query->id(0) to ensure an empty Element Query, but would prefer not to have any criteria at all.
        ScoutIndex::create('Site (English) (Sorted)')
            ->replicaIndex(true)
            ->criteria(fn (EntryQuery $query) => $query->id(0))
            ->indexSettings(createSettings(true)),

Am I misunderstanding the documentation for Replica Indexes or is this a bug perhaps?

Fixed in 4.1.1, will leave this open to make sure I don't forget to the Craft 5 branch

Out for Craft 5 in 5.0.1.

authors: janhenckens mike-moreau

repo: studioespresso/craft-scout


text:
🛑 Moodstudios is down

In 1de7a28, Moodstudios (https://moodstudios.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Moodstudios is back up in 981459c after 12 minutes.

repo: studiovlijmscherp/uptime


text:
🛑 Panel is down

In c70debd, Panel (https://portal.xoro-hosting.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Panel is back up in fa80344 after 21 minutes.

repo: stxrlite/xoro-updates


text:
Why do deno modules never actually work?

While simply trying to run the example code.  I get.
error: Import 'https://deno.land/x/stylecow_color/mod.js' failed: 404 Not Found
error: Import 'https://deno.land/x/stylecow_prefixes/mod.js' failed: 404 Not Found

Which is because they don't exist.  Removing them from the example.  Just trying to get nested rules.  Which is all I wanted anyway.  I get:
warning: Compiled module not found "https://deno.land/std/testing/asserts.ts"
  From: https://deno.land/x/stylecow_core@v1.0.0/test.js
    If the source module contains only types, use `import type` and `export type` to import it instead.
error: Uncaught SyntaxError: The requested module 'https://deno.land/std/testing/asserts.ts' does not provide an export named 'assertEquals'

I mean.  Did you even bother to run the thing before you released it?
This after deno-sass failed miserably as well and is now archived.
Shame these libraries are dragging the whole Deno 1.0 momentum to the floor.

At this moment, only import and nested_rules plugins were ported to Deno (https://deno.land/x?query=stylecow)
The README example was inherited from the node version, so yes, it was wrong, sorry about that.
But if you use available plugins, it should work (I've used in my projects without problems).
The error with "https://deno.land/std/testing/asserts.ts" seems like you are using an old version. Try to reload the cache: deno cache https://deno.land/std/testing/asserts.ts" or better remove the entirely the cache folder.
FYI, I've contributed to port postcss to Deno (https://deno.land/x/postcss@8.1.4) that have a bigger community. There're no plugins available yet but you can import them from https://jspm.org/
Here you have an example:

deps here: https://github.com/oscarotero/lume/blob/master/deps/postcss.js
usage here: https://github.com/oscarotero/lume/blob/master/plugins/css.js#L3

authors: lawwantsin oscarotero

repo: stylecow/stylecow-core