text:
special characters must be escaped

My theme has an area to add additional js code. When I add the code it generates the error "special characters must be escaped" as there are no opening and closing tags. It's showing 29 errors. What am I missing? Keep in mind, I am a novice.

Nevermind. Close this out.

repo: scottjehl/picturefill

license: mit


text:
use async_forward_entry_setups

see.
https://developers.home-assistant.io/blog/2022/07/08/config_entry_forwards/

Thanks for all your help.

source: gharchive/pull-request

authors: nao-pon scottyphillips

license: MIT

license_type: permissive

license_source: github-api


text:
Add readme.md to state dependencies

I was getting this error:
https://github.com/mhs/scout-app/issues/19
I think it will be fixed once I have Java installed, like I do on my other machines.
The readme should state the four things that need to be installed on the machine first.

Java
Ruby
gem install sass
gem install compass

Issue resolved. Closing this ticket. Scout-App 2 no longer relies on Adobe Air, Java, or Ruby.

Scout-App 2 (2016)

source: gharchive/issue

authors: TheJaredWilcurt thewinterwind

repo: scout-app/scout-app


text:
item loader translation

機能概要チケット
#6
特にレビューをお願いしたい箇所
今回はそれほど詰まったところは無かったです
レビュー優先度

[ ] 最速でお願いしたい
[ ] なるべく早く(なるはや)
[x] お時間あるときでOK

🙇 🙇

repo: scouty-inc/scrapy


text:
The addition/subtraction should be 1 and not 100

https://github.com/scrapinghub/dateparser/blob/66d5470336f42303aa563d343c50e12a0cbe8f4c/dateparser/parser.py#L402

I believe the current implementation is correct. If the year is 18, and 2018 is in the past, 18 should be interpreted as 2118 when asking for a future date.

authors: Gallaecio trideeprath

repo: scrapinghub/dateparser

license_source: bigquery


text:
Exposing headers between splash and destination on request.* endpoints

In the case of a proxied connection (and maybe not as well), there are headers that are often required for items such as Rate Limits, acceptability for iFraming, etc, legal compliance, etc.
Through the request.* url paths, I do not see any way to reach these (particularly the request.json method).
Am I missing something? Is this difficult to do?

Hey @wflanagan,
Do you want to access headers set by a proxy, or to set headers for the proxy?
In case of /render.json you can access response headers by setting 'har' argument to 1. It will provide 'har' key in the result, with response data in http://www.softwareishard.com/blog/har-12-spec/ format; it includes all response headers.
For setting headers there is headers argument.
You can also do all of this in /execute endpoint; it provides a bit more flexibility - e.g. you can use splash:on_response_headers or splash:on_response to store response headers without returning all other data HAR contains.

I want the header RESPONSES between Splash and the final destination.  Not
the ones between my client and Splash.
Without these headers, you don’t know the content type that is returned to
you. For example, if you query through the render.json, you get a content
type of application/json, naturally, But, if you have a unique content type
that it’s actually retrieving, you have no way to know without poking the
content to see what it looks like (which is how I’m getting around this
now).
Yes, I’m sure if I wrote a Lua script and passed that.. I can do all sorts
of things. But, my application logic just needs the basic body and header
information… at some point, i’ll write some Lua scripts to further
optimize.  But, in terms of drop in.. this is what i’m looking for.
I already set the outbound headers.
WF
On Wed, Jan 25, 2017 at 9:22 AM, Mikhail Korobov notifications@github.com
wrote:

Hey @wflanagan https://github.com/wflanagan,
Do you want to access headers set by a proxy, or to set headers for the
proxy?
In case of /render.json you can access response headers by setting 'har'
http://splash.readthedocs.io/en/stable/api.html#arg-har argument to 1.
It will provide 'har' key in the result, with response data in
http://www.softwareishard.com/blog/har-12-spec/ format; it includes all
response headers.
For setting headers there is headers
http://splash.readthedocs.io/en/stable/api.html#arg-headers argument.
You can also do all of this in /execute endpoint; it provides a bit more
flexibility - e.g. you can use splash:on_response_headers or
splash:on_response to store response headers without returning all other
data HAR contains.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/scrapinghub/splash/issues/562#issuecomment-275119872,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQE5eIWTk0KCzp4jnSEoE5E93KI1QJcks5rV1qbgaJpZM4LtgD_
.

But, my application logic just needs the basic body and header information

har=1 should give this information for render.json endpoint. If you need bodies of all responses (not only headers and HTTP status codes) you can pass response_body=1 argument.

This is correct.. and this works. I'll close this ticket.

authors: kmike wflanagan

repo: scrapinghub/splash


text:
[SERF-2181] Update Node version in pipeline

Description
This addresses the Node deprecated warnings in CI actions.
Testing considerations
Make sure there is no Node deprecation error in the pipeline
Checklist

[x] Prefixed the PR title with the JIRA ticket code
[x] Performed simple, atomic commits with good commit messages
[x] Verified that the commit history is linear and commits are squashed as necessary
[x] Thoroughly tested the changes in development and/or staging
[x] Updated the README.md as necessary

Related links

SERF-2181

Created by Sourcegraph batch change laynax/test-serf-2181.

Close as it was a test PR.

repo: scribd/terraform-aws-app-secrets


text:
Add sqlite-vss wrapper

I'm thinking of using this project, but I'd like to use sqlite instead of Qdrant, would you accept such a PR?

@psethwick sorry I am just replying, been busy with other stuff. Go for it if you're still interested. Excited to see what you come up with!

authors: psethwick santiagomed

repo: scrippt-tech/orca


text:
🛑 URL Shortener is down

In ec84a64, URL Shortener (https://shortener.atanas.info) was down:

HTTP code: 0
Response time: 0 ms

Resolved: URL Shortener is back up in 8145b82.

repo: scriptex/uptime


text:
Unable to install extension

Hi,
I have tried to install the extension multiple times but hitting this issue - it is unable to locate the META-INF/bundle.xml under the zip.  I verified manually the file and folder exist.
bundle.xml -

<u:update id="keepalive">
<u:name>keepalive</u:name>
<u:version>1.3.1</u:version>
<u:author>Stefano Cristalli</u:author>
<u:author-url>http://scristalli.altervista.org</u:author-url>
<u:description>keepalive extension for Oracle SQL Developer 4+.</u:description>
</u:update>

SQL Developer version - 18.3

Just an update after giving direct path  to META-INF under zip , I am able to load the extension but unable to see any extension  icon after restart

Please refer to issue #31.

thanks it worked.

authors: JitApex scristalli

repo: scristalli/sql-developer-keepalive


text:
fix(test): chain monitor server endpoint conflict

Purpose or design rationale of this PR
Currently, mock chain monitor server's is constant, will conflict when multiple CIs are running in the meantime.
PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:

[x] fix: A bug fix

Deployment tag versioning
Has tag in common/version.go been updated or have you added bump-version label to this PR?

[x] No, this PR doesn't involve a new deployment, git tag, docker image tag

Breaking change label
Does this PR have the breaking-change label?

[x] No, this PR is not a breaking change

I don't think we need to bump version for this PR?

I don't think we need to bump version for this PR?

Yeah. Because i modify too much today. I want build a new version rollup to deploy to sepolia.

I don't think we need to bump version for this PR?

Yeah, btw, I think this PR does not affect any binaries, so we don't need to bump version in this PR.

I don't think we need to bump version for this PR?

Yeah, btw, I think this PR does not affect any binaries, so we don't need to bump version in this PR.

I bump the version. Because I don't want submit a bump version pr. ahh

authors: HAOYUatHZ colinlyguo georgehao

repo: scroll-tech/scroll


text:
Misspelling of "Cascade"

'NERDTreeCasadeOpenSingleChildDir' is misspelled, the word "Cascade" is misspelled as "Casade".
Certainly, the code should keep supporting the incorrect spelling, as users might have it in their .vimrc.

This has been fixed already. Should be closed.

authors: denilsonsa juanibiapina

repo: scrooloose/nerdtree

license: WTFPL


text:
(feat): allow gpu writing

[x] Closes #1549 (so part of #1480)
[x] Tests added
[ ] Release note added (or unnecessary)

I'm not sure what's up with codecov.  I believe those lines are being hit and when I look at the github GPU job, it says we have reached an upload limit:
https://github.com/scverse/anndata/actions/runs/9763035863/job/26947927670?pr=1550

Have you looked into fixing the codecov issue?

https://scverse.zulipchat.com/#narrow/stream/316218-repo-management/topic/codecov.20limit/near/448627892

repo: scverse/anndata


text:
docs: Issue in page Getting Started with CarePet: A sample IoT App

I would like to report an issue in page https://iot.scylladb.com/master/getting-started
Problem
The instructions on this page create a go application, while the title of the page (and the subpages) indicate it will be a generic getting started page.
Suggest a fix
This page should be generic. Application-specific instructions should be on the next pages.
Another option is to say this is generic but show an example with go

Fixed and merged!

repo: scylladb/care-pet


text:
CQL Tracing

Description
This PR adds support for CQL tracing.
Tracing can be used like this:
// Create a simple query and enable tracing for it
let mut query: Query = Query::new("SELECT peer from system.peers".to_string());
query.set_tracing(true);

// QueryResult will contain a tracing_id which can be used to query tracing information
let query_result: QueryResult = session.query(query.clone(), &[]).await?;
let query_tracing_id: Uuid = query_result
    .tracing_id
    .ok_or_else(|| anyhow!("Tracing id is None!"))?;

// Get tracing information for this query and print it
let tracing_info: TracingInfo = session.get_tracing_info(&query_tracing_id).await?;
println!("Query tracing info: {:#?}\n", tracing_info);

Queries that support tracing are:

Session::query()
Session::prepare()
Session::execute()
Session::batch()
Session::query_iter()
Session::execute_iter()

In the specification it's written that only QUERY, PREPARE and EXECUTE queries support tracing so Session::batch() doesn't support it.
Notes
This PR depends on #180 and #187, I will rebase once they get merged - for now it's based on retry_policy2.
Only commits starting at 604599e - Return more information in Session::query() belong to this PR.
For now it's a Draft to disable merging.
TracingInfo contains columns from system_traces that are the same in Cassandra and Scylla. Scylla has some scylla specific entries that the user can query themselves if they really need to.
Retrying tracing info queries and its configuration is based on DataStax Java Driver
Fixed issues
Fixes: #189
Pre-review checklist

[x] I have split my patch into logically separate commits.
[x] All commit messages clearly explain what they change and why.
[x] I added relevant tests for new features and bug fixes.
[x] All commits compile, pass static checks and pass test.
[x] PR description sums up the changes and reasons why they should be introduced.
[x] I added appropriate Fixes: annotations to PR description.

The tests pass on my machine but fail in CI for some reason 0_o. Gonna investigate.

Probably related to timing - tracing data ends up in the tracing tables asynchronously, so you might need to try fetching the appropriate tracing id in a loop.
By the way, contrary to the protocol spec Scylla does support tracing batches, it's an important debugging mechanism, so we'd want to eventually support it in the driver too.

Probably related to timing - tracing data ends up in the tracing tables asynchronously, so you might need to try fetching the appropriate tracing id in a loop.

:+1: Added retrying in tests, also Cassandra sometimes had a null in the table which the code handled incorrectly, all fixed now.

By the way, contrary to the protocol spec Scylla does support tracing batches, it's an important debugging mechanism, so we'd want to eventually support it in the driver too.

Added

@piodul @psarna Rebased and ready for review

@cvybhu Looks good, but please also rebase on top of /main - after merging TLS, a small manual translation of this layer to QueryResult is in order.

@psarna rebased and ready

authors: cvybhu psarna

repo: scylladb/scylla-rust-driver


text:
Implement Value for slice[T]

Pre-review checklist
Adds the ability to serialize slices of T: Value. Used to prevent having to use Vec<T> and saves allocations.

[x] I have split my patch into logically separate commits.
[x] All commit messages clearly explain what they change and why.
[x] I added relevant tests for new features and bug fixes.
[x] All commits compile, pass static checks and pass test.
[x] PR description sums up the changes and reasons why they should be introduced.
[x] I added appropriate Fixes: annotations to PR description.

Y'all should pin the rust version so new clippy errors only show up when you decide to up it :)

Y'all should pin the rust version so new clippy errors only show up when you decide to up it :)

Thanks for the suggestion, we'll most likely do that once 1.x is released. Right now, in beta, there's still value in frantically pushing clippy fixes to adhere to the bleeding edge standards :) I'll fix CI in a minute and continue with merging you contribution afterwards.

Merging, I verified manually that clippy and tests pass. Thanks!

authors: dtzxporter psarna


text:
Refactor the microservice architecture for Vert.x 3.5

Some plans:

[x] Adapt for API changes
[ ] Kafka integration #2
[ ] Enhance global authentication (JWT based) #5
[ ] Enhance API Gateway (e.g. file upload, WebSocket, fault-tolerance, performance)
[ ] Enhance integration with Vert.x Config
[ ] More functional and reactive code (with RxJava 2)
[ ] Improve fault-tolerance architecture (e.g. Circuit Breaker for each microservice component) #19
[ ] Redesign for distributed transactions #22
[ ] Improve performance / throughput test
[ ] Robust health check mechanism (Maybe integrate with Vert.x Health Check) #19
[ ] Database middleware layer #26
[ ] Initial design for service orchestration
[ ] Distributed tracing
[ ] Service mesh for cloud native architecture

This can be a huge change so it may take a long time to refactor.

Update (Feb 13, 2018): Redesigning...

please let me know if you need any help or contribution , I have worked with vertx 3 recently with ignite in banking project , so i can help you as well

Hi, can you offer some advice about the microservice architecture? (both bussiness layer and infrastructure layer is ok, e.g. the progress of checkout->payment->order changes, event sourcing with Kafka, API Gateway, module design and division, performance). Thanks a lot! :)
Any contributions are welcome!

Sure , i am checking out the source code locally now and I will go through it into details to be able to provide useful feedback , i will focus on event sourcing part as i have implemented the CQRS pattern over vertx and ignite plus kafka for my last project , then we can go through the API gateway .

@sczyh30  you have done an excellent job so far  !!  , first checks i think you have part in ur plan already , but to be more aligned with cloud mircroservices design , we need the following :

distributed configuration service for your services catalog that handle service configuration per target environment , configuration should be completely separated from the service code, vertx config can be a good start.
circuit breaker should cover service to service communications as well to avoid cascading domino error effect in case one of ur services is not up or down
health checks i think needed to be replaced by vertx health check and should be located into the service discovery , plus checking into the future if we can use one of service discovery services bridges supported by vertx .
we need to introduce API documentation for the REST verticals , ex swagger
separation of the common dependencies and having clean BOM managment
6- add performance logging via ELK stack in place already
7- use kafka or file beats as the logging events shipper instead of the default TCP shipper as it will be bad performer

I will start now going through the event sourcing part now , and if you have any branch for that please let me know.
Thx a lot

and Small question , if i need to start the same twice with different hosts as a matter of Scalability, the current service discovery implementation will support it ?

Hi,
Is anyone still working on this? I will be building something on the current version but I am interested in the future 3.5 version too. I think I could even contribute myself but it looks to me like no one is active anymore on this repo.
Emanuel

@eciuca Hi, I might be free soon and I've been planning to redesign and refactor the whole architecture.  The new version is expected to be based on Vert.x 3.5 and RxJava 2. I'll start working on it once I have time.

any update on the schedule? :) happy xmas

hah, it seems that  working in alibaba makes you busy. thank you for your blog about vertx.

Meanwhile, I have started adding stuff to the BaseMicroserviceVerticle and RestMicroserviceVerticle in a private repo which I intend to make public. I added stuff like jax-rs annotation support, AWS hazelcast configuration and docker hazelcast configuration. I will maybe post an url here when I make them public. Unfortunately it won't be a fork but I'll specify that it's derived from here

@sczyh30
Thanks for the fantastic stuff you created.
Are you planning to create a scala version of this java application? I am learning to use Vert.x by using scala and using your app as a base and I am encountering a strange issue with ServiceDiscovery getRecords or getRecord or getRecordFuture. All these methods fail with the below error. The same code works fine in Java.
ava.lang.NullPointerException
at io.vertx.servicediscovery.types.HttpLocationConverter.fromJson(HttpLocationConverter.java:30)
at io.vertx.servicediscovery.types.HttpLocation.(HttpLocation.java:64)
at io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.(HttpEndpointImpl.java:69)
at io.vertx.servicediscovery.types.impl.HttpEndpointImpl.get(HttpEndpointImpl.java:53)
at io.vertx.servicediscovery.impl.DiscoveryImpl.getReferenceWithConfiguration(DiscoveryImpl.java:162)
at io.vertx.servicediscovery.impl.DiscoveryImpl.getReference(DiscoveryImpl.java:157)
at io.vertx.scala.servicediscovery.ServiceDiscovery.getReference(ServiceDiscovery.scala:82)

hey, guys, I am going to upgrade an old project based on vertx2.6.1 to vertx3.5,... it just starts, ... it seems a lots of things to reconsider  or redesign, ...  Thanks for the info so far.

Hi...I am new to vertx. Any plan to publish latest code using 3.5.x.

Is it still in pipeline?

authors: Romeh Utkalkeshari blukhand cashberry eciuca gvsbr74 maiziheimei rdinkel sczyh30


text:
[FEATURE] Allow mono input

I have a stereo audio device and the guitar just comes in on one channel. I would like to be able to either set both inputs to one channel (2) or set a mono input channel.

Currently, the Input 1 dropdown allows only 1, the Input 2 dropdown has 1 and 2 listed, but if I set it to 2, it switches back to 1.
In my use case, I would like the mono input to be 2.

I also have a Stereo audio input device and for my device (M-Audio M-Track Solo) the guitar amp in is only on the right channel, (channel 2). From what I can tell, there is no way to select the right track only.

Hi!  This looks like an Issue for NeuralAmpModelerPlugin, so I'm going to close it here.
Check out https://github.com/sdatkinson/NeuralAmpModelerPlugin/issues/117, which I think captures your Issue. Give it a thumbs-up!

repo: sdatkinson/neural-amp-modeler


text:
Change argument mode, when an option was supplied

Hi! Is there a way to change argument mode, when an option was supplied?
It would be really nice, if I can implement it using validators.
I got it, but I'm not sure that the validators order will not change in the future.
from cleo import Command, InputArgument, InputOption
from cleo.validators import Validator

class RunCommand(Command):
    def configure(self):
        self.set_name('run')
        self.set_description('Run')
        self.set_help('Run')

        chain = Chain()
        self.add_argument(
            name='package',
            description='Package to run',
            default=None,
            mode=InputArgument.OPTIONAL,
            validator=PackageValidator(chain)
        )
        self.add_option(
            name='path',
            shortcut='p',
            description='Path to module',
            default=None,
            mode=InputOption.VALUE_REQUIRED,
            validator=PathValidator(chain)
        )

    def execute(self, input_, ouput_):
        pass

class Chain(object):
    def __init__(self):
        self._package = None
        self._path = None

    def set_package(self, package):
        self._package = package

    def set_path(self, path):
        self._path = path

    def validate(self):
        if self._path and not self._package:
            raise ValueError('Cannot supply [-p|--path] without [package].')

class PackageValidator(Validator):
    def __init__(self, chain):
        self.chain = chain

    def validate(self, value):
        self.chain.set_package(value)
        # Validate package...

class PathValidator(Validator):
    def __init__(self, chain):
        self.chain = chain

    def validate(self, value):
        self.chain.set_path(value)
        self.chain.validate()
        # Validate path...

This is not possible since command definitions are more or less static and checked as is before being executed.

authors: Kilte sdispater

repo: sdispater/cleo


text:
Losing connections on production

Hi, we've been facing issues with orator on prod. After some debugging I found out that the errors raised by pymysql says 'Lost connection' and in the source there's a check for 'Lost Connection' (capital 'C').
This is probably the same issue as #210.
I have also seen a couple of attempts at resolving this issue.
#217
#199
It would be nice if one of these pull requests were merged soon since it has been affecting multiple users.
For now using MySQLdb seems like an appropriate workaround.

I'll look into this and accept one of the available PR's fixing this issue. Thanks for reporting!

Fixed and merged in #217

repo: sdispater/orator


text:
Set path in shell

poetry shell never worked properly for me. Other people reported this in https://github.com/sdispater/poetry/issues/497 and https://github.com/sdispater/poetry/issues/571 but the solutions and workarounds mentioned never worked for me.
The reason is that early on in my shell's config, I reset PATH to a known state and go on to build it up from there. So, even though poetry sets it properly, my config undoes it.
My solution: test POETRY_ACTIVE and then append POETRY_PYTHON_PATH to PATH.
Notes:

I don't know if POETRY_PYTHON_PATH is ideal, since PYTHONPATH already exists and is used differently. Maybe POETRY_PYTHON_BIN or POETRY_PYTHON_BIN_PATH or maybe something else would be better.
I don't have any tests for this, sorry.

Checklist

[ ] Added tests for changed code.
[x] Updated documentation for changed code.

@maw I think a lot of problems with the shell command have been fixed in #1395. Could you test if your specific issue is fixed with the 1.0.0b2 release?

@sdispater I'll try to give it a try during the week or, more likely, this weekend. I'll let you know.
If it doesn't do the trick for me, I'll have a go at writing some tests for @stephsamson

@sdispater @stephsamson I've been using recent builds (I'm on 1.0.0b5 and was using 1.0.0b4 previously) for the past two weeks and the problem as I experienced it doesn't occur anymore.  Thanks.
As an aside, I'd like to mention that Poetry has really come a long way in the past year. Python desperately needed a tool like this, managed by people with the with the intention of seeing the project through to a state where it could be used for serious work. I think you're just about there. Good work!

authors: maw sdispater

repo: sdispater/poetry


text:
Added color options for v1.26's Breadcrumb navigation

With v1.26's release, the breadcrumb navigation didn't have any styling.  Below is a screen shot of the changes.
Before:

After:

Looks good to me :+1:
@sdras I think this we can merge this PR now.

Thanks @willstumpf! I'll be releasing again some time this weekend.

authors: palashmon sdras willstumpf

repo: sdras/night-owl-vscode-theme


text:
🛑 mail.sebastian-jaeger.me is down

In 2503575, mail.sebastian-jaeger.me (https://mail.sebastian-jaeger.me) was down:

HTTP code: 0
Response time: 0 ms

Resolved: mail.sebastian-jaeger.me is back up in 6c93d6d after 9 minutes.

repo: se-jaeger/uptime


text:
Issue/#36 Set up linter for the backend

Fixes #36
Proposed Changes

Configure eslint with airbnb-base and prettier
Add npm run lint and npm run lint-fix commands
Fix linting errors

This is just a work-in-progress PR - it's not ready for review yet.
I've piggy-backed off the Jest PR, and will rebase onto master once that PR is merged in.
Ready for review!

No worries @td6766
Btw feel free to merge it whenever you're ready.


text:
require 书写约定

require 书写约定
使用 Sea.js 书写模块代码时，需要遵循一些简单规则。

只是书写和调试时的规范！！！构建后的代码完全不需要遵循下面的约定！！！！！！

1. 正确拼写
模块 factory 构造方法的第一个参数 必须 命名为 require 。
// 错误！
define(function(req) {
  // ...
});

// 正确！
define(function(require) {
  // ...
});

2. 不要修改
不要重命名 require 函数，或在任何作用域中给 require 重新赋值。
// 错误 - 重命名 "require"！
var req = require, mod = req("./mod");

// 错误 - 重定义 "require"!
require = function() {};

// 错误 - 重定义 "require" 为函数参数！
function F(require) {}

// 错误 - 在内嵌作用域内重定义了 "require"！
function F() {
  var require = function() {};
}

3. 使用直接量
require 的参数值 必须 是字符串直接量。
// 错误！
require(myModule);

// 错误！
require("my-" + "module");

// 错误！
require("MY-MODULE".toLowerCase());

// 正确！
require("my-module");

在书写模块代码时，必须遵循这些规则。其实只要把 require 看做是语法关键字 就好啦。
关于动态依赖
有时会希望可以使用 require 来进行条件加载：
if (todayIsWeekend)
  require("play");
else
  require("work");

但请牢记，从静态分析的角度来看，这个模块同时依赖 play 和 work 两个模块，加载器会把这两个模块文件都下载下来。 这种情况下，推荐使用 require.async 来进行条件加载。
Why?
这些约定初看起来会有些小不爽，其实也的确可以通过每次都编译的方式来去掉这些限制。但编译的方式，会给开发调试带来麻烦，代码的实现复杂度也会增加。Sea.js 的核心设计原则是保持简单，遵循 New Jersey Approach：

简单性：设计必须简单，这既是对实现的要求，也是对接口的要求。实现的简单要比接口的简单更加重要。简单是设计中需要第一重视的因素。

因为简单，所以可靠！
参考文档

为什么要用构建工具来压缩 CMD 模块

define("base/easing/1.3.0/easing", ["jquery"], function(require) {
var jQuery = require("jquery");
})
请问为什么浏览器提示“jQuery”是null了？路径都没有错，jquery也顺利加载了

我的代码是这样的
require('charts/component/colorFac');
var color = new gradientColor('#013548','#554851',10);
colorFac文件为  (这个文件在网上找的)
(function(win){
'use strict';
/*渐变颜色
// 作者 yanue
// 参数：
// startColor：开始颜色hex
// endColor：结束颜色hex
// step:几个阶级（几步）
*/
function gradientColor(startColor,endColor,step){
startRGB = gradientColor.colorRgb(startColor);//转换为rgb数组模式
startR = startRGB[0];
startG = startRGB[1];
startB = startRGB[2];
   endRGB = gradientColor.colorRgb(endColor);
   endR = endRGB[0];
   endG = endRGB[1];
   endB = endRGB[2];

   sR = (endR-startR)/step;//总差值
   sG = (endG-startG)/step;
   sB = (endB-startB)/step;

   var colorArr = [];
   for(var i=0;i<step;i++){
       //计算每一步的hex值
       var hex = gradientColor.colorHex('rgb('+parseInt((sR*i+startR))+','+parseInt((sG*i+startG))+','+parseInt((sB*i+startB))+')');
       colorArr.push(hex);
   }
   return colorArr;

}
// 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
gradientColor.prototype.colorRgb = function(sColor){
var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
var sColors = sColor.toLowerCase();
if(sColors && reg.test(sColors)){
if(sColors.length === 4){
var sColorNew = "#";
for(var i=1; i<4; i+=1){
sColorNew += sColors.slice(i,i+1).concat(sColors.slice(i,i+1));
}
sColors = sColorNew;
}
//处理六位的颜色值
var sColorChange = [];
for(var s=1; s<7; s+=2){
sColorChange.push(parseInt("0x"+sColors.slice(s,s+2)));
}
return sColorChange;
}else{
return sColors;
}
};
.....
})(window);
然后总是报错，gradientColor is not defined。我不清楚这是什么原因，看着colorFac.js文件已经加载了~~
我想知道这是为啥呢？难道colorFac非得按照seajs的写法写？还是new的时候，colorFac.js文件没加载？

@helloqinqin  一般不会有这种情况发生，gradientColor is not defined说明全局肯定没有这个类存在，你得先确定库文件内部对外的接口是如何处理的，可能是进行过模块化的兼容，试试gradientColor=require('charts/component/colorFac');获取文件对外的api。还不行的话，确认一下gradientColor类名是否正确

@zlstone
首先谢谢了~
1.确定及肯定名字没错~
2.gradientColor=require('charts/component/colorFac'); 断点，gradientColor为空
3.从sources可以看到colorFac.js是加载了的
不过没有对colorFac.js用defined模块化。我想着，这个也不能强制要那么写的

@helloqinqin 不需要强制写，至少我用的2.1.0不需要，还是文件本身的问题，如果确定加载成功，全局没有，看看文件代码吧...

@zlstone
1.我按照define进行模块化了，并且把colorFac.js中的gradientColor方法前面的g大写了，然后就能行了~
2.我又把colorFac.js按照原来的，并且把gradientColor方法前面的g大写了，还是不行
我的seajs是2.3.0  具体什么原因还得多做实验，才能得出啊

这种是不是以后加反射来处理了

用$=require('jquery')时，为什么alert($)返回的是null

希望有大牛帮我解答一下，为什么在safari浏览器下http://www.51go.me/加载的这么慢，是seajs的原因吗，有几个js我是require进来的

第一个参数'require'，在压缩时候会改名，导致无法正常执行，有什么好的办法吗

@xxiiaass 同问

IE10 如果用require加载模块会得到结果NULL,这里指的不是jquery，而是项目里面的其他JS文件。

authors: DennisEllen catFishTail helloqinqin lifesinger meiyouqing tbx19930222 virtuecai xxiiaass zhs23 zlstone

repo: seajs/seajs


text:
使用seal.ext.getTemplateConfig获取配置项的时候报错

在提问之前...

[X] 我理解 Issue 是用于反馈和解决问题的，而非吐槽评论区，将尽可能提供更多信息帮助问题解决
[X] 我填写了简短且清晰明确的标题，以便开发者在翻阅 issue 列表时能快速确定大致问题。而不是“一个建议”、“卡住了”等
[X] 我已查看master branch或最新测试版的更新内容，并未提及该 bug 已被修复的情况
[X] 已有issue中并没有看见其他人与我反馈相同的问题

问题描述
使用seal.ext.registerTemplateConfig注册配置项之后再使用seal.ext.getTemplateConfig会报错
如何复现
1.注册扩展
2.使用seal.ext.registerTemplateConfig注册配置项
3.使用seal.ext.getTemplateConfig赋值
你期望发生的
能正常获取到设置的配置项
实际上发生的
日志报错
日志文件

截图

海豹核心版本
1.4.5
操作系统
Windows
帐号类型
QQ
使用协议
No response
附加内容
No response

无法从[]interface{}断言[]string

无法从[]interface{}断言[]string，上个版本是否有这个问题

我之前是1.4.4，然后升级到1.4.5均有这个报错

无法从[]interface{}断言[]string，上个版本是否有这个问题

我之前是1.4.4，然后升级到1.4.5均有这个报错

已了解，正在尝试修复

无法从[]interface{}断言[]string，上个版本是否有这个问题

我之前是1.4.4，然后升级到1.4.5均有这个报错

已了解，正在尝试修复

好的，辛苦了

repo: sealdice/sealdice-core


text:
Bash Bad Substitution

This error was discovered when attempting to install the fix on Ubuntu 20.04 LTS.
The 'Bad Substitution' issue occurs on line 130, where the initial yes/no case is.

Try using #!/bin/bash instead of #!/bin/sh.
Alternatively, remove the '0:1' in the case method.


text:
Upgrade h2 version as there is a vulnerability in <0.3.24

Upgrade h2 version as <0.3.24 has a vulnerability reported: RUSTSEC-2024-0003

It does not need to be done here. You can run cargo update -p h2 in your own project.

To clarify for anyone else who comes across this, Cargo should automatically pick up version ^0.3.24 of h2 in the project since the reqwest crate does not specify an exact version dependency on h2 = 0.3.14. Instead, it has a dependency on ^0.3.14, which should make 0.3.24 eligible as a dependency. Ensure that you do not have a Cargo.lock file in your project that is pinning the version, or that your own project does not have a dependency pinned to a version less than or equal to 0.3.24.

authors: drganjoo seanmonstar

repo: seanmonstar/reqwest


text:
[BUG]Boxoffice queries return 0 available tickets when no tickets sold

Describe the bug
Related to user stories US502/US503.
Querying available tickets by event or date results in zero available tickets reported if no tickets sold.
To Reproduce
Discovered through unit-tests
Expected behavior
Queries should report full availability when no tickets have been sold.

Erroneous checks for sold tickets caused functions to return 0 if no tickets sold.
Fixed in commit: https://github.com/seanyoung247/TWCoulsdon/commit/48d7c67bee6821711f250a2f65fa22a7fffb8339


text:
continue writing tests.

Fill out the test suite

merging this now as working on other fixes as priority

repo: seapagan/py-maker


text:
Fix #421 - Avoid decimal and scientific notation for longs

Hi @ferhatsb !
This is a follow-up of https://github.com/searchbox-io/Jest/pull/405 using a different fix so that it fixes the decimal point and the scientific notation.
I recommend to review the commits one by one as the last one introduces a lot of noise:

First commit is the real fix.
Second commit improves the existing situation and allows users to use the different syntaxes allowed by ES
Third commit is a clean up commit to make the build more stable (using jsonassert and query orderning) and removes a lot of deprecated junit.framework imports.

This one is quite critical for us!
Thanks!
--
Guillaume

Coverage increased (+0.6%) to 55.802% when pulling 9fa8327ea4da47e2c834c9e541012665d69b2385 on gsmet:issue-421 into 140a175b2a10b57b7c18ae4b2b9051194182fa16 on searchbox-io:master.

@ferhatsb additional note: the first commit changes the Sort API as it removes the toMap method in favor of a toJsonObject method. I thinks it's better this way but I wanted to mention it because it might require a bump in the version number.

authors: coveralls gsmet

repo: searchbox-io/Jest


text:
Draft program's "last updated" date appears stale on Versions page

Some recent testing of the Versioning page found that the Draft version's "Last Updated" time is never updated -- it's always set to the Active version's "Last Updated" time, even if changes are made to the draft.
We should change that behavior so the Draft version displays the date/time that the last questions or programs were edited.

Related to #1657

authors: neel-a-mehta shanemc-goog

repo: seattle-uat/civiform


text:
fix: avoid backup deleted files

What problem are we solving?
https://github.com/seaweedfs/seaweedfs/issues/5014
How are we solving the problem?
How is the PR tested?
Checks

[ ] I have added unit tests if possible.
[ ] I will add related wiki document changes and link to this PR after merging.

Not sure what does this mean. It sounds like "for incremental mode, do not handle updates".

repo: seaweedfs/seaweedfs


text:
TSIH (Target Session Identifying Handle) is missing?

Hello,
I wonder to know about the commentary at https://github.com/sebastiangraf/jSCSI/blob/master/bundles/target/src/main/java/org/jscsi/target/TargetServer.java#L232
It says about TSIH that should be implemented at the future. I would like to help to implement it based at  http://www.ietf.org/rfc/rfc3720.txt:

TSIH (Target Session Identifying Handle): A target assigned tag for
a session with a specific named initiator.  The target generates it
during session establishment.  Its internal format and content are
not defined by this protocol, except for the value 0 that is
reserved and used by the initiator to indicate a new session.  It
is given to the target during additional connection establishment
for the same session.
Based on the RFC 3720 I should get the session IDs and build these actions:

+------------------------------------------------------------------+
|ISID      | TSIH        | CID    |     Target action              |
+------------------------------------------------------------------+
|new      | non-zero    | any    |     fail the login             |
+------------------------------------------------------------------+
|new       | zero        | any    |     instantiate a new session  |
+------------------------------------------------------------------+
|existing  | zero        | any    |     do session reinstatement   |
+------------------------------------------------------------------+
|existing  | non-zero    | new    |     add a new connection to    |
+------------------------------------------------------------------+
|existing  | non-zero    |existing|     do connection reinstatement|
+------------------------------------------------------------------+
|existing  | non-zero    | any    |         fail the login         |
+------------------------------------------------------------------+
Looks like the TargetSession has the ISID and TSIH but CID (ConnectionID) where is?
Am I correct? Could you give me any advice? Like if I have to create new classes? Which methods?
Thanks in advanced. Felipe

Hi, I have some thing I think is related to it. The original problem is that after 10 hours of my microsoft iscsi initiator connect to the jSCSI target, the initiator try to reconnect, maybe a connection reinstatement, and it can't. I think it is related to ERROR_RECOVERY_LEVEL https://github.com/sebastiangraf/jSCSI/blob/master/bundles/target/src/main/java/org/jscsi/target/settings/SessionSettingsNegotiator.java#L155 that is set to 0 (zero) at target and 2 (two) at microsoft iscsi initiator.
Is that possible? Should I set both to zero?

repo: sebastiangraf/jSCSI


text:
Add license file

You mentioned on Twitter that this code is public domain so I thought it'd be good to list a license.

Nice thank you

authors: Thynix sebastiencs

repo: sebastiencs/red-black-tree

license: unlicense


text:
Consider context object

It might be useful to have be able to pass a context object to the processor.
Use case here https://github.com/OrchardCMS/OrchardCore/issues/6199#issuecomment-652989113
Probably just an object might give issues when wanting to cast it/access it in liquid though, so it might need to be more of an accessor like Arguments

I am thinking about using Dictionary. Then when executing the template shortcodes we can pass custom values.

Custom Dictionary sounds good
Currently for args I have
            TemplateContext.GlobalMemberAccessStrategy.Register<Arguments, object>((obj, name) => obj.NamedOrDefault(name));

            // Prevent Arguments from being converted to an ArrayValue as they implement IEnumerable
            FluidValue.SetTypeMapping<Arguments>(o => new ObjectValue(o));

I have no idea what you are doing here ;)
Or are you telling me that having another "Arguments" typed context variable would be better than a "Dictionary".

Nah, Arguments is not good here. Notion of "default" or numbered properties doesn't make sense.

Haha sorry, I am explaining badly, and totally out of context, no pun intended.
But you just put a pr in looks ideal

authors: deanmarcussen sebastienros

repo: sebastienros/shortcodes


text:
Adding "DownloadPDF" button in the "PDFPreview" panel

Hi,
I was thinking about the following enhancement:

Adding "DownloadPDF" button in the "PDFPreview" panel, so that if the user is satisfied, he can download the PDF right from there!

Let me know should I proceed working on this enhancement or not?

If yes, I have to edit PDFViewerTopComponent.java to add new button, but i think it is not-editable. So can you please let me know what should be my approach?

Best Regards,
Amit

There's already "Download PDF" icon in the toolbar (next to save/save as on your screenshot). I don't really think we need another one in the preview panel.

Ok.. So I close this issue then. Let me know if there are some open issues on which beginner like me can work.;)

@Amitbhave As a rule, we mark easier, good starter issues for new contributors with "community friendly" label. Take a look at open issues with that label that aren't taken and you are free to grab it.

authors: Amitbhave sebbrudzinski

repo: sebbrudzinski/Open-LaTeX-Studio


text:
feat: 🎸 Angular in-page wizard step card

Does the component already exist

[x]  I confirm that I have checked if the component already exists in any of the Green libraries

For which framework/library you are requesting the component
Angular
Description
The In-page wizard step card as a Angular component

Who will benefit from this feature?
No response
Anything else?
Added disableNext option for disabling next button if validation of input values fails.

@splashdust Updated with tests

@Fredrik-Oberg Thank you for the added tests!
I made a small change to the code, renaming the module to simply InPageWizardModule, since we may want to extend the functionality to include a complete generalized wizard implementation in the future. In that case I think the InPageWizardStepCardComponent should be one of a handful of components exported by that module.
Let me know if you disagree!
Otherwise everything looks good to me, and this PR is good to merge.

authors: Fredrik-Oberg splashdust

repo: sebgroup/green


text:
BusyBox's "free" can't separate columns on 16GB RAM machine

from https://github.com/syuilo/misskey/issues/3409
Issue Type

[*] Bug
[ ] Feature Request
[ ] Question

Expected behavior
get memory info correctly.
Actual behavior
can't get get memory info correctly.
Steps to reproduce the problem
BusyBox's "free" can't separate columns on 16GB RAM machine.
run  free -b on that machine.
Problem and possible solution
if get wrong column count, read /proc/meminfo .

https://bugs.busybox.net/show_bug.cgi?id=11521

Ok @tateisu , I see where the problem is ... will provide a fix for that!

Fixed. Version 3.51.2 just published

Thank you for your great work and fast release!

refactored to to /proc/meminfo, new version 3.51.3 just released.

(FYI)
BusyBox fixes separating on its git (not yet released), but its only digits line and not include header row.
https://git.busybox.net/busybox/commit/?id=f4709d78cb0c4f54283046e8f86edb9ecd7e41ca
https://bugs.busybox.net/show_bug.cgi?id=11521
then SI 3.51.2 may not work with BusyBox's next release.
Of course SI 3.51.3 will not affected.

@tateisu thank you vor informing me. So lets hope that there are not to many 3.51.2 versions out in the field... ;-)

authors: sebhildebrandt tateisu

repo: sebhildebrandt/systeminformation


text:
networkConnections always return pid 0 with protocol udp on Windows

Describe the bug
When List networkConnections on windows always return pid 0 on all udp processes.
After observing the output, I realised that, as the state does not come in windows, it is storing the pid in the state field. Please could you fix this.
To Reproduce
Steps to reproduce the behavior:

used function systeminformation.processes.networkConnections

Current Output
{
protocol: 'udp',
localAddress: '192.168.56.1',
localPort: '137',
peerAddress: '',
peerPort: '',
state: '4123',
pid: 0,
process: ''
},
Expected behavior
{
protocol: 'udp',
localAddress: '192.168.56.1',
localPort: '137',
peerAddress: '',
peerPort: '',
state: '',
pid: 4124,
process: 0
},
Environment (please complete the following information):

Windows

@gitmai ok, I guess I see the problem, will fix it in the next few days ...

Thank you very much, your project is a great help.

@gitmai ... should be fixed, can you test It on your side? Version 5.12.6 just released,

authors: gitmai sebhildebrandt


text:
ICON GitHub links are dead

It looks like ICON has moved their GitHub to icon-project, and in the process purged all of the issues, including the one that reported the freeze bug.

@dmdque Thanks for your nice hints.


text:
How to migrate an on-prem application to serverless?

Proposed title of article
How to migrate an on-prem application to serverless?
Introduction paragraph:
Serverless is becoming popular in recent times. Developers and companies are adopting the approach to deliver business value using the public cloud. There are many articles covering the serverless architecture out there, but few really covers about the subject.
In this article, I will use a practical example, an Online Recruitment Portal which is hosted on-prem and cover the steps on how to migrate the web application to serverless.
Key takeaways:
At the end of the article, the reader will be able to understand:

the problems faced with on-prem applications and why opt for seeverless way
the journey to serverless solution and the migration approach from on-prem to serverless using practical example
challenges likely to faced during development and delivery phase

References:
N?A

Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.  @ogoti-lilian

@ogoti-lilian
good topic - approved.
One important note: Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting for final approval. (There are some great free tools that we reference in EngEd resources.)
Lets please be sure it add value beyond what is in the official docs and what is covered in other blog sites.
Please be sure to double check that it does not overlap with any existing EngEd articles or incoming topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours.

authors: ahmadmardeni1 hectorkambow ogoti-lilian


text:
Encapsulation, Polymorphism and Abstraction in Ruby.

NOTE: All 1st-time contributors should know Topic approval and PR submission does NOT guarantee your Topic/Article will be published. Our team of Peer Reviewers and Content Moderators will review all PRs that come in to make sure they adhere to the standard of quality we expect from the EngEd community.
We expect all community memebers to go through provided examples, resources, and previously published material before submitting content. As a rule of thumb, please only submit articles (pull requests) that are complete, formatted correctly, and include a fully polished article (ready to be published and error free).
All revisions and edits should be completed on your own forked repo (as to not take up room in the queue). Any PR that is submitted incomplete (meaning not ready to be published as is) will be closed. A PR being closed does NOT mean the article can not be published (or fixed) it simply means that the edits, revisions, and fixes will happen outside of the queue.
NOTE: Any topic suggestion copied/taken/modified from YouTube may Lead to a permanent ban from the community.
Topic Suggestion
An in-depth understanding of encapsulation, polymorphism and abstraction in Ruby.
Pre-submission advice
By following all our pre-submission advice and reviewing our Resources folder, you will maximise your chances of your topic being approved.
We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner.
Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published (subject to vary depending on volume and/or backlog of articles).
Be sure to visit our Resources Page for tools, resources, and example articles that will help you propose and write a successful article.
Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
Writing sample(s):
Include any links or writing samples - to help our team better gauge your writing quality.
Proposal Submission
Proposed title of article
Your title should be descriptive of the article/tutorial. Be Specific.
Use keyword research to improve your article's SEO.
Proposed article introduction
Ruby is an object oriented programming language that relies on the concept of objects and classes. In this article we will mainly focus on the three principles of Ruby as an object oriented programming language.
Encapsulation in Ruby is a flexible mechanism that wraps or binds together the code and it's related data into a single unit. Polymorphism on the other hand is the ability of a particular message to be displayed in more than one form.
Lastly, we will show how Ruby exhibits Abstraction by allowing us to form  mental models of problems using familiar real world concepts without worrying  about their implementation details.
ONLY viable topics to pick from:

API
Artificial Intelligence
Blockchain
Containers
Edge Computing
Languages
Machine Learning
Networking
Node.js
Security

Key takeaways

A clear understanding of what encapsulation, polymorphism and abstraction in Ruby means.
Application of encapsulation, polymorphism and abstraction with examples.
Importance of encapsulation, polymorphism and abstraction.

Article quality
How is your article unique? Tell us what makes your approach different from similar articles that have published on the same topic?
Is yours more in-depth? Does it cover additional topics? Do you provide handy tips or anecdotal advice?
References
Please list links to any published content/research that you intend to use to support/guide this article.
Conclusion
Finally, remove the Pre-Submission advice section and all our blockquoted notes as you fill in the form before you submit.
We look forwarding to reviewing your topic suggestion.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Thank you for submitting your topic @antoCancel.
However, after some careful consideration, it struck us that this topic may be a bit over-saturated throughout other blog sites and official documentation.
We typically refrain from publishing content that is covered widely on the net or other blogs. As we're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
Please feel free to suggest an alternative topic.

authors: Kayere antoCancel


text:
Introduction to Vite.js 2.0

Created introduction to vite.js 2.0 article.
The article is about the advantages, reasons to choose vite and, how to install Vite.js 2.0 using npm and yarn.
I also included hero.jpg as the vite.js logo.

Hi @Danmasanii. Please go over how to set up CSS pre-processors as mentioned in the Why Vite.js section.

Please add a bio and a profile pic to the content/author folder in your branch. Take a look at how the other authors created their bio folders and follow the structure.

Hi, @zolomohan changes have been committed. Thank you

plagiarism check done

Hi @Danmasanii. I'm closing this PR to clear up the queue for now. Please re-open this PR once you've reworked the article.

Alright. Thanks for the hint.
On Jun 18, 2021 10:17 PM, "Louise" @.***> wrote:

@.**** requested changes on this pull request.
Hi, @Danmasanii https://github.com/Danmasanii. I've conducted the final
review of your article and unfortunately we are rejecting your PR in its
current state. We're really looking for unique/original content, and based
on the content provided, it seems that information that you intend to cover
is already readily available through the Vite.js documentation.
We suggest you rework your article to provide more original content and
provide more value to readers such as building a simple web app using
Vite.js and providing a tutorial.
It would also be beneficial to clarify and expand your introduction to
Vite.js and its advantages over other front-end frameworks to provide more
depth and make it more beginner-friendly.
Areas to Improve:

Clarify whether Vite.js is a framework, build-tool or both? Are
these phrases interchangable? Ideally your article should be accessible to
developers who haven't used build-tools or modern front-end frameworks
before.
Ensure the advantages of Vite.js are unique from other front-end
frameworks that you're comparing it to.
You should inform readers what template scaffolding is and why they
should use it over vanilla Vite.js or just the front-end framework itself,
especially since the article is about why Vite.js is better than other
front-end frameworks. If it's better, then why should they use them with
template scaffolding?

I look forward to receiving your reworked PR and reviewing your improved
article,
Louise - Content Moderator
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/section-engineering-education/engineering-education/pull/2462#pullrequestreview-687732236,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP6BSCPEG36UHZOJA5R3SK3TTOZWLANCNFSM455MMP3Q
.

authors: Danmasanii hectorkambow zolomohan


text:
Author profile

Author profile submission.
kindly review.

@samkb420
I added a minor skill section for you - feel free to add more skills to it.

@samkb420
Hello hello!
We wanted to announce that we're going to take a focus on content centered around Kubernetes (K8s) for the month of August.
We have enjoyed reading all amazing content that has been created the last few months - and with so much to explore with K8s we wanted to invite the community to approach it.
Wit_h that said, the best five (5) K8s related articles that come in this month will be eligible to receive a complimentary virtual pass to KubeCon USA ($75.00 value) in Oct.
We're looking for content that enriches developers' understanding of K8s, best practices, and its many use cases._
Please be sure to go over the already published content the EngEd community has created on Kubernetes to see where we can build upon or further explore.
While we're not restricting content solely to K8s-related articles over the next month, we will prioritize acceptance and review of K8s content over other topics.
Please be sure to complete the topic suggestion form when you're ready to dive in.
Happy coding!


text:
Wrapping that text same as other text on the page

Wrapping that text same as other text on the page.
And I add $ in code-block:: console because the lines are not clearly delineated.

#860

repo: securefederatedai/openfl


text:
rhtap: update Dockerfile to get a clean git hash

The cachi2 pipelinerun task in RHTAP modifies the Dockerfile to inject the cached dependency information into the build. This causes the git version - which is injected into the CLI version output - to include a -dirty suffix.
The modification in this commit stashes those changes, and then gets the git hash, storing it in the GIT_VERSION environment variable, then pops those changes back off of the stash and runs the build as before.
The commit also contains some optimizations so that most of the RUN commands are consolidated into one.

/cherry-pick redhat-v2.1.1

/cherry-pick midstream-v2.1.1

repo: securesign/cosign


text:
Allow to use a custom slot refresher

We're using a yield optimizer which requires us to use a proprietary function for refreshing slot instead of googletag.pubads().refresh() (for header bidding etc.). This PR allows that by specifying the slotRefresher property. googletag.pubads().refresh() is still used as the default one.

@trojanowski  are you still using this module? I am updating whole package and I am thinking about adding this feature

@trojanowski are you still using this module? I am updating whole package and I am thinking about adding this feature.

Yes, I do. I'm using my custom build right now because I need the feature from this PR. But it would be nice to use the official version from npm again. :)

I realized that I am using your react-apollo-hooks library :) nice coincidence

:)

Hi @seeden ! I was wondering if there's still any interest in adding this feature. My team is currently using this library, but need to integrate with Amazon's Transparent Ad Marketplace for header bidding, so we're looking for the ability to use a custom slot refresher function.

authors: csims seeden trojanowski

repo: seeden/react-google-publisher-tag


text:
Cannot read properties of undefined (reading 'placed')

直接copy的demo代码，没有任何修改，在项目中报错，麻烦帮忙看一下谢谢 https://github.com/seeksdream/relation-graph/blob/master/examples/views/seeks-graph-docs/demo/Demo4Line.vue

升级到最新版2.0.14试试，还是不行的话，你加我qq 3235808353

authors: Reeyc seeksdream

repo: seeksdream/relation-graph


text:
s/lightweight/minimalistic/

Please don't describe an app built on Electron as lightweight.

If it's not the case, I'd rather work on optimizing Isolate than changing the sentiment

authors: seenaburns swalladge

repo: seenaburns/isolate


text:
Go project restructure

I have taken example of a couple of Hashicorp projects and restructured the project.
As I am fairly new to the Go language, I still have a bit of issues on how to best set up a project directory structure.
If you have any tips feel free to let me know or make a pull request.

After receiving feedback from several people I have decided to go with a more basic directory structure. Everything is now stored under a single package main as having multiple packages for such a relative project is simply useless.
As it is also a best practice to only use separate packages when you feel like the code can be reused in the future.

repo: segersniels/supdock


text:
Events not sent to Segment servers: Failed to send analytic event

In order to get the fix for #163, I used version 3.7.1 of Analytics.Net. Unfortunately, I still get some errors that tell me that messages are lost.

I attached about 2000 logs coming from the Analytics.net library. I hope this can help you to isolate the problem.
loggly_grid_2021-04-19 19_50_44.400724.zip

@mabead,
Thanks for the feedback with the log! Looking into it I saw that you got HttpRequestException in two batches (which contain actions) that have a problem when going to be sent to Segment Server:

a38c7228-05e5-4ec2-8bb8-ce0aceaeafa1
acb93c7d-9c43-46d6-96c4-b02ec3b7d768

First one retries and is sent successful. The problem is the second one (acb93c7d-9c43-46d6-96c4-b02ec3b7d768) which ends failing showing Segment.io request failed in the log you attached.
Could you try setting Timeout and MaxRetryTime for the Config in the Segment Client? By default those values are 5 seconds and 10 seconds respectively. This could improve temporally the request behavior when retrying. However I am making an improvement in how it is taken into account the times it should retry in case an exception when sending the request occurs.

Hi @juliette-ruchel . Which value do you suggest that I use for Timeout and MaxRetryTime?

Hi @mabead,
I suggest you to try using a Timeout of 10s and a MaxRetryTime of 20s. Probably this will help you sort out your problems for these actions you are trying to send.
Nevertheless, once these changes we are working on, are up in nuget, I suggest you just configure the MaxRetryTime to 20s.

@juliette-ruchel out of curiosity, have you considered using polly.net to implement that whole retry logic? It did simplify my life many many times.

@mabead I will check on Polly as I have never used it. If you recommend it for sure I will try it and see if it simplifies the whole retry logic in the library. Did you manage to send all Actions to segment Server?

@juliette-ruchel Unfortunately, I was not able yet to try the new settings that you sent over.

@pooyaj When do you plan to issue a new version of analytics.net that will contain the fix?

@mabead will push a version by the end of the week at latest.

@mabead sorry for the delay. Just published 3.8.0!

authors: juliette-ruchel mabead pooyaj


text:
Add support for .terraform-docs.yml config file

Prerequisites
Put an x into the box(es) that apply:

[ ] This pull request fixes a bug.
[x] This pull request adds a feature.
[ ] This pull request enhances existing functionality.
[ ] This pull request introduces breaking change.

For more information, see the Contributing Guide.
Description
This PR adds support for reading configuration from file. There's a new flag added for this -c, --config which accepts name of the config file (default to .terraform-docs.yml).
Example .terraform-docs.yml:
formatter: markdown table
header-from: "doc.txt"
sections:
  hide:
    - inputs
    - outputs
settings:
  indent: 4
  required: false

Example Usage:
terraform-docs ./example/ # this will read the config above
                          # generate output of Markdown Table
                          # Inputs and Outputs will be hidden
                          # Indention will be 4
                          # Required column won't be shown

Issues Resolved
n/a
Checklist
Put an x into all boxes that apply:

[ ] I have read the Contributing Guidelines.

Tests

[ ] I have added tests to cover my changes.
[ ] All tests pass when I run make test.

Documentation

[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.

Code Style

[ ] My code follows the code style of this project.

Codecov Report

Merging #272 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #272   +/-   ##
=======================================
  Coverage   81.68%   81.68%
=======================================
  Files          34       34
  Lines        1796     1796
=======================================
  Hits         1467     1467
  Misses        274      274
  Partials       55       55

repo: segmentio/terraform-docs


text:
Add cue_binary rule as Bazel run target for *_tool.cue files

CUE has a task configuration system (similar to Makefile) using *_tool.cue files (https://cuelang.org/docs/reference/cli/cue-commands/). The invokable targets are defined as CUE objects of special tool/* packages as command: <target>: {}. Tasks then can be executed by running cue cmd <target> [args].
It would be nice to have command: <target> definitions in those files exposed as cue_binary rule I can invoke via bazel run. So:
# instead of
cd <directory_path> && cue cmd <target>

# I can do this
bazel run //<directory_path>:<target>

Oh! I didn't know that someone already requested the same feature at https://github.com/cue-lang/cue/discussions/1269#discussioncomment-1395450


text:
local node is synchronized

When the local node is synchronized to the height of 216000, the node will crash. Is there any way to keep the local node running without crashing?

Can you give more context? which chain are you syncing on?

local node

local node，use script to initialize_ Local_ Chain

@philipsu522 I have met the issue, the node maybe need the persistent-peers or seeds and other seeds. Can you provide the related seeds?

hi @Jackwumingjie did you got peers list?

You can find peers here: https://docs.sei.io/develop/resources#statesync-rpcs

authors: Jackwumingjie onebyoneby philipsu522 ratneshpatil-rp

repo: sei-protocol/sei-chain


text:
Getting Logged off : 2 error

I looked at this page:
https://github.com/SteamRE/SteamKit/blob/master/Resources/SteamLanguage/eresult.steamd
But it only says 2 = Fail
So how I should treat this? :?

Did you try a different steam account?

It happens with all accounts I have. The thing is that it works for some time, and only if it gets a lot of load, only then it crashes.

I vaguely remember it happens when you send a packet while logged off. Maybe you could log the 'debug' event and post the last few messages leading up to the error?

Closing due to inactivity.

authors: jabbink mantux5 seishun

repo: seishun/node-steam


text:
Steam mobile guard

Hi, i just added steam mobile guard to my account, and now i'm getting logon fail 85.
Is there any upcoming updates or DIY fixes for this issue?

Try to provide two_factor_code from your app on log in, see https://github.com/seishun/node-steam/wiki/Protobufs

Thanks for super fast reply. I tried to do that, and got this error in return:
C:\Users\user\Desktop\bot\node_modules\steam\node_modules\protobufjs\dis
t\ProtoBuf.js:2536
throw Error(this+"#"+keyOrObj+" is not a field: undefined");
Error: .CMsgClientLogon#two_factor_code is not a field: undefined

Post your code, you should do something like:
steamUser.logOn({
  account_name: 'your_username',
  password: 'your_password',
  two_factor_code: 'CODE_FROM_APP'
});

Thats is code witch exactly gives me that error i posted :cry:

Are you using latest node-steam?
You can also check the CMsgClientLogon protobuf in your node-steam folder.

Yeah, i just updated my node-steam to latest and still got same error.

Oh, got it solved. It was
"twoFactorCode"        : "",

Not:
"two_factor_code"        : "",

Because you're using an old and unsupported version of node-steam.

how can i get shared_secret to get the code?


text:
Related project

Hey,
Interesting project !
Just wanted to let you know about https://github.com/PrismarineJS/minecraft-data and https://github.com/ProtoDef-io/ProtoDef
It seems our projects are similar, maybe there are some stuff we could collaborate on.
How do you get the xml files, do you write them all manually ?
Anyway, nice work ;)

I already knew PrismarineJS' minecraft-data but unfortunately MCPE's protocol wasn't provided and I had to start my own project.
I'm thinking about moving the data to another repo(s) and organise it better, I really think we could collaborate on that.
XML files are mostly written by hand or converted and now maintained by hand.

If you're still interested in working on this, we'd love to chat with you in https://gitter.im/PrismarineJS/minecraft-data

authors: Kripth mhsjlw rom1504

repo: sel-project/sel-utils


text:
some time dropdown list is behave differntly when it is at bottom of the screen

Hi,
Thanks for reply on my previous issue. I as facing one more issue when my asp:dropdown  control is at bottom of the window as shown in below screen short

@vikasvaisha Can you reproduce this on the examples page?
https://select2.github.io/examples.html
If not, can you create a jsbin or link to a page where we can reproduce this issue?

Hi Kevin,
I created same issue on example page too.
I went to the link scroll the page until dropdown is at bottom of my window and clicked on it.

I have created on more project to illustrate this issue

If you want I can mail the code of second screenshot for your reference.
Thanks once again :)

Now that we know it happens on the examples page, and sounds like it's an IE issue, I have a few final questions:

What versions of IE have you seen this happen on?
Does this happen on any other browsers?

I have tested it on Chrome 40.0.2214, IE 11, Firefox 34.0.5 and also on Firefox developer edition but result was same.

I could also reproduce the issue in Firefox 35.0.1.

It only occurs when select is opened first time. select2-container gets a wrong top value.
It doesn't occur on all select2 elements. On example page I could only reproduce the issue for select2 in Loading remote data chapter. In my own project it occurs on select2 using a data array, but only on the last one of third select2.

I tracked down the issue to dropdown.height value: https://github.com/select2/select2/blob/select2-ng/dist/js/select2.full.js#L3929
On first open this.$dropdown.outerHeight(false) returns a wrong value. Opening select2 in Loading remote data first time dropdown.height is 192. Afterwards value is set correctly to 77. Gap is exactly the difference of 115px.

Issue seems to be fixed. Atleast I wasn't able to reproduce it using latest dev or on example page.

This issue has been fixed in the latest version of Select2.

authors: jelhan kevin-brown vikasvaisha


text:
Ajax passed data with the same id but updated text is not updated.

What steps can be used to reproduce the issue?

Just type a new value that the ajax processor returns as not found in database, with a placeholder id (eg: "custom_request"), like "bomb".
The data array returned to the select2 is: ['id'] => 'custom_request' ; ['text'] => 'bomb'
Type a new value instead of the old one, that returns the same placeholder id "custom_request", but with a new text, like "dabomb".
At this point, the data array returned to the select2 is: ['id'] => 'custom_request' ; ['text'] => 'dabomb'
You select it from the list, but the text is not updated (in the gif I tried another value ("what") with the same result: "bomb" remains selected.

A gif of the issue:

What is the bug and what is the expected outcome?
I'm expecting the text to be updated (ajax processor correctly passes new text values to the select2)
What browser(s) and Operating System have you tested with?
Windows 7 sp1 64bit, google chrome and firefox
Does the bug happen consistently across all tested browsers?
Yes
What version of jQuery are you using? And what version of Select2?
I'm using jQuery 2.1.4 and Select2 4.0.1
Are you using Select2 with other plugins?
jQuery UI Datepicker is loaded in the same page

+1 I have the same issue

authors: OttoPus leizard


text:
On createTag, customize the value of the new option

Is there a way to customize the value of a new tag? For example I want to create something like this:
<option value="myCustomValue">The New Created Tag</option>
I'm trying to do this, but is not working, and I can't find something on the documentación about this:
        createTag: function (params) {
            var term = $.trim(params.term);

            if (term === '') {
                return null;
            }

            return {
                id: term,
                text: term,
                newTag: true, // add additional parameters,
                value: "myCustomValue"
            }
        }

id represents what will be put as value.
createTag: function(params) { 			return {       id: "myCustomValue",       text: params.term     	}}

You can find more information on how Select2 generates options from the data objects, which might help you with getting things right.
https://select2.org/data-sources/formats

authors: Jatapiaro kevin-brown tracerTres


text:
Template Creating error + only 2 apps avalible

Issue
When creating Ansible Template , template created in history but not available/seen in Menu :

Also only 2 apps avalible :

Impact
Service (scheduled tasks, alerts), Docker
Installation method
Docker
Database
MySQL
Browser
No response
Semaphore Version
Using latest version of  https://github.com/imagegenius/docker-semaphore
Ansible Version
No response
Logs & errors
No response
Manual installation - system information
No response
Configuration
No response
Additional information
No response

back to 2.10.19 fixed issue with new template created

Template issue fixed in lasted 2.10.21.
But 2 apps still available in lasted version

Hi, it is really strange... Trying to reproduce.

Hi, it is really strange... Trying to reproduce.

Using https://github.com/imagegenius/docker-semaphore in Unraid

Hi, it is really strange... Trying to reproduce.

Wow, just checked the lasted version 2.10.22 and seems it was fixed !

Hi, it is really strange... Trying to reproduce.

Now have another issue cant run any task :(
https://github.com/semaphoreui/semaphore/issues/2218

authors: fiftin masterwishx

repo: semaphoreui/semaphore


text:
Suggest spring-boot-starter-elasticsearch-evolution support es with username/password security by default

It works good in my project，thanks ，It's a good tool.
but it doesn't work  when  elasticsearch add   username/password security ,  elasticsearch version is 6.8.6 ,    spring-boot-starter-elasticsearch-evolution 0.2.1.
I read doc 5.1.2.1 Custom RestClient help me. And I Suggest spring-boot-starter-elasticsearch-evolution support es with username/password security by default, It may be  a  usefully feature.
Enhance elasticsearchEvolutionAutoConfiguration  restHighLevelClient bean supprot username/password security 。
Hope to receive the good news from you！

Hi @yanfangli85
Sorry, but we will not "fix" this, because

ES 6.x is End of Live, see https://www.elastic.co/de/support/eol and hast major Security issues e.g. Log4Shell! You should switch to 8 ASAP!
You can just define your own RestHighLevelClient Spring Bean and configure whatever you want, thats not part of Elasticsearch Evolution.

Best Regards

repo: senacor/elasticsearch-evolution


text:
removing beta from file name

Hello @ksigler7,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX

repo: sendgrid/docs


text:
Add CodeCov support to .travis.yml

Issue Summary
Add these entries to the .travis.yml file so codecov reports show up!
https://github.com/codecov/example-python/blob/master/.travis.yml

Can I work on this?

this issue looks like fixed

authors: mbernier tanhengyeow xeon-zolt


text:
Send test email for a singlesend

Hello here,
I create a singlesends with the api but now i want to to create a send test mail for my client, like in the sendgrid back office here https://www.dropbox.com/s/9fmmwyfmwv6nl9k/Capture d’écran 2021-08-20 à 09.46.54.png?dl=0
What endpoint to use, i don't find what i want in the api documentation i tried this endpoint https://sendgrid.api-docs.io/v3.0/send-test-email/marketing-campaigns-send-test but it doesn't work.
Cheers

Hello @arifherdi16 ,
Thanks for submitting a GitHub issue! We are very sorry that you are running into this problem. In order to better serve you, as this does not present itself as a library specific issue, we would like to ask that you reach out to our support team at support.sendgrid.com.
Thank you!
SendGrid DX Team

authors: JenniferMah LudovicFauchet

repo: sendgrid/sendgrid-php


text:
How can i get email events logs

I cannot find an implementation for this endpoint https://sendgrid.api-docs.io/v3.0/email-activity/filter-all-messages. Basically I want to fetch bounced email filtered by batch it and this endpoint point seems like an only solution for me.

sendgrid-php Version: 7.3

There are no declared types for endpoints besides email sending, but you can use the lower-level client to build and send API request to SendGrid: https://github.com/sendgrid/php-http-client/#quick-start

authors: AhmadWaleed childish-sambino


text:
Fix for the Meow Welcome Template Button

Looks good! Did you make sure to test this in Litmus and verify that this issue isn't in the rest of the "Meow" templates?

I tested it in Litmus. As for this fix, this is only for this templates as they each have their own separate CSS.

Then I'm okay with it 👍 :shipit:

authors: demoore mariesta

repo: sendwithus/templates


text:
61a5ade breaks OpenGL core profile on mesa

Specifically, this line causes an error to be raised in mesa: https://github.com/sensics/OSVR-RenderManager/commit/61a5ade12315dd9ca0b25a7f69273700264f907b#diff-c5e409b6f1a3f869f4cdd104644d039eR1282
#0  _mesa_error (ctx=0x555555a68e00, error=1282, fmtString=0x7fffefc29645 "%s(no array object bound)") at main/errors.c:274
#1  0x00007fffef5c561c in update_array (ctx=0x555555a68e00, func=0x7fffefc29798 "glVertexAttribPointer", attrib=17, legalTypesMask=32766, sizeMin=1, sizeMax=5, size=4, type=5126,
    stride=40, normalized=0 '\000', integer=0 '\000', doubles=0 '\000', ptr=0x0) at main/varray.c:483
#2  0x00007fffef5c61b4 in _mesa_VertexAttribPointer (index=0, size=4, type=5126, normalized=0 '\000', stride=40, ptr=0x0) at main/varray.c:733
#3  0x00007ffff786d6a4 in osvr::renderkit::RenderManagerOpenGL::UpdateDistortionMeshesInternal (this=0x5555557c4100, type=osvr::renderkit::SQUARE,
    distort=std::vector of length 2, capacity 2 = {...}) at /home/chris/build/osvr-rendermanager-debug/src/osvr-rendermanager/osvr/RenderKit/RenderManagerOpenGL.cpp:971
#4  0x00007ffff786c0c3 in osvr::renderkit::RenderManagerOpenGL::OpenDisplay (this=0x5555557c4100)
    at /home/chris/build/osvr-rendermanager-debug/src/osvr-rendermanager/osvr/RenderKit/RenderManagerOpenGL.cpp:730
#5  0x000055555555b40a in main (argc=1, argv=0x7fffffffdb68) at /home/chris/build/osvr-rendermanager-debug/src/osvr-rendermanager/examples/RenderManagerOpenGLCoreExample.cpp:547

The lines in RenderManagerOpenGL.cpp are off by two because to use the core profile I removed the #ifdef here: https://github.com/sensics/OSVR-RenderManager/blob/bfc88b75bc5f01388703bbd73c90251d8ba57f42/osvr/RenderKit/RenderManagerOpenGL.cpp#L153-L158 (see https://github.com/sensics/OSVR-RenderManager/issues/68).
mesa allows to fake a compatibility profle (without really supporting it) with the environment variables MESA_GL_VERSION_OVERRIDE=3.3COMPAT MESA_GLSL_VERSION_OVERRIDE=330. When they are set, RenderManagerOpenGLCoreExample works. When they are not set, the above error happens.
I'm curious: Does it still work on Mac OS X where only the core profile is supported too? Does it work on other drivers on other operating systems when the #ifdef is removed?

OpenGL spec says

Client vertex and index arrays - all vertex array attribute and element array
index pointers must refer to buffer objects. The default vertex array object
(the name zero) is also deprecated. Calling VertexAttribPointer when no
buffer object or no vertex array object is bound will generate an INVALID_-
OPERATION error, as will calling any array drawing command when no vertex
array object is bound.

so it works with the compatibility profile, but has been deprecated so it doesn't work with core.

Looks like OpenGL isn't so hard after all, just creating a vertex array object and binding it makes everything work without errors. Intentionally badly formatted patch because I have no idea what I'm doing:
diff --git a/osvr/RenderKit/RenderManagerOpenGL.cpp b/osvr/RenderKit/RenderManagerOpenGL.cpp
index 84c3d9c..05bac14 100755
--- a/osvr/RenderKit/RenderManagerOpenGL.cpp
+++ b/osvr/RenderKit/RenderManagerOpenGL.cpp
@@ -150,12 +150,10 @@ public:
     SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, p->bitsPerPixel);
     SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
     SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
-#ifdef __APPLE__
     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
     SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK,
       SDL_GL_CONTEXT_PROFILE_CORE);
-#endif

     // If we have multiple displays, we need to re-use the
     // same context between them.  In fact, we always want
@@ -967,7 +965,9 @@ namespace renderkit {
             glBufferData(GL_ARRAY_BUFFER,
                 sizeof(DistortionVertex) * meshBuffer.vertices.size(),
                 &meshBuffer.vertices[0], GL_STATIC_DRAW);
-
+GLuint array;
+glGenVertexArrays(1, &array);
+glBindVertexArray(array);
             size_t const stride = sizeof(DistortionVertex);
             glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, stride,
                 (void*)offsetof(DistortionVertex,pos));
@@ -1276,7 +1276,9 @@ namespace renderkit {
         }

         auto const & meshBuffer = m_distortionMeshBuffer[params.m_index];
-
+GLuint array;
+glGenVertexArrays(1, &array);
+glBindVertexArray(array);
         glBindBuffer(GL_ARRAY_BUFFER, meshBuffer.vertexBuffer);
         size_t const stride = sizeof(DistortionVertex);
         glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, stride,

With that patch RenderManagerOpenGLCoreExample runs with the rendermanager using only the core profile.

Right, because it breaks backwards compatibility with GLES 2.0.  Whoever is in charge of OpenGL is really making my life difficult...

This should be fixed in 2d02144f7e6216ba381d16984ccc7228733528d3

authors: ChristophHaag russell-taylor

repo: sensics/OSVR-RenderManager


text:
🛑 Klaudia.io API is down

In 7f7e5d8, Klaudia.io API ($URL_API_SERVER) was down:

HTTP code: 503
Response time: 495 ms

Resolved: Klaudia.io API is back up in bf94e99.

repo: sensioty/upptime


text:
Refactor sensu_check check_hooks property

Pull Request Checklist

Description

Make sensu_check check_hooks property match what is actually output by sensuctl.
Related Issue

Relates to #901.  Upstream documentation bug here: https://github.com/sensu/sensu-docs/issues/678
Motivation and Context

The type sensu_check needs to treat check_hooks property the way it's handled by sensuctl.  Previously it was just expecting an array of hooks which isn't correct as hooks associated to a check also have a type like critical or warning.  This change ensures valid check_hooks are defined.

I will update acceptance tests to ensure that valid check_hooks are handled correctly.

Acceptance tests updated and passing.

I have local changes that are more complex but valid use of check_hooks and they are failing, this PR is not complete.

@treydock could you please rebase so this will merge

authors: ghoneycutt treydock

repo: sensu/sensu-puppet


text:
Create an article about Observability

Observability
Observability refers to the ability to understand the internal state of a system by examining its external outputs. It involves collecting, aggregating, analyzing, and leveraging data from various sources like logs, metrics, traces, and events to gain insights into the system's behavior, performance, and health.
Observability has evolved into a key practice for IT operations, DevOps, and Site Reliability Engineering (SRE) teams.

1. Category

1.1. Metrics
1.2. Logs

1.2.1. Levels

1.3. Traces
1.4. Events
1.5. Grafana

1.5.1. Provisioning

1.5.1.1. Datasources
1.5.1.2. Dashboards

1.6. Promtail

2. References

1. Category
1.1. Metrics
Quantitative measurements of system behavior over time, such as CPU usage, memory consumption, request latency, used for monitoring and alerting.
1.2. Logs
Records of events or actions occurring within the system, providing detailed information for troubleshooting and auditing.
1.2.1. Levels
Log levels

DEBUG

Fine-grained informational events that are most useful to debug an application. These are usually of value to devlopers and are very verbose.

INFO

Informational messages that highlight the progress of the application at coarse-grained level.

WARN

Potentially harmful situations that indicate a risk to an application. These can trigger an alarm in an applicaiton.

ERROR

Error events that might still allow the application to continue running. These are likely to trigger an alarm that requires attention.

FATAL

Very severe error events that will presumably cause an application to abort.

CRITICAL
NONE

1.3. Traces
Distributed tracing data that shows the flow of requests through different parts of a system, helping to identify bottlenecks and performance issues.
1.4. Events
Notifications or signals emitted by the system to indicate specific occurrences, which can be consumed for real-time analysis or triggering other processes.
1.5. Grafana
1.5.1. Provisioning

Environment Variables
GF_<SECTION_NAME>_<KEY_NAME>

Setting
Default

GF_PATHS_CONFIG
/etc/grafana/grafana.ini

GF_PATHS_DATA
/var/lib/grafana

GF_PATHS_HOME
/usr/share/grafana

GF_PATHS_LOGS
/var/log/grafana

GF_PATHS_PLUGINS
/var/lib/grafana/plugins

GF_PATHS_PROVISIONING
/etc/grafana/provisioning

1.5.1.1. Datasources

Prometheus Data Source

Files and Folders

datasources.yaml

TODO

apiVersion: 1

datasources:
  - name: Prometheus
    type: prometheus
    uid: prometheus
    access: proxy
    orgId: 1
    url: http://prometheus:9090
    basicAuth: false
    version: 1
    isDefault: false
    editable: true
    jsonData:
      httpMethod: GET

  - name: Alertmanager
    type: alertmanager
    uid: alertmanager
    access: proxy
    orgId: 1
    url: http://alertmanager:9093
    version: 1
    isDefault: false
    editable: true
    jsonData:
      implementation: prometheus
      handleGrafanaManagedAlerts: false

  - name: Loki
    type: loki
    uid: loki
    access: proxy
    orgId: 1
    url: http://loki:3100
    version: 1
    isDefault: false
    editable: true

  - name: Tempo
    type: tempo
    uid: tempo
    access: proxy
    orgId: 1
    url: http://tempo:3200
    basicAuth: false
    version: 1
    apiVersion: 1
    isDefault: true
    editable: true
    jsonData:
      httpMethod: GET
      serviceMap:
        datasourceUid: prometheus

1.5.1.2. Dashboards

OpenTelemetry Collector

Grafana dashboard to visualize metrics collected by the OpenTelemetry Collector. The OpenTelemetry Collector is a vendor-agnostic implementation that receives, processes, and exports telemetry data.

DORA Metrics

Grafana dashboard to visualize DORA (DevOps Research and Assessment) metrics. DORA metrics are a standard set of DevOps metrics used for evaluating process performance and maturity.

Files and Folders

dashboards.yaml

TODO

apiVersion: 1

providers:
  - name: "Dashboard Provider"
    orgId: 1
    folder: ""
    type: file
    disableDeletion: false
    editable: true
    options:
      path: /var/lib/grafana/dashboards

/dashboards

TODO

/dashboards
├── gitlab.json
├── loki.json
└── node-exporter.json

1.6. Promtail

Files and Folders

promtail-config.yml

In Grafana Promtail, the static_configs and pipeline_stages keyword configurations are used to define the collection and processing of log entries.

static_configs

Defines a list of targets (files or directories) and labels that are statically configured within the scrape_configs section, from which Promtail will continuously collect logs.

Examples and Explanations:
scrape_configs:
  - job_name: system
    static_configs:
      - targets:
          - localhost
        labels:
          job: varlogs
          __path__: /var/log/*log

targets

Specifies the files or directories using patterns like *.log from which logs should be collected.

labels

Allows to attach metadata like job: app_logs to log sources, which can used for querying and filtering logs.

pipeline_stages

Defines the sequence of operations that each log entry processed after being collected by Promtail and before being sent to Loki for querying and visualization in Grafana.
NOTE Pipeline stages are processed sequentially, with each stage perform a different function, such as parsing, labeling, or filtering log lines.

Examples and Explanations:
pipeline_stages:
  - regex:
      expression: '(\w+)\s+(\d+)\s+([^:]+): (.*)'
      source: message
      destination: log_level
  - labels:
      log_level:
        error: '{{.match_1}}'

regex

The regex stage uses a regular expression (expression) to parse the incoming log message (source: message). It captures specific parts of the log message and assigns them to named fields (destination: log_level).

labels

The labels stage then extracts the matched fields (in this case, {{.match_1}} from the regex) and attaches them as labels (log_level) to the log entry.

2. References

Grafana Play page.

Refer #267

repo: sentenz/convention


text:
Minor Feature Request : : Download only Metafiles, when bands aren't specified

Hi a small feature request, instead of downloading all the bands by default i.e, when bands are not explicitly passed as an argument. Download only Metafiles.
Example, for below code, download only the metafiles without including all the bands :
`metafiles = ['tileInfo', 'preview']
request = AwsTileRequest(tile=tile_name, time=time, aws_index=aws_index,
metafiles=metafiles, data_folder=data_folder,
data_source=DataSource.SENTINEL2_L1C)
request.save_data()`

This is actually already possible (although it is not well documented). Class sentinelhub.constants.AwsConstants contains all filenames used for download. Therefore you can download only metafiles with:
from sentinelhub import AwsTileRequest, AwsConstants

request = AwsTileRequest(tile=tile_name, time=time, aws_index=aws_index,
    bands=[],
    metafiles=AwsConstants.S2_L1C_METAFILES,
    data_folder=data_folder,
    data_source=DataSource.SENTINEL2_L1C)

request.save_data()

By the way, if you download data in same structure as available at AWS we figured the best default option is to download all bands and no metadata. That is because in most use cases only bands are needed. However if you download into .SAFE format (specified with safe_format=True) the default option is to download all metadata as well (except for tileInfo.json and productInfo.json which are not part of the .SAFE structure).

Closing the issue for now, we will keep in mind to add some more examples about this in the future.

repo: sentinel-hub/sentinelhub-py


text:
Deserializing a RawValue inside an untagged enum always fails

cargo script compatible example:
//! ```cargo
//! [dependencies]
//! serde = "1.0.79"
//! serde_json = { version = "1.0.32", features = ["raw_value"] }
//! serde_derive = "1.0.79"
//! ```

#[macro_use] extern crate serde_derive;
extern crate serde;
extern crate serde_json;

#[derive(Debug, Deserialize, Serialize)]
struct FooNewtype<T>(T);

#[derive(Debug, Deserialize, Serialize)]
#[serde(untagged)]
enum FooEnum<T> {
    Single(T)
}

fn main() {
    // works
    let val: FooNewtype<Box<serde_json::value::RawValue>> = serde_json::from_str("42").unwrap();
    println!("{:?}", val);

    // thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("data did not match any variant of untagged enum FooEnum", line: 0, column: 0)', libcore/result.rs:945:5
    let val: FooEnum<Box<serde_json::value::RawValue>> = serde_json::from_str("42").unwrap();
    println!("{:?}", val);
}

I haven't figured out what's causing this yet.

Ok, I think I get it now. RawValue assumes the Deserializer from serde-json but untagged enums use their own deserializer.
@dtolnay Do you have opinions on putting deserialize_raw onto the Deserialize trait (with a default impl that errors)? It's the first fix that comes to mind

Right, untagged enums are deserialized from a data structure that has been buffered into heap memory, not from the original JSON deserializer.
I don't think a deserialize_raw method is the right fix. The underlying limitation is the same as https://github.com/serde-rs/serde/issues/1183. Both issues would be better resolved by supporting a customizable buffer type per deserializer (proof of concept in https://github.com/serde-rs/serde/pull/1354).

Closing in favor of https://github.com/serde-rs/serde/issues/1183 since this issue is a direct consequence.

authors: dtolnay untitaker

repo: serde-rs/json


text:
array in remote crate

How to handle arrays in remote creates?
The following does not work:
#[derive(Serialize, Deserialize)]
#[serde(remote = "Process")]
struct ProcessDef {
    #[serde(with = "[DurationDef; 2]")]
    durations: [Duration; 2],
}

Full Playground:
example

Hi @genofire, sorry that no one was able to provide help here. If this is still an issue, you could try taking this question to any of the resources shown in https://github.com/serde-rs/serde#getting-help.

authors: dtolnay genofire

repo: serde-rs/serde


text:
Deserializing an untagged enum fails on what looks like a correct input?

I have an untagged enum I'm trying to deserialize to. One of the variants looks for an optional field called m_Father. I expect the data in test.yml (below) to match this variant, but instead I get the error data did not match any variant of untagged enum Component. However if I re-write the enum variant as a struct, it deserializes correctly. I'm not sure if I'm overlooking a step or if something isn't working correctly.
Here is a minimal reproduction case:
use std::fs;
use serde::Deserialize;

#[derive(Debug, Deserialize)]
struct ExtReference {
    guid: String,
}

#[derive(Debug, Deserialize)]
struct IntReference {
    #[serde(rename="fileID")]
    id: String,
}

#[derive(Debug, Deserialize)]
#[serde(untagged)]
enum Component {
    Custom {
        #[serde(rename="m_Script")]
        script: ExtReference
    },

    BuiltIn {
        #[serde(skip)]
        name: String,

        #[serde(rename="m_Father")]
        parent: Option<IntReference>,
    },
}

#[derive(Debug, Deserialize)]
struct BuiltIn {
    #[serde(skip)]
    name: String,

    #[serde(rename="m_Father")]
    parent: Option<IntReference>,
}

fn main() {
    let path = "test.yml";
    let contents = fs::read_to_string(&path)
        .expect(&format!("Unable to read file {:?}", &path));

    // Works
    let alt: BuiltIn = serde_yaml::from_str(&contents).unwrap();
    println!("{:?}", alt);

    // Doesn't work
    let data: Component = serde_yaml::from_str(&contents).unwrap();
    println!("{:?}", data);
}

Contents of test.yml:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1121606776}
m_LocalRotation: {x: 0.72600275, y: -0.25875553, z: 0.0057348483, w: 0.63712853}
m_LocalPosition: {x: 0, y: 3, z: 2.95}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 68.138, y: -120.335, z: -98.373}

This happens because conversion from YAML int to Rust String is done by the yaml deserializer. However, untagged enums deserialized from an intermediate deserializer, that buffers content and of course does not do such conversion, because it is specific for YAML. In other words, you suffer from #1183.
Bufferization is used because serde need to try each variant, but deserialization consumes the input. So need a way to provide the same input several times.

I see, thank you for explaining. I'll close this because I at least managed to figure out a solution for my particular case.

authors: Mingun frnsys


text:
Install Error

Error file from install MacOS 10.12.3 (16D32)
1488293864326.txt

You need to install JDK 1.8+.

correct, fixed it.

authors: serge-rider wkuckro

repo: serge-rider/dbeaver


text:
Tables filter and right click

I have an idea about tables filter.
I think it will be easier if you can add table to filter by right-click. You just select table/tables in "Database Navigator" or Main Window then you right-click and choose an option "Add to filter".
I'm thinking about "Remove from filter", but I'm not sure how it should work...

Yeah, I like it. And its easy to implement.
Thanks for idea.
I think that "Remove from filter" action may remain the same (thru Filters dialog). It is not so frequent operation and its ok.

authors: serge-rider your-mirror


text:
Scroll doesn't work

When the XML is big you can't scroll down to see the rest of the document.

Still same, as well. Might have something to do with external monitors.

Temporary fix using CSS (based on #69):
.xv-source-pane { height: calc(100vh - 36px); }

authors: PalmtopTiger apostolix tsimmons

repo: sergeche/xmlview


text:
Version Brazil Portuguese: Felipe Genuino

Hi dear, this is my contribution. Version pt-br (portuguese of Brazil).

Hi @felipegenuino, thanks for translating.
You pointed that this translation to Brazil Portuguese and used the URL as /pt-br. Are the differences bewteen Brazil Portuguese and Portugal Portuguese that big in written language? Can it be one Portuguese version with /pt? Very curious.
In general I don't mind of having both, for simplicity 1 is better in my opinion. I quickly checked Wikipedia and found that often it has only one Portuguese, so the questions is if we can do the same. What do you think?
Thanks!

there are some differences between Portuguese from Portugal and Brazilian.
the big difference is in the verbal agreement.  there are some words that
for pt-BR do not make sense.  that's why I reinforce that we must keep the
pt-BR.  Using generic can cause a language barrier, it would give all sides
to understand but some words might sound funny.
Em sex, 10 de dez de 2021 06:35, Sergei Kriger @.***>
escreveu:

Hi @felipegenuino https://github.com/felipegenuino, thanks for
translating.
You pointed that this translation to Brazil Portuguese and used the URL as
/pt-br. Are the differences bewteen Brazil Portuguese and Portugal
Portuguese that big in written language? Can it be one Portuguese
version with /pt? Very curious.
In general I don't mind of having both, for simplicity 1 is better in my
opinion. I quickly checked Wikipedia and found that often it has only one
Portuguese, so the questions is if we can do the same. What do you think?
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sergeicodes/a11ymyths/pull/25#issuecomment-990779353,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJEN6BDK6S2NYP2SRSDRBDUQHCUXANCNFSM5JYBGF3Q
.

that's why I reinforce that we must keep the pt-BR

@felipegenuino fine with me, we can have both versions. Please translate what I mentioned above and we can release.

@felipegenuino thanks!

authors: felipegenuino sergeicodes


text:
Using MS SQL Server Sink with .NET Core 3.0

I'm trying to use this sink with .NET Core 3.0 and can't seem to get any errors with my current configuration. Table is created automatically but no lines are inserted into the table when using logger. Is this a issue with my implementation or just lack of support for .NET Core 3.0 ?
I'm using following versions
Serilog.AspNetCore 3.2.0
Serilog.Sinks.MSSqlServer 5.1.3
My code in Program.cs is following:
public static void Main(string[] args)
{

	var logger = new LoggerConfiguration()
		.ReadFrom.Configuration(Configuration)
		//.WriteTo.MSSqlServer(
		//	connectionString: "Server=(localdb)\\MSSQLLocalDB;Database=testingdb;Integrated Security=True;",
		//	tableName: "Logs",
		//	columnOptions: new ColumnOptions(),
		//	schemaName: "dbo",
		//	autoCreateSqlTable: true)
		.CreateLogger();
	try
	{
		Log.Information("TEST");
		CreateHostBuilder(args).Build().Run();
	}
	catch (Exception ex)
	{
		Log.Fatal(ex, "Application start-up failed");
		throw;
	}
	finally
	{
		Log.CloseAndFlush();
	}

}

public static IHostBuilder CreateHostBuilder( string[] args ) =>
	Host.CreateDefaultBuilder( args )
		.UseServiceProviderFactory( new AutofacServiceProviderFactory() )
		.UseSerilog()
		.ConfigureWebHostDefaults( webBuilder =>
		{
			webBuilder.UseStartup<Startup>();
		} );

And appsettings.json that is loaded to Configuration property in Program.cs is following:

  "Serilog": {
    "Using": [ "Serilog.Sinks.MSSqlServer" ],
    "MinimumLevel": "Warning",
    "WriteTo": [
      {
        "Name": "MSSqlServer",
        "Args": {
          "connectionString": "Server=(localdb)\\MSSQLLocalDB;Database=testingdb;Integrated Security=True;",
          "schemaName": "dbo",
          "tableName": "Logs",
          "autoCreateSqlTable": true,
          "restrictedToMinimumLevel": "Warning",
          "batchPostingLimit": 1000,
          "period": "0.00:00:30"
        }
      }
    ]
  }

Usage is the normal type with contructor injection of ILogger and _logger.LogInformation("info");
Usage of logger or the initial setup does not throw any errors.
What am I missing here?

It was this line in first code block that was wrong:
var logger = new LoggerConfiguration()
		.ReadFrom.Configuration(Configuration)
		.CreateLogger();

And it should be:
Log.Logger = new LoggerConfiguration()
				.ReadFrom.Configuration(Configuration)
				.CreateLogger();

So just a rookie mistake.
I can now confirm this sink works with .NET Core 3.0 and .NET Core 3.1

repo: serilog/serilog-sinks-mssqlserver