text:
Update article comment form ids

A pending PR in Shopify (https://github.com/Shopify/shopify/pull/57450) will reload the page after a comment form submission with either #comments or #comment-form as a hash in the URL.

#comments already works as expected on a successful post
#comment_form will be added when the form has errors, jumping the page down to the anchor on the form so the user can fix the mistakes

This PR removes the hacky JS that got around having accurate URL hashes and updates the IDs.
cc @Shopify/themes-team @mac-adam-chaieb
FYI @Shopify/theme-support, this can be a reference for updating other themes. Ping me with any questions.

Just a small detail :)
It seems the hash that gets added is #comment_form not #comment-form

Also in blog.liquid you need to update the Comments link (in the meta data) which has the old hash #Comments

@suture

Also in blog.liquid you need to update the Comments link (in the meta data) which has the old hash #Comments

Good one, thanks so much! We'll fix that.
We fixed #comment-form to #comment_form in the above comment.

Good catch, thanks @suture

Maybe another problem. If you delete this, we no longer get a success message.
{% if form.posted_successfully? %}
      {% assign newHash = 'Comments' %}
 {% endif %}

Will be adding that in another PR shortly

Many thanks for following that up.

authors: carolineschnapp cshold suture

repo: Shopify/Timber


text:
Safely call arguments_for

We need to add our own error handling to catch ExecutionErrors which
may be raised within an argument's prepare method since the gem does
not.

I'm not sure this will work us. I also jumped on a fix, but I'll just share a failing test on this branch.

source: gharchive/pull-request

authors: chrisbutcher swalkinshaw

repo: Shopify/graphql-metrics

license: MIT

license_type: permissive

license_source: github-api


text:
[BUG] parseMetafield doesn't work with single line text list metafields

Describe the bug
The parseMetafield and parseMetafieldValue utilities don't return an array of strings for metafields of type list.single_line_text_field.
To Reproduce

Add metafield definition
Expose metafield to Storefront API
Select "Single line text" and "List of values"
Query product with metafield
Parse metafield using parseMetafield orparseMetafieldValue

Expected behaviour
The parseMetafield and parseMetafieldValue utilities should return an array of strings instead of a stringified array for this type of metafield.
Additional context

Hydrogen version 1.3.2
Node version 16.14.0
Device details iMac (macOS Monterey 12.4)

Thanks for reporting this. We have plans of updating the Metafield component in the near future to have greater support / coverage of all the different types of Metafields, so I'll probably fold this issue into that work.

My current understanding + pseudocode of where the value lies in a metafield (based on SFAPI 2022-10):
function process(metafield: MetafieldType) {
  if (metafield.type.includes('reference')) {
    if (metafield.type.includes('list')) {
      return metafield.references;
    } else {
      return metafield.reference;
    }
  } else {
    if (metafield.type.includes('list')) {
      // need to process each item in list
      return JSON.parse(metafield.value).map((value) => parseValue(value));
    } else {
      return parseValue(metafield.value);
    }
  }
}

source: gharchive/issue

authors: frehner ramiroazar

repo: Shopify/hydrogen


text:
[BUG] Cannot dispatch event (cartCreate) for current cart state (fetching)

Describe the bug
Due to streaming, button in dev project can be clicked before all the necessary stuff is downloaded, thus throwing error.
To Reproduce

Go to a product page in the dev project, e.g. /products/snowboard.
Click "add to bag" button fast before it finishes downloading everything (before the bag icon at the top shows the number of items).
See error Cannot dispatch event (cartCreate) for current cart state (fetching)

Perhaps we need to disable the button while stuff is loading, or delay the logic after click.

Additional context

Hydrogen version 0.6.4
Node version 17.0.1

FYI @cathryngriffiths and I chatted about this briefly before dev preview.
She tried the disabled={loading} trick, but we found that the initial streamed SSR would be enabled, then disabled, then re-enabled. Also, it felt clunky from a UX perspective to disable a button for no apparent reason.
I think instead we need to update our useReducer logic to account for a cartFetching > cartCreate intermediate state. Where it errors today, instead it should enqueue a callback, create a cart if the fetch comes back empty, or skip to the next step if the cart comes back successfully.
i don't know how to program any of this i am sorry

is there any update regarding this issue ?

@nobitahuang No updates, other than we acknowledge this is a pretty serious cart bug and intend to fix it before v1 👍

Note that this error persists in the new demo-store

Note that this error persists in the new demo-store

@TylerSustare I ran into the same issue, did you update your scope inside your custom app? I went to update my permissions but I'm not seeing the option for unauthenticated_read_customers. I know I've seen it before but don't know where to find it.

authors: frandiox frehner jplhomer nobitahuang shopper-myles


text:
Create namespace if it does not exist

I thought about this when I was adding a new stack for an existing
service and found myself debating between using chat to initialize
a repository for a 5th time (it's deployed to as many clusters)
just for namespace creation, or to do it manually and out-of-band.
Neither seemed like great options to me, so I figured, why couldn't
we just create the namespace on the fly if it doesn't exist?
I don't think the tradeoff of requiring a namespace to already
exist necessarily makes sense any longer, even though in the
majority of cases at Shopify it will.
The initializer already enforces that a namespace is given,
so we can guarantee this receives a non-empty value.
This makes kubernetes-deploy a little more plug-and-play with,
IMO, minimal drawbacks.

What have we done in the past?

What have we done in the past?

It currently will fail the deploy if the namespace does not exist.

Yeah, but how have we created in the past? Manually? Some spy command? Script?

Yeah, but how have we created in the past? Manually? Some spy command? Script?

spy cloud init creates the namespace (and also drops an ejson keys secret in it).
The downside is a significant decrease in control over app deployment to our tiers. I'm not sure I like the idea of making it that easy for any app to create namespaces... they would effectively be able to do so in any valid tier. In the case of apps (which is what we should be optimizing this script for IMO), I think requiring explicit, external steps to initiate a namespace migration is perfectly reasonable. Presumably the thing you're deploying for the 5th time is one of our own controllers, which will be involved in the new-cluster deploy story we need to figure out.
@Shopify/cloudplatform I think we should discuss this as a team.

@sirupsen for new namespace (e.g. staging) of existing project we created them with kubectl create namespace walrusser (same for undercloud)
I agree that it's a pain point right now when you create a staging stack and the namespace is missing, but at the same time I think we should be more strict about certain things and not automatically create the namespace.
If you intended to deploy to tier4 where the namespace is ready for you but accidentally deployed to tier1 where there's no such namespace, I'd prefer to be precautionary and fail early rather than automatically create the missing namespace.

I'd like to start annotating these namespaces for network policies at some point, so maybe this shouldn't live here? food for thought and I rly don't care what happens in the mean time
e.g.
# When a namespace opts into isolation, all traffic directed
# at pods in the namespace is blocked unless explicitly allowed
# by configuration on a NetworkPolicy object
# this is arguably the k8s equiv of --icc=false

# this is configured at the namespace level
apiVersion: v1
kind: Namespace
metadata:
  name: my-new-namespace
  annotations:
    net.beta.kubernetes.io/network-policy: |
      {
        "ingress": {
          "isolation": "DefaultDeny"
        }
      }

@JonPulsifer sounds like you'd be interested in https://github.com/Shopify/cloudplatform/issues/214

authors: JonPulsifer KnVerey kirs sirupsen wfarr

repo: Shopify/kubernetes-deploy

license: mit

license_source: bigquery


text:
Failed to activate custom environment: Command failed...

Ruby version
3.2.2
Code snippet
No response
Description
OS: Windows 10
Code editor: VSCode
Ruby version: 3.2.2
Ruby version manager: custom (I got  none, so I put it as a custom, like the documentation suggests.)

I wanted to ensure that the issues were not exclusive to my computer but were widespread. I contacted a buddy who also uses Windows 10 to configure Ruby LSP, and he confirmed (with screenshots 😄) that he receives the same issues.
First approach:
With these two lines of code in JSON configuration settings:

"rubyLsp.rubyVersionManager": "custom",
"rubyLsp.customRubyCommand": "cmd /C PATH=C:\Ruby32-x64\bin;%PATH%"

I receive the following error:

Second approach:
Now, with these two lines of code:

"rubyLsp.rubyVersionManager": "custom",
"rubyLsp.customRubyCommand": "PATH=C:\Ruby32-x64\bin;%PATH% && ruby -rjson -e "STDERR.printf('%s', JSON.dump({ 'RUBY_ENV_ACTIVATE' => { 'env' => ENV.to_h, 'ruby_version' => RUBY_VERSION, 'yjit' => defined?(RubyVM::YJIT) } }))"",

I get the following error (it seems like it successfully extracts the data of ruby/bin in JSON format but still doesn't start LSP):

What can I do to make this work? Thank you in advance.
Expected output
I expect Ruby LSP to operate and start properly.

Thank you for the bug report! The second option is the right approach, just pushing something into the PATH.
It looks like the output was a bit too long for the VS Code dialogue box. I can't see what the actual error was, just parts of the JSON.
If you look at the Ruby LSP channel in VS Code's Output tab, is there any information about what error occurred? Did it fail to parse the JSON?

Not really, it only outputs this:
2023-11-10 18:29:13.455 [info] Trying to activate Ruby environment with command: PATH=C:\Ruby32-x64\bin;%PATH% && ruby -rjson -e "STDERR.printf('%s', JSON.dump({ 'RUBY_ENV_ACTIVATE' => { 'env' => ENV.to_h, 'ruby_version' => RUBY_VERSION, 'yjit' => defined?(RubyVM::YJIT) } }))" && ruby -rjson -e "STDERR.printf(%{RUBY_ENV_ACTIVATE%sRUBY_ENV_ACTIVATE},
JSON.dump({ env: ENV.to_h, ruby_version: RUBY_VERSION, yjit: defined?(RubyVM::YJIT) }))" inside directory: c:\Users\Said\Documents\VSCodeProjects\student_registration_system
I also tried to reinstall Ruby LSP but it's not working still..
Interesting: If I manually run this command  _ruby -rjson -e "STDERR.printf('%s', JSON.dump({ 'RUBY_ENV_ACTIVATE' => { 'env' => ENV.to_h, 'ruby_version' => RUBY_VERSION, 'yjit' => defined?(RubyVM::YJIT) } }))"_  inside of  C:\Ruby32-x64\bin\ruby.exe I get an error that closes the prompt so fast that I had to record it on my phone and then find out what it is, and it says this:

Currently encountering the same issue. Is there a workaround, or a way to provide more information on the issue?

Same error here, seems to be started after update VsCode from 1.83 to 1.84.
I tried to create a Custom batch file to configure the PATH to my customized ruby wrapper, but seems that ins't running it.
the output is:
Failed to activate custom environment: Command failed: s:\bat\CustomRubyPath.bat && ruby -rjson -e "STDERR.printf(%{RUBY_ENV_ACTIVATE%sRUBY_ENV_ACTIVATE},
JSON.dump({ env: ENV.to_h, ruby_version: RUBY_VERSION, yjit: defined?(RubyVM::YJIT) }))"
-e:1: syntax error, unexpected end-of-input, expecting ')'
...V_ACTIVATE%sRUBY_ENV_ACTIVATE},
...                               ^
-e: compile error (SyntaxError)

Note: extension version 0.4.13 does not have this error.

The changes in https://github.com/Shopify/vscode-ruby-lsp/pull/904 should fix this issue. Thank for reporting.

Version v0.4.18 should fix this. Please let us know if you find any other issues.

works fine!!!!
2023-11-20 13:28:02.521 [info] Trying to activate Ruby environment with command: s:\bat\CustomRubyPath.bat && ruby -rjson -e "STDERR.printf(%{RUBY_ENV_ACTIVATE%sRUBY_ENV_ACTIVATE}, JSON.dump({ env: ENV.to_h, ruby_version: RUBY_VERSION, yjit: defined?(RubyVM::YJIT) }))" inside directory: s:\BAT
2023-11-20 13:28:16.445 [info] Ruby LSP> Running bundle install for the custom bundle. This may take a while...
Ruby LSP> Command: (bundle check || bundle install) 1>&2
2023-11-20 13:28:18.105 [info] Resolving dependencies...
2023-11-20 13:28:18.322 [info] The Gemfile's dependencies are satisfied
2023-11-20 13:28:24.916 [info] Starting Ruby LSP v0.12.3...
2023-11-20 13:28:25.014 [info] Ruby LSP is ready

The changes in Shopify/vscode-ruby-lsp#904 should fix this issue. Thank for reporting.

Yay!!! It works 💯 🔥
A small note but important: If anyone receives error like "Failed to activate custom environment: Unexpected non-whitespace character after JSON at position 4" please make sure to fix your customRubyCommand in settings.json to this:
 "rubyLsp.rubyVersionManager": "custom", "rubyLsp.customRubyCommand": "PATH=C:\\Ruby32-x64\\bin;%PATH%",
So customRubyCommand goes without STDERR.printf('%s', JSON.dump(...)) error stream...
And if that doesn't work, use this approach and it should work fine:
 "rubyLsp.customRubyCommand": "PATH=C:\\Ruby32-x64\\bin;%PATH% && ruby -rjson -e \"puts({ 'RUBY_ENV_ACTIVATE' => { 'env' => ENV.to_h, 'ruby_version' => RUBY_VERSION, 'yjit' => defined?(RubyVM::YJIT) } }.to_json)\"
In this case we used puts({ ... }.to_json) approach instead of STDERR.printf('%s', JSON.dump(...))
`

authors: SaidRasinlic W4RH4WK sandrosilveira vinistock

repo: Shopify/ruby-lsp


text:
Handle Sorbet levels to prevent some feature duplication

Motivation
This PR is a step towards #2294
We added a bunch of new features recently, but we weren't super careful about checking which parts overlapped with Sorbet's behaviour and under which scenarios. This resulted in a bit of duplicate behaviour and we can improve that.
Note that full removal of any kind of duplication is going to require deep integration with the type checker and is a much more involved effort.
Implementation
Essentially, requests have to know the level of Sorbet type checking available for a file to make decisions about what to provide.
Instead of trying to use a blanket statement like typechecker_enabled?, I switched to passing the Sorbet level of type checking to the relevant requests.
I left some comments on the PR to help understand the decisions.
Automated Tests
Added tests.

I dug a little deeper and there were a few other scenarios I hadn't realized. For example, Sorbet can provide constant completion even if a file has no typed sigil. The only time it cannot provide it is on typed: ignore.
The PR should be good for another round of reviews.


text:
RFC: Supported Kafka and Go Versions

As we approach stricter versioning (aka 1.0) we need a slightly more well-defined process for defining supported versions of kafka and go.
I propose a 2+2 model for both: we support the 2 most recent versions, with a 2 month grace period for older releases. For example, we currently support go 1.4 and 1.3 as the two most recent stable releases, and we support 1.2 for at least two months after the initial release of 1.4 (FWIW, those two months are now passed, so in this model we'd now be justified in dropping support for go 1.2).
For kafka, this means we support 0.8.2 and 0.8.1, and that we'd continue (nominal) support for 0.8.0 until April 4th, two months after the release of 0.8.2.
Of course this doesn't mean we'd gratuitously break support for old versions, just that we wouldn't test against them or make a particular effort to be compatible.
Thoughts @Shopify/kafka and anyone else this might affect (e.g. @schleppy)
P.S. if this is acceptable, I'd like to target Sarama 1.0.0 for the beginning of April, just after dropping official support for Go 1.2 and Kafka 0.8.0.

I like the idea of the 2+2 support.  For go it is pretty much a no brainer since 1.x is guaranteed api compatible.  For Kafka I am not sure such guarantees exist, so unless you are always willing to be on the latest release (regardless of possible changes and/or bugs) then 2 months might not be enough time.  Additionally, it may be hard to target Kafka versions if the protocols change as it could have rippling effects in the code base and maintaining both protocols might be more trouble than it is really worth (a different branch perhaps.)
Anyway, I like the idea - and like more that it is being formally considered.

+1 to 2+2 support.
Kafka also ensures that api is compatible for at least one previous release so 2 versions makes sense.
I agree with @schleppy that maintaining two protocols might not be worth but I'd still like to formally write this down and adhere to it till the time it becomes an extreme pita to do this.

We basically have to re-evaluate this for Kafka 0.9.0, to see what kind of changes that release will bring and if it is feasible to support 0.8 and 0.9 at the same time. As long as we're dealing with 0.8 releases, 2+2 should work for me.
I opened #320 to make CI run against 2 kafka version.

OK, I'll leave this ticket open to track documenting this support pattern officially in the README, but I think we're in agreement. We can definitely re-evaluate when 0.9.0 comes out, but Kafka's releases have been much farther apart than Go's, so I expect by the time that happens everybody will be fully on 0.8.2.

Added note to README; closing.

authors: eapache schleppy wvanbergen yagnik

repo: Shopify/sarama


text:
Give explicit names to all mutations.

I got an error (Error: GraphQL error: No operation named "") because of an unnamed mutation, so I thought I'd give all of them names.

I also fixed another error (Error: GraphQL error: Nullability mismatch on variable $lineItems and argument lineItems ([CheckoutLineItemInput!] / [CheckoutLineItemInput!]!)) by replacing [CheckoutLineItemInput!] with [CheckoutLineItemInput!]!.

https://github.com/Shopify/storefront-api-examples/pull/21 will be merged tomorrow and it fixes the variable type mismatches for every example.
I think there's also a server-side fix here to not treat an empty string ("") as an actual operationName. I'll leave this open though since might be good to merge anyway.

FYI the Storefront API now treats an empty string operationName as a query without an operation name.

#21 was merged. The only change which we might want from this PR is the mutation names just for descriptive reasons. Feel free to either update this or close.

Updated the PR.

Thanks 👍

authors: SachaG swalkinshaw

repo: Shopify/storefront-api-examples


text:
Didn't change any thing in the file but theme watch process it

Describe the bug
I'm using ThemeKit with VS Code and some time when i open the file, then click to move the cursor on file to other line, ThemeKit detech that it's a file changing and process my file.
Steps to process:

theme download to download an existing theme
theme watch
open any file and there're 2 case:

it automatic process this file to server when i just open the file
after open the file and mouse click to change the cursor position on file, it automatic process this file to server.

This seems like it is a duplicate of https://github.com/Shopify/themekit/issues/519
Can you please fill out the rest of the bug template please?
Environment (please complete the following information):

OS [e.g. iOS]:
Themekit version [e.g. v0.7.5]:
Editor [e.g. atom, sublime]:
Ignore:

Hi Tim,
Sorry for missing the template, i've updated it.
About the #519, i've also get that error before, when i was working using theme watch it's auto process all my project file to server. But now i'm not getting that error anymore. Now i'm just the error that i've described above.

You can fix the requested asset is a directory error by updating to the prerelease with:
theme update --version=v1.0.0-pre
I am also closing this as a duplicate of the other issue because it seems like there is an issue with windows 10 causing many update events. Thank you for filling out the rest of the template!

authors: besteven tanema

repo: Shopify/themekit


text:
Deploy using shipit.

WHAT are you trying to accomplish with this PR?
Checklist

[ ] This changes the interface and requires a Major/Minor version change.
[ ] It is safe to simply rollback this change (e.g. changes to theme.lock that might corrupt a users workflow).
[ ] I have :tophat:'d these changes by using the commands I changed by hand
[ ] I have run successfully run linting and tests on the codebase (You may have to install golint
[ ] I have added tests for the changes I have made.
[ ] I have added a dependancy to the project

@Shopify/byroot Just wanted to run this past you. I have deploy scripts written in Go, so I made them use ejson but I am not sure I can use make or have go available. What kind of environment is available? Btw the changeset is so large because of vendor changes.

Closing, I think I am just going to use buildkite to deploy, if the commit has a tag then deploy.

Shipit does as the go toolchain:
# go version
go version go1.8.3 linux/amd64

authors: casperisfine tanema


text:
Lab 1 completed

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
What did you learn from the changes you have made?
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist

[ ] I can confirm that my changes are working as intended

Labs 1-6 complete


text:
General fixes

Fixes some issues, crashes and warnings

Nice work! These fixes looks very good to me!

authors: SigmundGranaas holmraven

repo: SigmundGranaas/forgero


text:
重启服务器后启动报错

系统版本
centos_8_0_x64
Node.js 版本
13.13.0
应用版本
2.2.3-optimize1
启动方式
Docker
复述操作
服务器重启了一下，然后

docker-compose stop
git pull
docker-compose up -d （可能是我脑子抽了才运行了这个）
docker-compose start
npm start

可能和运行了一次 up -d有关？
还有拯救办法吗=-=
配置文件
无

错误报告
[root@Genshin Adachi-BOT]# npm start

> adachi-bot@2.2.3-optimize1 start /root/Adachi-BOT
> ts-node -r tsconfig-paths/register app.ts --files

/root/Adachi-BOT/node_modules/ts-node/src/index.ts:513
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
src/modules/bot.ts:18:19 - error TS2307: Cannot find module 'axios' or its corresponding type declarations.

18 import axios from "axios";
                     ~~~~~~~

    at createTSError (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:513:12)
    at reportTSError (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:517:19)
    at getOutput (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:752:36)
    at Object.compile (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:968:32)
    at Module.m._compile (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:1056:42)
    at Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Object.require.extensions.<computed> [as .ts] (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:972:32)
    at Function.Module._load (internal/modules/cjs/loader.js:872:14)
    at Module.require (internal/modules/cjs/loader.js:1012:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! adachi-bot@2.2.3-optimize1 start: `ts-node -r tsconfig-paths/register app.ts --files`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the adachi-bot@2.2.3-optimize1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-12-09T08_54_23_688Z-debug.log

我的，我忘了新版本加了新的库要改镜像版本（
docker-compose stop
docker rm adachi-bot
docker rmi adachi-bot:2.2.0
docker-compose up -d

加下频道吧，这种事情以后方便通知一点

我在频道里hhhhhhh

[root@Genshin Adachi-BOT]# npm start

adachi-bot@2.2.3-optimize1 start /root/Adachi-BOT
ts-node -r tsconfig-paths/register app.ts --files

/root/Adachi-BOT/node_modules/ts-node/src/index.ts:513
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/modules/bot.ts:18:19 - error TS2307: Cannot find module 'axios' or its corresponding type declarations.
18 import axios from "axios";
~~~~~~~
at createTSError (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:513:12)
at reportTSError (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:517:19)
at getOutput (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:752:36)
at Object.compile (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:968:32)
at Module.m._compile (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:1056:42)
at Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Object.require.extensions.<computed> [as .ts] (/root/Adachi-BOT/node_modules/ts-node/src/index.ts:1059:12)
at Module.load (internal/modules/cjs/loader.js:972:32)
at Function.Module._load (internal/modules/cjs/loader.js:872:14)
at Module.require (internal/modules/cjs/loader.js:1012:19)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! adachi-bot@2.2.3-optimize1 start: ts-node -r tsconfig-paths/register app.ts --files
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the adachi-bot@2.2.3-optimize1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-12-09T09_52_33_904Z-debug.log
怎么感觉操作一波下来还是相同的错误hhhhhhhh
我要不重新clone一份。

你更新了 docker 就不要再 npm start 了啊2333

但是bot没启动~ 我重启的服务器。

哦吼，好像开的？

对啊，你重启服务器之后 docker-compose start 就行了

Thanks~

repo: SilveryStar/Adachi-BOT


text:
Heading is being clipped

I have the toggle Transparent status bar as off, and the heading is being cut off

Yeah noticed this just after the last push yesterday, should be fixed now and I'll push out a hotifx to Google Play as well.

authors: SimonHalvdansson myNameArnav

repo: SimonHalvdansson/Harmonic-HN


text:
Build system

Baselining at Java 8.
Documentation updates.
Initial Bintray OSS release (awaiting Bintray request approval).

I think we'll need to create an issue to split the core README.md file into smaller feature specific files. This should also allow the documentation to be compatible with gitbooks.
I'll add more details to that issue later. Thanks.

Ok, TravisCI builds are good now. Thanks.
https://travis-ci.org/github/Simonwep/java-express/builds

Also, Bintray has approved the artifact publication. Nice.
https://bintray.com/search?query=java-express

Wow, good job with all that! It's great seeing this project being alive again :D I'll give it a quick review tomorrow!

@Simonwep they are. At least until we can get TravisCI to upgrade its Gradle version up to at least 6.6.1. By default, right now it's running under Gradle 5.X. If we can do that, then we can remove the wrapper files from the source tree. Thanks.

Oh, I almost forgot about that - could we switch to GitHub action? This way we'd have better control over CI and could fix the Gradle issue!

I think so. I'll make the changes on the PR. I'll ping back if I need you to grant me admin access to the repo. Thanks!

@Simonwep ok I'm putting together a basic github actions template, but I need to configure credentials for artifact publishing. When you have a moment, please grant admin access to my user on this repository. I'll then check in the workflow YAML file for building and uploading snapshots (which should also allow for removing the Gradle wrapper files).
Cheers.

Also pushed a couple of commits to replace java.util.logging with the SLF4J api (it's a modern minimal API contract, consumers choose their own logging back end). Thanks!

Looks really good! You should already have access to Actions (just checked with another gh-account, you might have to create a workflow in the action tab?) - If I'm not mistaken admin rights are only a thing in organizations, collaborators are basically admins (except that they can't configure the repo).

@Simonwep yeah, all I'm looking for is to be able to tweak the settings tab in this repo to remove the TravisCI web hooks. You can do that as well. I'll check in the Github Actions yaml files later during the week. Thanks!

Gotchya, I've removed the webhook :)

Good job! What would come next?

A few ideas:

Issue #11 is possibly referring to implementing non-blocking requests, where a blocking requests refers to something like reading from a DB connection, or executing some other long running code that will block a thread processing an HTTP request. The idea is to create a second task processing pool where such tasks can be moved, and then sending the response over once the blocking code completes. This frees up the threads that process HTTP requests to continue accepting tasks, while the heavy work occurs elsewhere.
I think we could move the basic set of middleware implementations to its own package (something like java-express-middleware-base), so that people can choose to use the default set of middle-ware functions, or provide their own. For example, I need a middle-ware request handler which can serve static content from a jar's classpath location (i.e. a public folder inside a jar file. I'm writing a prototype handler, so I may not have much need for the FileProvider middle-ware that comes out of the box.
I was thinking of applying the googleJavaFormat plugin on the first PR, but it would make the file count too large and hide the important changes. I think it's useful to validate and enforce code formatting for new PRs. This plugin only needs a single line to activate and provides automatic code formatting:

configure<io.vacco.common.CbPluginProfileExtension> {
  addJ8Spec(); addPmd(); addSpotBugs()
  addGoogleJavaFormat() <------------------------------------------------------- HERE
  setPublishingUrlTransform { repo -> "${repo.url}/${project.name}" }
  sharedLibrary()
}

Got some more stuff in mind, but this should be enough to get going. I'll either open new issues, or submit the PRs directly.
Thanks!

Okay, what would the solution to this issue look like? Is this a rather envieronment-specific issue or are Futures in Java a thing and we should add them to the api / make them generally usable with java-express?
Oh yeah, that's good! We should definitely separate the core-code from the extensions!
Just saw your PR, looks great! commented on it :)

authors: Simonwep jjzazuet

repo: Simonwep/java-express


text:
Question

Code for close Tile ? (back to clock "Home Screen")

Code for close Tile ? (back to clock "Home Screen")

Hi, I'm not sure about which tile your mentioning? The code for all of the wearable tiles can be found HERE

authors: adolfomoro thewizrd

repo: SimpleAppProjects/SimpleWeather-Android


text:
Refactor input image validation

Factor method to validate inputs match dimensions, size, pixel
The extracted functions provide a common place for an error
message. The error message have been improved to uniformly describe
the filter, and the input parameters which have a problem.

Just looked at the changes, so I'm curious if there is a check for pixel type, dimension and size, shouldn't there be a check for matching spacing? Probably something I am missing in the context.

These are not new checks. It refactors them to a single location and improves the error messages to be more descriptive, and gives a suggestion when the pixel types do not match as expected.
The PxielType and Dimension are handled here to give a more informative message than a dynamic_cast failure in the InternalExecute method. These are more for a template parameter checking.
The Size is checked because when the size in ITK don't match an obscure pipeline image region message if thrown from ITK.
The pixel location information is handled by the ITK filter and gives a reasonable error message. We do not which to duplicate this.

repo: SimpleITK/SimpleITK


text:
BUG: SITK_4D_IMAGES is a preprocessor directive, not a CMake option, and should not be renamed to SimpleITK_4D_IMAGES

SimpleITK/SimpleITK#176

Great! Thank you for contributing!
I thought there was something else that was needed too! This is not based on the a recent release branch, but a "arbitrary" patch before the release. It should still be fine to merge into the release branch after testing on next and master.

I based it on the v1.0.0 tag. Glad it worked out anyway :)

authors: blowekamp kaspermarstal


text:
Add Support for Synchronous Calls

I'm attempting calling a Soap Call from a call back from an Alert.Js Callback method.  Unfortunately, I need to be able to perform a synchronous call, rather than an async call.  Can we add an optional parameter to the Calls to be sync (they can be async by default, unless specified)?

I've implemented the simplest change for this possible: https://github.com/SimplerSoftware/XrmTSToolkit/pull/4

I'll take a look and see what makes sense.  We can definitely add in support for synchronous calls but with TypeScript we can only really have one type of return value from any single method, which is currently a jQuery promise.  So we may just need to create separate 'Synchronous' versions of each of the major messages which would return the appropriate responses from CRM.

You could create an extra "async" parameter for all calls, that defaults to true, so no current usages of it changes:
        static Create(entity: Soap.Entity, async: true): JQueryPromise<Soap.CreateSoapResponse> {
            var requestBody = "<entity>" + entity.Serialize() + "</entity>";
            return $.Deferred<Soap.CreateSoapResponse>(function (dfd) {
                var request = Soap.DoRequest<Soap.CreateSoapResponse>(requestBody, "Create", async);
                request.done(function (data, result, xhr) {
                    dfd.resolve(data);
                });
                request.fail(function (result) {
                    dfd.reject(result);
                });
            }).promise();
        }

...

private static DoRequest<T>(soapBody: string, requestType: string, async: boolean): JQueryPromise<T> {
    var xml = "";
    if (requestType == "Execute") {
        xml = "<s:Envelope xmlns:s = \"http://schemas.xmlsoap.org/soap/envelope/\">" +
            "<s:Body>" + soapBody + "</s:Body></s:Envelope>";
    }
    else {
        soapBody = "<" + requestType + ">" + soapBody + "</" + requestType + ">";
        //Add in all the different namespaces
        xml = "<s:Envelope" + Soap.GetNameSpacesXML() + "><s:Body>" + soapBody + "</s:Body></s:Envelope>";
    }

    return $.Deferred<T>(function (dfd) {
        var Request = $.ajax(XrmTSToolkit.Common.GetSoapServiceURL(), {
            async: async,
            data: xml,
            type: "POST",
            beforeSend: function (xhr: JQueryXHR) {
                xhr.setRequestHeader("Accept", "application/xml, text/xml, */*");
                xhr.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
                xhr.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/" + requestType);
            }
        });
        Request.done(function (data: any, textStatus: string, xhr: JQueryXHR) {
            var sr: Soap.SoapResponse = null;
            var rt = xhr.responseText;
            switch (requestType) {
                case "Create":
                    sr = new Soap.CreateSoapResponse(rt);
                    break;
                case "Update":
                    sr = new Soap.UpdateSoapResponse(rt);
                    break;
                case "Delete":
                    sr = new Soap.DeleteSoapResponse(rt);
                    break;
                case "Retrieve":
                    sr = new Soap.RetrieveSoapResponse(rt);
                    break;
                case "RetrieveMultiple":
                    sr = new Soap.RetrieveMultipleSoapResponse(rt);
                    break;
                case "Execute":
                    sr = new Soap.ExecuteResponse(rt);
                    break;
                default:
                    sr = new Soap.SoapResponse(rt);
                    break;
            }
            sr.ParseResult();
            dfd.resolve(<T><any>sr, textStatus, xhr);
        });
        Request.fail(function (xhr: JQueryXHR, textStatus: string, exception) {
            var errorText = typeof exception === "undefined" ? textStatus : exception;
            var fault = new Soap.FaultResponse(xhr.responseText);
            fault.ParseResult();
            dfd.reject(fault);
        });
    }).promise();
}

This was addressed in v0.8.5

authors: SimplerSoftware daryllabar

repo: SimplerSoftware/XrmTSToolkit


text:
Option to exclude imports from beeing resolved

There doesn't seem to be an option to exclude any imports from beeing resolved.
We are building a library which depends on angular material and we provide our own theme.
Therefore we have an import like this in our styles.scss which is later re-used:
@import '~@angular/material/theming';

Now what we want to accomplish is, that all "our" styles are actually bundled into one big scss file, but external style files are just beeing kept as imports so that they can be imported later on in the actual application (which also has a reference to angular material and therefor can resolve it).

Hmmm... So you want to define a list of imports, which in this case would be only this one:
@import '~@angular/material/theming';

And all imports in that list should not be bundled, but should still be kept in the output, right?
E.g.
file1.scss
@import '~@angular/material/theming';
@import './file2';

.red {
    background: red;
}

file2.scss
.blue {
    background: blue;
}

And resulting file when bundling file1.scss would be:
@import '~@angular/material/theming';
.blue {
    background: blue;
}

.red {
    background: red;
}

Is I understand correctly what you want? 🙂

Yes, that is exactly what I wanted to accomplish. Ideally the values of the list of imports to ignore would be evaluated as a regex.

@pfeigl do you mind pulling my branch and verifying the resulting output is correct?

@pfeigl Here are the steps to test it out:

Clone my repo
Switch over to branch feat/exclude-paths
npm install
npm run build
npm link
Open customer project
npm link scss-bundle
Update bundle config to include ignoredPaths: '~@angular/.*'
Run your build step and verify output

authors: DovydasNavickas cgatian pfeigl

repo: SimplrJS/scss-bundle


text:
Provide designs for UI iteration 2 - Settings page

User to update and add to current configs

Being reviewed by staking team

Approved by staking

repo: SimplyVC/panic


text:
Ongoing Q3 work on the 3 strategies

Ongoing work with the GEI to refine the strategies.
3 people (one from each strategy-drafting team)  to hold 2 meetings @$50 per meeting

After review by GEI team:
The strategies are great, and writing them was a very useful exercise; but they do go quite out-of-scope in parts, and give detail that is beyond what's needed for the immediate needs of the GEI research project.
Vani and Esther are working on bringing the core elements of the 3 strategies together in 1 doc, and creating a workplan with some targets for interviews and surveys. This work is covered by Vani's role as WG co-chair.
So for this budget element:

Whether or not we include it in the Q3 budget does depend on token price. If the price drops again, this is a budget line that we could cut (see Q3 fitted budget in https://docs.google.com/spreadsheets/d/1vLC4ZIHO3WN-Ah9XwehRmbwLZAeePsxxYQXmLiiJLnQ/edit?usp=sharing )
If we do include it in Q3 budget, perhaps what is needed (rather than paying 3 people to work on it any further) is paying more people a smaller amount (e.g. $20 to 15 people?) to attend a meeting to go through it all and ensure that they are informed about how to implement it? Potentially, this could mean paying people a little to attend the proposed interview training? as it will be quite a long session.

To be discussed at WG meeting on 2nd Sept.

present at training:
Guillermo, Duke, Clement. Colleen, Gorga, Ese, Love, Kevin,

authors: SucrenSpice VanCardui


text:
Compilation fails on macOS Sierra (10.12.3)

It fails at the make stage. I have all 4 dependencies installed and ran export OPENSSL_ROOT_DIR=$(brew --prefix openssl) to solve the following error:
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_INCLUDE_DIR)

Any idea what else is missing? This is what I get:
MBA:build octos$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_SYSCONFDIR=/etc ..
-- Found components for Termbox
-- TERMBOX_LIBRARIES = /usr/local/lib/libtermbox.dylib
-- Found components for libtsm
-- LIBTSM_LIBRARIES = /usr/local/lib/libtsm.dylib
-- Termbox: /usr/local/lib/libtermbox.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/octos/aerc/build

MBA:build octos$ make
[ 47%] Building C object CMakeFiles/aerc.dir/src/absocket.c.o
/Users/octos/aerc/src/absocket.c:18:10: fatal error: 'openssl/err.h' file not found
#include <openssl/err.h>
         ^
1 error generated.
make[2]: *** [CMakeFiles/aerc.dir/src/absocket.c.o] Error 1
make[1]: *** [CMakeFiles/aerc.dir/all] Error 2
make: *** [all] Error 2

Try reading the error message?

This fixed it:
cmake -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib -DCMAKE_INSTALL_SYSCONFDIR=/etc ..
CMake completes cleanly, but make complains about aqueue:
[  1%] Building C object CMakeFiles/aerc.dir/src/util/aqueue.c.o
/Users/octos/aerc/src/util/aqueue.c:32:22: error: used type 'atomic_intptr_t'
      (aka '_Atomic(intptr_t)') where arithmetic or pointer type is required
        q->head = q->tail = (atomic_intptr_t)dummy;
                            ^                ~~~~~
/Users/octos/aerc/src/util/aqueue.c:54:12: error: used type 'atomic_intptr_t'
      (aka '_Atomic(intptr_t)') where arithmetic or pointer type is required
        q->tail = (atomic_intptr_t)node;
                  ^                ~~~~
/Users/octos/aerc/src/util/aqueue.c:68:13: error: used type 'atomic_intptr_t'
      (aka '_Atomic(intptr_t)') where arithmetic or pointer type is required
                q->head = (atomic_intptr_t)node->next;
                          ^                ~~~~~~~~~~
3 errors generated.
make[2]: *** [CMakeFiles/aerc.dir/src/util/aqueue.c.o] Error 1
make[1]: *** [CMakeFiles/aerc.dir/all] Error 2
make: *** [all] Error 2

@octos there's an open PR (#94) that fixes your bug, but there's thought it may be less efficient/incorrect (I think)

authors: MaxLeiter SirCmpwn octos

repo: SirCmpwn/aerc


text:
Bug: adjust hierarchy notes show nothing

I try out the adjust hierarchy note feature but it shows nothing.
I have no idea what the problem is. The index refresh without any problem. Should be some problem in the code.
https://user-images.githubusercontent.com/43137033/152745194-4d15bb90-8715-4231-8392-d4a7597c7a53.mp4
Version: 2.52.0

in HierNoteModal.ts, when user put a folder in the hierarchy note setting, the length should not be 1, instead it should search the folder.

fix above bug
another problem

the ModifyHNItemComp is empty because the onOpen function of ModifyHierItemModal did not mount the UI component!!

export let modal: ModifyHierItemModal;
  export let settings: BCSettings;
  export let hnItem: HNItem;
  export let file: TFile;
  export let rel: "up" | "same" | "down";

  interface HNItem {
    depth: number;
    line: string;
    lineNo: number;
  }
  let inputEl: HTMLInputElement;

  let newItem = file.name.replace(".md" , ""); // this line added

  const buildNewItem = (
    newItem: string,
    depth = hnItem.depth,
    preview = false
  ) =>
    `${" ".repeat(Math.round(depth / (preview ? 2 : 1)))}- ${
      preview ? newItem || "<Empty>" : makeWiki(newItem)
    }`;

default value of quick add HN should be file name.

in HierarchyNoteManipulator.ts this make more sense becasue the purpose of adjust hierarchy is to adjust the hierarchy note without going to the hierarchy note. Therefore the most common key (click and enter) should be map to command Add child instead of enter the note.
only shift + enter can enter the note.

 onChooseItem(item: HNItem, evt: MouseEvent | KeyboardEvent): void {
    if (evt instanceof KeyboardEvent && evt.key === "Delete") {
      this.deleteItem(item);
    }else if (evt instanceof KeyboardEvent && evt.key == "Enter" && evt.shiftKey ){
      const view = this.app.workspace.getActiveViewOfType(MarkdownView);
      const { editor } = view ?? {};
      if (!editor) return;
      //@ts-ignore
      view.leaf.openFile(this.file, { active: true, mode: "source" });
      editor.setCursor({ line: item.lineNo, ch: item.depth + 2 });
    } else if (evt instanceof KeyboardEvent  || evt instanceof MouseEvent) {
      let  rel : "up" | "down" | "same" ;
      if (evt instanceof MouseEvent && evt.type == "click") {
        rel = "down"
      }
      if ( evt instanceof KeyboardEvent ) {
        if ( evt.key === "Enter") rel = "down"
      }
      if ( evt instanceof KeyboardEvent && evt.shiftKey )   {
        if (evt.key === "ArrowUp") rel = "up"
        if ( evt.key === "ArrowDown" ) rel = "down"
        if (evt.key === "ArrowRight") rel = "same"
      }

      new ModifyHierItemModal(
        this.app,
        this.plugin,
        item,
        this.file,
        rel
      ).open();
      this.close();
    }
  }

also using if clause is clearer than ? : operation.

This will be resolved by your PR :)

authors: HananoshikaYomaru SkepticMystic

repo: SkepticMystic/breadcrumbs


text:
🛑 Vultr Server (Cloudflare) is down

In db02c5b, Vultr Server (Cloudflare) (https://skywt.tech) was down:

HTTP code: 403
Response time: 93 ms

Resolved: Vultr Server (Cloudflare) is back up in 7261ddf.


text:
Frame Grabber not working with RPLidar A1M1

We've got an RPLidar A1M1 device with 1.15 firmware - too old a model to upgrade, as stated by dfu_upgrader utility (working for A1M8 only).
The ultra-simple app registers incoming data properly, i.e. the messages with theta and distance values are coming instantly. So the lidar works well.
However, nothing shows in the frame_grabber window (the command buttons seem to work). Also no firmware version seems to be registered (displaying 0 all the time).
I noticed that there's an undocumented "welcome message" sent via UART after power-up or restarting the device. It consists of 56 bytes, whereas some applications report it to be 63 in RPLidar A2 (which should have the same protocol as A1, according to the application's note). Could it be an issue here?
The "welcome message" that my lidar sends is (with CR+LF as newline characters):

RP LIDAR System.
Firmware Ver 1.15, HW Ver 0
Mode: 0

I recently bought a A1M8 and just received it. I have tried all three of the apps on three different machines:

Frame grabber
Simple grabber
Ultra-Simple
and (on all three machines) they report: 'cannot bind to the specified serial port com3'
The machine beeps when I plug/unplug, so I'm pretty sure it is recognizing the device, and the Lidar spins when I plug it in (and the green light on the bottom turns on).

Maybe the little serial adapter is bad?
Otherwise, I'll probably return the whole package.

Its been a while, but as I recall this software throws an error and looks
like dead but keeps running.  After tracking down a many years old compiler
to compile it, I finally got something that generated a point cloud (with
errors).
Like most Chinese hardware the software is buggy and pretty much unusable
with no documentation or support.
Unless you want to code to bare bones through experimentation you may want
to return it.
On Tue, Mar 19, 2019 at 2:31 AM Ed Silky notifications@github.com wrote:

I recently bought a A1M8 and just received it. I have tried all three of
the apps on three different machines:

Frame grabber
Simple grabber
Ultra-Simple
and (on all three machines) they report: 'cannot bind to the specified
serial port com3'
The machine beeps when I plug/unplug, so I'm pretty sure it is
recognizing the device, and the Lidar spins when I plug it in (and the
green light on the bottom turns on).

Maybe the little serial adapter is bad?
Otherwise, I'll probably return the whole package.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Slamtec/rplidar_sdk/issues/6#issuecomment-474215272,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdOvClngKHbHnU20FvYZPkXnO8OwDe2ks5vYIRBgaJpZM4ZLJII
.

--
John Ellenberger
Groton, MA

I just recently bought an A1M8. The demo solution file throws a ton of errors for VS 2019 Community edition. Has anyone used these successfully recently?

I recently bought a A1M8 and just received it. I have tried all three of the apps on three different machines:

Frame grabber
Simple grabber
Ultra-Simple
and (on all three machines) they report: 'cannot bind to the specified serial port com3'
The machine beeps when I plug/unplug, so I'm pretty sure it is recognizing the device, and the Lidar spins when I plug it in (and the green light on the bottom turns on).

Maybe the little serial adapter is bad?
Otherwise, I'll probably return the whole package.

Hi sir
Could you solve the problem of launching Lidar?
My Lidar doesn't even know the computer port

If the computer doesnt detect the serial, then just download the manual guide at the website given.
But if the usb was already assigned to COM_ , then just run the frame grabber and mine work with 57.6 k baud rate with Windows

Hi everyone,
if you read this post, it will significate that you want to communicate with LiDAR in order to integrate it to your project. So, I thinks that my work can interest you, check it at this link : Use the LiDAR A1M8
BR,
chucknouri

Hi everyone,
if you read this post, it will significate that you want to communicate with LiDAR in order to integrate it to your project. So, I thinks that my work can interest you, check it at this link : https://github.com/NouriHuseynov/LiDAR_A1M8.git
BR,
Nouri Huseynov

Hey. I just waned to let you know that the link to your project is broken, you need to remove the %C2%A0 from the end of the link.
Sadly, I no longer have access my a RPLIDAR, or I would love to help out.

Oh sorry @Marsfan I update the link in my post, I think everything is ok now (I hope)...

@NouriHuseynov Yup. Looks good. No worries, just wanted to make sure you know about it

authors: 204maker 360sepehr Brooce Marsfan NouriHuseynov esilky fidelDenzel johnelle


text:
Roblox does not crash even without libndk-fixer.

I know this is a weird issue considering that this is a good thing. But bear with me here.
I'm trying to gather information on why Roblox crashes to analyze it and implement the fix to my own special libnb. So i tried to run roblox without libndk-fixer, and suprise, it is working as normal even after logging in and joining a game.
If anyone is able to cause roblox to crash or have a logcat of when it is crashing, please tell me.

Most likely roblox has removed the code that was causing issues in their app.


text:
[minor issue] armor draining energy from weapon

Issue Description:
Armor energy refill doesn't check energy container type.
What happens:
When the armor needs energy, it drains it from items like 'The Ender' if located in inventory (hotbar is fine).
What you expected to happen:
The armor refill code should check the type of items in your inventory before draining them.
Steps to reproduce:

enable the armor refill option in the config file
equip powered dark armor
put a charged ender sword in your inventory
take damage/jump/otherwise use energy
Your weapon now lost part of its charge.

Affected Versions (Do not use "latest"):

EnderIO: 5.0.29
EnderCore: 0.5.35
Minecraft: 1.12.2
Forge: 12.23.4.2739
SpongeForge? no
Optifine? no
Single Player and/or Server? singleplayer

There's no "energy container type" to check, but dark steel items should not allow energy to be pulled out, so that fixes this, too.

With type I meant checking whether the item extends sword/armor base classes (which should work? correct me if there is no such thing), but what you did seems the better/easier fix.

https://github.com/SleepyTrousers/EnderIO/commit/61f35ce929738e8b817244e1d81ece519d091ff9

authors: HenryLoenwind shadoxxhd tyler489

repo: SleepyTrousers/EnderIO

license: Unlicense


text:
Expand all items when expanding the accordion panels

"For the accordions, once they are expanded, I would show everything inside of them and would not have any other expandable/collapsible elements.  For example, in the General accordion, once opened, I would not require the user to click again to expand the Timeouts group - I would just have them at the same level as everything else inside the General accordion.
"

fixed in v0.0.35

repo: SlideRuleEarth/sliderule-web-client


text:
invalid game / invalid user

Thanks a lot for this script! I've tried it and it worked like a charm. I have encountered a few errors when claiming games. The most obvious one is "you must buy this game to download", which means that the sale has ended. But for other items I have encountered two types of errors (invalid game and invalid user) that didn't make much sense. A few examples:

ERROR: Failed to claim game ROGUE A.I (testing map) (url: https://polygon-sphere.itch.io/rogue-ai)
invalid game

Page is redirected to  https://polygon-sphere.itch.io/rogueai (not rogue-ai) and I could claim the game manually.

ERROR: Failed to claim game ZigZag (url: https://speedrungames.itch.io/zigzag)
invalid user

Game page is gone (even the developer's "hub" is gone, which should explain the "invalid (itch.io) user" error)

ERROR: Failed to claim game Pixel Vegetables - Buried Pack (url: https://octo-bit.itch.io/pixel-vegetables-1)
invalid user

Page URL (developer's username) has changed to https://octopyte.itch.io/pixel-vegetables-1 and is not free anymore.
Same goes for

ERROR: Failed to claim game HP BAR ASSETS PACK (url: https://vronti.itch.io/hp-bar-assets-pack)
invalid user

Link redirects to https://daions-studio.itch.io/hp-bar-assets-pack, although the game is not claimable and can only be downloaded.
Would it be possible to detect when a link is redirected (game or username change) and act accordingly, following the redirection and claiming the product? It would also be nice if that information could be sent back (relayed) to the online database so it is updated ASAP (ideally before the sale ends). Of course, that would be totally optional and it should not be active by default. However, that might be a bit overkill since I'm guessing these changes would be caught in the next database update, wouldn't they?

Before upgrading:

ERROR: Failed to claim game HP BAR ASSETS PACK (url: https://vronti.itch.io/hp-bar-assets-pack)
invalid user
ERROR: Failed to claim game top-down character Template asset-pack (url: https://vronti.itch.io/free-top-down-character-template)
invalid user
ERROR: Failed to claim game Pixel Vegetables - Buried Pack (url: https://octo-bit.itch.io/pixel-vegetables-1)
invalid user
ERROR: Failed to claim game Pixel Vegetables - Overground Pack (url: https://octo-bit.itch.io/pixel-vegetables-2)
invalid user
ERROR: Failed to claim game Pixel Vegetables - Tall Pack (url: https://octo-bit.itch.io/pixel-vegetables-3)
invalid user

After upgrading to version 1.3.3:

WARN: URL of game HP BAR ASSETS PACK has changed to https://daions-studio.itch.io/hp-bar-assets-pack
Game HP BAR ASSETS PACK is not claimable (url: https://daions-studio.itch.io/hp-bar-assets-pack)
WARN: URL of game top-down character Template asset-pack has changed to https://daions-studio.itch.io/free-top-down-character-template
WARN: URL of game Pixel Vegetables - Buried Pack has changed to https://octopyte.itch.io/pixel-vegetables-1
ERROR: Failed to claim game Pixel Vegetables - Buried Pack (url: https://octopyte.itch.io/pixel-vegetables-1)
you must buy this game to download
WARN: URL of game Pixel Vegetables - Overground Pack has changed to https://octopyte.itch.io/pixel-vegetables-2
ERROR: Failed to claim game Pixel Vegetables - Overground Pack (url: https://octopyte.itch.io/pixel-vegetables-2)
you must buy this game to download
WARN: URL of game Pixel Vegetables - Tall Pack has changed to https://octopyte.itch.io/pixel-vegetables-3
ERROR: Failed to claim game Pixel Vegetables - Tall Pack (url: https://octopyte.itch.io/pixel-vegetables-3)
you must buy this game to download

So yes, it now detects if there is a redirection and it tries to process the redirected URL. Unfortunately these particular sales have already ended but it should work from now on, I'll keep an eye on future sales to see if the WARN/redirection fix works.
Thanks a lot for checking this issue and for updating the script so quickly!

As I have wanted to describe it earlier, the script only checks the sales once, and if it's found, stores it, and never touches it again. The reason to that is simple: saving resources. There could be a job added to clean up modified sales every once in a while, but that would take a bit longer time, so that'll be a project for later. The script reports back idea is great, but not really possible with the current setup on GitHub pages, as it's only capable of sending out files. And also, if the script can send requests back, then it's a lot easier for malicious users to automate bot requests pretending to be the script, any issue I1d prefer not to deal with in a hobby project this small.

I totally agree with you, that's why I said in my first post that implementing those features (script reporting back to the server) might have been a bit overkill. As you suggest, one of the things that immediately crossed my mind is that it could be exploited to send incorrect reports back to the server, so those checks and fixes would have needed some kind of human revision or a very good implementation to avoid abusing it.
Once the issue is fixed on the user side by following the redirection and claiming (if possible) the product it should be enough of a solution and anything on top of that would be a bonus (which might introduce more headaches than benefits).
Again, thanks a lot for updating the script and fixing this (small) issue. And, of course, thank you for creating the script in the first place!


text:
🛑 My blog(CDN) is down

In defece2, My blog(CDN) (https://sbrave.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My blog(CDN) is back up in 6e8b334.

repo: SmartBrave/uptime


text:
🛑 My blog(github.io) is down

In 6ffe921, My blog(github.io) (https://smartbrave.github.io/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My blog(github.io) is back up in 3d34fb7.


text:
SecureCRT integration doesn't work

Hello.
I'm trying to change /usr/bin/eve-ng-integration script to be able to open new telnet sessions in SecureCRT tabs.
The correct shell command for this looks like this:
SecureCRT /T /telnet <host> <port>

So I've changed line 35 of the script to this:
       elif self._is_command('x-terminal-emulator'):
            return ['SecureCRT', '/T', '/telnet']

and line 90 to this:
        cmd = '{host} {port}'.format(**data)

So data for Popen on line 59 looks like this [' SecureCRT', '/T', '/telnet', '192.168.0.11 32769']
But it doesn't work though. It opens a new tab in SecureCRT with the name 192.168.0.11 32769 and Connection refused message.
But if I run it in the shell it works perfectly fine:
SecureCRT /T /telnet 192.168.0.11 32760

it opens new SecureCRT tab with R1 router from the lab.
Could you help me with this?

Duplicate of #19

@horseinthesky  thanks...! You give the missing tips for work:
you should edit "eve-ng-integration" script, in my case it is located in
/usr/bin/eve-ng-integration
elif self._is_command('x-terminal-emulator'):
return ['SecureCRT', '/T', '/telnet']
cmd = '{host}:{port}'.format(**data)
The : is necesary to work.
Thanks to you and all.

authors: Fconffesor SmartFinn horseinthesky

repo: SmartFinn/eve-ng-integration


text:
🛑 NEOCP is down

In ada3994, NEOCP (https://minorplanetcenter.net/iau/NEO/toconfirm_tabular.html) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NEOCP is back up in f506852 after 1 minute.

repo: Smithsonian/upptime


text:
🛑 NEOCP is down

In 252b07f, NEOCP (https://minorplanetcenter.net/iau/NEO/toconfirm_tabular.html) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NEOCP is back up in 3199b39 after 4 minutes.


text:
snabbnfv: Shrink pcap files to reduce repo size

Shrinks the disk size of src/ from 12.5MB to 3.7MB by removing redundancy from some test vector files. (Compare with 6.7MB for our "lib/" dependencies including LuaJIT, etc.)
The specific change is that the Snabb NFV test vectors for various packet sizes now each contain a single packet. Previously the files were larger e.g. '9000.pcap' weighed in at 2.2MB for 255 x 9000 byte packets.
I assume that these are inputs to packetblaster and that the packet will be automatically looped and so this will not change system behavior. If this is wrong or confusing then we should perhaps update packetblaster code or documentation.
These files could perhaps be eliminated entirely by using the "synth" option of packetblaster instead but I leave that as future work.
cc @eugeneia does this look okay to you?

I noticed this while doing some hacking on my space-constrained Chromebook CB3-111 laptop. Interesting that storage space for source tree is a metric that we overlooked in the beginning of the project.

We have about 1.8M, of which a little less than 1M are pcap files, in program/lwaftr.  Some 600K are images for benchmarks.  That might impede a merge, FWIW.  They are not amenable to the "packetblaster synth" treatment, as many of them are error cases and so on.

authors: lukego wingo

repo: SnabbCo/snabbswitch


text:
in car only

Describe the feature
I think there should be a true/false option in the config file to only allow the user to use the CAD/MDT command while in a car, as some servers may want officers to use the CAD only in the car, as they do in real life (IRL).
Additional Context
i am unsure of what else

please open this request in the correct repo. This isn't the tab repository.


text:
Group job ids are (now?) uuids

Hello,
Group jobids seem to be string uuids which causes an error in lsf_submit.py
https://snakemake.readthedocs.io/en/stable/_modules/snakemake/jobs.html

Could you please provide the error?

Just a reminder that grouped jobs is the only thing we are not testing currently in the job submitter, we should have tests covering it when closing this issue!

Yes, sorry I don't remember the exact error. But the gist is that casting a part of the uuid string to int fails in this bit of code:
def jobid(self) -> int:
        if self.is_group_jobtype:
            return int(self.job_properties.get("jobid", "").split("-")[0])
        return int(self.job_properties.get("jobid"))

Ok. I'll see if I can reproduce this and at the same time add some unit tests because as @leoisl says, this is about the only thing we aren't testing at the moment.

I was able to reproduce this. An example error:
Traceback (most recent call last):                                                        │❯ xl
  File "/homes/mbhall88/.config/snakemake/lsf-dev/lsf_submit.py", line 237, in <module>   │Permissions Size User     Group Date Modified Name
    lsf_submit.submit()                                                                   │drwxrwxr-x     - mbhall88 iqbal  8 Apr 12:58  lsf
  File "/homes/mbhall88/.config/snakemake/lsf-dev/lsf_submit.py", line 206, in submit     │drwxrwxr-x     - mbhall88 iqbal 14 Apr 11:46  lsf-dev
    self._remove_previous_logs()  # we could be very unlucky of having the same 64-length │mbhall88 on noah-login-03 in ~/.config/snakemake at 11:46
random string with the same jobid                                                         │❯ cd lsf
  File "/homes/mbhall88/.config/snakemake/lsf-dev/lsf_submit.py", line 190, in _remove_pre│mbhall88 on noah-login-03 in ~/.config/snakemake/lsf via 🐍 pyenv 3.8.2 at 11:46
vious_logs                                                                                │❯ ..
    OSLayer.remove_file(self.outlog)                                                      │cmbhall88 on noah-login-03 in ~/.config/snakemake at 11:46
  File "/homes/mbhall88/.config/snakemake/lsf-dev/lsf_submit.py", line 142, in outlog     │❯ cd lsf-dev/
    jobid=self.jobid, random_string=self.random_string                                    │mbhall88 on noah-login-03 in ~/.config/snakemake/lsf-dev via 🐍 pyenv 3.8.2 at 11:46
  File "/homes/mbhall88/.config/snakemake/lsf-dev/lsf_submit.py", line 131, in jobid      │❯ xl
    return int(self.job_properties.get("jobid", "").split("-")[0])                        │Permissions Size User     Group Date Modified Name
ValueError: invalid literal for int() with base 10: '7b8d34a2'

As @funnell mentioned, it seems like snakemake are now using uuids for their group job IDs.

Ok, #23 has a fix. Could either/both of you take a look and see if there are any problems with it before I merge?

authors: funnell leoisl mbhall88

repo: Snakemake-Profiles/snakemake-lsf


text:
Feature Request: Filament runout detection for Octoprint?

Is there any way to enable support for filament runout detection while printing via Octoprint?

Sorry I don't familiar with filament runout of OctoPrint. If someone can issue a PR or knowing how to, very appreciated.

@parachvte this is not something I know much about, but in a discussion on the FB group, someone seemed to know a bit about it
To quote:

Jeffrey Edgett
The firmware supports the host action commands, but they are not yet enabled.
Jade Wu, do you mind bringing this up with the devs? They just need to uncomment the define HOST_ACTION_COMMANDS line in Configuration_adv.h to allow the filament runout sensor, etc. to work with OctoPrint.

To be clear, this change would need to be made in the printers firmware — not the Cura plugin.
Is there a repo yet for the firmware?

To be clear, this change would need to be made in the printers firmware — not the Cura plugin.
Is there a repo yet for the firmware?

No there is not. @parachvte has said it is OK to post these issues here for now.
I made a request for the source code, and was told that they will release it, but are "working to make it more stable for public use", which is technically a violationof the GPL license, but I'll cut them a bit of slack for now.

authors: evilC jledgett parachvte


text:
laravel 10 supported

laravel 10 supported

Upgraded for Laravel 10 supported.

Upgraded for Laravel 10 supported.

authors: SneherAdor bluevytech

repo: SneherAdor/laravel-hooks


text:
adding additional options to avoid errors when reading options from c…

…onfig file
Pre-review checklist

[ ] I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
[ ] I've added new automated tests to verify correctness of my new code.
[ x] I've confirmed that my changes are up-to-date with the target branch.
[ x] I've described my changes in the section below.

Changes description
Currently when running the snow CLI with some snowsql configurations with commands like
snow streamlit list I get errors when options like warehouse / shcema / role / db are set

Hello, I think I don't understand what and how this PR fixes.
The changes are only in ConnectionParams class in snowcli/connection_params.py. This class is an unused leftover from the merge of snowpark containers commands into the main branch (1295af519d31cecfaf9a703d0ac4a0bd939a70f0). I've just removed it in https://github.com/Snowflake-Labs/snowcli/pull/250.
Additionally, not all github checks have passed and there is no test added to verify that the solution really works.
If you see any errors, can you paste what command you're executing and what is the CLI's output (please include --debug option, for example snow --debug streamlit list).

Ok. So If I update I should not see this class anymore. The reason I posted the change is that when using containers / streamlits and reading my settings from the .snowsql/config file I was getting exceptions because some properties were not recognized. Maybe I was just running an old version. I will update and re-check and you can dis-regard this PR then.

authors: sfc-gh-mrojas sfc-gh-pjob

repo: Snowflake-Labs/snowcli


text:
Stage - providing url and copy_options causes resource to update

I am using snowflake_stage resource and have observed the following behavior.
While providing the following parameters:

url
copy_options

in the resource each time I run terraform apply without modifying those attributes terraform updates the resource in place with the following message:
  ~ resource "snowflake_stage" "stages" {
        comment             = "My comment"
      + copy_options        = "ON_ERROR = ABORT_STATEMENT ENFORCE_LENGTH = TRUE"
        database            = "MY_DATABASE"
        id                  = "MY_DATABASE|MY_SCHEMA|MY_STAGE"
        name                = "MY_STAGE"
        schema              = "MY_SCHEMA"
        storage_integration = "MY_STORAGE_INTEGRATION"
      + url                 = "s3://my-bucket/"

which indicates that the provided does not pick those attributes from Snowflake.

I am seeing this as well, on copy_options. Using the latest 0.32.0 version.

We are closing this issue as part of a cleanup described in announcement. If you believe that the issue is still valid in v0.89.0, please open a new ticket.

authors: armaciej sfc-gh-asawicki zanthorn


text:
Links with a number as subdomain don't work

http://a1.example.com works but http://1.example.com doesn't.

Thanks for reporting this, we can definitely issue a fix soon.

authors: kevinrenskers nfrasser

repo: SoapBox/linkifyjs


text:
Further FreeBSD CI refinements

Hi, I've learned Cirrus CI and made further refinements on FreeBSD CI.
Cirrus CI also has matrix to define multiple build conditions, so I use it. FreeBSD has multiple SSL libraries, so perform build test for each.

base system OpenSSL
ports OpenSSL
ports OpenSSL 1.1.1
ports LibreSSL
ports LibreSSL development version

And also perform CI test with supported FreeBSD version 11 and 12.
Also, separate build procedure into prepare, configure, build, and test stage.

Hmm, is seems freebsd_instance cannot be omitted.
https://cirrus-ci.com/build/5710313034350592
https://github.com/metalefty/SoftEtherVPN/commit/36c032fe687f30d1f8338b8073cb1f646c490744

freebsd_instance should not be omited. however, I'm not sure what is better image  or image_family ?
https://github.com/chipitsine/haproxy/blob/master/.cirrus.yml
documentation says image_family

I guess image is for the specific image like freebsd-12-1-release-amd64. This always points the same image. On the other hand, image_family means alias for images. freebsd-12-1-snap refers the latest snapshot of 12-STABLE branch. If the new snapshot created, it refers the newer image.

I think we can stay with whichever you think is good

Either image or image_family

This worked for me. Pushed. https://github.com/metalefty/SoftEtherVPN/runs/361923926

authors: chipitsine metalefty

repo: SoftEtherVPN/SoftEtherVPN


text:
Improving the compliance of Virtual Network Adapters with the local address bit of the MAC address rule.

Improving the compliance of Virtual Network Adapters with the local address bit of the MAC address rule.

When installing a new device driver of the Virtual Network Driver card, we changed the initial random MAC address from 00-AC-xx-xx-xx-xx to 5E-xx-xx-xx-xx-xx. This realizes the compliance with the local address bit of the MAC address rule.

Your great patch is much appreciated. We are considering to apply your patch into the SoftEther VPN main tree.
SoftEther VPN Patch Acceptance Policy:
http://www.softether.org/5-download/src/9.patch
You have two options which are described on the above policy.
Could you please choose either option 1 or 2, and specify it clearly on the reply?

1

@davidebeatrici Thank you. I fixed the typo.

@dnobori You're welcome.

maybe I do not understand something, but why this code still not merged? because it was not tested?

authors: Dreyk007 davidebeatrici dnobori


text:
Boot timeout - Deploy to Heroku

I'm trying to deploy the admin app to Heroku, I keep getting this error. I managed to increase this boot time as far as 180 seconds and the outcome was the same.
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

Had
const port = 8000 || process.env.PORT
Instead of const port = process.env.PORT || 8000

repo: SoftwareBrothers/admin-bro-expressjs


text:
[Bug]: Adding Link feature doesn't work in Rich Text Input

Contact Details
sachith.16@cse.mrt.ac.lk
What happened?
In other rich text editors we can add links like this --> Google
but in adminjs rich text editor when I click the 'add link' button nothing happens. seems like it's broken.
Bug prevalence
Whenever I try to add a link rich text
AdminJS dependencies version
"@adminjs/design-system": "^3.1.8",
    "@adminjs/express": "^5.1.0",
    "@adminjs/nestjs": "^5.1.1",
    "@adminjs/prisma": "^3.0.1",
    "@adminjs/upload": "^3.0.1",

What browsers do you see the problem on?
Firefox, Chrome, Safari, Microsoft Edge
Relevant log output
No response
Relevant code that's giving you issues
No response

We currently use TipTap for Rich Text Editor. TipTap only provides API for building the editor, while the UI is something we have to do on our end that's why it's currently so basic since we can't focus all our resources on building and maintaining the editor UI. We should consider switching to i. e.: https://www.npmjs.com/package/@mantine/tiptap as long as it won't increase the bundle size by much.
You can also create your own custom component for Rich Text Editor.

This bug has been present for at least a year. I updated from version 6.7.2 to 7.5.2 just hoping that this bug was fixed, but was very surprised that it was not. This is a very important feature for CMS. Please fix this.

authors: GeekDenCode dziraf sachith16

repo: SoftwareBrothers/adminjs


text:
fix onCodeLineClicked line number;

changed vPlaceholder.visibility to vPlaceholder.alpha to fix animation
blinking when android:animateLayoutChanges is true and we has several
CodeView in the Layout;

Interesting case, I'll fix it in 1.1.1

repo: Softwee/codeview-android


text:
Add cost metric

Add cost metric(s) to the metrics subpackage. Can focus first on the "simple" case where a user provides a cost per error value (e.g. $/MW), either a single value or a (potentiall) time-series corresponding to the forecasts/observations.

Let's let this issue stand for the simple case here in core, but will link to #126 and some related discussion in the api repo: https://github.com/SolarArbiter/solarforecastarbiter-api/issues/157

authors: dplarson wholmgren

repo: SolarArbiter/solarforecastarbiter-core


text:
Laravel Linter Shift

This pull request contains code changes and comments for code detected as incompatible or unrecommended by the Laravel Linter. You should review each comment and commit changes to the shift-3315 branch before merging.
If there were items you feel could have been detected, please send your feedback to shift@laravelshift.com or via Twitter.

⚠ Your app/Console/Kernel.php differs from the Laravel default. You should compare your app/Console/Kernel.php and with the latest version and make any updates.

❌ Support for later, send, and queue on the Mail facade has changed in Laravel 5.4. You should update your project to use Mailables.
Shift found potential uses of these methods in:

[ ] app/Console/Commands/TestSmtpCredentials.php
[ ] app/Http/Controllers/AuthenticationController.php

⚠ Your app/Exceptions/Handler.php differs from the Laravel default. You should compare your app/Exceptions/Handler.php and with the latest version and make any updates.

❌ The following configuration files differ from the 5.4 defaults. If you are modifying configuration values directly, you should consider using an environment variable instead. You should compare your configuration files against the Laravel 5.4 configuration files and make any updates.

[ ] config/app.php
[ ] config/cache.php
[ ] config/database.php
[ ] config/session.php

❌ The container's make method no longer accepts a second parameter in Laravel 5.4. This typically indicates a code smell and you should construct the object in another way.
Found potential uses of the second parameter in:

[ ] app/Http/Controllers/BillingController.php
[ ] app/Http/Controllers/ContractController.php


text:
[FEATURE] Include only issues/prs on certain (allowlisted) projects

Is your feature request related to a problem? Please describe.
We have a sort-of monorepo in our organisation. A few teams manage their issues through it, and attach these to cards on their team's projects. We'd like to be able to introduce a stale type workflow as opt in across teams. With the current featureset in stale-corporation/stale it would have to be all or nothing across the repo.
Describe the solution you'd like
When using sonia-corporation/stable, there would be a configuration option to specify an allowlist of project to consider, something like:

issue-include-only-projects: [none, team-a]

and then only issues on either no project, or team a's board. Team b's would not be staled.
Would this kind of feature be acceptable?

@iainlane maybe this other opened ticket is what you are looking for.
With such feature, you would be able to use the stale action only WHEN a specific card is associated to either the issue or the pull request, based on your configuration.
Note that you could have also multiple cron-jobs configured, which would use different configurations for different project cards.
If you confirm that this is what you need, I could prioritize https://github.com/Sonia-corporation/stale/issues/312 and expect a delivery within the current week.

@C0ZEN sounds great, yes - feel free to mark this one as a dupe. Multiple cronjobs would work well I think.
The only thing we might have to worry about is the number of API requests maybe? Perhaps we could run them sequentially somehow and share state between runs..? Not sure if that'll be a real issue.

Just to check, by project card (per #312), we would be able to filter on project, right? The URL is something like https://github.com/orgs/ORG/projects/NNNN and I was imagining putting NNNN into the stale.yml
:-)

Just to check, by project card (per #312), we would be able to filter on project, right? The URL is something like github.com/orgs/ORG/projects/NNNN and I was imagining putting NNNN into the stale.yml
:-)

The input is called “project-card” because GitHub is using this wording to refer to a project which is linked to an item in its API.
And indeed, in that case, the name of the project is used to find whether the associated projects should be processed or not, and this correct to assume NNNN is your example.
Anyhow, once the feature is released, do not hesitate to use the dry-run option to play it safe on the first run, making sure that it's working, based on the logs, on your expectations.

Note: duplicated of #312.

@iainlane you can test the new option.
See the new input and an example.

@iainlane you can test the new option. See the new input and an example.

I will do next week!

repo: Sonia-corporation/stale


text:
Marking other HTML elements as "non-drop targets"?

First off, thanks for this awesome library!
I'm having an issue with autoscroll. Because I have a fixed toolbar at the top of my page, when a user drags a sortable item up to the top of the page, it won't scroll because (I assume) it thinks the user might want to drop the item on the toolbar.
Is there a way for me to mark HTML elements as non-drop targets, so SortableJS ignores these? The only hack I can think of (not ideal) is to detect when an item is dragging, and then globally set all fixed elements with pointer-events: none.

https://github.com/SortableJS/Sortable/issues/1582

repo: SortableJS/Sortable


text:
500 when trying to post decision

I have posted some with success, but this one failed:
code: 500
message: "There was an error processing your request. It has been logged (ID b80e4c4892dc63bf)."

Had another one.
This was the payLoad:
{
  "name": {
    "scientificName": "Skeletonema test"
  },
  "lifezones": [

  ],
  "fossil": false,
  "recent": false,
  "mode": "update",
  "subjectDatasetKey": "2009",
  "datasetKey": 3,
  "subject": {
    "id": "120334",
    "name": "Skeletonema sp.",
    "rank": "species"
  }
}

Could it be the quoted subjectDatasetKey ?
"subjectDatasetKey": "2009",

buah, its elastic being on read only again :)
org.col.es.EsException: org.elasticsearch.client.ResponseException: method [POST], host [http://db.col.plus:9200], URI [dev-nu/_delete_by_query], status line [HTTP/1.1 403 Forbidden]
{"took":11,"timed_out":false,"total":1,"deleted":0,"batches":1,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[{"index":"dev-nu","type":"_doc","id":"wAeBqm0B8_YkYOd5hwcc","cause":{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"},"status":403}]}

if you can remove the quotes from subjectDatasetKey. I turn on ES again and stop imports

the admin UI button for ES gives me an error:
Network Error
HTTP method: PUT

Body:
{"index.blocks.read_only_allow_delete":null}

https://github.com/Sp2000/colplus-backend/issues/498

I still get the 500, but actually the decisions are there when updating the table. Seems to be only the service that fails

its the ES part that fails, so they are in postgres but not in ES. We are really short on disk space right now, I might have to wipe...

authors: mdoering thomasstjerne


text:
Add Installer

Checklist (pls dont merge yet):

[x] Make executable
[x] Download file
[ ] Extract file (sometimes it fails)
[x] Clean up
[ ] Handle exceptions
[ ] Add logger

:< i already made a installer :<

repo: SpaceWarpDev/SpaceWarp


text:
DwC occurrence importer: multiple matches with Root parent fails

On dataset which only have scientificName, the importer uses the project root as parent. In the event of two or more protonyms being matched, the importer resolves to use the calculated parent (Root), which has no OTU and results in a confusing message:

Related commit: https://github.com/SpeciesFileGroup/taxonworks/commit/d1ecc63ab529ea43e3eb2a9857f1c238ace62a60
ADDITIONAL TESTING: Actually Root may have OTU, tried navigating into browse otu and it was created automatically, then retried import and "worked" (CO was determined as Root).
However not sure this ambiguity should be resolved silently, but starting to make it fail might break AntWeb usage.

Perhaps in cases where the project root name is selected we should consider creating an OTU with name attribute equal to scientificName? (At least I think it is better than just silently using Root)
In other cases of parents lower than Root, maybe we should consider doing the same thing, if parent rank is higher than genus?

project root name is selected we should consider creating an OTU with name attribute equal to scientificName? (At least I think it is better than just silently using Root)

At minimum this is a good option to make available.  See also other tests coming re otu#name formation.

(Funny I just got this Errored "{""otu""=>[""can't be blank""]} error with an import just now, and it took a while to work out how to fix it!)

authors: LocoDelAssembly camwebb mjy

repo: SpeciesFileGroup/taxonworks


text:
user saved queries

Description

This PR gives users the ability to save cypher queries to a list that can be found in the collapsible section underneath the cypher editor.
Two new components have been added to the shared library-- PrebuiltSearchList and SaveQueryInput. PrebuiltSearchList extracts the logic that was used to render the existing AD and Azure prebuilt queries into it's own component.  This makes it easy to extend with a PersonalSearchList component, also in the shared folder.
The existing CommonSearches and CypherSearch components have small cleanups.
Three new endpoints have been added to the shared js-client-library to delete, create, and read user's saved queries.
Motivation and Context

How Has This Been Tested?

The best way to test is through the UI.  If you navigate to the cypher editor, you should be able to read, create, and delete cypher queries.  A confirmation dialog pops up if a user tries to delete a query.
default empty list:

after saving a couple queries:

confirmation dialog when a user wants to delete something:

Screenshots (if appropriate):
Types of changes

[ ] Chore (a change that does not modify the application functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] Documentation updates are needed, and have been made accordingly.
[ ] I have added and/or updated tests to cover my changes.
[x] All new and existing tests passed.
[ ] My changes include a database migration.

Once conflicts are resolved, I think we can do a final review of the code and get this in

authors: brandonshearin superlinkx

repo: SpecterOps/BloodHound


text:
Explain functionality for matching process

When there is no match, the response body will contain useful debugging information such as what matcher came the closest and which specific criteria it did not match on.
The problem is that we can also get the false positive scenario, where we are expecting a particular match to take place but a different one does instead.
We propose an explain functionality along the lines of hoverctl explain. This will take the last request made to Hoverfly, perform matching, and then output which criteria matched and what the score was for each matcher.

This is a documentation issue

authors: JohnFDavenport mogronalol

repo: SpectoLabs/hoverfly


text:
Request matchers : Xpath not matching

I have a sample xml file, for which I am trying to match request body with xpathMatch.  I have validated the xpath in an online tool "https://www.freeformatter.com/xpath-tester.html" and I was able to get a correct match . However when I put the same xpath in hovefly it's throwing an error.
"There was an error when matching
Got error: Could not find a match for request, create or record a valid matcher first! "
Please find attached the sample xml & xpath used.
Sample_xml_xpath.txt
let me know if I am missing any thing.

Any update on this issue? I'm facing the same problem, through an online tool like https://www.freeformatter.com/xpath-tester.html the xpath query is returning the expected result, but Hoverfly can not make the match.

The problem is in the underlying XML library we use as @tommysitu said on 4 Jan. We've looked to see if there are any better alternatives and haven't found any yet. We have been looking to see if there could be alternatives. Another language may have better implementation of xpath than go, so we're looking to see if we could introduce that somehow. I'm not saying it would help in every use-case though.

First of all, thanks for the quick reply, really appreciated!
What I'm looking for is a solution that is easy to read and maintain, for SOAP requests xpath looks promising, regex not so much. I'm from the .NET side of the universe ;), which has xpath support in the System.Xml namespace.
Example of what I would like to do:
Request Body:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <soap:Body>
            <someRequest xmlns="http://www.somenamespace.com">
                  <unit>
                           <someidentifier>123</someidentifier
                           <someotheridentifier>ABC</someotheridentifier>
                           <somedate>2018-09-21</somedate>
                           <someint>7</someint>
                   </unit>
             </someRequest>
      </soap:Body>
</soap:Envelope>

I would like to be able to make matches like
//someRequest/unit/someidentifier/text()=123 | //someRequest/unit/someotheridentifier/text()=abc

Any update on this? The matcher starts working as soon as you add the xml declaration <?xml version="1.0" encoding="UTF-8"?> to your request body... Is there any way around this for now?

Hi Tommy/Benjih, Pls confirm when can we expect fix for this issue ? Thanks, Senthil.

Hoverfly is dependent, as is a number of other tools on the underlying golang xml package. There are a number of bugs open for Namespace issues see golang/go issue #7113 and some chance of a fix.
There are several projects that use cgo to wrap libxml. This is something we have considered but we think it could be very annoying to use as it would require libxml installed on the Hoverfly host machine.
Ideally, we would like to work with someone in the Hoverfly community to help us with this.

Could the libxml alternative be implemented? Would it introduce breaking changes if removed later when the Go community fixed #7113?
I am currently developing a proof-of-concept for our company, and this seriously impacted the ability of Hoverfly to virtualize SOAP services, which constitutes about 50% of our use case.

@Rahtgaz There seems to be little impetus to fix that issue from the Go Community. Maybe that reflects the interests of the developer’s employers and sponsors as most Go service development is focussed on API/RPC services according to this survey. Hoverfly clearly has a potential role in SOAP services as well so there is a bit of a gap to be bridged.
I’ve used libxml in the past with Python and although it is one of the best XML implementations in any language it was a challenge to integrate and distribute. To add it to the existing Hoverfly distribution would increase this project’s support overheads as Hoverfly is cross-platform. I have some ideas but there's no point in us doing anything unless we can make it a viable project. We need to gauge interest and need. Contact me please to discuss. (See my profile page.).

@tommysitu you are a rock star! I would never have imagined such a quick turnaround on this one. I'll give the change a try.

authors: Eynorey JohnFDavenport Rahtgaz benjih brijeshps carsnbikes josdeweger v1bh0r


text:
Mod security installation on windows not successful

Hi
I installed SP1 as per your recommendations. Not sure where the problem is but cannot get it to work.
This is what I have done so far
1.Installed VC++ 2008, 2010 SP1, 2012 and 2013 64 bit.
2.Downloaded ModSecurityIIS_2.9.0-64b.msi for 64 bit Windows
3.In the installation of the software choose 64 bit option from the feature list after agreeing to licence terms.
4.Completed installation successfully and restarted IIS
5.The files were downloaded to 'Drive:\Program Files\ModSecurity IIS'
6.Located 'modsecurity_iis.conf' under '\Program Files\ModSecurity IIS' path and used this to do the necessary web config entry for the web site as shown in readme.txt
7.Switched on the SecRuleEngine by setting it as 'On' in modsecurity.conf located at the same path as 'modsecurity_iis.conf' file.
8.Performed IIS reset.
9.Included a test rule SecRule ARGS "../" "t:normalisePathWin,id:99999,severity:4,msg:'Drive 10.Access'" in the modsecurity.conf file.
11. Attempted to browse the URL of the web site by passing invalid query string as mentioned in point 9.
12. Web site does not throw access denied page
Event logs under application logs 'The description for Event ID 1 from source ModSecurity cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.' This error is logged just after the installation is complete and continues logging it for 4 -5 time there after.
Is there something I am missing or have not done correctly for it to work. I can see that in the temp folder under IIS for application pool, the module being loaded and every time I try to use the web site an entry being made in windows log file. I am sure the module is not the issue, is it the supporting reference files or my configurations that is the problem? Please advice.
Thanks
Gireesha

Hi @GireeshaRS,
Did you had a chance to look into the IIS Troubleshooting? it is available here:
https://github.com/SpiderLabs/ModSecurity/wiki/IIS-Troubleshooting

Hi
I made some progress on the issue by uninstalling all pre-requites and attempting to re install. This time around, it looks the installation went through well. The mod security module seems to have been configured and working. But I have the following two issues

The module is loaded for all the websites in my IIS and my application log is full of entries for the websites I do not want the detection. I have made an entry in the config files for the websites that I do not want mod security to be implemented by adding the remove module tag. This has still not helped.

The windows logs that are generated for breach of rule does provide description of the error but it still says some files are corrupted. Please see the screen shot attached,

The web site using mod security filters the response object which is affecting the display and action during page navigation. I see an error as shown in screen shot above which says header is not accepted. I may have to go through the rules config and edit it to let it through, but that is second part of the problem which I am currently working on.
Please could you advice on the above.
Thanks
Gireesha

Did you fix it? if so, can you explain how you did it?

I am also getting the same "source ModSecurity cannot be found" message.  Anyone have any suggestions?

Hi @dmz006,
This is just an warning. That is actually the ModSecurity letting you know something about a given request. The "windows description" of the event can be ignored. Look at the content...

I know this is an old issue, but for others that want to get rid of the annoying "The description for Event ID 1 from source ModSecurity cannot be found" text, you can run the following command as an administrator.
eventcreate /ID 1 /L APPLICATION /T INFORMATION  /SO ModSecurity /D "Test entry"
This creates an event source in the registry at HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\ModSecurity.

I know this is an old issue, but for others that want to get rid of the annoying "The description for Event ID 1 from source ModSecurity cannot be found" text, you can run the following command as an administrator.
eventcreate /ID 1 /L APPLICATION /T INFORMATION  /SO ModSecurity /D "Test entry"
This creates an event source in the registry at HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\ModSecurity.

repo: SpiderLabs/ModSecurity


text:
Revise branding to match new style

SpiderOak has new branding, please revise the branding on mobile clients to match.

This should be complete for SpiderOak "Orange" -> SpiderOakONE.

authors: devgeeks merickson

repo: SpiderOak/SpiderOakMobileClient


text:
Bring back the multiple extensions formats for Configuration

This changeset migrates to the fresh modelCompiler, which in turn runs on top of ProtoData 0.2.5.1.
As far as the 0.2.5.1. ProtoData is now able to process the repeated fields in Protobuf extensions, this PR also brings back the multiple Configuration formats. Previously, this feature was stripped out in #69 to allow the compilation pass successfully.
This PR depends on the latest mc-java changeset.
The version of ProtoData modules is set to 0.2.6.

@dmdashenkov PTAL.

repo: SpineEventEngine/ProtoData


text:
Reorganize spock.utils

spock.utils is made up by lots of collected code from many independent use cases:

plugin loading, event registration, settings
object serialization
buffer stuff
vectors
collision boxes

Some stuff is not even used anymore. Definitely needs to be cleaned up, probably by splitting into several spock.utils.* and/or moving classes/methods closer to where they are actually used.

"lots of collected code from many independent use cases"
Isn't that the definition of a utility file? It's stuff that doesn't have a home elsewhere that lots of unrelated code uses. BoundBuffer is used everywhere in otherwise completely unrelated modules, it doesn't make sense to tie toghether things like networking and chunk parsing over a single 40 line class. Same for the Info class, which probably shouldn't exist at all, but since it does it makes most sense to have it live in util.
ByteToHex and mapshort2id are debugging functions that have proven valuable enough that I get tired of dropping them into random places when I want to use them so they get to live in util.
Plugin related stuff could maybe be moved to somewhere in spock/plugins because they're inherently tied to spock's plugin loader. When it was just pl_announce, and pl_announce was still a completely optional helper decorator, it didn't make sense to place it in say, the client.py file.
Spock is not a physics framework, vectors and collision boxes are useful though and used by more than just the builtin physics plugin. I don't really see where else they could go

authors: Gjum nickelpro

repo: SpockBotMC/SpockBot


text:
TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/72795