text:
Add Streaming SSR [Ready to merge]

[x] Backward compatibility.
[x] Support streaming response NOT by default.
[x] ClientApp's custom renderer could return a string with renderToString, or a stream with renderToNodeStream, the response is automatically streamed.
[x] Provide a StreamingToken (default to false) for user to control if he wants to use stream or not.
[x] Unit test streaming rendering both renderToString and renderToNodeStream

Why is it a new file? Are there downsides to streaming to warrant keeping the non-streaming version around?

@lhorie Just want to keep thing simple. In future we might want to add a StreamingToken , then we could conditionally select between streaming or non-streaming version. So it's better for isolated file here.

More references:

Chunked response in Express

Thank you for the time put into this, it's influenced our decision about how we can support overriding the HTML template, which is why it's now exposed in fusion-cli. We have plans to allow for additional extensibility, but going to close this out. Will also follow-up in https://github.com/fusionjs/fusion-core/pull/293.
I believe for now we have decided that we want apps to maintain this logic, until we have proper streaming react. (We are still going to work on streaming react, and would be happy to work with you on that). See https://github.com/KevinGrandon/fusion-boilerplate/pull/25/files#diff-d169dac8b1bc8f2878ccd7c4f16b57e4R16 for an example streaming implementation.

authors: KevinGrandon lhorie revskill10

repo: fusionjs/fusion-core


text:
React-Redux 6.0.0 package breaks dispatch

Type of issue

bug
Description

Dispatch gets broken. Maybe something to do with this.context?..

Current behavior
store.dispatch does not exist.

Expected behavior
store.dispatch should exist.

Steps to reproduce

install react-redux 6.0.0
run rpc calls

Your environment

fusion-plugin-rpc-redux-react version:
2.0.2

Node.js version (node --version):
8.11.3

npm version (npm --version):
5.6.0

Operating System:
mac os x 10.14.2

Hi, I'm a Redux maintainer.
The real solution here is to update the library to correctly read the store out of the ReactReduxContext instance for compatibility with v6, and release an updated version.
See our docs page here: React-Redux: Accessing the Store.

Does this issue being closed mean that React-Redux >= 6 is good to use with this plugin?

No, this library is currently only compatible with <= v5, and breaks with >= v6.

source: gharchive/issue

authors: chiwoojo markerikson zebralight

repo: fusionjs/fusion-plugin-rpc-redux-react

license: MIT

license_type: permissive

license_source: github-api


text:
Add whylogs

Adding whylogs, an OSS data profiling tool which can be used to create data logs for a monitoring system

Thanks @dleybz!

source: gharchive/pull-request

authors: archena dleybz

repo: fuzzylabs/awesome-open-mlops


text:
当数据量大时，extract_tags 方法非常慢

您好，当我用 jieba.analyse.extract_tags 方法提取关键词时，当数据量比较大的时候，这个方法运行时间太长了，请问有没有并行加速的措施呢？  @fxsjy

同问。

同问

authors: gaoisbest kelly-tlz pangyouzhen

repo: fxsjy/jieba

license: mit

license_source: bigquery


text:
取消星星了，这个项目已经死了

个人有点算是Github老用户了，最近看到pelican项目也开始有这个趋势了多少有点感叹。我看过很多开源项目从开源项目慢慢变成了会员所有项目甚至变成了某些人甚至某一个人的专有项目，随着那小部分人失去了维护动力，至此那个开源项目就已经进入死亡周期了。
大概2020年的时候，我给这个项目提过一个意见，那就是我发现它用的marshal模块存储字典缓存的，这在python官方文档中已经不推荐了，推荐使用pickle，但实际上就这个应用场景，使用json就足够了。个人实践使用json确实能够提高模型加载速度。
当时给这个项目提了一个issue建议，但基本上过了很久很久这个issue也没人理。一开始我还以为是我提交的issue格式或者等等其他问题，但现在回过头来看，其实这个项目早就已经进入死亡周期了。
我写了一个fenci模块，分词逻辑上和jieba相同，不过代码会更简洁清晰，然后还提供了HMM算法的训练接口。
fenci模块
个人水平和精力有限，权当抛砖引玉吧。
我想说的jieba分词对于中文分词来说属于入门级别，对分词要求不高的场景可以随便用下，但即使是这样也是推荐加入自定义词典。而对于分词稍微有点要求的不管是算法还是词汇等等各方面都需要自己去实现了，至此jieba这个模块只具有参考学习价值了。
虽然有统计显示最近几年Github活跃新增项目数逐年是下降的了，但得出结论认为人们对开源代码的热情正在消退这是不正确的，开源的核心精神是开源而不是另外什么东西，你只要使用开源软件，给开源代码提问题，或者自己鼓捣一个什么开源项目分享出来，这都是开源精神，而我不认为这点上人们有所改变。那个统计无非揭示了确实Github上很多热门开源项目正在慢慢完成它的历史任务，因为火过之后也不敢再做什么大改动了，然后慢慢的走入静止衰退周期了，说大白话就是很多热门开源项目都步入死亡周期了，但那个统计的问题是他只关注热门项目，而我相信Github整体活跃度是一年高过一年的，而人们对于开源项目的热情也是一年高过一年的。

赞，坐吃山空，不破不立。补充一点，老牌分词工具其实都大刀阔斧的改革了，比如斯坦福CoreNLP续作Stanza，spacy，LTP升级4.0，HanLP升级2.0……jieba的paddle模式算是一次尝试，但是很敷衍，准确率仍然垫底，那套python2的代码结构现在也不适合学习，唯一的意义就是路径依赖。改革需要勇气，大版本一更新失去一批老用户，费力不讨好，哪有躺平轻松。但长远看，新技术必然取代旧技术，持续更新的必然比一潭死水强
我在另一个回答里也提了这个观点：https://github.com/fxsjy/jieba/issues/953#issuecomment-1000489899

事情都在发展，人和组织都在变化，项目已死可能是不争的事实，但jieba仍然是我这类新手入门首选，就像初恋一样，我会留星。

個人使用 jieba 也有幾年時間，老實說除了底層的 HMM 程式也應該做點修正了，程式可讀性也不符合 2022 年的標準（就單看變數命名，新手要怎麼理解）。
我自己的5分錢建議, 各位大老看看如何？

後端分詞模型換成 onnx 格式的神經模型（確保未來不會受限於模型訓練框架，你想用 Pytorch, TF, Paddle 都行），並將分詞與詞性預測整合在同個模型下

詞頻的 DAG 程式改寫

將 pos, finalseg 兩個不同任務的模組，統一到同一個模塊下

模型權重與字典分開下載，類似 spacy 的做法需要使用時才從網路載入或給予本地路徑

其他不太重要的建議：

將 Python2 支援去除，單是判斷版本就讓程式複雜度增加、可讀性降低了不少

一些背景知識，本人實驗過使用類神經網路分詞在計算效能和F1-score 表現上都不會比 jieba 的 HMM 還差，只要設計得當在分詞套件還是有自己的存在需求（低資源需求）

感谢建议  @theblackcat102
onnx 很有意义,现在的梯度模型要上gpu上集群都是有需求的
权重和字典分离具体指什么? spacy下载实际上也有挺多的版本控制的问题,字典现在下载速度是真的很慢是吗?
DAG不改的话具体有什么问题可以展开一下吗?

@shouldsee

权重和字典分离具体指什么?

目前 jieba 把 HMM的权重写死在程式中，我觉得应该参考更成熟的 HanLP 做法或 huggingface transformer 的 from_pretrained ，做到可以让使用者只有执行时才下载（当然要喂模型档案路径也行）。

DAG不改的话具体有什么问题可以展开一下吗?

我觉得主要是可读性的问题？jieba 在最关键的步骤 __cut_DAG连句 comment 都沒有，
另外 paddle 问题真的很多，各位搜寻一下这里的 issue stack 就发现一堆问题了。我有魔改 jieba 用 onnx ，目前在处理 TB 等级的文字都没有问题（当然也不排除我的写法都避开了雷区）。

其实如果是有 active 的 maintainer 完全可以 fork 这个 repo 来重新 revamp
项目确实都是 来来去去的 这点倒是无可厚非

权重写死到PY文件肯定是有问题的,那最简修改的话至少要引入一个模型文件名,作为模型的属性加以维护应该是不难的,只要在模型初始化的时候指定即可,可选地可以支持简单http或者https的url直接读取简单的response直接load到模型里. 可以先把这部分简单改出来,然后看看具体文件格式怎么adapt
可读性的话,大家加注释comment就好了?那现在的问题主要还是没有一个active的review/maintain routine? 得有人花时间维护一套repo branch应该就可以? 目标就是把issue区清干净:D


text:
Addition of Brazilian official issuing bodies to documents.

List of some Brazilian issuing agencies.

Codecov Report

Merging #1871 into master will decrease coverage by 0.08%.
The diff coverage is 33.33%.

@@             Coverage Diff              @@
##             master    #1871      +/-   ##
============================================
- Coverage     56.48%   56.39%   -0.09%
- Complexity     2068     2071       +3
============================================
  Files           306      306
  Lines          4851     4855       +4
============================================
- Hits           2740     2738       -2
- Misses         2111     2117       +6

Impacted Files
Coverage Δ
Complexity Δ

src/Faker/Provider/pt_BR/Person.php
68.75% <33.33%> (-22.92%)
8 <3> (+3)

src/Faker/Provider/de_AT/Person.php
0% <0%> (-100%)
1% <0%> (ø)

src/Faker/Provider/en_IN/Person.php
0% <0%> (-100%)
1% <0%> (ø)

src/Faker/Provider/sv_SE/Address.php
50% <0%> (-50%)
4% <0%> (ø)

src/Faker/Provider/sr_Latn_RS/Address.php
66.66% <0%> (-33.34%)
3% <0%> (ø)

src/Faker/Provider/cs_CZ/Address.php
66.66% <0%> (-33.34%)
3% <0%> (ø)

src/Faker/Provider/hu_HU/Address.php
15.38% <0%> (-30.77%)
6% <0%> (ø)

src/Faker/Provider/uk_UA/Company.php
28.57% <0%> (-28.58%)
3% <0%> (ø)

src/Faker/Provider/da_DK/Address.php
42.85% <0%> (-28.58%)
7% <0%> (ø)

src/Faker/Provider/hu_HU/Person.php
60% <0%> (-20%)
5% <0%> (ø)

... and 32 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29f10e4...837a932. Read the comment docs.

authors: SwellingtonSoares codecov-io

repo: fzaninotto/Faker


text:
Issue when I try to input a date manually.

I creating a GUI and need the user can input the date both manually and selecting a date in datepicker.  When I input the date manually de modelview value isn't setted. How do I can make it?

I'm having the same issue. I set the format to be DD/MM/YYYY. When the user enters a date manually using keyboard, say, 03/12/2016 and then I click the date picker it shows the date as march 12th instead of dec 3rd. But when I pick a date on the date picker it displays the properly formatted date in the input box.

In the respective js file provide a format of 'YYYY/MM/DD' because moment.js reads it as the format i mentioned.

$scope.dob = moment($scope.dob, "DD/MM/YYYY").format('YYYY/MM/DD');


text:
window is not defined when run yarn start

liuyutingdeMacBook-Pro-2:vue.vtaiwan.tw yutin$ yarn start
yarn start v0.16.1
$ cross-env NODE_ENV=production node server
server started at localhost:8080

/Users/yutin/Develop/vtaiwan/vue.vtaiwan.tw/server.js:85
    throw err
    ^
ReferenceError: window is not defined
    at __vue_ssr_bundle__:476:30
    at __vue_ssr_bundle__:471:47
    at module.exports (__vue_ssr_bundle__:493:68)
    at Object.module.exports.module.exports (__vue_ssr_bundle__:721:37)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.module.exports.Object.defineProperty.value (__vue_ssr_bundle__:235:12)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.<anonymous> (__vue_ssr_bundle__:790:18)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.module.exports.exports.uppercase (__vue_ssr_bundle__:81:67)
error Command failed with exit code 1.

How to reproduce this?
Try these commands?
rm -rf node_moudles
yarn
yarn build
yarn start


text:
使用手册网址无法访问

http://g1879.gitee.io/datarecorderdocs/

https://drissionpage.cn/DataRecorderDocs/usage/introduction/

authors: Snakebinp liangzhenqiao


text:
Jared edwards solution

comfort level 1-5
3
completness
3

👍


text:
Oncogenicity mechanism value set

In recent calls, we decided that the mechanism by which an oncogenic variant contributes to disease should be captured as a qualifier on a Variant Oncogenicity Annotation. There was much debate about the choice of terms to use to capture the mechanism.  This ticket will hold discussion on this topic.
To summarize briefly: we initially started with the set of terms CIViC uses to capture the outcome of a Biological Assertion:   gain of function, loss of function, neomorphic, unaltered function, other . However there is additional nuance/granularity that may be useful to capture that is not reflected in this list.  The concepts outlined in Muller's morph classification were highlighted in particular
@arpaddanos agreed to take a pass at defining a set/hierarchy of terms based on these and other sources (e.g. it may be worth looking across existing knowledgebases and cataloging the terms/concepts they use).

Terms in this space used by a couple model organism databases are referenced in the GENO ontology ticket here: https://github.com/monarch-initiative/GENO-ontology/issues/3. May or may not be useful for this work.


text:
Feature/1220/requirements file

Added a new endpoint to return tool runner dependencies
Add deps command to the existing tool command
4 requirements.txt files are added to Dockstore, only the 1.5 ones are meant to be changed

For #1220 and also related to #1242

Apparently others have the same problem: https://github.com/swagger-api/swagger-codegen/issues/4978

It's possible its symmetric, but the linked example seems to be a  POST that consumes"rather than your case where I assume you need to produce from a GET.

Closing this until it can reliably build.

authors: denis-yuen garyluu


text:
Add documentation (template?) for GitHub CI/CD workflow

Similar to #4 but for GitHub CI/CD workflow
A work in progress implementation is available in this PR: https://github.com/data2health/nlp-sandbox-schemas/pull/7

@jaeddy @jb-adams Here is a working example that I created for a repository that hosts multiple OpenAPI specifications:
https://github.com/Sage-Bionetworks/nlp-sandbox-schemas/blob/develop/.github/workflows/ci.yml
Additional information are available here:
https://github.com/Sage-Bionetworks/nlp-sandbox-schemas/issues/30

Thanks @tschaffter !
Similar to #64 , I'd prefer to put this logic into the app itself to avoid replicating build/push logic across .travis.yml files for different GA4GH specs. I've started a feature branch to do this. In particular, the files gh-pages.js and git-config.js are handling similar logic as to what's in your ci.yml file.
I'm able to build, commit, and push to gh-pages all from a docker container running the app. Here is the repo containing a dummy "Hello World" API spec, that, when updated and pushed, triggers a push to gh-pages

authors: jb-adams tschaffter


text:
Add quality and filters close #219

Updates the work presented by @heuermh in https://github.com/ga4gh/schemas/pull/304 and @johntbates in https://github.com/ga4gh/schemas/pull/220 to protobuf. Includes the filters_passed field as suggested by @fnothaft
Closes #219

Bump, this will close a couple of open PRs that fulfill the same functionality.

+1

-0
We decided to go a different way in bdg-formats, in avro schema
  /**
   True if filters were applied for this variant. VCF column 7 "FILTER" any value other
   than the missing value.
   */
  union { null, boolean } filtersApplied = null;

  /**
   True if all filters for this variant passed. VCF column 7 "FILTER" value PASS.
   */
  union { null, boolean } filtersPassed = null;

  /**
   Zero or more filters that failed for this variant. VCF column 7 "FILTER" shared across
   all alleles in the same VCF record.
   */
  array<string> filtersFailed = [];

Closing in favor of #777

authors: david4096 heuermh kozbo


text:
Create LICENSE

Closes #43

Any objection to me just merging this in?

authors: briandoconnor buchanae


text:
🛑 Revista is down

In 4766405, Revista (https://pensamientopenal.com.ar/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Revista is back up in ad25c86.


text:
Refactor to support other parsers

The Stanford parser, like other parsers, makes errors. e.g.
Although the UK has long had an ambivalent attitude towards Europe, the hostility of the UK Independence Party towards the EU is mirrored by other European "insurgent" parties, such as the Freedom Party in the Netherlands and Front national (FN) in France.

( (S (SBAR (IN Although)
	   (S (NP (DT the) (NNP UK))
	      (VP (VBZ has) (ADVP (RB long))
		  (VP (VBN had) (NP (DT an) (JJ ambivalent) (NN attitude))
		      (PP (IN towards) (NP (NNP Europe)))))))
     (, ,) (NP (NP (DT the) (NN hostility))
	       (PP (IN of) (NP (NP (DT the) (NNP UK) (NNP Independence)
				   (NNP Party))
			       (PP (IN towards) (NP (DT the) (NNP EU))))))
     (VP (VBZ is) (VP (VBN mirrored)
		      (PP (IN by)
			  (NP (NP (NP (JJ other) (JJ European) (`` ``)
				      (NN insurgent) ('' '') (NNS parties))
				  (, ,) (PP (JJ such) (IN as)
					    (NP (NP (DT the) (NNP Freedom) (NNP Party))
						(PP (IN in) (NP (NP (DT the) (NNPS Netherlands))
								(CC and) (NP (NNP Front) (JJ national))))))
				  (PRN (-LRB- -LRB-) (NP (NNP FN)) (-RRB- -RRB-)))
			      (PP (IN in) (NP (NNP France)))))))
     (. .))
  )

(Incorrect scope for (PP (IN in)....) For downstream applications it would be much easier if parsers can be added in a plug and play fashion (maybe even multiple of them).
So refactoring to make propS be "just" a converter from an input dependency graph to its output form would be nice.

Hey @saraswat, thanks for the issues you're raising!
Decoupling PropS from the Stanford parser (and from any other syntactic parser, for that matter) is definitely on my to-do list, I hope to get to this soon.
I'll keep you updated!

UDepLambda (a project with similar goals to this project) handles this by running a pipeline at the shell level and piping JSON files through. Simple and convenient. Adding another parser is simply changing some lines in a shell file.
https://github.com/sivareddyg/UDepLambda

Any thoughts on this? Other collaborators who are keen to work on this are having trouble getting the system installed because of the Java/Python interface. My thought is to just focus on using the UDepLambda pipeline working here. The Stanford parser already works with this pipeline, so its just a question of getting props to accept the stanford parser input from a json file piped into it.

Hi @saraswat, this sounds feasible and worthwhile to me.
I'll work on that in the next few days, and open a pull request when ready.
Thanks!

@saraswat, addressed in #17, please let me know if this looks good, and I'll merge.
Thanks!

authors: gabrielStanovsky saraswat

repo: gabrielStanovsky/props


text:
Install, nothing worked

When ran

pip install -r xxxxxx

nothing worked:

ERROR: Could not find a version that satisfies the requirement pysqlite3-binary (from versions: none)
ERROR: No matching distribution found for pysqlite3-binary

Ah - my bad.
I realised this repo is specifically for deployment on streamlit's free hosting.
Can you try:

Removing pysqlite3-binary in the requirements.txt
Commenting out lines 5 to 7 in app.py:

__import__('pysqlite3')
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')

Having a similar issue trying to run this on a codespace. commeneted out lines as described but seeing this in the output when running streamlit run app.py
Traceback (most recent call last):
File "/workspaces/RAGxplorer/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
exec(code, module.dict)
File "/workspaces/RAGxplorer/app.py", line 15, in <module>
from utils.rag import ...
File "/workspaces/RAGxplorer/utils/rag.py", line 6, in <module>
import chromadb
File "/workspaces/RAGxplorer/venv/lib/python3.10/site-packages/chromadb/init.py", line 79, in <module>
raise RuntimeError("Your system has an unsupported version of sqlite3. ChromaDB requires sqlite3 >= 3.35.0.")
RuntimeError: Your system has an unsupported version of sqlite3. ChromaDB requires sqlite3 >= 3.35.0.

Hi @Mike92988  - could you run the following & share the results?
in the terminal:

pip freeze

In python:

import sqlite3
sqlite3.version

authors: Mike92988 XinyueZ gabrielchua

repo: gabrielchua/RAGxplorer


text:
Replace getGradleAttributesFlow with new operator

Replace getGradleAttributesFlow with new operator to not hide the official API, but extend it.

getGradleAttributesFlow (or a similar operator) won't be needed for 2023.4 onward. The GE API now supports the fetching of other "models" in a single /api/builds request.

repo: gabrielfeo/gradle-enterprise-api-kotlin


text:
Document getInitialOffsetFromContainer() in API doc

Add DragDropContext.getInitialOffsetFromContainer() to the API documentation.
Currently it is a "hidden" method that needs documentation.
I just had a use for it today and stumbled upon it while logging the DragDropContext

It's actually removed in 1.0, can you give me more info about your use case? I could probably bring it back in 1.1.

@gaearon My use case is to position the element a newly created element right where it was dropped. didn't want to deal with the delta because looking up the original drag source is not as straight forward.
Here is a demo with it in action: http://codepen.io/MadLittleMods/pen/VLaENY

@MadLittleMods you can try html5 dom getBoundingClientRect, it's dom node position based on the view offset. it's comparable with DropMonitor.getClientOffset.

@is You can use the demo linked in a previous message to try it out.

If you're still interested in this feature, please create a PR adding it.

authors: MadLittleMods gaearon is

repo: gaearon/react-dnd


text:
fix broken link

Link points to a file that was deleted at 1c29c857100eb1d72326a088db86df60befc52e8

Thanks, but can you please PR against rewrite-docs-again? gh-pages is compiled output.

authors: gaearon kolodny

repo: gaearon/redux


text:
workflow for intro-short

workflow for intro-short tutorial
@bebatut

Thanks @polkhe

authors: bebatut polkhe

repo: galaxyproject/training-material


text:
Added job conf section to ansible-galaxy tutorial

Adds the missing section on creation of a simple job conf file to the ansible-galaxy tutorial. This allows for a single day or other shortened course to then go onto other modules like the Pulsar tutorial with the required job conf file in place.

Will get to this tomorrow if it's OK but it's looking good, just want to go over language.


text:
Revert "Support tutorial mode via postMessage"

Reverts galaxyproject/training-material#5344

chrome :cry:


text:
Update slides.html- Including ASCII code

Added a slide - ASCII 33

Thanks @Swathi266 for your contribution! Sorry for the slowness in merging. I've tweaked the formatting a bit and added you to the contributors file :+1:


text:
add glry_gallery.go with structs

Changes:

Added new gallery struct with some helper functions for getting (literally just the same functions as for collections but with some minor changes)

Considerations:

bson tags can have an optional ,omitempty such as bson:"contract_name,omitempty" that will make sure that empty falsy fields are not put into mongo when a struct field is it's 0 value. Which fields do we want to have omitempty? My vote is that most fields should have omitempty and only the required ones don't

My vote is that most fields should have omitempty and only the required ones don't

tend to agree here, as long as it's still safe to query for fields that may not exist on certain objects. i believe mongo is cool with this

authors: bennycio fbrcsftnr

repo: gallery-so/go-gallery


text:
plspのパッケージ化

pip install git+https://github.com/gamasenninn/plsp.git
という形でインストールできるようにしたいのですが、どうしたらよいですか？

chatGPT:
pipを使ってGitHubから直接インストールすることは可能です。ただし、そのためには、リポジトリにsetup.pyファイルを追加して、パッケージのメタデータや依存関係を指定する必要があります。以下に、setup.pyのサンプルを示します。
# setup.py
from setuptools import setup, find_packages

setup(
    name='plsp',
    version='0.1.0',
    packages=find_packages(),
    install_requires=[
        # 依存関係のあるパッケージをここに記述します。
    ],
    entry_points={
        'console_scripts': [
            'plsp = plsp:main',
        ],
    },
)

上記のsetup.pyをプロジェクトのルートディレクトリに追加し、さらにplsp.pyの内容を以下のように更新してmain関数を追加してください。
# plsp.py
import sys
from repl import repl
from file_runner import run_file

def main():
    if len(sys.argv) > 1:
        filename = sys.argv[1]
        run_file(filename)
    else:
        repl()

if __name__ == '__main__':
    main()

これで、次のようなコマンドを実行してGitHubから直接インストールすることができます。
pip install git+https://github.com/gamasenninn/plsp.git

注意: 上記のコマンドは、実際にインストールを行うものではありません。あなたのリポジトリURLに置き換えて実行してください。
これで、インストールが完了した後、plspコマンドが使えるようになります。pipでインストールされたパッケージは、仮想環境を使用して環境を分離することが推奨されます。

だめだ。全然うまくいかん。

chatGPT:
ChatGPT:

エラーの原因は、plsp.py内のインポート文で起こっています。replとfile_runnerを相対インポートに変更する必要があります。そのため、plsp.py内のインポート文を次のように変更してください。

plsp.py:
import sys
from .repl import repl_main
from .file_runner import run_file

def main():
    if len(sys.argv) > 1:
        filename = sys.argv[1]
        run_file(filename)
    else:
        repl_main()

if __name__ == '__main__':
    main()

この変更を加えた後、もう一度pipでパッケージをインストールし直してください。次に、再度 import plspを試してエラーが解消されるか確認してください。
さらに、
ChatGPT:

repl.py ファイルで、lparser、evaluator、および utils といったモジュールをインポートしようとしていますが、相対インポートを使用していないため、エラーが発生しています。repl.py のインポート文を次のように修正してください。

repl.py:
from .lparser import parse
from .evaluator import evaluate, initial_env
from .utils import schemestr

この変更を行った後、もう一度 pip でパッケージをインストールし直してください。次に、再度 import plsp を試してエラーが解消されるか確認してください。この変更で lparser、evaluator、および utils モジュールが正しくインポートされるはずです。

このchatGPTの提案を參考にいろいろ試していたらできた。

Person:

テストはうまくとおりました。import plspもできます。
ですが、python -m plspを実行すると次のエラーが出ます。

PS C:\OneDrive\ドキュメント\plsp> python -m plsp
C:\Users\gamas\AppData\Local\Programs\Python\Python311-32\python.exe: No module named plsp.main; 'plsp' is a package and cannot be directly executed
ChatGPT:

python -m を使用してパッケージを実行する場合、パッケージ内に __main__.py ファイルが必要です。このファイルは、パッケージがコマンドラインから実行された場合に実行されるエントリポイントとなります。

plsp パッケージ内に __main__.py ファイルを作成し、次のような内容を記述してください。
main .py:
from .plsp import main

if __name__ == '__main__':
    main()

これで、python -m plsp を実行すると、plsp パッケージ内の main() 関数が呼び出されるようになります。

Person:

では、コマンドとして実行するためには？

ChatGPT:

コマンドとして実行するためには、setup.py ファイルに entry_points を設定することで、インストール時にコマンドラインスクリプトを生成します。

まず、setup.py ファイルの entry_points を次のように設定します。
setup(
    # 既存の設定は省略しています
    entry_points={
        'console_scripts': [
            'plsp = plsp.plsp:main',
        ],
    },
)

この設定により、plsp.plsp モジュール内の main 関数が plsp コマンドとして登録されます。
次に、変更を適用するためにパッケージを再インストールします。プロジェクトのルートディレクトリで、次のコマンドを実行してください。
pip install --editable .

--editable オプションは、現在のプロジェクトディレクトリを参照しながらパッケージをインストールするために使用されます。これにより、プロジェクトの変更をリアルタイムで反映させることができます。
パッケージが再インストールされると、plsp コマンドが利用可能になります。コマンドプロンプトやターミナルで次のように実行してみてください。
plsp

これで、plsp パッケージがコマンドラインから直接実行できるようになります。

開発環境とは別のマシンでも動いた
pip install git+https://github.com/gamasenninn/plsp.git
よってこのタスク完了

repo: gamasenninn/plsp


text:
Normalize URL

normal the url before we apply the protection middleware against it

looking at normalizing all urls before applying the middleware ... related to #200


text:
Discord page not found

Bug description
GameCI website is missing https://game.ci/discord page.
Steps to reproduce

Go to https://game.ci/discord
Observe Page Not Found error

Expected behavior

Page shows data related to the GameCI discord server.
Additional details
Here's a screenshot as seen on my device:

Thank you for reporting this!
I believe this broke when we moved from Vercel to Firebase. The reason being that I had manually configured that route in Vercel.
We have to do the same in Firebase using the hosting rewrites, which can be committed to the documentation repo.

Fixed by https://github.com/game-ci/documentation/pull/381

authors: davidmfinol kirillmorozov webbertakken

repo: game-ci/documentation


text:
🛑 Groups API Endpoint is down

In 37db5ef, Groups API Endpoint (https://groups.roblox.com/v1/groups/5680533) was down:

HTTP code: 503
Response time: 585 ms

Resolved: Groups API Endpoint is back up in 336ef2c after 12 minutes.


text:
⚠ Roblox Devforum has degraded performance

In d323c38, Roblox Devforum (https://devforum.roblox.com) experienced degraded performance:

HTTP code: 200
Response time: 2676 ms

Resolved: Roblox Devforum performance has improved in 540a17e after 12 minutes.


text:
Use a logger for output

https://docs.python.org/2/library/logging.html
Currently loads of debug info is printed to stdout which is cluttering up the statsdash log.  Need to be able to configure a logger and be able to configure what level of logging should occur in the config file.

Definitely would like to implement this, first impressions of what it would do (let me know otherwise):
each report have a .log file
with debug info being the run through of where the report is, so if theres an error we can see what website/data/time period caused the problem, e.g. :
-"getting_country_metrics"  would be the function its in? should possibly have what .py file it's in?
-DEBUG:getting_country_metrics: eurogamer.net for period Jan 2016
have info when exceptions are caught (i.e. when there is no data for a website time period) e.g. :
-INFO:getting_country_metrics: No data for metabomb: overwatch for period Jan 2015
and set logging level in the config file to DEBUG or INFO
is this sort of what you meant? anything else i should include?

I think that approach is sound, but maybe just have one .log file, e.g: /var/log/statsdash/report_generation.log.  The log format should log each line with a date stamp, which will make it easy enough to search through.
Generally it would be good to refactor out all print statements from the application.  So currently, the cron running on daniels pipes all printed output to /var/log/statsdash/scheduler.log - it would be better to just set this as a schedule logger and change the print statements to log statements.

yes definitely, sounds good!

authors: currycoder fayebutler

repo: gamernetwork/gastatsdash


text:
Error ebean.properties not found or annotations

[19:37:58] [Server thread/INFO]: [ScoreboardStats] Enabling ScoreboardStats v0.9.14
[19:37:58] [Server thread/INFO]: [ScoreboardStats] Registered replacers: [PlayerPingVariable, BungeeCordVariables, BukkitGlobalVariables, GeneralVariables, BukkitVariables, VaultVariables]
[19:37:58] [Server thread/ERROR]: ebean.properties not found
[19:37:58] [Server thread/ERROR]: [ScoreboardStats] null
java.lang.NoSuchFieldException: annotations
at java.lang.Class.getDeclaredField(Class.java:2070) ~[?:1.8.0_92]
at com.github.games647.scoreboardstats.pvpstats.DatabaseConfiguration.setTablePrefix(DatabaseConfiguration.java:191) [ScoreboardStats.jar:?]
at com.github.games647.scoreboardstats.pvpstats.DatabaseConfiguration.getSqlConfig(DatabaseConfiguration.java:121) [ScoreboardStats.jar:?]
at com.github.games647.scoreboardstats.pvpstats.DatabaseConfiguration.loadConfiguration(DatabaseConfiguration.java:75) [ScoreboardStats.jar:?]
at com.github.games647.scoreboardstats.pvpstats.Database.setupDatabase(Database.java:194) [ScoreboardStats.jar:?]
at com.github.games647.scoreboardstats.ScoreboardStats.onEnable(ScoreboardStats.java:141) [ScoreboardStats.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) [spigotmc-1.10-R0.1.jar:git-Spigot-c3e4052-1953f52]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigotmc-1.10-R0.1.jar:git-Spigot-c3e4052-1953f52]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigotmc-1.10-R0.1.jar:git-Spigot-c3e4052-1953f52]
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugin(CraftServer.java:362) [spigotmc-1.10-R0.1.jar:git-Spigot-c3e4052-1953f52]
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.enablePlugins(CraftServer.java:322) [spigotmc-1.10-R0.1.jar:git-Spigot-c3e4052-1953f52]
at net.minecraft.server.v1_10_R1.MinecraftServer.t(MinecraftServer.java:416) [spigotmc-1.10-R0.1.jar:git-Spigot-c3e4052-1953f52]
at net.minecraft.server.v1_10_R1.MinecraftServer.l(MinecraftServer.java:381) [spigotmc-1.10-R0.1.jar:git-Spigot-c3e4052-1953f52]
at net.minecraft.server.v1_10_R1.MinecraftServer.a(MinecraftServer.java:336) [spigotmc-1.10-R0.1.jar:git-Spigot-c3e4052-1953f52]
at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:270) [spigotmc-1.10-R0.1.jar:git-Spigot-c3e4052-1953f52]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:539) [spigotmc-1.10-R0.1.jar:git-Spigot-c3e4052-1953f52]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
[19:37:58] [Server thread/INFO]: Using [com.github.games647.scoreboardstats.pvpstats.PathReader] to read the searchable class path
[19:37:59] [Server thread/INFO]: DataSourcePool [ScoreboardStats] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
[19:37:59] [Server thread/INFO]: SubClassFactory parent ClassLoader [com.github.games647.scoreboardstats.ReloadFixLoader]
[19:37:59] [Server thread/INFO]: Entities enhanced[0] subclassed[1]
[19:37:59] [Server thread/INFO]: runScript
[19:37:59] [Server thread/INFO]: executing 1 of 1 create table IF NOT EXISTS player_stats ( id integer prim...
[19:37:59] [Server thread/INFO]: ... end of script

Duplicate #143

Wath ??


text:
Migration to notepack.io

Benefits of using notepack.io:

Supports custom toJSON at the serialization level (https://github.com/darrachequesne/notepack/pull/8)
Is usually faster to encode/decode than msgpack-lite (https://github.com/darrachequesne/notepack/#performance)
May fix the random BUFFER_SHORTAGE issue @seiyria was having 😂

Would be great to have at least undefined decoding implemented for Unity3D before merging. (https://github.com/deniszykov/msgpack-unity3d/issues/14)

Great! What about compatibility with the unity-client?

@derwish-pro that would come with msgpack-unity3d decoding undefined correctly (see the linked issue).

@derwish-pro notepack.io has some special types that are not part of the msgpack spec (https://github.com/darrachequesne/notepack/#notes) - hopefully the author of msgpack-unity3d will allow registering extension types soon!

authors: derwish-pro endel seiyria

repo: gamestdio/colyseus


text:
Font blurry after animation on chrome

Issue description:  On chrome there is a bug with animation that sets the font blurry. See: https://bugs.chromium.org/p/chromium/issues/detail?id=521364
Steps to reproduce:
Create a slider with text sliders (a special css / html setup might be needed) and slide once. As soon as a transform is applied to the ul element, the font is blurry. If you go back to the original state of the slider, the text is normal again.
This bug happens sporadically and might not be of the scope of this library. Here is a fix for those who are fighting with this bug:
function roundCssTransformMatrix(selector) {
  var el = document.querySelectorAll(selector);
  el.forEach(function(element) {
    var mx = window.getComputedStyle(element, null); //gets the current computed style
    element.style.transform = ""; //resets the redifined matrix to allow recalculation, the original style should be defined in the class not inline.
    mx = mx.getPropertyValue("-webkit-transform") ||
      mx.getPropertyValue("-moz-transform") ||
      mx.getPropertyValue("-ms-transform") ||
      mx.getPropertyValue("-o-transform") ||
      mx.getPropertyValue("transform") || false;
    var values = mx.replace(/ |\(|\)|matrix/g, "").split(",");
    for (var v in values) {
      values[v] = Math.ceil(values[v]);
    }
    element.style.transform = "matrix(" + values.join() + ")";
  });
};

roundCssTransformMatrix(.tns-slider);

Demo link/slider setting:
var slider = tns({
container: '.tabs',
items: 6,
slideBy: 'page',
loop: false,
mouseDrag: true,
autoplayButtonOutput: false,
nav: false,
prevButton: document.querySelector('button[data-controls="prev"]'),
nextButton: document.querySelector('button[data-controls="next"]'),
});
Tiny-slider version:   2.8.6
Browser name && version:  Google Chrome 69.0.3497.92
OS name && version:   Window 10

@ganlanyuan This is indeed an issue and no fault of Tiny but there is a solution for it which you can find here:
https://stackoverflow.com/questions/27385126/chrome-font-appears-blurry/42256897#42256897
Based on the feedback on both the Chrome Bug thread and the stack it seems to solve the problem.

authors: Karthons dolbex

repo: ganlanyuan/tiny-slider


text:
ch5 joinmap 编译问题

同kedevelop build之后显示：
[ 50%] Building CXX object CMakeFiles/joinMap.dir/joinMap.cpp.o
:0:15: warning: ISO C++11 requires whitespace after the macro name
[100%] Linking CXX executable joinMap
/usr/bin/ld: cannot find -lvtkproj4
collect2: error: ld returned 1 exit status
CMakeFiles/joinMap.dir/build.make:349: recipe for target 'joinMap' failed
make[2]: *** [joinMap] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/joinMap.dir/all' failed
make[1]: *** [CMakeFiles/joinMap.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
*** Failure: Exit code 2 ***
求解，卡在这里好久了

/usr/local/include/pcl-1.8/pcl/visualization/point_cloud_geometry_handlers.h:48:29: fatal error: vtkSmartPointer.h: No such file or directory
compilation terminated.
CMakeFiles/joinMap.dir/build.make:62: recipe for target 'CMakeFiles/joinMap.dir/joinMap.cpp.o' failed
make[3]: *** [CMakeFiles/joinMap.dir/joinMap.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/joinMap.dir/all' failed
make[2]: *** [CMakeFiles/joinMap.dir/all] Error 2
CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/joinMap.dir/rule' failed
make[1]: *** [CMakeFiles/joinMap.dir/rule] Error 2
Makefile:118: recipe for target 'joinMap' failed
make: *** [joinMap] Error 2
*** Failure: Exit code 2 ***
加上高博那一句话就变成了这样，求解 。。。

你看看你能不能找到libvtkproj4.so这个文件，可能在/usr里面也有可能在编译出来的东西里面
用find / -name libvtkproj4.so命令找。
能找到的话复制一份放到/usr/lib里面。
再编译

authors: MavAlex tiemuhua


text:
🛑 Gaplogic is down

In e97a9a6, Gaplogic (https://www.gaplogic.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Gaplogic is back up in eb7398f after 8 minutes.


text:
Hetzner cloud support

/kind enhancement
/priority normal
This issue serves as a tracker for everyone who would want Hetzner Cloud integration. I can potentially help with this if there is enough demand.
Hetzner cloud is a cost-leader in cloud hosting.
Hetzner cloud has:

terraform definitions
csi driver
private networking

Hetzner cloud does not have:

Loadbalancers: All though they do provide floating ips so this can be implemented with metaldb (or by using the workers as ingress nodes).
Openstack

@toonsevrin would you like to discuss in Slack #Gardener?
Maybe you can form a community around Gardener on Hetzner. Also, you can get help with how to write the extentions ...

I'm in the slack now :)

The "only" components you have to implement/adapt is the extension-provider-hetzner and machine-controller-manager. You can have a look at:
https://github.com/metal-stack/gardener-extension-provider-metal for reference

Makes me wonder: what are the trade-offs of implementing at the metal-stack level vs the gardener level?

to clarify: metal-stack is a cloud api for bare metal provisioning, same level from the gardener perspective like gcp or ec2 or openstack.

Any decision here? In any case, a new infrastructure requires a new extension, so nothing that would be done here. The ticket already went into stale. Care to contribute such an extension @toonsevrin ?

@vasu1124 and I talked a bit about this on slack. At the time there were no plans to develop this in-house.
We touched slightly on me developing this as a student-employee (at SAP) but at the time I was too time constrained to consider that (exams and tax period for my business).
It seems that there is still quite a bit of interest from the community in this extension (understandably because Hetzner Cloud is a leading cost oriented provider). If you're interested, we can discuss the possibility of me developing the extension!
On a sidenote: Does gardener integrate with the cluster-api yet? In that case I think it would be more valuable to write the extension on the cluster-api level for interoperability.

Does gardener integrate with the cluster-api yet?

At the moment no. Though, we are looking at a possibility of developing a dedicated gardener-control-plane-provider similar to the kubeadm-based provider in CAPI. - https://github.com/kubernetes-sigs/cluster-api/blob/master/docs/proposals/20191017-kubeadm-based-control-plane.md

In that case I think it would be more valuable to write the extension on the cluster-api level for interoperability.

I don't think, it's easily possible to develop an interoperable provider, working with both CAPI and Gardener, as the  MachineAPI and InfrastructureAPI are different in both.

In the meantime load balancers can also be used on the Hetzner cloud.
From our point of view a broad support also of smaller CSPs makes a lot of sense for Gardener.
We would like to have a look at this topic.
@toonsevrin Do you have time to help?

I'm also looking forward to get Gardner integration with Hetzner.

@berendt I got in touch with @hardikdr about this as I also was very eager to get this going. At the time there was no position on their team available for me to work on this as a paid student employee. I doubt the situation has changed since then and am sadly enough unable to contribute on this in my unpaid time. Sorry :(

We would take over this and initiate the initial development in the coming weeks. First in https://github.com/23technologies/gardener-extension-provider-hcloud. We would then move it after completion. Not sure what the process is to get a repository in the Gardener namespace. Or if it would have to go to https://github.com/hetznercloud/ later.

/assign @berendt @gesslein

/assign @berendt @gesslein

There is https://github.com/23technologies/gardener-extension-provider-hcloud now, so let's
/close
this issue and follow up on above repo

authors: berendt hardikdr majst01 rfranzke robinbraemer toonsevrin vasu1124 vlerenc

repo: gardener/gardener


text:
refactor: use single sigs.k8s.io/yaml library

How to categorize this PR?

/area open-source
/kind enhancement
What this PR does / why we need it:
Currently three YAML libraries are used:

github.com/ghodss/yaml v1.0.0
gopkg.in/yaml.v2 v2.4.0
sigs.k8s.io/yaml v1.3.0

The package github.com/ghodss/yaml is no longer actively maintained. See discussion in https://github.com/ghodss/yaml/issues/80 and https://github.com/ghodss/yaml/issues/75. sigs.k8s.io/yaml is a permanent fork of ghodss/yaml and is actively maintained by Kubernetes SIG, also widely used in K8s projects.
Which issue(s) this PR fixes:
Special notes for your reviewer:
No breaking changes expected.
Release note:

NONE

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

/ok-to-test

Nice, thanks @Juneezee for your contribution!
/lgtm
/approve

FYI: The Read function is used in the extensions. for eg: https://github.com/gardener/gardener-extension-provider-aws/blob/b1d4096970983425101bf330ff2f0896b664a73b/pkg/imagevector/imagevector.go#L32-L33
We probably should have added a release note. 🙈

authors: CLAassistant Juneezee rfranzke shafeeqes


text:
Настройка NOTIFY_USER_WANT_MESSAGE_CHECK не ограничивает создание уведомлений и их отправку

Результат функции указанной в настройке NOTIFY_USER_WANT_MESSAGE_CHECK (переменная user_want_message_check) используется в данном месте: https://github.com/garpixcms/garpix_notify/blob/master/backend/garpix_notify/models/notify.py#L368
тк continue прерываает только текущего уровня цикл, а не все по вложености вверх, по итогу, ложный результат никак не мешает созданию объектов Notify, и как следствие системные уведомления по сигналу отправляются, и по селери_биту так же все отправляется.
Если значение user_want_message_check == False, то не должен создаваться объект Notify вообще, и в таком случае уведомление не будет отправлено, что и подрузумевает настройка NOTIFY_USER_WANT_MESSAGE_CHECK

Спасибо, учту в следущем обновлении

Исправлено в https://github.com/garpixcms/garpix_notify/pull/36

authors: Alshevsky Folo4ka griviala


text:
Switch to new babel parser

babel-eslint has been deprecated in favor of @babel/eslint-parser

Closing in favor of #8

repo: gas-buddy/eslint-config-gasbuddy


text:
Update sample operator CR to include all possible config knobs for user reference

This should also update the CSV as part of the bundle generation so that the ALM examples annotation includes a complete example for users to reference:
https://github.com/gatekeeper/gatekeeper-operator/blob/66712a15ddc73df06afd1c8f7c6163e2debe4143/bundle/manifests/gatekeeper-operator.clusterserviceversion.yaml#L5-L28

I'd use the minimum required as the main example to get non-experienced users a simple way to get started.
As we can provide multiple examples, then we can append some other examples with a specific purpose so that UIs supporting it can allow you to pick one or use the default.
Maybe as an all-in-one example we can use this https://github.com/gatekeeper/gatekeeper-operator/blob/master/config/samples/gatekeeper_with_all_values.yaml

Yes, I agree a simple example makes sense. At the same time my concern is that the existing sample is used for documentation purposes within the CSV that is then placed onto operatorhub.io. I've seen some operators use a simple example like etcd and others like istio use a more extensive example that may show all the config options possible. These examples are obtained from the alm-examples field of the CSV as shown in the snippet above.

authors: font ruromero

repo: gatekeeper/gatekeeper-operator


text:
JMS: Don't wait forever for listener threads to join

No idea why, but it was reported on the Google Group that threads are stalled there with Oracle AQ.

I will test this on monday! Thanks for now!

I've tested this commit. It works.

@Nonius Thanks for your feedback!

authors: Nonius slandelle soudmaijer

repo: gatling/gatling


text:
My data appears in the playground query, but when I check the route, the data becomes an integer

My data appears in the playground query, but when I check the route, the data becomes an integer.
Is this a bug or some configuration that I don’t know how to do?

Thanks for your interest in this project. This plugin is moving into the Gatsby User Collective and this repo will be archived. Please open an issue in that repository, submit a PR if you'd like to see this implemented, or join us on Discord if you have questions!

repo: gatsby-uc/gatsby-source-strapi


text:
Refactor table-driven Value tests

In value_test.go, find all table-driven tests that use:
cases := map[string]struct {
   ...

and apply two minor refactorings:

replace map of structs with a slice of structs (with "name" field for test name); this way, subtests will be executed in the same order each invocation, which in convenient for debugging

rename "instance" to "tc"; "tc" stands for "test case" and is used in most other table-driven tests

Thanks!

Landed

repo: gavv/httpexpect


text:
Added ROS parameter instead of gflag to ros_gz_sim::create

🎉 New feature
Closes #459
Summary
Replaced all gflag arguments in ros_gz_sim::create  with ROS parameters.
Test it
can try running following command
To launch gazebo sim:
ros2 launch ros_gz_sim gz_sim.launch.py
To spawn a model:
ros2 run ros_gz_sim create --ros-args -p world:=”default” -p file:='https://fuel.ignitionrobotics.org/1.0/openrobotics/models/Gazebo'
Checklist

[x] Signed all commits for DCO
[ ] Added tests
[ ] Added example and/or tutorial
[X] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
[X] codecheck passed (See contributing)
[X] All tests passed (See test coverage)
[X] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

We have a PR similar to this in https://github.com/gazebosim/ros_gz/pull/465. That PR does not remove the gflags processing, so I'd be in favor of closing this and reviewing that.

Hi @azeey yes, you can close this PR. There are few issues with my PC , So didn't got chance to work on this again, sorry for the trouble.

Okay, thanks for your contribution though!


text:
Updated findfile() to search localpath first

🦟 Bug fix
Fixes #1172
Summary
As the issue above mentions, this tutorial for Garden, is not able to parse the SDF file if it was named model.sdf. It works if the file name is changed. This was happening due to the search order used in the sdf::findFile() function. The used search order was causing the findFile() to find the model.sdf from the install path instead of the one present locally. Since the found model.sdf is actually the SDF spec file for the <model> and it is not a valid SDFormat file, it caused the script to throw a not valid error.
This PR changes the search order used in the findFile() function by searching for the local path (current directory) first and solves the issue.
Checklist

[x] Signed all commits for DCO
[ ] Added tests
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
[x] codecheck passed (See contributing)
[x] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

this makes sense to me

though we mention the change in the Migration guide

Can you add a test that creates a temporary model.sdf in the current directory and verifies that sdf::readFile reads the correct file? Also, could you address @scpeters's request to add the change to the Migration guide?

@azeey I have added a test that, as suggested, creates a temporary model.sdf in the current directory and verifies that the correct path is returned by the sdf::findFile(). Also updated the migration guide as @scpeters suggested.

authors: azeey jasmeet0915 scpeters

repo: gazebosim/sdformat


text:
Contact e-mail address no longer makes sense

This (from https://gbdev.io/gb-asm-tutorial/help-feedback.html) no longer makes sense with the new domain:

If you prefer email, my address is tutorial@, where you replace  with this website’s domain name (it ends with .fr).

Related to https://github.com/gbdev/gb-asm-tutorial/issues/18

Should we keep the contact email under my domain, or set up something under @gbdev.io? I don't know whether we currently have a mail server for that domain?

Perhaps an e-mail address isn't really required as an alternative for contacting the authors of the tutorial anymore?

Email is required if a user does not have a GitHub account. As of second quarter 2023, signing up for GitHub requires three things: an email address, a web browser capable of running the non-free CAPTCHA, and a supported second factor of authentication. The last of these involves owning a FIDO U2F key such as YubiKey ($50) or a phone or tablet capable of running a TOTP authenticator app (maybe about $100 at a pawn shop). See "Raising the bar for software security: GitHub 2FA begins March 13".

Email is required if a user does not have a GitHub account

Or a Discord, IRC or Matrix account. The chat channels are mentioned at the top of the same page.

a supported second factor of authentication [which] involves owning a FIDO U2F key such as YubiKey ($50) or a phone or tablet capable of running a TOTP authenticator app (maybe about $100 at a pawn shop).

SMS is still a supported 2FA method. I can also use my laptop for 2FA with Windows Hello (Face ID or PIN number), but that obviously requires Windows; I assume other OSs have similar capabilities?

oathtool on Linux is perfectly capable of generating TOTP codes. But I'm going to predict @pinobatch will now say it requires a computer!

To be clear, I'm not against still supporting e-mail, but that either requires setting up a new e-mail address (which someone also needs to monitor) or, at the very least, adding @ISSOtm's actual e-mail address to the page so it can continue to be used (since it's mildly obfuscated in its current form, and is no longer compatible with the new URL, as it refers to the old one).

@tobiasvl IRC or Matrix can work so long as Discord users tolerate reports in the bridged channel.
As for SMS, in my experience, it's not available on landlines because most SMS auth providers won't fall back to a text-to-speech over a voice call. Nor is it available in countries not on a list that happens not to include Argentina. I haven't tested to see whether two people in a household who share a cell phone can use SMS.
@aaaaaa123456789 I wasn't aware of oathtool.

TOTP is a rather simple standard protocol and you could implement your own tool if it came to that.

I will create an address @gbdev.io

authors: ISSOtm aaaaaa123456789 avivace pinobatch tobiasvl

repo: gbdev/gb-asm-tutorial


text:
1.8.1 Release - defineNuxtPlugin not defined

The latest release v1.8.1 throws this error when using it: defineNuxtPlugin is not defined
at ./node_modules/.pnpm/@bicou+nuxt-urql@1.8.1_defu@6.1.4_graphql@16.8.1_rollup@4.17.2_vue@3.4.27_typescript@5.4.5_/node_modules/@bicou/nuxt-urql/dist/runtime/plugin.mjs:9:1

When looking at that file, the function is indeed exported, but not defined. Don't know if it just needs to be rebuilt after the Nuxt package upgrades in this release, or if the import needs to be added manually now?

If it just needs to be added manually, I can submit a PR for this change!

fixed in 1.8.2

@gbicou Great, thanks for the quick fix! 🙌

repo: gbicou/nuxt-urql


text:
Location issue

Location issue
https://www.gbif.org/occurrence/search?dataset_key=bcbfd319-8813-4b6d-b529-07dc5a6ccf56
I have 4362 occurrences (no preference on location)
Including coordinates it gives me 3865
without coordinates: 0 results
it should be 4362 and all occurrences do have coordinates. That the occurrences with country mismatch (faulty mismatch) are not included here is not  clear for the user

fbitem-4cd51ab3c35a7b3305c9ec1422d26bc93a21a482
Reported by: @DimEvil
System: Chrome 60.0.3112 / Windows 7 0.0.0
Referer: https://www.gbif.org/occurrence/search?dataset_key=bcbfd319-8813-4b6d-b529-07dc5a6ccf56&has_coordinate=false
Window size: width 1920 - height 911
API log
Site log

Thanks for feedback.
I am currently not able to reproduce this, I get 4362 when choosing "including coordinates":
https://www.gbif.org/occurrence/search?dataset_key=bcbfd319-8813-4b6d-b529-07dc5a6ccf56&has_coordinate=true&has_geospatial_issue=false
Would you be able to elaborate a bit on how to reproduce?

@thomasstjerne i think this is a question of usability and filter names (see the answer on https://github.com/gbif/portal-feedback/issues/369)  - I've marked this as a possible usability issue. It is worth keeping an eye on it in case it is a general cause of confusion. I'm not sure exactly what to do though, but it could be a question of better help texts

authors: MortenHofft gbif-portal thomasstjerne


text:
[TODO] Make a sample .env file

Create a sample .env file for the that the streamer can use to fill in their details, etc. they can just rename it to .env once they fill in their details.
We are using MongoDB with the mongodb, mongoose packages
npm start in the server side will start the backend
the database should be local to the development user.

Can i work on this ? @gbowne1


text:
Add Do#let, Do#letL

fix #35
Before submitting a pull request, please make sure the following is done:

Fork the repository and create your branch from master.
Run npm install in the repository root.
If you've fixed a bug or added code that should be tested, add tests!
Ensure the test suite passes (npm test).

Note. If you've fixed a bug please link the related issue or, if missing, open an issue before sending a PR.
Note. If you find a typo in the documentation, make sure to modify the corresponding source (docs are generated).

Thanks @kgtkr

@kgtkr released

authors: gcanti kgtkr

repo: gcanti/fp-ts-contrib


text:
add readonly modules

This PR will add the following modules:

ReadonlyArray (done)
ReadonlyNonEmptyArray (done)
ReadonlySet (done)
ReadonlyMap (done)
ReadonlyRecord (done)
ReadonlyTuple (done)
other?

The goal is to obtain drop-in replacements for the mutable counterparts (with some exceptions, see the notes below).
Notes:

ReadonlyArray

didn't port copy, seems useless

ReadonlyNonEmptyArray

didn't port copy, seems useless
renamed fromArray to fromNonEmptyArray

Semigroup

changed fold's signature in order to support readonly arrays

Monoid

changed fold's signature in order to support readonly arrays

ReadonlyMap

renamed toArray to toReadonlyArray

ReadonlyRecord

renamed toArray to toReadonlyArray

ReadonlySet

renamed toArray to toReadonlyArray
renamed subset to isSubset

@raveclassic @gkamperis @steida @mlegenhausen @sutarmin @Wenquer @giogonzo
(tagging you all because of the discussion in https://github.com/gcanti/fp-ts/pull/1082, hope you don't mind..)
I have some questions:

should we make Tuple readonly or should we add a new ReadonlyTuple module?

Example
// before
export function swap<A, S>(sa: [A, S]): [S, A] {
  return [snd(sa), fst(sa)]
}

// after
export function swap<A, S>(sa: readonly [A, S]): readonly [S, A] {
  return [snd(sa), fst(sa)]
}

what about State and Writer?

export interface State<S, A> {
  (s: S): [A, S] // <= add the `readonly` modifier?
}

export interface Writer<W, A> {
  (): [A, W] // <= add the `readonly` modifier?
}

what about Strong and Choice?

// tuples...tuples everywhere...

export interface Strong<F> extends Profunctor<F> {
  readonly first: <A, B, C>(pab: HKT2<F, A, B>) => HKT2<F, [A, C], [B, C]>
  readonly second: <A, B, C>(pab: HKT2<F, B, C>) => HKT2<F, [A, B], [A, C]>
}

export interface Choice<F> extends Profunctor<F> {
  readonly left: <A, B, C>(pab: HKT2<F, A, B>) => HKT2<F, Either<A, C>, Either<B, C>>
  readonly right: <A, B, C>(pbc: HKT2<F, B, C>) => HKT2<F, Either<A, B>, Either<A, C>>
}

@gcanti I personally prefer for using read-only in all three cases, but looks like it would be a breaking change.
Since initial plan was to add new read-only modules and collect feedback before making them mandatory, looks like we should add a ReadonlyTuple module and leave all three cases as is.

@raveclassic the PR is still marked with "Changes requested", is there something to do?

@gcanti Sure, it's ready. Just slipped my mind, sorry.

@raveclassic no problem, thanks for reviewing

authors: Wenqer gcanti raveclassic

repo: gcanti/fp-ts


text:
WIP: Test for MAGIC in server response

added failing MAGIC test which we can verify works later (expectedOutput will have to be changed)

With the PR to allow magic in the Node API, flowControl operations are not currently valid in bake recipes. We will need to add a separate endpoint specifically to run magic on some input in the API.
Propose we expose /magic where you can similarly POST some input plus optional arguments for magic operation and receive JSON of the output of Magic.

TODO update readme

repo: gchq/CyberChef-server


text:
The Accumulo store should work without aggregators

A schema with no aggregators is valid. Currently the accumulo store cannot handle this case and will run into issues when trying to aggregate properties as it won't be able to find any aggregators in the schema.
If the accumulo store receives an schema with no aggregators it should configure the accumulo table using the versioning iterator (i.e don't delete it as we normally do) and don't add the aggregator iterator.
The operation handlers in Accumulo should also be updated to not use any query time aggregators.

"If the accumulo store receives an schema with no aggregators it should configure the accumulo table using the versioning iterator (i.e don't delete it as we normally do) and don't add the aggregator iterator."
I don't think this is right. If you add the same edge twice (i.e. identical in all ways, including the properties) then that edge should be present in the database twice, and be returned twice from queries. That's the way that all current graph databases work. If we use the versioning iterator then you only get the most recent version which isn't what you want.
The versioning iterator should be turned off and no aggregator iterator added.

Merged into develop.

repo: gchq/Gaffer


text:
Refactor Examples

The Examples are starting to get messy and unwieldy.
I would like to simplify things down to having the following examples:

local machine JVM example
local machine docker example
AWS EMR deployment example (issue gh-114 is adding this capability)
Azure HDInsights example (issue gh-162 is adding this capability)

The local machine docker example, would be very similar to the current docker example. I would like to see the multi-jvm-example-... modules be under a 'example-services' module and remove the multi-jvm-example- prefix so they are rest-X-service. Then there should be a deployment directory in the example module which has a sub-directory 'bash' with a subdirectory called 'local docker', which contains the docker specific files and scripts.
THEN update all the Readme.MD files!
The AWS EMR deployment should be a bunch of scripts in example/deployment/bash/aws_emr to deploy Palisade on an AWS EMR cluster by:

starting up a etcd cluster over all the data nodes
starting up a rest config service on the master node (using the example-rest-config-service executable jar)
running a services configurator which sets all the configuration for the services to be deployed
starting up the remaining palisade services (data services running on each of the data nodes and the other services just running on the master)
running an example model configurator which sets up the users and policies
running the example runner that runs the example queries to demo the capability

The Azure HDInsight deployment should be very similar to the AWS EMR one.

Ready for PR and review

merged into develop

repo: gchq/Palisade


text:
🛑 Test notification is down

In e589ab2, Test notification (https://test-notifications.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Test notification is back up in dc77d62.

repo: gcommeuneidee/upptime


text:
Transition from Microdata to JSON-LD

Based on Google's recommendation: https://developers.google.com/search/docs/guides/intro-structured-data

I guess, part of the question is what does Bing, Yahoo, and Yandex support? I mean google is only one map of the internet.

There is basic JSON-LD support for Hugo via https://github.com/martijn00/HugoStructuredData

authors: HughP almereyda gcushen

repo: gcushen/hugo-academic


text:
Select featured image from static folder

In an older version of academic, one could select the featured image in a widget or post with a link to an image in the static/img folder. The old keyword for this no longer works, and the instructions now seem to require making a folder for each post/widget with a file with a specific keyword inside.
Is there any way to reproduce the old behavior? I find this folder-based organization a bit confusing (as I'll end up having many files called feature.jpg, rather than a name indicating what the image is), and it's also a bit annoying since I'm often using the same image multiple times, and this requires lots of copying.
The same question applies to the admin/avatar.jpg image

The new approach is designed to be simpler for users as an image can just be drag and dropped to the page folder and instantly displayed without editing parameters. The folder based organisation and image processing form part of newer versions of Hugo and Hugo currently only supports image processing (generating web friendly images and thumbnails) on images within a page folder, not within static/.

authors: gcushen kescobo


text:
Callbacks for subscribe/unsubscribe methods

It could be useful to have callbacks for subscribe/unsubscribe methods. In this case a client could manage subscriptions easily.
I could try to make a PR with the changes if the maintainer is interested in it.

If you want to make a pull request then go ahead. For it to be accepted though subscribe and unsubscribe must have the same interface that the send function has for passing an onReceipt callback through the options parameter.

authors: JustBlackBird gdaws

repo: gdaws/node-stomp


text:
Update readme

Updated the readme to document all the new parameters the module accepts (the puppetforge documentation is out of date).

Thank you :)

authors: codesplicer gdhbashton


text:
Executing system commands results in error

Hi,
When executing certain, not all, system command (see screenshot) results in an error. For example setting the exposure.

Through the web interface directly in Octoprint they work fine. The system command for stopping and starting the video stream works just fine, strangely enough.
It is the same on both my (physical separate) Octoprint instances.
This is with the latest OctoPod v3.14 build 3, the previous had the same issue, not sure with earlier releases.

Hi @TheLion,
I think the problem is the % that appears at the end of the action. You can keep the % in the name but try removing it from the action and let me know if that worked. For some reason OctoPrint is encoding the % differently than expected.
Thanks,
Gaston

I think the problem is the % that appears at the end of the action. You can keep the % in the name but try removing it from the action and let me know if that worked. For some reason OctoPrint is encoding the % differently than expected.

I will try that and let you know, but it has always worked like this. Also  through Octopod.

Thanks Martijn! That last piece of information helped me fixed it (i.e. that used to work before). I fixed it and also found same problem downloading or deleting timelapse files.
Gaston

New version is out. Please upgrade and let me know how it goes.
Thanks
Gaston

New version is out. Please upgrade and let me know how it goes.

Just got a notification from TestFlight ;-)
It works like a charm! Thanks!

authors: TheLion gdombiak

repo: gdombiak/OctoPod


text:
iOS - Unable to connect to OctoEverywhere with Google authentication

When I try to connect to OctoEverywhere and authenticate with google, I receive a message as the attached picture.
To replicate the issue:

go to settings
add a new printer
select OctoEverywhere
click on "I already have an account"
click on "Sign in with Google"
enter the google credentials
you will be presented with the error in the print

Good news is that this is a duplicated of #545 which is already resolved and being released in the next release. I will see if I can submit the new version to the App Store tonight with the hope that it will be approved and go live by the weekend. In the meantime, you are welcome to give the beta version a try.

My apologies, I searched before posting the issue and couldn't find anything related to this issue.
I will close this one.
Thanks for the prompt response.
Great news that the fix is coming up soon.

authors: felipechaulet gdombiak


text:
Classification/titanic disaster

Description
Titanic disaster dataset prediction models using RandomForest and Naive Bayes models. Different approaches(encoding, feature selection, etc.) were used for each model.
(Note: README.md will be added as soon as possible with the relevant details)
Results(upon kaggle submissions):

RandomForest : 79.665%
NaiveBayes: 77.033%

Checklist

[x] I am making a proper pull request, not spam.

[x] I've checked the issue list before deciding what to submit.

Related Issues or Pull Requests
Add relevant screenshot or video (if any)
(Add here)

@avishkakavindu please dont spam PRs . A notebook already exists on the Titanic dataset as the starter notebook. Work on the current issues if you want to and submit PRs only if you are assigned !!

repo: gdscjgec/ML-Gallery


text:
Cassandra integration

This ticket will drive integration of Gearpump with Apache Cassandra database. I will outline a design approach as followup.

Apache Cassandra is using CQL as a interface to access cluster .  Could merge this Cassandra driver into JDBC ?

Good question. I would think that's not possible though.
Firstly I can not find an up to date OS jdbc Cassandra driver. Secondly I think Gearpump may require some more lower level control. Something similar to https://github.com/datastax/spark-cassandra-connector may be needed. E.g. determining Cassandra cluster token ranges to be able to parallelize the source and achieve at least per-cassandra-partition ordering.
What do you think?

More and more Storage System to support SQL as a standard interface to access data and a lot of developer are familiar with SQL and JDBC .  This can help them to access some system such as PostgreSQL ,MySQL ,Cassandra and Phoenix. But there are some difference between this systems we should try to make a good bridge between them .   :)

I definitely agree conceptually. SQL however only solves part of the problem - the actual query.
My understanding of the required approach is:

Get metadata about the requested table, especially partition key and clustering columns. These can be parameters of the source, but it should not be necessary.
Get metadata about cassandra token ranges. Each cassandra node is responsible for a subset (partition, shard) of the data
Given the parallelism defined for the source split the token ranges to available sources. In Cassandra Spark connector this is done using data locality. The addresses of the machines are known so if Cassandra runs on the same machines as Gearpump we could assign the closest node.
In each source query the rows from assigned token ranges. This is in my opinion where sql comes to play. If we use JDBC/SQL, Cassandra's Java driver or another library I do not know. I would think the Java driver is officially supported, up to date and mature. If you however have an architectural vision for shared approach between different sources we can take that into consideration.

Each cassandra partition is ordered by clustering column and therefore we can preserve the ordering. Ordering between partitions or partition keys is not maintained as is application specific.

@zapletal-martin we've migrating to https://issues.apache.org/jira/browse/GEARPUMP. Could you create a new jira there along with the above conversations ?

@zapletal-martin I've migrated this issue to https://issues.apache.org/jira/browse/GEARPUMP-91 and assigned it to you. Please continue to work with the community there.

authors: darionyaphet manuzhang zapletal-martin

repo: gearpump/gearpump


text:
OSX 10.11.2报错

Description
Steps to Reproduce Issue
Specifications

Version of Electron (run $ electron --version): v0.0.0
Version of Node.js (run $ node --version): v0.0.0
OS: <OS>
Architecture <ARCH>
Stack trace from the error message (if any)

➜  electronic-wechat git:(master) ✗ npm start

> electronic-wechat@0.1.0 start /Users/Jason/Code/Github/electronic-wechat
> electron src/main.js

fs.js:584
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/Users/Jason/Code/Github/electronic-wechat/node_modules/electron-prebuilt/path.txt'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.readFileSync (fs.js:431:33)
    at Object.<anonymous> (/Users/Jason/Code/Github/electronic-wechat/node_modules/electron-prebuilt/index.js:4:42)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)

npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/Cellar/node/5.5.0/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v5.5.0
npm ERR! npm  v3.5.3
npm ERR! code ELIFECYCLE
npm ERR! electronic-wechat@0.1.0 start: `electron src/main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electronic-wechat@0.1.0 start script 'electron src/main.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electronic-wechat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron src/main.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs electronic-wechat
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls electronic-wechat
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Jason/Code/Github/electronic-wechat/npm-debug.log

@Jasonix 我错误地将node_modules推送上来了，可能是因为这个导致的path错误。你试试删除node_modules重新npm install？

多谢，问题解决了

authors: Jasonix geeeeeeeeek

repo: geeeeeeeeek/electronic-wechat


text:
凯文·凯利 70 岁生日写的 103 条人生忠告

凯文·凯利 70 岁生日写的 103 条人生忠告
2022 年 4 月 28 日，凯文·凯利（Kevin Kelly）在他的网站上发布了 70 岁生日的文章：103 Bits of Advice I Wish I Had Known，意为：103 条我希望早点知道的人生忠告。他 69 岁，68 岁生日时也写了这样的文章。朋友转发给我之后，我觉得有些内容很有启发，于是在做笔记的时候想：不如直接翻译过来好了。
K.K. 写的这 103 句忠告既幽默又睿智，但毕竟只是短短一句话，缺乏上下文，也就不够精确。我觉得读者朋友可以不必咬文嚼字，只要这些话能引起思考就已经很不错了。以下是我在阅读过程中觉得有启发的部分，不想看我的思考的小伙伴也可以直接去看第二部分的全文翻译。
以下是我觉得有启发的几句
大部分 K.K. 写的我都深表赞同，这里只选出部分我认为比较有意思的，没写在这里的不代表我不认同。
比如关于密码管理器这点，我认同并且实践多年，自然无需多言。

99% 的时间里，真正关键的时刻就是此刻。

我们很常听说“我要等到某某时刻就去做某某事情”，但其实多数时候，the timing is never right。寻找合适时机往往只是我们拖延的借口罢了。

不要为你不想成为的人工作。

你无法让聪明的人只为了钱而特别努力地工作。

一般来说，办公室里比你多工作三五年的人就是你未来的样子，你的老板/上级就是你未来会成为的人。一个聪明的人找工作的时候自然希望这份工作能带来正面的作用，不仅因为钱，所以会被领袖吸引进某家公司是很正常的事情。但是这种希望是会变的，当你有一天发现你根本不想成为你的老板那样的人时，就是你该离开的时候了。

好好耕耘 12 个爱你的人的关系，因为这 12 个人远比 1200 万人喜欢你重要得多。

我认真使用个人 OK 帮助我回顾与计划以来，“人际关系”一直在我其中一个 O 里，但是目前我做得远不够好，所以看到这句我深有感慨。

“但是”之前的话都是废话。

就是说，我上面关于 OKR 那句话，在“但是”之前都是废话。

不要一直重复犯错；试着去犯新的错。

重复别人是一个很好的开始。重复你自己则是一个令人失望的终点。

犯错需要勇气，这大概是为什么大多数人都不会主动去犯新的错误的重要原因。Tim Urban 在 How to Pick a Career (That Actually Fits You) — Wait But Why 这篇文章中对此有不错的分析，推荐阅读。Tim Urban 也在文末说到：“My goal for the future isn’t to avoid mistakes, it’s for the mistakes I do make to be my own.”

当你原谅其他人的时候，他们不一定会知道这件事，但你自己却会被治愈。原谅不是我们给予他人的东西；而是我们给自己的礼物。

原谅他人，其实是在治愈自己。我想起台湾的电视剧《我们与恶的距离》，其中“原谅”在几个关键角色身上都是一道极难跨越的坎。

无论什么时候，看到争论基于两个对立面进行时，要找到第三个面。

如果在一个游戏中，获胜变得过于重要，那么我们可以修改游戏规则以便从中获得更多乐趣。而修改规则本身就可以成为一个新的游戏。

当你跟别人谈判的时候，不要把目光瞄准蛋糕中最大的一片；要瞄准如何把蛋糕做大。

这几句都颇有跳出圈子的感觉，当你发现形成非黑即白的局面，深陷其中难以解脱时，试着跳脱出来。

生产力反而经常分散我们的注意力。不要试图寻找更快完成任务的方法，而是把精力放在你根本不想停下来的任务上。

读到这句我深有同感，以前“枫影夜读”还名为“每周读书”系列的时候，为了“每周”这个看似有用的目标，我不得不放弃一些无法短时间内读完的书，反而损害了我本身“喜欢阅读”这件事的体验。还不如就继续喜欢阅读，然后顺便写点书评来得愉悦与持久。

人生的课程将以它们需要的顺序出现在你面前。任何你需要掌握的课程其实都在你身上。当你真正掌握了一节课之后，下一节课就会出现。如果你还活着，这就意味着你还有课程需要学习。

你作为一个意识生物的成长，将以你愿意接受的令人不舒服的对话的次数来衡量。

请教一位你崇拜的人: 他们的幸运转折往往来自于跟主要目标无关的弯路。所以拥抱这种弯路。对任何人来说，人生都不是一条直线。

不要等着暴风雨自己过去；要在雨中跳舞。

你在低谷时做的事情比在好日子时做的更重要。

你跟那些惹怒你的事物一样大。

人的一生很奇妙，我们会在感觉很美好的同时经历许多的不愉快。而现代人“成长”的标志之一似乎就是能够适应这种复杂的痛苦。不管是面对复杂的人事也好，超出预期的事件也罢，不管是遇到跌宕起伏的股市也好，碰上别人都是傻逼的事情也罢，试着把这些都当作锻炼自己心智的课程。下一次你碰到一样的情况，如果能至少表面上镇静地应对的话，那就说明你可以学下一课了。

你的努力（锻炼、陪伴、工作）的一致性远比数量重要。没有什么可以击败每天坚持做的小事，这比偶然做的事情重要得多。

除了不积跬步无以至千里这样的至理名言以外，《掌控习惯》（Atomic Habits中文版） 一书对此有更为细致的分析，推荐阅读。

你必须具备的三种能力: 在确认一件事情能运作之前永不言弃的能力，在确认一件事情无法工作下去时放弃他的能力，以及信任能帮助你区分二者的人。

通常来说，普通人往往在还没成功之前就放弃，却迟迟不愿放弃前景糟糕的事情，哪怕有人这么明确地跟他说了，他也不愿意相信。什么？你问我这个普通人是不是我？还好这里不是TVB😂

设定一个野心得荒谬的目标的好处是，上限足够高，这样即使最后失败了，以通常的标准来衡量也可以算某种程度上的成功。

此理与 OKR 相同。

了解自己的一个好办法是，仔细地分析自己做的会惹怒其他人的每一件事情。

最好的观察自己的时候，就是产生情绪的时候。我记住了这点并由外向内观察了数年，而 K.K. 提到的这点则是从自己往外看时的分析，是个不错的补充。

所有东西的 90% 都是垃圾。如果你觉得自己不喜欢歌剧，浪漫小说，抖音，乡村音乐，素食，NFTs，那你可以试试看自己能否找出不是垃圾的 10%。

今年（2022 年）我听了大量我以前根本不会听的音乐，有太多的音乐在一开始听的时候都是很难接受不好入耳的，我们需要更多的训练来形成欣赏的能力。而最开始的时候，需要一点原初动力，K.K. 这个 10% 不妨成为引发好奇心的导火索。

你如何对待那些对你无能为力的人，将成为评价你的标准。

你无法说服一个人接受一个他自己也无法说服他自己的理念。

没有什么必要说服另一个人，毕竟这世界上还是有很多人坚信地球是平的。

最好的工作是你需要被拉伸才能合格的工作。其实最好只申请你的能力尚不合格的工作。

“我现在该做什么？”的唯一有效回答是，先找出“我想成为什么人？”的答案。

好吧，那我想成为什么人呢？

如果你重复今天你做的事情 365 天，那一年后你会成为你想成为的人吗？

我刚刚问了这个问题，你立刻就把我否定了啊！
这个问题太直击灵魂了啊！

我们的后代将创造令我们惊叹的成就，但其实只要我们的足够的想象力，他们会创造的部分东西，用今天的材料和工具就已经能实现了。所以，要想得更大一点。

为了丰厚的回报，请对你完全不感兴趣的事物保持好奇。

所有的突破在一开始都是看起来很可笑和荒谬的。事实上如果它在一开始看起来不够可笑和荒谬的话，它也称不上是一种突破。

看到这里，我在思考是不是我应该要试着在我完全不感兴趣的事情里，寻找那 10%？

与其让你的人生规避“出人意料”，还不如直接瞄着它们而去。

防止变老的最佳实践是保持惊讶。

保持好奇心是一个创造者应该有的常态，而可笑的 breakthrough，需要一点想象力加持的出人意料，会不会就隐藏在我不感兴趣的 10% 里呢？
** 感谢 K.K. 在 70 岁生日时的真诚分享，我深受启发。**
以下是全文 《103 条我希望早点知道的人生忠告》翻译
今天是我的生日。我今年 70 岁了。活到现在我也算学到了一点可能可以帮助到其他的人东西。过去几年，我每年都会写一点人生建议之类的东西（当然没人请我写这个）。出乎我意料之外的是，今年好像我想讲的话特别多。所以接下来是我给各位读者的一份小小的礼物：我希望我年轻时就知道的 103 条人生智慧。
（之前写的东西大家可以看这里，和这里）。

99% 的时间里，真正关键的时刻就是此刻。
除了你以外，没有人会真的记得你拥有什么东西。
一定不要为你不希望成为的人工作。
好好耕耘 12 个爱你的人的关系，因为这 12 个人远比 1200 万人喜欢你重要得多。
不要一直重复犯错；试着去犯新的错。
如果你在街上停下来聆听音乐人或街头艺人的表演一分钟，那么你欠他们一美元。
“但是”之前的话都是废话。
当你原谅其他人的时候，他们不一定会知道这件事，但你自己却会被治愈。原谅不是我们给予他人的东西；而是我们给自己的礼物。
礼貌几乎没有成本。上完厕所之后，把马桶座放下。进电梯之前，让里面人先出来。把购物车推回到商场指定的位置。借了别人的东西，让它以比借到的时候更好的状态（比如把消耗了的材料装满，比如把东西清洁好）还回去。
无论什么时候，看到争论基于两个对立面进行时，要找到第三个面。
“效率”被过度高估；“偷懒”被过度贬低。有规律地安排休息日、休假、度假、小憩、漫无目的地散步和暂停时间对任何一种高产出状态都至关重要。最佳职业伦理需要具备一个好的休闲伦理。
当你在领导时，你真正的任务是创造出更多领导者，而不是更多追随者。
私下批评，公开赞扬。
人生的课程将以它们需要的顺序出现在你面前。任何你需要掌握的课程其实都在你身上。当你真正掌握了一节课之后，下一节课就会出现。如果你还活着，这就意味着你还有课程需要学习。
学生的责任是从老师身上学会一切，老师的责任是从学生身上学会一切。
如果在一个游戏中，获胜变得过于重要，那么我们可以修改游戏规则以便从中获得更多乐趣。而修改规则本身就可以成为一个新的游戏。
当你跟投资人要钱的时候，他会给你建议；而如果你跟他要建议，他会给你钱。
生产力反而经常分散我们的注意力。不要试图寻找更快完成任务的方法，而是把精力放在你根本不想停下来的任务上。
及时支付你的欠款给卖主，员工，承包商。下一次你他们会第一时间跑来跟你合作。
我们对自己说的最大的谎言就是：“我不需要把这些写下来，我会记得的。”
你作为一个意识生物的成长，将以你愿意接受的令人不舒服的对话的次数来衡量。
自信地发言就像你是对的一样，仔细的聆听就像你是错的一样。
方便的测量方法：双手展开与肩膀平齐，此时从左手指尖到右手指尖的长度就是你的身高。
你的努力（锻炼、陪伴、工作）的一致性远比数量重要。没有什么可以击败每天坚持做的小事，这比偶然做的事情重要得多。
艺术创造并不自私；它是为我们其他人而作的。如果你不好好创作，你就是在欺骗我们。
永远不要问一位女士她是否怀孕了。等她自己告诉你。
你必须具备的三种能力: 在确认一件事情能运作之前永不言弃的能力，在确认一件事情无法工作下去时放弃他的能力，以及信任能帮助你区分二者的人。
公开演讲的时候，常作暂停。开始讲新内容的之前暂停一下，讲完你觉得重要的内容之后暂停一下，把暂停作为让听众吸收内容的缓冲。
“准时”从不存在。你要嘛迟到要嘛早到。这是你的选择。
请教一位你崇拜的人: 他们的幸运转折往往来自于跟主要目标无关的弯路。所以拥抱这种弯路。对任何人来说，人生都不是一条直线。
在互联网上寻找正确答案的最佳实践是发布一个明显错误的答案，然后等待其他人纠正你。
奖励好行为比惩罚坏行为带来的结果要好上十倍，尤其对象是小孩和动物时。
要花跟写邮件正文一样的时间来雕琢邮件标题，因为很多时候邮件标题是人们唯一会读的东西。
不要等着暴风雨自己过去；要在雨中跳舞。
老板/雇主在查看求职者的推荐信时，一般不太愿意或者被禁止说出负面评价。这时候你可以留言说：“如果你觉得这位求职者很不错的话请通知我哦。”如果他们没有回复的话那就是负评价。
使用密码管理器: 更安全，更易用，更好。
教育的一半作用是学习哪些东西可以被忽略。
设定一个野心得荒谬的目标的好处是，上限足够高，这样即使最后失败了，以通常的标准来衡量也可以算某种程度上的成功。
了解自己的一个好办法是，仔细地分析自己做的会惹怒其他人的每一件事情。
住酒店的时候记得把所有的东西都放在可以看得到的地方，不要放进抽屉里，都堆在一个地方。这样你在离店的时候永远不会忘记任何东西。如果有些东西需要放在一边的，比如充电器，那你可以放多两件大的东西在它隔壁，因为相比起一件东西，你更不可能同时忘记拿三件。
拒绝或转移别人的赞美是不礼貌的。可以用感谢接受它，即使你相信你根本不值得这个赞美。
纪念碑旁的那块说明，必读。
当你获得某种成功的时候，你可能会有种自己的能力不配这个位置，自己是个骗子感觉。我在骗人吗？但如果你创造了某种只有你独特的天赋与经验才做得到的东西，那你就绝对不是一个骗子。你是注定要做这件事情的。做好只有你才能做的事情，这是你的责任所在。
你在低谷时做的事情比在好日子时做的更重要。
做对人有益的东西。
当你打开一罐油漆时，无论你有多么小心，你的衣服一定会沾上一点，即便只是很小一点。所以记得穿合适的衣服。
在汽车旅行的路上让小孩子乖乖听话的办法：捎一袋他们最喜欢的糖果，每次只要不乖就扔一把出去。
你无法让聪明的人只为了钱而特别努力地工作。
当你不知道应该为了某件工作给人支付多少费用的时候，你可以问他“你觉得给多少是合适的”，他们通常会给出合适的报价。
所有东西的90%都是垃圾。如果你觉得自己不喜欢歌剧，浪漫小说，抖音，乡村音乐，素食，NFTs，那你可以试试看自己能否找出不是垃圾的10%。
你如何对待那些对你无能为力的人，将成为评价你的标准。
我们向来高估了一天能做的事情，也低估了十年能达成的事情。只要给十年时间，奇迹也能达成。长期坚持能累计大量小成就，攻克大问题。
感谢改变了你人生的那位老师。
你无法说服一个人接受一个他自己也无法说服他自己的理念。
最好的工作是你需要努力跳起来都不一定够得着工作。其实最好只申请你的能力尚不匹配的工作。
购买二手书。它们和新书有一样的文字。图书馆的书也是。
你可以成为任何你想成为的人，所以让自己成为那个早点结束会议的人吧。
一个智者曾经说过，“在你开口之前，先让你的语言经过三道门的检验。第一道门是问你自己，‘这是真话吗？’第二道门是‘这是必要的吗？’第三道门是‘这是善的吗？’”
走楼梯。
你支付给某样东西的钱事实上是它标价的两倍，因为你还需要付出额外的能源，时间，和金钱来安装它，学习使用它，维护它，修复它，以及最后丢掉它。不是所有的价格都打在标签上。真正的付出是标价的两倍。
当你到达你酒店房间时，记得看一眼紧急出口在哪里。只需要一分钟。
”我现在该做什么？”的唯一有效回答是，先找出“我想成为什么人？”的答案。
在一段超过平均水平的时间里，一直保持平均水平的回报，也会产生超凡的结果。买入并一直持有。
对粗鲁的陌生人表现得特别礼貌是一件令人毛骨悚然的事情。
一个不太聪明但能很好沟通的人，是可以做得比很聪明但不善沟通的人更好的。这是一个好消息，因为提高你的沟通技巧要比提高智力容易得多。
偶尔被骗是信任所有人的一个很小的代价，因为当你以最大诚意信任其他人的时候，他们通常会给你最好的对待。
艺术是你无论如何都能超然避世的东西。
为了让你的孩子获得最好的成长，你应该只花你认为应该花的一半的钱给他们，但花两倍的时间陪他们。
购买你的家乡或所在区域的最新的旅游指南。你会在每年的旅游中学会很多。
不要排长队等着吃某样很有名的东西。因为几乎没有哪样出名的食物值得这份等待。
想要快速了解一个刚认识的人的真实性格，让他们使用一个超级慢的网络，然后观察他们。
达成世俗成功的良方：做点奇怪的事情。培养自己独特的奇怪的习惯。
要成为一个专家。记得备份你的备份。至少有一份物理备份与一份云端备份。每个备份不要少于一份。当你丢失了你的数据，照片，与笔记时，你愿意花多少钱把他们找回来呢？相比于后悔，备份一定是更便宜的选项。
不要相信你认为你相信的一切。
发出紧急信号请使用“三次法则”：三次大喊，三次喇叭，或三次口哨。
你在一家餐馆里会点吃过的好吃的菜，还是尝试新的？你会做你知道有销路的东西，还是会尝试新的？你会一直跟新的人约会还是会尝试跟已经认识的人确立关系？最理想的探索新事物与找到了之后在其中深耕的平衡是：1/3。用 1/3 的时间去探索，用 2/3 的时间去深耕。随着年龄的增长，花时间去探索新事物会越来越难，因为那看起来并不高效，但试着做到 1/3 吧。
真正的好机会不会在额头上大书“好机会”三个字。
在你被介绍给别人的时候，看着对方的眼睛，数到四。这样你们都会很好地记住对方。
在你思考“我的好刀在哪里？或者我的好笔在哪里？”时，记下来。这意味着你还有坏的刀或笔。把它们都丢掉吧。
当你在某件事情卡住了时候，试着给其他人描述你的问题。经常你只需要简单地把问题描述出来，答案就会自然呈现。把“描述这个问题”作为你解决问题的的一部分。
在购买一根花园水管，一根延长线，或者一把梯子的时候，选那个比你认为需要长度更长的。通常那个就是正确的尺寸。
不要和旧事物作斗争；直接建设新的。
你只需要向大家赞扬你的团队做得很好，他们就会做出远超预期的成就。
当一个人跟你提起人类历史的巅峰一年，那段时间所有的事情都极其美好，然后就开始走下坡路。这一年永远是他们 10 岁的时候──这也是人类个体的巅峰。
你跟那些惹怒你的事物一样大。
当你对着听众们演讲时，眼神注视某几个人比扫描全场更好。你的眼神会告诉在场的人，你是不是真的相信你所说的东西。
习惯远比灵感来得可靠。要为培养习惯而努力。不要关注身材变好的样子，要专注成为那个永不缺席训练的人。
当你跟别人谈判的时候，不要把目光瞄准蛋糕中最大的一片；要瞄准如何把蛋糕做大。
如果你重复今天你做的事情 365 天，那一年后你会成为你想成为的人吗？
你只能看到其他人的 2%，别人也只能看到你的 2%。所以调整好自己的 98%。
你的时间和空间都是有限的。移除，送人，或者直接丢掉那些在你的人生中不再带来幸福的东西，把时间与空间留给那些能带来幸福的。
我们的后代将创造令我们惊叹的成就，但其实只要我们有足够的想象力，他们会创造的部分东西，用今天的材料和工具就已经能实现了。所以，要想得更大一点。
为了丰厚的回报，请对你完全不感兴趣的事物保持好奇。
专注于方向而不是目的地。毕竟有谁能知道他的命运终点呢？但只要保持一个正确的方向，你终会到达你想到的地方。
所有的突破在一开始都是看起来很可笑和荒谬的。事实上如果它在一开始看起来不够可笑和荒谬的话，它也称不上是一种突破。
如果你借给别人 20 美元并且你再也见不到这个人了，因为他不想还钱，那么这 20 美元花得值。
重复别人是一个很好的开始。重复你自己则是一个令人失望的终点。
找工作跟别人商量薪酬的最佳时机是在他们说要请你了之后，而不是之前。从这时开始就变成了一场胆小鬼博弈，双方都等着对方先开口报价，但这时你的优势就是可以让对方先开出价码。
与其让你的人生规避“出人意料”，还不如直接瞄着它们而去。
如果你是用信用卡租的车，不要购买额外的保险。
如果你关于一个主题的意见可以根据你另一个主题的意见预测得出，那你可能陷入了某种意识形态的掌控。如果你认真审视你自己的意识，你的结论其实是无法预测的。
争取在死前破产。在你死掉之前，把你所有的财产交给你的受益人；这很有趣而且很有用。把所有的财产花光。你的最后一张支票应该支付给殡仪馆，它应该会被退回。
防止变老的最佳实践是保持惊讶。

需要同步到 博客 中

repo: geekpanshi/panshi


text:
Is it possible to use same one signal app for multiple react native app  ?

I have two different RN App on android, I want to use same OS app id in both applications. Is it possible ?

Hello,
Each app will need its own app id. Why do you want to do this?

I was planning to share same codebase with multiple application. So thought of using the same OS app . Thank you !

No problem!

authors: arunharidas rgomezp

repo: geektimecoil/react-native-onesignal


text:
Cannot install SOLR when not using shared folders

Issue Type

Bug Report / Support Request

Your Environment

Vagrant 1.9.3
VirtualBox 5.1.18r114002
ansible -

Your OS

Windows 7 Enterprise

Full console output
The gist below shows the result for vagrant provision but this also happens on the vagrant up

https://gist.github.com/xymox12/6a45168d5f19e95a8d3df3224d97258d

Summary
I have been working towards using the Ubuntu guest on a Windows host without needing shared folders. I am using Samba to help make working on a Windows host bearable (I have seen a recent blog by yourself that you are also using a similar technique.)
I have documented the config.yml and additional scripts of my current setup here:

https://gist.github.com/xymox12/41eec3c0fa655ad05f20a65f40710843

The first issue I ran into on up was that {{ drupal_composer_install_dir }} was not created when using anything other than the composer projects method - and so the VM creation failed. I have resolved this by adding the pre-provision.sh script (see gist) to create the directories manually.
The issue I have now is that I cannot add SOLR to the mix via the config.yml without the issue below breaking the install:
TASK [geerlingguy.solr : Ensure Solr conf directories exist.] ******************
fatal: [drupalvm]: FAILED! => {"failed": true, "msg": "The conditional check ''{{ item }}' not in '{{ solr_cores_current.content }}'' failed. The error was: Invalid conditional detected: EOL while scanning string literal (<unknown>, line 1)\n\nThe error appears to have been in '/vagrant/provisioning/roles/geerlingguy.solr/tasks/cores.yml': line 8, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Ensure Solr conf directories exist.\n  ^ here\n"}

SOLR has been downloaded  to /root/solr-5.5.3.tgz and extracted to /root/solr-5.5.3 but no folder has been created at /etc/solr.
Any ideas?
Thanks

This was just fixed a couple days ago by this commit: https://github.com/geerlingguy/drupal-vm/commit/866c1dbeb7100eb65d2ee608d5e97c10bf8870b3
I haven't tagged a release with the fix just yet, so the best solution is to switch to using Drupal VM master right now, until the tag is fixed. Alternatively, you can patch the files yourself temporarily (based on that commit).

I've tried updating to master to fix the issue above but now I'm getting:
TASK [geerlingguy.solr : Ensure core configuration directories exist.] *********
failed: [drupalvm] (item=building-your-library richlandlibrary) => {"changed": true, "cmd": "cp -r /opt/solr/example/files/conf/ /var/solr/data/building-your-library richlandlibrary/", "delta": "0:00:00.047784", "end": "2017-04-07 14:29:14.532033", "failed": true, "item": "building-your-library richlandlibrary", "rc": 1, "start": "2017-04-07 14:29:14.484249", "stderr": "cp: target ‘richlandlibrary/’ is not a directory", "stdout": "", "stdout_lines": [], "warnings": []}

Oh, I found the issue. I was missing hyphens in front of my two solr_cores in the config.yml file.

@attheshow - Ah yes, that'd do it—if you don't do that the YAML interpreter will make a bit of a mess of the variable!

authors: attheshow geerlingguy xymox12

repo: geerlingguy/drupal-vm