text:
RuntimeError: torch.cat(): expected a non-empty list of Tensors

Hello,
Thanks for your awesome work.
I met following error when training model:
loading data from memory:  data/cache_torsion/limit0_INDEXtimesplit_no_lig_overlap_train_maxLigSizeNone_H0_recRad15.0_recMax24_esmEmbeddings/heterographs.pkl
Number of complexes:  16271
radius protein: mean 35.324798583984375, std 10.894360542297363, max 140.3852081298828
radius molecule: mean 7.464962482452393, std 3.125143051147461, max 28.649322509765625
distance protein-mol: mean 12.960723876953125, std 6.1995849609375, max 70.93856811523438
rmsd matching: mean 0.5280884495331837, std 0.5165252914283075, max 6.0405902977233294
loading data from memory:  data/cache_torsion/limit0_INDEXtimesplit_no_lig_overlap_val_maxLigSizeNone_H0_recRad15.0_recMax24_esmEmbeddings/heterographs.pkl
Number of complexes:  955
radius protein: mean 35.945213317871094, std 11.460107803344727, max 92.777587890625
radius molecule: mean 7.608007431030273, std 3.1059141159057617, max 21.896770477294922
distance protein-mol: mean 13.32070541381836, std 6.682881832122803, max 54.33257293701172
rmsd matching: mean 0.5830034745709728, std 0.6322264833323166, max 5.280259896200438
Model with 20248214 parameters

Starting training...
Run name:  big_score_model
  0%|                                                                                | 0/1017 [00:13<?, ?it/s]
Traceback (most recent call last):
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/chenshoufa/workspace/DiffDock/train.py", line 158, in <module>
    main_function()
  File "/home/chenshoufa/workspace/DiffDock/train.py", line 153, in main_function
    train(args, model, optimizer, scheduler, ema_weights, train_loader, val_loader, t_to_sigma, run_dir)
  File "/home/chenshoufa/workspace/DiffDock/train.py", line 35, in train
    train_losses = train_epoch(model, train_loader, optimizer, device, t_to_sigma, loss_fn, ema_weights)
  File "/home/chenshoufa/workspace/DiffDock/utils/training.py", line 128, in train_epoch
    raise e
  File "/home/chenshoufa/workspace/DiffDock/utils/training.py", line 105, in train_epoch
    tr_pred, rot_pred, tor_pred = model(data)
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/site-packages/torch_geometric/nn/data_parallel.py", line 70, in forward
    outputs = self.parallel_apply(replicas, inputs, None)
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/site-packages/torch/nn/parallel/data_parallel.py", line 178, in parallel_apply
    return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/site-packages/torch/nn/parallel/parallel_apply.py", line 86, in parallel_apply
    output.reraise()
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/site-packages/torch/_utils.py", line 461, in reraise
    raise exception
RuntimeError: Caught RuntimeError in replica 0 on device 0.
Original Traceback (most recent call last):
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/site-packages/torch/nn/parallel/parallel_apply.py", line 61, in _worker
    output = module(*input, **kwargs)
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/chenshoufa/workspace/DiffDock/models/score_model.py", line 299, in forward
    global_pred = self.final_conv(lig_node_attr, center_edge_index, center_edge_attr, center_edge_sh, out_nodes=data.num_graphs)
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/chenshoufa/workspace/DiffDock/models/score_model.py", line 88, in forward
    out = self.batch_norm(out)
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/chenshoufa/anaconda3/envs/diffdock/lib/python3.9/site-packages/e3nn/nn/_batchnorm.py", line 178, in forward
    torch.cat(new_means, out=self.running_mean)
RuntimeError: torch.cat(): expected a non-empty list of Tensors

find file (name like this) of e3nn in your conda env
~/miniconda3/envs/diffdock_new/lib/python3.9/site-packages/e3nn/nn/_batchnorm.py

edit as follows:

177         if self.training and not self.instance:
178             if len(new_means) > 0:
179                 torch.cat(new_means, out=self.running_mean)
180             if len(new_vars) > 0:
181                 torch.cat(new_vars, out=self.running_var)

I think this issue might be related to the pull request I just opened on this topic.

Can confirm @amorehead's PR also worked to fix this issue

authors: ShoufaChen amorehead echen1214 yufengwhy

repo: gcorso/DiffDock


text:
Register lsp-julia for 'julia-ts-mode' major mode

Currently the lsp server is only registered for 'julia-mode'. It would be nice if the tree-sitter enable mode 'julia-ts-mode' would also be automatically registered.

Should work now, thanks for letting me know!

source: gharchive/issue

authors: gdkrmr sents

repo: gdkrmr/lsp-julia

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 VRBS is down

In 9297bee, VRBS ($VRBS) was down:

HTTP code: 502
Response time: 173 ms

Resolved: VRBS is back up in 127d806.

repo: gdmad/status-check


text:
Esborrar tot el text afegit per defecte

Info
Actualment la web només té text en anglès de la plantilla del Bootstrap. Shauria dafegir la informació del nostre grup, els enllaços a xarxes socials i potser un widget amb el nostre calendari, si això és possible.

Acceptació

la web no conté cap text que sigui de la plantilla de Bootstrap
la web conté informació sobre el nostre grup

Bernat, Camilo i Narcís iniciem el canvi

Falta el fitxer aside.html, hauriem de triar què posar-hi o directament eliminar-ho.

authors: Bernat-C NarcisPlan16 camilovietnam


text:
Release fails

Describe the bug
The release action fails. It seems to have problems accessing the repository.
To Reproduce
See Actions
Expected behavior
Exit successfully
Suggested fix
No idea, will do some digging.

Seems like the Sha is somehow messed up: Sha of the commit:
f6b442a9cd56caa0e6f4bf1a062875ccd45ed2eb
Sha that is referenced by the action:
d0b9f9a7e1d16d57a81b57b8870dcf41bf45bd29
It also doesn't list the tag v6. 90.9 so there might be a race condition, where the repo is not up to date when the action is run?

Hi Jan David,
There is an issue with constructor
https://github.com/gdsfactory/gdsfactory/actions/runs/4941954535/jobs/8835052917
@jaimergp

authors: Jan-David-Black joamatab

repo: gdsfactory/gdsfactory

license: mit

license_source: bigquery


text:
ModuleNotFoundError: No module named 'gdsfactory.types'

ERROR: /foss/designs/.klayout/pymacros/cells/via_generator.py:23: ModuleNotFoundError: No module named 'gdsfactory.types'
/foss/designs/.klayout/pymacros/cells/via_generator.py:23
/foss/designs/.klayout/pymacros/cells/vias.py:20
/foss/designs/.klayout/pymacros/cells/init.py:21
/foss/designs/.klayout/pymacros/sky130.lym:9 (class ModuleNotFoundError)
I am running into this error when launching klayout using skywater130 pdk. Previously, I did not run into this issue, but is coming up now. I have tried upgrading to the latest version of gdsfactory - same issue. Let me know if you need more context. Thanks

Hi Matthew,
this seems like your pdk is using an old gdsfactory, and you upgraded gdsfactory to the latest version
You will need to use
pip install sky130 and then use the version that the PDK installs


text:
[Installation issue] requires 'osgi.bundle; org.eclipse.emf.mwe2.launch 0.0.0' but it could not be found

Followed the installation steps till Step 6.

Paste the following URL in the Work With: field and press the Enter key. Select the VERDICT for OSATE item and then clicking Next
https://raw.githubusercontent.com/ge-high-assurance/VERDICT-update-sites/master/verdict-latest

In the details window:
Cannot complete the install because one or more required items could not be found.
Software being installed: DARPA CASE VERDICT Feature 1.0.0.202009042137 (com.ge.research.osate.verdict.feature.feature.group 1.0.0.202009042137)
Missing requirement: com.ge.research.osate.verdict.dsl 1.0.0.202009042137 (com.ge.research.osate.verdict.dsl 1.0.0.202009042137) requires 'osgi.bundle; org.eclipse.emf.mwe2.launch 0.0.0' but it could not be found
Cannot satisfy dependency:
From: com.ge.research.osate.verdict 1.0.0.202009042137 (com.ge.research.osate.verdict 1.0.0.202009042137)
To: osgi.bundle; com.ge.research.osate.verdict.dsl 0.0.0
Cannot satisfy dependency:
From: DARPA CASE VERDICT Feature 1.0.0.202009042137 (com.ge.research.osate.verdict.feature.feature.group 1.0.0.202009042137)
To: org.eclipse.equinox.p2.iu; com.ge.research.osate.verdict [1.0.0.202009042137,1.0.0.202009042137]

Are you using OSATE?  You must be using an Eclipse IDE that does not have the MWE2 Language SDK or MWE2 Runtime SDK installed.  These SDKs are available in Eclipse's standard update sites such as 2020-03, 2020-06, and Latest Eclipse Release.  You should be able to install these SDKs into your Eclipse IDE with these steps:

Run Help -> Install New Software...
Type "MWE" into the input text box containing the label "type filter text"
Select "--All Available Sites--" from the pulldown "type or select a site"
You should see "> [] Modeling" appear in the search results pane
Click on the ">" to expand what lies inside "Modeling"
You should see "MWE SDK", "MWE2 Language SDK", and/or "MWE2 Runtime SDK" as available choices
Select both "MWE2 Language SDK" and "MWE2 Runtime SDK"
Click on the Next button and keep going through the wizard until the SDKs are installed.
Restart your Eclipse IDE when prompted.

After installing these SDKs, you can try to install VERDICT again.  The first problem you saw should be fixed, although other problems may appear if you are not running the standard OSATE product.

Yes. I am using OSATE 2.7.1.
When I type "MWE" in "type filter text", nothing shows up.
Is there a URL that I can enter in the "Work With" field?

You can enter http://download.eclipse.org/modeling/emft/mwe/updates/releases/2.11.1 in the "Work With" field.  Then you should see the MWE plugins.
Another way to check whether you have the MWE2 Launch plugin installed is to run Help -> About OSATE2, click the "Installation Details" button, click the "Plug-ins" tab, and type "mwe2" in the "type filter text" input text box.  In my OSATE 2.7.1, I will see four plugins with "mwe2" in their names:
	Eclipse Xtext	MWE2 Language	2.11.1.v20191121-1148	org.eclipse.emf.mwe2.language
	Eclipse Xtext	MWE2 Launch	2.11.1.v20191121-1148	org.eclipse.emf.mwe2.launch
	Eclipse Xtext	MWE2 Library	2.11.1.v20191121-1148	org.eclipse.emf.mwe2.lib
	Eclipse Xtext	MWE2 Runtime	2.11.1.v20191121-1148	org.eclipse.emf.mwe2.runtime

It fixed the issue. It seems to be installed successfully. Thanks!

repo: ge-high-assurance/VERDICT


text:
PCB burnt

PCB burnt when I replace the battery.

Forwarded from the Technical Support Team:
This is a frequently asked question (FAQ), it usually contains the following possible causes, please check them one by one, if you need to repair, please contact the after-sales support team.

Reverse battery installation.
Static electricity in excess of 3KV on the hands, exceeding the tolerance limit.
The battery was installed without the USB charging cable removed.

All our products are fully tested before leaving the factory and repairs are usually free of charge, however you cannot contact the after sales team here, please use the purchase channel to contact the after sales team.

first, I installed my old 18650 battery, but it hasn't enough current capacity. (but UPS plus worked well)
so i decided to buy new battery from reliable company such as picture above.
As soon as install the battery, I could smell like burn.
After that, there is no 0x17.

The batteries are connected in parallel. Obviously the connection between the positive and negative terminals of the two batteries is made using traces on the PCB. When the two batteries have different voltages, like when one is fully charged and the other is half charged, as it comes fresh from the shop, there will be a very large equalizing current between the batteries once they are seated in the UPS's battery holder. The fully charged one will charge the other battery and the current from one battery to the other will be very large until the voltages become equal. The current could be as much as 10 A or perhaps even more depending on the type of battery. The burnt trace on the PCB is obviously not designed for this situation.
It would be prudent of the manufacturer to warn of mixing batteries with different terminal voltages; I don't know if there actually is such a warning, however it could be regarded as common knowledge.
Lithium batteries can cause dangerous situations when handled wrongly. After all it is for good reasons that packing such batteries without protection in airplane cargo is prohibited.
Speaking of protection, Li batteries with a protection circuit built in (actually added onto the terminal end) are too long for the UPS's battery holder, so there you are ...

Please contact with sale man and ask for replacement.

Please contact with sale man and ask for replacement.

Thank you for your support.
I didn't expect this kind of warranty service.
The seller said he will send the replacement tomorrow.
I am very happy.

Please contact with sale man and ask for replacement.

Thank you for your support. I didn't expect this kind of warranty service. The seller said he will send the replacement tomorrow. I am very happy.
OK, have a nice day!

Hi all. I'd like to know if this is a 'typical' failure. I've had mine for like 6 months, never managed to make it work and only now found that mine had the same burnt place. Is it worth replacing? Would hate to buy again and burn it without knowing. Thanks.

From section 4.1 of the wiki (https://wiki.52pi.com/index.php/EP-0136#Specifications):
Note: Different types of batteries cannot be mixed!
My understanding is that it's "common knowledge" (often expressly noted) that, when using multiple Li-ion cells, one should:

Never mix cell brands, capacities, or ages.
Always ensure all cells are equally charged/discharged.

Treating Li-ion cells like AA batteries ("just stick a couple in there") is, to my understanding, dangerous, and I'd expect the behavior described ("decided to buy new battery" and pair with old one) to produce excessive currents in most equipment I've used.
Even if the circuit is protected against unbalanced parallel cells, I've read that [unbalanced] charging can still be a problem.

Hi all. I'd like to know if this is a 'typical' failure. I've had mine for like 6 months, never managed to make it work and only now found that mine had the same burnt place. Is it worth replacing? Would hate to buy again and burn it without knowing. Thanks.

Could you please send me a picture about  the burned place?

From section 4.1 of the wiki (https://wiki.52pi.com/index.php/EP-0136#Specifications): Note: Different types of batteries cannot be mixed!
My understanding is that it's "common knowledge" (often expressly noted) that, when using multiple Li-ion cells, one should:

Never mix cell brands, capacities, or ages.
Always ensure all cells are equally charged/discharged.

Treating Li-ion cells like AA batteries ("just stick a couple in there") is, to my understanding, dangerous, and I'd expect the behavior described ("decided to buy new battery" and pair with old one) to produce excessive currents in most equipment I've used.
Even if the circuit is protected against unbalanced parallel cells, I've read that [unbalanced] charging can still be a problem.

yes, that's correct, li-po batteries are different from AAA batteries.

Hi there, thanks for your answer. Well, I can't send pictures because out of frustration, once I realized it was burned, I threw the board to the trash and don't have it any more. In any case, it was the exact same situation as the picture above, same model, burned track at the same exact place. I even tried to bridge the burnt track using a screwdriver, and it smoked. The main symptom was that it threw only 3.7V out of the USB and the pins going to the Pi, so it didn't power up. Batteries seemed to charge well when connected, the blue lights worked as intended.
I bought the card with the GeekPi case and the frustration came from the message "DO NOT PLUG Power supply to Raspberry Pi in USB-C port during Using UPS, it may damage UPS!!!! " that is found oh this website. Well, thing is, the case design don't allow to mount the UPS to the Pi and THEN insert the batteries as the wiki instructs, so I thought it was a combination of bad design from the case manufacturer or the board itself for having that somewhat obvious weakness that I may have inadvertently burnt on the several attempts to make it work.. or was it because I mounted it with the batteries on? Will never know.
Anyway, thanks for asking.

Could you please send me your order number ? I can arrange my teammate follow up this case.

Sorry I don't get it, what do you mean?

I mean, you can send me your order number of the UPS, i will arrange my teammate to follow up the case, they may send you replacement if they checked the order number and they will contact with you ASAP.

Ow, thanks. This is it. Order Placed: December 26, 2023, Amazon.com order number: 112-1284073-0034610.
Thanks very much for your consideration

authors: ArjenR49 CosmicFurFace HS-Tech-kr Leorivasc yoyojacky zaretajoesin

repo: geeekpi/upsplus


text:
writen-report

User description
Features

Combine the open source large language model and the Metagpt framework to achieve intelligent writing. In order to verify the feasibility of the technical route, "accident reports" are used as the experimental subjects, and will be expanded to paper writing or project bidding (document level) writing.（将开源大语言模型和 Metagpt框架相互结合，实现智能写作工作。为验证技术路线的可行性，以“事故报告”做实验对象，后续将拓展到论文写作，或者项目招投标(文档级)写作上)

Feature Docs

This function is document-level writing, which imitates human writing thinking. You write a first draft first, and then submit it to the teacher for evaluation and feedback. Later, based on the feedback, the first draft was revised and improved.
(该功能是文档级别写作，模仿人类的写作思维，先写出初稿，后交给老师评估，得到反馈意见。后根据反馈意见，进行对初稿修订改进)

Influence

Liberate the writing ability of public officials. （解放公职人员写作能力）
-Implement generation of long document levels（实现长文档级别的生成）
Result

Generate papers, bidding documents, official documents, reports, etc.（生成论文，招投标文件，公文，报告等）
例如：
输入：
“5.18”金达花园三期项目坍塌事故调查报告.json
输出：
(https://github.com/geekan/MetaGPT/files/15218678/5.18._metagpt.txt)
Other

Type
enhancement

Description

Introduced a comprehensive system for generating, evaluating, and refining accident reports using the MetaGPT framework.
Developed a new RewriteReport class with methods for planning, executing tasks, and handling tools for intelligent report creation.
Added test scripts and actions for evaluating and refining the generated reports.
Updated model configuration to "qwen-14B-Chat" for enhanced performance.
Provided detailed guidance and structured task planning for different sections of an accident report.

Changes walkthrough
Relevant filesEnhancement

core_report.pyImplement RewriteReport Class for Accident Report Generation

tests/write_roport/core_report.py
Introduced a new class RewriteReport to handle the process of writing, evaluating, and refining accident reports.  Implemented methods for planning, acting on tasks, and handling tool recommendations.  Added functionality to write initial drafts, evaluate them, and refine based on feedback.  Integrated with the MetaGPT framework for intelligent document creation.

+151/-0

write_evaluator_refine.pyDefine Actions for Report Writing, Evaluation, and Refinement

tests/write_roport/write_evaluator_refine.py
Defined actions for writing analysis, evaluation, and refinement of reports.  Utilized structured prompts and evaluation criteria for generating and refining text.

+110/-0

write_report_planner.pyImplement Planner for Structured Report Writing Tasks

tests/write_roport/write_report_planner.py
Implemented a planner for report writing tasks based on user requirements and SOP.  Added functionality to update and manage plans for report writing.

+102/-0

Tests

test_write_report.pyTest Script for RewriteReport Functionality

tests/write_roport/test_write_report.py
Created a test script to instantiate and run the RewriteReport class with specified parameters.

+13/-0

Configuration changes

config2.yamlUpdate Model Configuration in YAML

config/config2.yaml
Updated the model configuration from "gpt-4-turbo" to "qwen-14B-Chat".

+1/-1

sop.jsonStructured Order of Tasks for Report Writing in JSON

tests/data/report_writer/sop.json
Defined a structured order of tasks for writing an accident report based on user-provided information.

+38/-0

Documentation

domain.yamlDefine Domain-Specific Guidance for Report Writing

tests/data/report_writer/domain.yaml
Added detailed descriptions and guidance for writing various sections of an accident report.

+98/-0

✨ PR-Agent usage:
Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

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

Project coverage is 70.23%. Comparing base (f201b2f) to head (81ab4a9).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1235   +/-   ##
=======================================
  Coverage   70.22%   70.23%
=======================================
  Files         316      316
  Lines       18860    18860
=======================================
+ Hits        13245    13246    +1
+ Misses       5615     5614    -1

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

按照返回意见，重新修改代码，清晰。对 原 Metagpt 结构 未作任何改变， 复用源基层代码， 模仿datainterpreter 类进行改造，实现与源代码 高耦合。

Great! Let's review

I developed an official document writing artifact, which can be expanded to the fields of paper writing, official document generation, bidding documents and other fields according to user needs. In the future, tools such as networking and literature retrieval will continue to be integrated. The code repository is at: METAGPT\tests\metagpt\ext\write_report\report.py
(我开发一款公文写作神器， 根据用户的需求可以拓展到论文写作，公文生成，招投标文档等领域。后续会继续集成 联网，文献检索等工具。代码仓库在： METAGPT\tests\metagpt\ext\write_report\report.py)

@wangwenju269 哈喽，有一些问题先请问下

为什么代码是写在tests目录下？
我看大部分的提示词都是中文，是必须使用中文提示词，还是什么原因呢？

您好：
答复如下
   问题1 ： 放在 test 路径下的目的：自己开发的项目代码脚本 和 源metagpt框架 能更好解耦，本项目是复用 metagpt 现有的类和方法，代码做到高内聚，低耦合。

   问题2： 提示词是可以拓展的，已将提示词单独放在一个文件里。后续更换提示词文件，实现实现招投标、论文写作等应用场景。 提示词是可插拔替换的，根据具体业务场景，更换提示词

祝好！
在 2024-05-17 11:06:18，"shenchucheng" @.***> 写道：
@wangwenju269 哈喽，有一些问题先请问下
为什么代码是写在tests目录下？
我看大部分的提示词都是中文，是必须使用中文提示词，还是什么原因呢？
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

有修改意见，请及时反馈给我，谢谢

您好： 答复如下 问题1 ： 放在 test 路径下的目的：自己开发的项目代码脚本 和 源metagpt框架 能更好解耦，本项目是复用 metagpt 现有的类和方法，代码做到高内聚，低耦合。 问题2： 提示词是可以拓展的，已将提示词单独放在一个文件里。后续更换提示词文件，实现实现招投标、论文写作等应用场景。 提示词是可插拔替换的，根据具体业务场景，更换提示词 祝好！ 在 2024-05-17 11:06:18，"shenchucheng" @.> 写道： @wangwenju269 哈喽，有一些问题先请问下 为什么代码是写在tests目录下？ 我看大部分的提示词都是中文，是必须使用中文提示词，还是什么原因呢？ — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

metagpt下有ext文件夹（external, extension之意），可将代码放入metagpt/ext下，参考stanford_town的放置方法，可与metagpt核心代码相分开

答复：文件放置在 test 目录下，方便更好测试代码是否独立执行成功。
我已遵循评审大佬的要求和反馈建议，做出相应修改，清再次查收。
祝好！

source: gharchive/pull-request

repo: geekan/MetaGPT


text:
Update to support Notification messages in the FCM payload

Currently there is support for data messages in the payload from the server. I also would like to send notification messages along with the payload from the server to the client.
Is there an existing way, if not, we need to add it.
https://firebase.google.com/docs/cloud-messaging/concept-options

You can send both notification and data.
See https://github.com/geeknam/python-gcm/issues/99#issuecomment-168643895 and https://github.com/geeknam/python-gcm/issues/113#issuecomment-239937396

Thanks! May be this is not the right place to post this, but i noticed that when i send FCM payload when app is in background, i see the notification message being shown which is as per docs, but i see native notifications for every notification message received. When my app was in the background, i received 3 push messages and i now see 3 native notifications in the notification tray. Why are they not getting collapsed ? By default, according to FCM docs, all notification messages are collapsible.

repo: geeknam/python-gcm


text:
Ansible's service module failing for Ubuntu

I'm working through the book and currently setting up the three VMs in Chapter 3 (except I'm using Ubuntu on them as opposed to CentOS).
Installing the NTP daemon works

but the command to check the daemon is running fails

Possibly related to https://github.com/ansible/ansible-modules-core/issues/915?

Package is ntp, so the service is "ntp", instead of "ntpd".

How did I miss that. Thanks. Typo in the book I think as the code given is
$ ansible multi -b -m yum -a "name=ntp state=present"
$ ansible multi -b -m service -a "name=ntpd state=started enabled=yes"

I'll take a look at this, thanks for opening the issue!

@philipobrien - so, this is one of the many little cases where the difference between RHEL-derivatives and Debian-derivatives can trip you up...
On Debian/Ubuntu:

Package is ntp
Service is ntp

On RHEL/Fedora/CentOS:

Package is ntp
Service is ntpd

See how I set the ntp_daemon OS-specific here: https://github.com/geerlingguy/ansible-role-ntp/tree/master/vars

authors: AnderEnder geerlingguy philipobrien

repo: geerlingguy/ansible-for-devops


text:
WIP: Show issue with dash

This should prevent the issue #148 to happen again once the problem solve.
Since I need a CI to test this out, I am using this PR ;)

Thanks for posting this—see #152 and the comments on #148. This is a bug in Ansible upstream, unfortunately :(

Yep, I am fairly new to ansible, so I was checking from where it has the issue.
I found out also about the source afterward.
You should add the dash package later once fixed in upstream ;)

authors: DblK geerlingguy

repo: geerlingguy/ansible-role-homebrew


text:
Regenerate included self-signed SSL certificate with less than 825 day validity period

Issue Type

Bug Report / Support Request

Your Environment
$ vagrant --version && echo "VirtualBox `vboxmanage --version`" && ansible --version
Vagrant 2.2.6
VirtualBox 6.0.14r133895
-bash: ansible: command not found

Your OS

macOS (Catalina 10.15.2)

Summary
Make sure DrupalVM self-signed SSL certificate meets latest Apple MacOS requirements/constraints from Catalina (https://superuser.com/a/1492657). Catalina now requires that SSL certificates issued after 7/1/2019 include the following constraints:

The ExtendedKeyUsage extension must be present, with the id-kp-ServerAuth OID.
The validity period may not be longer than 825 days.

I'm pretty sure my issue is due to the validity period going till 2029, much longer than 825 days, but I didn't know how to check for the other constraint listed above. The error Chrome throws is NET::ERR_CERT_REVOKED and it doesn't allow you to pass the certificate error screen with an exclusion. But the typing thisisunsafe trick works.

@timwood I've been using a workaround on Ubuntu 18.04 for this for a while, this should also allow the server to make HTTPS requests to itself without having to accept invalid certificates. It should cover all of the tighter certificate requirements, which I believe are also going to impact software beyond MacOS in time.
---
# This is a gross way of handling this, but given that it's for a dev environment,
# time/benefit trade off, and grossness of current workaround...
- name: Set hostnames for snakeoil certificate, and alter extendedKeyUsage.
  lineinfile:
    path: /usr/share/ssl-cert/ssleay.cnf
    regexp: "{{ item.regex }}"
    line: "{{ item.line }}"
  with_items:
    - { regex: '^commonName', line: "commonName = {{ vagrant_hostname }}" }
    - { regex: '^subjectAltName', line: "subjectAltName = DNS:{{ vagrant_hostname }},DNS:*.{{ vagrant_hostname }},IP:{{ vagrant_ip }}" }
    - { regex: '^extendedKeyUsage', line: "extendedKeyUsage = serverAuth" }

- name: Modify script to reduce validity period to 2 years.
  replace:
    path: /usr/sbin/make-ssl-cert
    regexp: '(.*)-days \d+(.*)'
    replace: '\1-days 730\2'

- name: Regenerate snakeoil certificate.
  command: /usr/sbin/make-ssl-cert generate-default-snakeoil --force-overwrite
  notify:
    - restart webserver
    - restart postfix

- name: Regenerate the certificate store.
  command: /usr/sbin/update-ca-certificates --fresh

This is still valuable information.

@joestewart - I believe the SSL cert that's created was set up by the OS itself, and that Drupal VM's automation doesn't actually do any of the work in generating a cert... is this something that might benefit more from some documentation?

Not Mac-specific, so removing that label.

I really like @phizev 's solution. It works super solid on every project of mine.
I think this could be an option/feature to add.

authors: geerlingguy joestewart jonnyeom phizev timwood

repo: geerlingguy/drupal-vm


text:
Support for Parallels

parallels/ubuntu-14.04 box is outdated. Could you please make it with ubuntu 16.04?

@heihachi88 - I don't have Parallels, and don't maintain the official parallels boxes; it looks like Parallels doesn't yet support a 16.04 box, and that would be something to address upstream with Parallels: http://parallels.github.io/vagrant-parallels/docs/boxes/


text:
Port forwarding

Add support for port forwarding and add documentation about using livereload, as one example for when it can be used.

Is it not possible to use the same IP address as the VM (just open up the desired port on the firewall) to do livereload straight into the VM, without having to explicitly add forwarded ports in Vagrant?

Hmm true, I guess it works in the case

You use the Drupal module (loading http://192.168.88.88:35729).
You run the livereload server on the host machine.

In my scenario I'm running grunt on the VM (as I don't want to require node/ruby for our teams dev computers), and in my cases I see the drupal module as a useless dependency when you only need port forwarding.
But I've been so set it my ways, maybe this is not a common scenario and the documentation isn't needed.

@geerlingguy do you want me to rebase without the livereload docs/references?

Updated the logic commit according to your suggestions. Docs still need to be revised, guess they should really be about port forwarding.

@geerlingguy want me to revise the docs or just leave this feature out? I personally don't use it anymore and as no one else has requested in half a year it might just be an unnecessary feature.

@oxyc - Let's just leave it out—it's one of those frontend things where now there are 20 different ways (gulp, grunt, livereload... use Ruby, use Node.js, etc.), and I'd rather let devs figure out how they want to do it on their own.

authors: geerlingguy oxyc


text:
How may one download the image on a non-macos box?

Can the tutorial be updated to allow downloading the image on a box without macos? I think many use cases would require not already having macos.
Cheers

That's likely against the Apple's license agreement, so I definitely couldn't support it 'officially', but I do know there have been many attempts through the years to get an OS X image running on Windows (e.g. http://www.macbreaker.com/2014/05/os-x-mavericks-in-virtualbox-with-niresh.html).
This project does not aim to build a portable box file that can be used on any platform, only to build VMs for macOS testing within a macOS VirtualBox environment.

Gotcha, alright glues Apple sticker on laptop

Haha! Now it's a Mac :D

authors: geerlingguy kathiedart

repo: geerlingguy/macos-virtualbox-vm


text:
New Pi Dramble benchmarks - 2019 Kubernetes edition

A new year, a new architecture... and a new set of benchmarks are required. Stemming from https://github.com/geerlingguy/drupal-for-kubernetes/issues/9, I need to update the Drupal Benchmarks page on the Wiki (see the 'Coming soon!' section).
(Also, delete the 'Unless otherwise stated...' part at the beginning of the page.)

Drupal Version
Setup
Page
Req/s

8.6.10
Pi Dramble Site, Nginx load balancer, cached
/ page
TODO

8.6.10
Pi Dramble Site, Nginx load balancer, not cached
/ page
TODO

8.6.10
Pi Dramble Site, no load balancer, anonymous
/ page
TODO

8.6.10
Pi Dramble Site, no load balancer, authenticated
/ page
TODO

(Also, since HPA needs a minute or so to warm up, I'm running the Wiki benchmarks, but three times in a row before the three runs which determine the final metric.)

Locally on my MacBook Pro

Drupal Version
Setup
Page
Req/s

8.6.10
Pi Dramble K8s, Nginx load balancer, cached
/ page
TODO

8.6.10
Pi Dramble K8s, Nginx load balancer, not cached
/ page
TODO

8.6.10
Pi Dramble K8s, no load balancer*, anonymous
/ page
TODO

8.6.10
Pi Dramble K8s, no load balancer*, authenticated
/ page
TODO

Updated my slides; still need to update the Drupal Benchmarks page on the site though.

Updated, pushing the new container version up to the live site now.

repo: geerlingguy/raspberry-pi-dramble


text:
⚠ UdeS website (prod) has degraded performance

In 9bb9109, UdeS website (prod) (https://www.usherbrooke.ca/) experienced degraded performance:

HTTP code: 200
Response time: 2256 ms

Resolved: UdeS website (prod) performance has improved in b4fd73c.


text:
Add ability to show only diff images in the html-report

Show all images (by default):

Show only diffs:

Coverage remained the same at 81.653% when pulling 8b9d1dfa788affee957ca535ee85d254edd6c2bb on sipayrt.showOnlyDiff into ec211b818658d28c31fdedd51cd22d9e240e4881 on master.

/ok

/ok

authors: coveralls eGavr j0tunn sipayRT

repo: gemini-testing/gemini


text:
no display on external monitor

Basic info first

Linux distro: Archcraft
Linux kernel: 5.16.10-arch1-1
Desktop environment: OpenBox
Display manager: SDDM
Driver version: Nvidia 510.54
EnvyControl version: EnvyControl 1.3
System: MSI GS65 9SD (i7-9750H and 1660ti)

now to the issue:
my laptop has a power led that is white when nvidia gpu is off and orange when it's powered on and it's controlled by the BIOS.
when in integrated mode it really turns my nvidia gpu off, led goes white and is fine, but when in hybrid mode it turns the dGPU on and the led goes orange but i can't get display out of my laptop, but when on nvidia mode it does work but i only have image on my external monitor. Is this a limitation from linux or it is possible to fix this in order to have it working "as intended" (like optimus on windows)
second issue:
cant switch from integrated to nvidia directly, it errors out saying no nvidia gpu is available but i was reading on this and it's because the gpu wasn't powered on on the last shutdown, possibily can't get fixed but i can live with it.

checking in 2h later to say i'm a dummy, was trying to get optimus working with bumblebee, forgot to remove it, removed all packages related to optimus that i had installed previously, fully working now. second issue it is what it is, can live with it.

Hello there, the second issue you describe was introduced since dynamic
Nvidia GPU detection was added because the PCI Bus ID isn't 01:00:00 on all
laptop models out there so you need to switch to hybrid first, restart and
then Nvidia mode.
Greetings.
El mar, 22 de feb. de 2022 17:06, Daxter @.***>
escribió:

checking in 2h later to say i'm a dummy, was trying to get optimus working
with bumblebee, forgot to remove it, removed all packages related to
optimus that i had installed previously, fully working now. second issue it
is what it is, can live with it.
—
Reply to this email directly, view it on GitHub
https://github.com/geminis3/envycontrol/issues/22#issuecomment-1048257138,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALY7IYIYQWYLSB45ILJDHODU4QCF7ANCNFSM5PCM6XIA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


text:
GO:0033881 - fix EC and RHEA

From @kaxelsen
GO:0033881 bile-acid-CoA hydrolase activity
This GO term is outdated. EC 3.1.2.26 has been transferred to EC 2.8.3.25 and RHEA:17693 replaced by RHEA:49436.
I'm just about to OBSOLETE RHEA:17693.

Note that there is no hydrolase. It in reality a transferase, so it catalyses quite a different reaction:
RHEA:49436 cholate + deoxycholoyl-CoA = choloyl-CoA + deoxycholate

right I will move the term and change the label - thanks  !

Likewise for     GO:0033792   bile-acid 7alpha-dehydroxylase activity

EC:1.17.99.5 transferred to EC:1.1.1.395
General Rhea reaction: RHEA:55380: a 3alpha-hydroxy bile acid CoA +   NAD+ =   a 3-oxo bile acid CoA +   H+ +   NADH
Moved under 'oxidoreductase activity, acting on the CH-OH group of donors, NAD or NADP as acceptor' (EC:1.1.1.-)

authors: kaxelsen pgaudet

repo: geneontology/go-ontology


text:
NTR:  positive regulation of reactive nitrogen species metabolic process

Please provide as much information as you can:

Suggested term label:
positive regulation of reactive nitrogen species metabolic process

Definition (free text)
Any process that activates or increases the frequency, rate or extent of reactive nitrogen species metabolic process

**Reference, in format PMID:7715705

Gene product name and ID to be annotated to this term
UniProtKB:P01579 | IFNG
MGI:MGI:104798 | Tnf
MGI:MGI:107656 | Ifng

Parent term(s)

GO:2001057 reactive nitrogen species metabolic process

Children terms (if applicable) Should any existing terms that should be moved underneath this new proposed term?

GO:1904407 positive regulation of nitric oxide metabolic process

Synonyms (please specify, EXACT, BROAD, NARROW or RELATED)

Cross-references

For enzymes, please provide RHEA and/or EC numbers.

Can also provide MetaCyc, KEGG, Wikipedia, and other links.

Any other information

Required for more specific annotation of positive regulation of nitrogen compound metabolic process https://github.com/geneontology/go-annotation/issues/5148

Also

Ideally there would be terms for nitrite metabolism as well ie:

GO:2001057 reactive nitrogen species metabolic process

is a child: nitrite metabolic process

is a positive regulation child: positive regulation of nitrite metabolic process

BTW I am not sure that nitrate is a reactive nitrogen?

Ha ! Thanks for the clarification.
We do have GO:1903428 positive regulation of reactive oxygen species biosynthetic process ; it sounds like you would like to distinguish nitrogen species. I can create a child; what would be the siblings ? I know there is also H2O2 and many others. We could at least have a few common ones, if there are different pathways generating the different ROS.
Also - I would not use 'metabolic process'. Another point is @genegodbold and I have look at the symbiont response to this process, and we ended up renaming the term 'ROS generation', which seems closer to what we fing in the literature.
Thanks, Pascale

authors: RLovering pgaudet


text:
PSD-1 Find latest release version of framework packages(server side) for blank-app-seed build

Review Guidance
📓   Related JIRA
PSD-1
🤔   What does this PR do?
Find latest release version of framework packages(server side)
🚀   Where should the reviewer start?
Add file / directory pointers.
📑   How should this be tested?
npx -y @genesislcap/genx@latest init prtest -x --ref YOUR-BRANCH-NAME

✅   Checklist

[x] I have tested my changes.
[ ] I have added tests for my changes.
[ ] I have updated the project documentation to reflect my changes.

Test run output:
Run echo "Latest Foundation UI version:"
Latest Foundation UI version:
14.67.4
Latest GSF version:
09:21:02 [Info] Searching artifacts...
09:21:04 [Info] Found 1 artifact.
6.6.13
Latest AUTH version
09:[21](https://github.com/genesiscommunitysuccess/blank-app-seed/actions/runs/5795127181/job/15706074078#step:6:22):04 [Info] Searching artifacts...
09:21:06 [Info] Found 1 artifact.
6.6.4

authors: ShrutiTalewad cistov

repo: genesiscommunitysuccess/blank-app-seed


text:
Bump to genesis 6.7

Bumping Genesis to Version 6.7.0 to allow users performing the training to benefit from the process reload functionality + enhancements to the Genesis Plugin.
I've also added .genesis_home to .gitignore so the files aren't prompted to be checked in.

Notice column REFRESH_TOKEN no longer exists in 6.7 and it has been dropped from Users.csv

Tested everything locally as part of going thru the training modules 1 and 2.

Thanks @rafaelnferreira. We are finishing a WebTraining review at the moment, and we are happy to see it after this task.
Cheers,

Thanks @dbarros1979  , I would recommend merging it before version 7 as it this would require probably other significant changes. V 6.7 contains significant changes on event handler process restart.


text:
Result Image has a weird grid on it

Describe the Issue
So my issue is that when I get the image from my Gige camera, it has a weird grid on it, i changed the resolution, exposure time, but nothing has changed.
Its not camera problem, because when I use its own software the image is fine.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Sample Code
I can show a piece of code that demonstrates the reported phenomenon:

[x ] Yes
[x] No
[x] (Please select either yes or no.)

If yes, please provide a sample code:
import genicam.genapi as ge
import cv2
from harvesters.core import Harvester
import matplotlib.pyplot as plt
import numpy as np

# Create a Harvester object:
h = Harvester()

# Load a GenTL Producer; you can load many more if you want to:
h.add_file("C:/Program Files\MATRIX VISION/mvIMPACT Acquire/bin/x64/mvGenTLProducer.cti")
# Enumerate the available devices that GenTL Producers can handle:
h.update()

# Select a target device and create an ImageAcquire object that
# controls the device:
ia = h.create(0)
ia2 = h.create(1)

# Configure the target device; it looks very small but this is just
# for demonstration:
ia.remote_device.node_map.Width.value = 1456
ia.remote_device.node_map.Height.value = 1088
# ia.remote_device.node_map.PixelFormat.symbolics
ia.remote_device.node_map.PixelFormat.value = 'BayerRG8'

ia2.remote_device.node_map.Width.value = 1456
ia2.remote_device.node_map.Height.value = 1088
# ia2.remote_device.node_map.PixelFormat.symbolics
ia2.remote_device.node_map.PixelFormat.value = 'BayerRG8'

ia.remote_device.node_map.ChunkSelector.value = 'ExposureTime'
ia.remote_device.node_map.ExposureTime.set_value(100000.0)

ia2.remote_device.node_map.ChunkSelector.value = 'ExposureTime'
ia2.remote_device.node_map.ExposureTime.set_value(100000.0)

# Allow the ImageAcquire object to start image acquisition:
ia.start()
ia2.start()
# We are going to fetch a buffer filled up with an image:
# Note that you'll have to queue the buffer back to the
# ImageAcquire object once you consumed the buffer; the
# with statement takes care of it on behalf of you:
while True:
    with ia.fetch() as buffer:
        component = buffer.payload.components[0]
        _2d = component.data.reshape(1088, 1456)
        img = _2d
        img = cv2.resize(img,(640,480))
        cv2.imshow('right',img)
        cv2.imwrite('test_left.png',img)
        cv2.waitKey(10)
    with ia2.fetch() as buffer:
        component = buffer.payload.components[0]
        _2d = component.data.reshape(component.height, component.width)
        img2 = _2d
        img2 = cv2.resize(img2, (640, 480))
        cv2.imshow('left', img2)
        cv2.imwrite('test_right.png',img2)
        cv2.waitKey(10)

ia.stop()
ia2.stop()
ia.destroy()
ia2.destroy()
h.reset()

If applicable, please paste the actual output (its whole traceback, etc) here:

Expected Behavior
I expected to get a good picture
Screenshots

Configuration

OS: [Windows 10]
Python: [3.10]
Harvester: [1.4.0]
Camera: [mvBluecougar-X]

Reproducibility
This phenomenon can be stably reproduced:

[ x] Yes
[x] No.
[x] (Please select either yes or no.)

If applicable, please provide your observation about the reproducibility.
Actions You Have Taken

[x ] I've read the Harvester FAQ page.

Additional context
Add any other context about the problem here.

Have you solved this problem?

@TrinhNC Hi, please check your expected pixel format first; I guess it's a Bayer format. To get an RGB image it from the Bayer format to display it, you will need to convert the pixel format from one to another. Please check the OpenCV manual for that purpose. Thanks, Kazunari.

@TrinhNC Hi, please check your expected pixel format first; I guess it's a Bayer format. To get an RGB image it from the Bayer format to display it, you will need to convert the pixel format from one to another. Please check the OpenCV manual for that purpose. Thanks, Kazunari.

According to your code, your camera is BayerRG8:
ia2.remote_device.node_map.PixelFormat.value = 'BayerRG8'
@TrinhNC Try something like the following after the resize. Though I don't have a camera on me to verify.
if 'Bayer' in ia.remote_device.node_map.PixelFormat.value:
  # Interpret the array as a BayerRG image and convert BayerRG --> RGB
  # OpenCV names its bayer patterns using the bottom row of the pattern, instead of the top row
  img = cv2.cvtColor(img, cv2.COLOR_BayerGB2BGR)

Note that OpenCV expects images to be in BGR format and has an unusual way of naming its Bayer pattern code.  GenTL (and most of the world?) defines BayerRG8 using the top row of the pattern.  And OpenCV defines it using the bottom row.
GenTL
[R G]
G B
OpenCV
R G
[G B]

https://github.com/opencv/opencv/issues/19629

@jcormier Thank you very much! I'm using the Harvester_gui and need to add this line:
if data_format in mono_location_formats or \
data_format in bayer_location_formats:
    # Reshape the 1D NumPy array into a 2D so that VisPy
   # can display it as a mono image:
   content = component.data.reshape(height, width)
   content = cv2.cvtColor(content, cv2.COLOR_BayerRG2BGR)  # This line is added

authors: Botaa TrinhNC jcormier kazunarikudo

repo: genicam/harvesters


text:
I actually can't get navigation to work ☹

I can't navigate with my keyboard for some reason.
I'm hitting the arrow keys but nothing.

Good evening! Could you provide more information about the system you are running this onto?
Moreover:

is the search / working?
do you have any particular shell bindings with your arrow keys (or shell plugins that modify their behaviour)?

/ works great.
I'm using Windows Terminal on Window 11. I tried PowerShell and cmd.
Very strange...

I have to use h,j,k,l to move up page, down, up, down page

If using hjkl does work, then this means that vim keybindings are active in your shell (for some reasons): would this not be perhaps some defaults of PowerShell itself?
However, the navigation is provided by promptui and is not touched/modified by the code. Moreover in this reference you can see the promptui defaults, so arrow keys must work unless they are modified by the shell you are into.

Any news/follow-up about this?

authors: austenstone gennaro-tedesco

repo: gennaro-tedesco/gh-i


text:
Update Rust Nightly Version

Fix a new Rust Nightly version

Auto-generated PR

Pull Request Test Coverage Report for Build 999871003

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.004%) to 79.514%

Totals

Change from base Build 993802077:
0.004%

Covered Lines:
17812

Relevant Lines:
22401

💛  - Coveralls

 Update Rust Nightly

authors: ChristianBeilschmidt coveralls

repo: geo-engine/geoengine


text:
add instructions for linux installation

hello hi hello let's stop people asking how do i linux on the discord server every 5 minutes

why are the quick links changed

i changed geode sdk installation to point you to the correct part in the markdown, the others idk they look better with .md

i dont think the links with .md would even work on the website but i should probably wait for someone actually involved in the project to take a stance

authors: Cvolton Fleeym

repo: geode-sdk/docs


text:
Python 3.11 changed classmethod behavior?

kafka@quiet:~/fun/tinygrad$ GPU=1 PYTHONPATH="." python3 examples/benchmark_train_efficientnet.py
ops_llvm not available No module named 'llvmlite'
ops_torch not available No module named 'torch'
NUM:2 BS:8 CNT:10
  0%|                                                                                | 0/10 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/home/kafka/fun/tinygrad/examples/benchmark_train_efficientnet.py", line 38, in <module>
    out = model.forward(x_train)
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kafka/fun/tinygrad/models/efficientnet.py", line 127, in forward
    x = self._bn0(x.conv2d(self._conv_stem, padding=(0,1,0,1), stride=2)).swish()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kafka/fun/tinygrad/tinygrad/tensor.py", line 258, in conv2d
    ret = self._conv2d(weight, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kafka/fun/tinygrad/tinygrad/tensor.py", line 339, in apply
    ctx = cls(x[0].device, *x)
          ^^^^^^^^^^^^^^^^^^^^
TypeError: 'Tensor' object is not callable

Fine in 3.10.9

Replaced with lambda to fix

repo: geohot/tinygrad


text:
OSM : moved over to https to avoid unfollowed 301 redirect !

https://github.com/geokit/geokit/issues/213

Coverage decreased (-2.6%) to 93.741% when pulling ed5ce442665c69a7fe95f632808f56909269ce1b on dfabreguette-ap:master into 49065795ecca12b9eedcc2d212d0010a536cbbaf on geokit:master.

Thanks @dfabreguette-ap - I've updated the test and released a gem to include this fix. Thanks for the PR

authors: coveralls dfabreguette-ap mnoack

repo: geokit/geokit


text:
decide on chatroom

As discussed on 2022-05-20, options:

existing pygeoapi Gitter https://gitter.im/geopython/pygeoapi
new Gitter specific to the workshop (i.e. would be https://gitter.im/geopython/diving-into-pygeoapi)

Considerations:

all of the workshop delivery team is already on/using the existing pygeoapi Gitter
then again, having a dedicated workshop Gitter would keep conversations focused

Thoughts?
cc @geopython/diving-into-pygeoapi-team

Is this a vote?
Then I vote for option B (mainly to not having to search for things related to training in main thread)

+1 for a dedicated Gitter channel

Room created at https://gitter.im/geopython/diving-into-pygeoapi

Test Gitter integration.

authors: francbartoli pvgenuchten tomkralidis

repo: geopython/diving-into-pygeoapi


text:
Enable custom handling of undefined field attr in to_filter

In to_sql_where, if an attribute name is not present in the field_mapping, a KeyError will be thrown. Meanwhile, in the roughly analogous Django and SQLAlchemy integrations, to_filter will treat an invalid/undefined attribute name as a string. Thus, randomAttr = 'A' will evaluate to False, and randomAttr > 10 will throw TypeError: '>' not supported between instances of 'str' and 'int'; likewise, randomAttr IS NULL will throw an AttributeError.
I found this behaviour unexpected, and also difficult to integrate into an implementation of, for instance, the STAC API filter extension, where invalid properties need to be handled differently according to the context.
I think it would be useful to enable greater control over how unknown attribute names are handled, via an optional boolean parameter, undefined_as_null. If None (default), we retain the current behaviour. If False, the field_mapping lookup would throw a KeyError. If True, the attribute will evaluate to NULL.
Note that I've started with implementing this change only for the SQLAlchemy integration, as that is my current use case and what I am most familiar with, but ideally this behaviour would be consistent across the backend integrations.

@constantinius I would appreciate your input and a review :)

repo: geopython/pygeofilter


text:
Authentication Error

YASB Bug Report
Unable to Authenticate via Twitter.
Expected Behavior
I would expect to be authenticated and subsequently logged in to the site.
Actual Behavior
When logging in via Twitter, I am brought to page: https://yasb-backend.herokuapp.com/auth/twitter
The only text on the page is: "Internal server error"  I am experiencing this issue across several networks on: a Windows laptop running Chrome, an iPhone running Safari, and another iPhone running Chrome.
Language
My apologies, but I don't know what this means.  Please let me know if I can provide any additional information to help address this issue.
Thank you!

Duplicate of #582

Thank you!

repo: geordanr/xwing


text:
gui.remove is not a function

Saw that a sample that was using dat.gui is failing with gui.remove is not a function
https://jsgist.org/?src=c7a46e2519f534df07f1be4f2a2fa35d

Yes, that was an intentional API change, gui.remove is replaced by controller.destroy(). It didn't really make sense to me that you needed a reference to the parent GUI to do this. https://lil-gui.georgealways.com/#Migrating
I could see a world where gui.remove exists as a synonym to make the lib more "drop-in" complete. But there's a few other renames and API changes besides this one. It begs the question as to whether they should all be "forwarded" in some way (IMO probably not).

ugh, you can do what you want but you list the lil.gui as a drop in replacement. three.js dropped it in and it appeared to work but in actually tons of stuff is broken. If lil.gui is not a drop in replacement then please consider not advertising it as such

To be more helpful, just a suggestion, I'd suggest changing the readme from

Works as a drop-in replacement for dat.gui.

to something like

Works similar to dat.gui (see below)
...
Using lil.gui as a replacement for dat.gui
You can use lil.gui as a replacement for dat.gui but you'll need to be aware of these changes

remove ....
empty folders as labels ....
out of range values
accessing gui.__controllers directly
setEnable...
etc....

Sorry it broke things for you! I agree, some kind of "mostly" language could go in the "drop-in" sentence—I was just trying to keep it short.
I think the migrating section achieves what you're describing. It's pretty explicit about breaking changes, but perhaps it could be featured more prominently in the readme.

For most projects, moving from dat.gui to lil-gui should be as simple as changing the import URL. The API is designed to be as backwards-compatible as is reasonably possible, but this section aims to address any breaking changes.

It is missing __controllers => .controllers though, thanks for pointing that out.
In general, I'm happy to share my reasoning behind any of the API or cosmetic changes.

I don't mind that the API changed. Rather, "drop in replacement for dat.GUI" effectively tells me "no need to read the docs if you already know dat.GUI because you can just drop it in and it all works"

Just random thinking out loud, not a judgement 😜
I don't know if parent.remove(elem) or elem.destroy() is a better API. I've done both in my life. But, one argument for parent.remove(elem) over elem.destroy() is the thing being modified is the parent's list of children, not the elem. The elem shouldn't be able to affect the parent. Further, you should arguably be able to do this
 gui1.remove(elem)
 gui2.add(elem)

I'm not suggesting you change it. The logic that it's convenient to be able to not have to have a reference to the parent is good too. The HTML DOM has both, parent.removeChild(elem) and elem.remove()

Sure, let's put it back as a synonym for destroy(), there's valid arguments for both and it helps with compatibility.
I don't think gui.add should be overloaded to accommodate gui.add( controller ) though. The added complexity doesn't feel justified given how simple it is to make a new controller. I don't think we put that in dat.gui either.

I'm going to change this to a won't-fix. The dat.gui => lil-gui transition feels like it's just about done, and I think we've provided enough migration notes and legacy support to make the switch easy. Thanks for your feedback.

authors: georgealways greggman

repo: georgealways/lil-gui


text:
Use time values in Mock.Terminal

These are currently ignored.
Respecting them would significantly complicate the implementation. Blocking would not lead to a faithful simulation. We need concurrency and possibly explicit queues.

Alternatively, we could keep the terminal mock implementation basic, and also provide a more full-featured, graphical, "real time" mock implementation based on, say, Gloss, or Monomer.

repo: georgefst/lifx-lan


text:
store summary

I will add the possibility to retrieve some information about the store as a short summary.
So you may see that you have stored some information in GeoRocket.
Currently i used the HEAD HTTP verb on the /store path to get the summary in the response body.
HEAD /store HTTP/1.1

HTTP/1.1 200 OK
Content-Length: 101

{"/testLayer1":{"lastChange":"2016-10-05 20:30:31","size":73635840,"chunkCount":282}}

But we should think about a another http verb or path, because a GET request on /store will respond with all the chunks which are stored in georocket.
The HTTP specification says that HEAD should return the same header as the GET request.
The verb and the path is easy to change, therefore i will concentrate on the other Store implementations.

+1

repo: georocket/georocket


text:
SLD parser causes i18next issue in projects that use i18next

Bug
Describe the bug
The initialization of i18next in the parser causes the initialization in downstream projects to fail. If using e.g. the fetch backend will not run (will not fetch the i18n files) in case the initialization in the SLD parser runs first.
To Reproduce
Steps to reproduce the behavior:
Embed the SLD parser in a project that also uses i18next (or react-i18next).
Expected behavior
I'd expect the i18next usage in the SLD parser not to influence the usage in downstream projects.
Desktop (please complete the following information):
Happens in all browsers.
Additional context
The initialization of i18next should probably be managed by configuration or by construction option. Perhaps a i18next configuration module could be created that can be used by downstream projects.

I am a bit surprised. Why does a parser need i18next at all?

This was added during the codesprint in Paris to enable localized error messages, which in principle I like. I was also surprised that i18next seems so inflexible regarding initialization (especially since in react it uses a proper context which obviously still doesn't prevent polluting the globals).

I suggested @ocruze to use i18next. He started with a different library but i told him that we use i18next elsewhere and it works well... :man_facepalming:

Actually initially I didn't use any library at all, it was pure ts types. Maybe I can make another proposal with ts types and you can revert my PR?

Yeah this would be great. I'm afraid that this is kind of blocking the release of geostyler / geostyler-demo.

I think this is solved with #946

authors: KaiVolland hwbllmnn marcjansen ocruze

repo: geostyler/geostyler-sld-parser


text:
Sequential Order of Attributes

GIVEN a webpage meets accessibility standards
WHEN I view the heading attributes
THEN they fall in sequential order

The last h2 heading was changed into h4


text:
🛑 Miruku is down

In c608afb, Miruku (https://miruku.cafe) was down:

HTTP code: 502
Response time: 586 ms

Resolved: Miruku is back up in 775a6db.

repo: geshii/status


text:
🛑 gestform is down

In 644f072, gestform (https://www.gestform.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: gestform is back up in c593da3 after 5 minutes.

repo: gestform-dev/upptime


text:
Shoehorn channel-opening flow into first-trade flow

Fixes #1793.
https://github.com/get10101/10101/assets/9418575/a391988c-edbc-4ffd-86c3-fa4e714a4f29
TODOs:

[x] Let user trade normally after channel-opening trade.
[x] Fix failing UI test. Adapted it with the new flow.
[x] Add another UI test for when the channel is already established.
[x] Fix confirmation slider bug when confirming channel configuration.
[x] Close all bottom sheets when first trade succeeds.
[x] Add e2e test for submit_channel_opening_order API.
[x] Use TradeValues to calculate coordinator margin.
[x] Set channel-opening fee to 0. When we are ready to charge for opening channels we can read this information from the liquidity options through the backend.
[x] Do not assume coordinator's proportional liquidity in UI and use leverage in TradeConstraints instead.
[x] Cap coordinator's maximum liquidity per channel.
[x] Fix webapp if affected.
[x] Pop all bottom sheets once the channel-opening trade is confirmed.
[ ] Include funding transaction fees, and fee reserve, in channel configuration screen.

The flow looks awesome

@luckysori Quick question without having looked at the PR yet. Is there something we have to adapt for the webapp?

@luckysori Quick question without having looked at the PR yet. Will this change have an impact on the webapp?
Great question. My intention was to not change the webapp at the moment, but I didn't do it properly. See: https://github.com/get10101/10101/pull/1974/files#diff-8923b602c94d37f595a2e3736668c11f089c092ba9f4774d4b2ce305619c0b35R221.

I set the optional ChannelOpeningParams to None, but that will always imply that the channel is already open. I will play around with it tomorrow to make sure that it works like it did before this PR. It shouldn't be much work.

@luckysori Quick question without having looked at the PR yet. Will this change have an impact on the webapp?

Great question. My intention was to not change the webapp at the moment, but I didn't do it properly. See: https://github.com/get10101/10101/pull/1974/files#diff-8923b602c94d37f595a2e3736668c11f089c092ba9f4774d4b2ce305619c0b35R221.
I set the optional ChannelOpeningParams to None, but that will always imply that the channel is already open. I will play around with it tomorrow to make sure that it works like it did before this PR. It shouldn't be much work.

I think I fixed it now, but I can't test it because I get an SSL error when running the webapp locally.

https://github.com/get10101/10101/assets/382048/c692992d-0497-4ab3-97b2-496298b698b5

@bonomat @luckysori please have a look at https://github.com/get10101/10101/pull/1974#issuecomment-1937108279 and let me know what you think. I took it a bit far (which I probably shouldn't have 🙈), but I got too far to stop now 😅 .

@bonomat @luckysori please have a look at #1974 (comment) and let me know what you think. I took it a bit far (which I probably shouldn't have 🙈), but I got too far to stop now 😅 .

I think it looks good, although I would make sure the e2e tests pass before merging.

run the e2e tests locally! everything passed. going ahead with the merge.

authors: bonomat holzeis luckysori


text:
Check for page content and links in Monetization

Is your feature request related to a problem? Please describe
Currently, we are making batteries for each and every website. Instead, we can improve our Monetization battery which is essentially built as a fallback to other batteries.
But the Monetization battery checks only for the lightning meta tag but not the content of the page and the embedded links. It would be good to add them as well as that would help us save time.
i.e. by adding checks for document.body.innerText and document.querySelector("a[href*='getalby.com']")
Additional context
Can we remove all other batteries after adding this then?
No. Because there still are some cases where this doesn't work (like in the case of MixCloud where we used APIs) or if we decide to embed our own ("send satoshis") buttons in future in the websites to open our extension from there, as we can't generalize the place for our button as it varies from website to website (and hence can't be generalized)!
Are you working on this?
Would like to if approved!

https://github.com/consenlabs/token-profile
can refer to the way to add tokens to the Ethereum community mobile client wallet, and make templates of the things you need to add and submit them through github

authors: im-adithya qqqzhch

repo: getAlby/lightning-browser-extension


text:
feat: change wording to 'passcode'

Describe the changes you have made in this PR
Changes the unlock screenshot and the wording from "password" to "passcode" as an attempt to help users understand better than this is not related to their alby account's password.
Link this PR to an issue [optional]
Fixes #2251
Type of change
(Remove other not matching type)

feat or chore

Screenshots of the changes [optional]

How has this been tested?
Manually
Checklist

[x] My code follows the style guidelines of this project and performed a self-review of my own code
[x] New and existing tests pass locally with my changes
[x] I checked if I need to make corresponding changes to the documentation (and made those changes if needed)

@stackingsaunter should be good now!

Done!


text:
Bit body type for chart bits

Currently, the chart bits have a JSON object body.
This turns out to be a bit problematic when indexing because for the bit.body property types we can have either:

"string values" (bitmark v2)
[arrays{}]  (bitmark v3)

Would be more consistent to have the body an array as well for all chart type bits (that now have object as a type)

@stefanszasz Is this still an issue, or have you been able to work around it?
I am not sure we'll be able to change it easily at this stage.
cc @gaba-getmorebrain

repo: getMoreBrain/bitmark-parser-generator

license: ISC


text:
Icon of self hosted Rocket.Chat not visible in sidebar

Bug description:

When adding a new Rocket.Chat service, the icon in the sidebar disappears shortly after. The same happens after a restart of Ferdi.
Setting a custom icon also doesn't work, instead the preview in the setting shows a white image (tested with multiple images and formats).
Steps to reproduce:

Go to 'Add new service'
Select 'Rocket.Chat'
Switch to 'Self hosted'
Enter address of self-hosted Rocket.Chat
(Optional: add custom icon)
Click on 'Save service'
The Rocket.Chat icon in the sidebar disappears (after a few seconds)
(Optional: if custom icon was set -> icon shows up as completely white in the preview)

Expected behavior

Rocket.Chat icon should not disappear. Custom icon should preview the actual icon.
Screenshots

Environment:

Operating System: Windows 10 2004

Ferdi Version: 5.5.0

Server: Without account

Debug information:

debug.json.txt

This issue is happening because the favorite icon is getting setup with double slashes in the favorite icon path.
Debugging Ferdi with dev tools I see the path to the favorite icon is marked as:   https://chat.server.name//assets/favicon_192.png
Notice the // in the path.    Removing that in the DOM fixes it.

Fixed that by changing line 29 of rocket.chats recipe webview.js from
ipcRenderer.sendToHost('avatar', ${window.location.protocol}//${window.location.host}/${response.icons[0].src});
to
ipcRenderer.sendToHost('avatar', ${window.location.protocol}//${window.location.host}${response.icons[0].src});
Got that idea from: https://github.com/meetfranz/recipe-rocketchat/blob/master/webview.js

Thank you very much, that fixed it!

@Firnor Sure closing that issue? - I don't know if it will be fixed then..

Sorry, yeah, you are totally right.
Reopening this to let the devs fix it for a future release.

I think this is a duplicate of #780.

Thank you for reporting duplicated @LongJohn-Silver, it really helps keeping our issues clean!

@vantezzen It's nothing!

authors: Firnor LongJohn-Silver bfbones cgaspard vantezzen

repo: getferdi/ferdi


text:
Delete gauge uninstall file. It is not relevant anymore

Expected behavior
The redundant file should be removed
Actual behavior
Running the uninstall file does not remove Gauge.
Steps to replicate

Install 0.9.7 using choco
Upgrade

The uninstall file is still present which is not relevant anymore

We expect the user to remove this manually

authors: sguptatw zabil

repo: getgauge/gauge


text:
Failed to start gauge API: Error occurred while waiting for runner process to finish.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps (or script) to reproduce the behavior:
Please help to see the log below. The error is failed to compare the gauge java version.
Logs
24-01-2022 23:50:42.307 [java] [DEBUG] JAVA_HOME: C:\Program Files\Java\ibm_sdk80
24-01-2022 23:50:42.307 [java] [DEBUG] gauge_project_root: C:\ndi-cp-cdi-automation-test
24-01-2022 23:50:42.307 [java] [DEBUG] gauge_parallel_streams_count: 8
24-01-2022 23:50:42.307 [java] [DEBUG] gauge_reports_dir: reports
24-01-2022 23:50:42.307 [java] [DEBUG] overwrite_reports: true
24-01-2022 23:50:42.307 [java] [DEBUG] logs_directory: logs
24-01-2022 23:50:42.307 [java] [DEBUG] enable_multithreading: false
24-01-2022 23:50:42.307 [java] [DEBUG] gauge_specs_dir: specs
24-01-2022 23:50:42.307 [java] [DEBUG] csv_delimiter: ,
24-01-2022 23:50:42.307 [java] [DEBUG] gauge_java_home:
24-01-2022 23:50:42.307 [java] [DEBUG] gauge_custom_build_path:
24-01-2022 23:50:42.308 [java] [DEBUG] gauge_additional_libs: libs/*
24-01-2022 23:50:42.308 [java] [DEBUG] gauge_jvm_args:
24-01-2022 23:50:42.308 [java] [DEBUG] gauge_custom_compile_dir:
24-01-2022 23:50:42.308 [java] [DEBUG] gauge_clear_state_level: scenario
24-01-2022 23:50:42.308 [java] [DEBUG] ***** END *****
24-01-2022 23:50:52.656 [java] [DEBUG] failed to compare version '0.7.15 (selected by rule)
' and '0.7.15'. strconv.Atoi: parsing "15 (selected by rule)": invalid syntax
24-01-2022 23:50:52.656 [java] [ERROR] Installed version of gauge-java (0.7.15) does not match with dependency gauge-java (0.7.15 (selected by rule)
) specified in build.gradle file
24-01-2022 23:50:52.944 [java] [DEBUG] running - C:\Program Files\Java\ibm_sdk80\bin\javac.exe [-encoding UTF-8 -d gauge_bin @C:\Users\PHOOPW~1.THU\AppData\Local\Temp\gauge_temp147947507\52fdfc072182654f163f5f0f9a621d72]
24-01-2022 23:50:52.944 [java] [DEBUG] stdout/stderr is logged to logs\26580-javac.exe.out

Paste any log or error messages here
24-01-2022 23:50:52.656 [java] [DEBUG] failed to compare version '0.7.15 (selected by rule)
' and '0.7.15'. strconv.Atoi: parsing "15 (selected by rule)": invalid syntax
24-01-2022 23:50:52.656 [java] [ERROR] Installed version of gauge-java (0.7.15) does not match with dependency gauge-java (0.7.15 (selected by rule)
) specified in build.gradle file
24-01-2022 23:50:52.944 [java] [DEBUG] running - C:\Program Files\Java\ibm_sdk80\bin\javac.exe [-encoding UTF-8 -d gauge_bin @C:\Users\PHOOPW~1.THU\AppData\Local\Temp\gauge_temp147947507\52fdfc072182654f163f5f0f9a621d72]
24-01-2022 23:50:52.944 [java] [DEBUG] stdout/stderr is logged to logs\26580-javac.exe.out

Expected behavior
Would like to run successfully.
Screenshots
If applicable, add screenshots to help explain your problem.

Versions:
JDK - 11

gauge -v

Gauge version: 1.4.3
Commit Hash: f98dd40
Plugins
html-report (4.1.4)
java (0.7.15)
screenshot (0.1.0)

failed to compare version '0.7.15 (selected by rule)
' and '0.7.15'. strconv.Atoi: parsing "15 (selected by rule)": invalid syntax

This looks like there is a mistake in pom.xml - could you please check if the dependency version is set correctly?

I got the same issue with python, any solution?

Hi @skanderf
for my case it was the wrong path for python, if you are using virtual environment find your pyvenv.cfg file and check if your path is correct

got the same in ruby

authors: can-arikan josephinePPT sathwik139amagi skanderf sriv

repo: getgauge/taiko


text:
missing +x for bin/* using composer install (no zip)

Hello,
Not a dramatic miss but could help other:
composer create-project getgrav/grav ~/webroot/grav
not using the unzip command
bin/grab or any files in bin/ are missing the +x flag, meaning they are not executable. git supports it.
Let me know if you like me to provide a PR (no code change tho' as it is only about +x) :)

Works for me on my Mac + Linux.

authors: pierrejoye rhukster

repo: getgrav/grav


text:
feat: unpkg.com加载速度太慢

详细解释
unpkg.com加载速度太慢 能做个后台让我们自己选择加载css js是本地还是外链吗

详细解释
unpkg.com加载速度太慢 能做个后台让我们自己选择加载css js是本地还是外链吗

@hanfeicode  可以手动改一下主题的代码，把链接修改一下

可以用unpkg.zhimg.com替换unpkg.com.

authors: hanfeicode lilinth marco-tan

repo: getgridea/gridea


text:
[Feature Request] Customizable keybindings

Insomnia Version: 6.0.2
Operating System: MacOS 10.13.6

Details
I can't trigger autocomplete by hitting ^Space, because the shortcut is already reserved for system use (namely selecting the input source). Please note, that I have multiple input sources enabled on my Mac which might or might not be necessary to replicate the issue. And even if I disable the default binding in system preferences, the show autocomplete shortcut in Insomnia still doesn't work for me. It seems like something is going on there.

This seems like it's probably not an issue with Insomnia itself. Perhaps you need to restart your system after disabling the shortcut to "free up" the binding for Insomnia to use?

@gschier Thanks, restarting the system indeed helped.
Still, I feel like the better way to address this would be to change the shortcut in Insomnia. Binding autocomplete to one of the most widely used system shortcuts just doesn't seem like a very good idea made worse by the fact that keyboard shortcuts aren't customizable.

The reason Ctrl-Space was chosen was because many other editors use the same keybinding for autocomplete: IntelliJ, Atom, VSCode, Sublime Text, ...
I definitely agree with you that shortcuts keybindings should be editable but I think the default of Ctrl-Space is the right choice.

Coincidentally, I set up an additional language yesterday for someone else to use my laptop and ran into the same issue today. I couldn't figure out why the input language kept switching back and forth on me 😆
I thought there was already an issue for customizable shortcuts but I can't find it. I'm going to rename this issue to match what needs to be done. Thanks for the submitting this 👍 💯

Hi, I would like to work on this. :smile:
I suppose we are going to support more than one keymaps for a hotkey (like the send request hotkey that has multiple keymaps: ctrl+r, ctrl+enter, f5).

I am in the same exact situation. How is this going?

Hi @gschier, any update on the pull request? I have actually finished the keybindings editor (the complete feature). Do you want me to push the update to this PR, or create another PR after this one is merged?

@rickychandra sorry, I've just been busy. Another PR would be appreciated 😃. My goal is to deal with all the open PRs next week!

For some reason I am not able to bind "Show Autocomplete" to anything but the default. I can remove it, which predictably makes it not work anymore, but it continues not to work with a custom shortcut. Re-defining the original Ctrl+Space shortcut makes it work again.

@spro please create a new issue for this. I hope I could help look into this in these days.

authors: adiachenko danielo515 gschier rickychandra spro

repo: getinsomnia/insomnia


text:
[Feature Request] History for Requests

It would be really nice to include the requests into the history.
If I look at an older Response (through the history) I can see the response, but not the request that lead to it. Which makes it hard to reproduce it sometimes.

A lot of people have been asking for this lately. It seems like a good thing to implement.


text:
Issue about using kirby cli

Hello,
I am a new starter of composer.
Should I use the command:
composer require getkirhy/cli

... in which folder?kirby/panel?
Thanks!

I tried installing in folder 'kirby',but when I type 'kirby' in shell,it said 'command not found'.

Please ask support questions in our forum, we will help you there. Thanks!

authors: Twikor lukasbestle

repo: getkirby/cli


text:
Techdebt: Replace sure with regular assertions in secretsmanager

See https://github.com/getmoto/moto/issues/6035

Hi @kbalk,
Thank you for contributing to Moto!
To show our thanks, we'd like to share some of the donations that we've received with you. PR's like this are the big reason that Moto is as successful as it is - so it's only fair that you, as a contributor, gets to share the spoils.
We've created a companion website with more information: https://payments.getmoto.org/
Feel free to open a bug or discussion if you run into any problems: https://github.com/getmoto/payments

I would like to turn the payment into a contribution, but I'm having trouble figuring out how to do so.

Do you mean turning it into a contribution to another OpenCollective? There is no way to do that (yet) - but if you're OK with sharing the name, we can always do that for you.

Ah, gotcha. That's much appreciated.
Just to give some background: all of our income is managed by OpenCollective (OC). That includes direct donations, donations via Github, and also some of the money that we receive from Tidelift every month.
The whole reason we registered with OC, is to redistribute this money to contributors. Contributors send us an expense, for time and effort, and the moment we approve, this, OC sends the money to them.
The majority of the money currently comes from Tidelift, who pay us for maintaining a healthy OS project - and considering you help us keep Moto healthy, it only makes sense that you get some of the money.
You can see the budget here, including all the money going in and the expenses going out: https://opencollective.com/moto#category-BUDGET
The amounts are quite low, for now, but we're hoping that with more donations from businesses who use Moto, we can reward contributors more.
The money we would pay you is currently earmarked in https://payments.getmoto.com, to remind us that part of our OpenCollective balance is already spoken for.
So if you want to contribute this money to Moto, you don't have to do anything. We automatically retract offers that have not been claimed after 2 months or so, and the money will go back into the big pot, ready to be offered to other contributors.

Thank you for the explanation.  The donation was a bit circular ... I wanted to thank moto and moto was thanking me!  I'll let the donation go back into the community pot.

authors: bblommers kbalk

repo: getmoto/moto


text:
feat: improved medium plugin, it now checks if article was already published

I used the same logic I developed for the dev.to plugin to check if the article was already published.

Nice! Thanks for the contribution!

authors: MattiooFR ralsina

repo: getnikola/plugins


text:
submissions.csv.zip can be downloaded, but submissions.csv cannot

On the forum, we've heard of two similar cases in which the submissions.csv.zip can be downloaded, but the submissions.csv cannot. Both cases involved an encrypted project, a form with hundreds of fields, and <1,000 submissions. I'd be interested to see whether we could reproduce it ourselves. In both cases, the users were able to download the submissions.csv if they filtered the submissions down to a smaller number.

https://forum.getodk.org/t/odk-central-v1-2-primary-data-table-csv-download/34419
https://forum.getodk.org/t/unable-to-download-submissions-from-two-forms-of-encrypted-project/39655

One part of this that I don't understand is that the users reported that at least in some cases, they saw no error message at all:

there is no error message, only the download never starts after having been requested in the Decrypt and Download window (even when trying several times as suggested).

The first screenshot shows the message after entering the password and clicking "CSV". After waiting 2-3 minutes, we got another error message, as shown in the second screenshot.
Sometimes, the first situation last longer, 5-10 minutes, and nothing happens.

I'm not surprised by an error message after 2–3 minutes: I'm guessing that's an nginx timeout based on the timing and the message. However, I am surprised that there would be cases in which there is no response at all.

@matthew-white both of the forum reports mention encrypted projects/submissions, this may be a factor.
For reference, I haven't had problems downloading an unencrypted submissions.csv for a form with 2500 questions & ~1330 submissions, either locally or from a getodk.cloud server.  You can try at https://dev.getodk.cloud/#/projects/29/forms/25000_questions/submissions, although the UI looks slightly different to the screenshots at https://forum.getodk.org/t/odk-central-v1-2-primary-data-table-csv-download/34419.
I have on one occasion seen the "something went wrong" error in the UI as at https://forum.getodk.org/t/unable-to-download-submissions-from-two-forms-of-encrypted-project/39655, although my download started ok.

both of the forum reports mention encrypted projects/submissions, this may be a factor.

I strongly suspect so, all the more so given that you weren't able to reproduce with an unencrypted submissions.csv.

the UI looks slightly different to the screenshots at https://forum.getodk.org/t/odk-central-v1-2-primary-data-table-csv-download/34419.

Yes, we replaced the dropdown in that screenshot with the current modal as part of v1.4, when we added more download options. (Before v1.4, you would only see a modal if you had a passphrase to enter; now, you always see a modal.)

I have on one occasion seen the "something went wrong" error in the UI as at https://forum.getodk.org/t/unable-to-download-submissions-from-two-forms-of-encrypted-project/39655, although my download started ok.

Very interesting, that's definitely unexpected. If you see that again, could you see what's logged in the console? That modal has an unusual setup: to start the download, we submit a form from an iframe. We use a form rather than a simple download link in order to pass the passphrase via the request body rather than as a query parameter. We use an iframe so that the form submission doesn't change the main page. Once the form is submitted, we check for a Problem response in the iframe on a regular basis. We display the "something went wrong" error if there's a response in the iframe that isn't JSON (for example, an nginx error). We also log the error to the console.

Another data point. @yanokwa encountered this issue while:

downloading encrypted submissions when a form has a few repeats and media. All data tables and All data and attachments work great but Main data table never  starts.

You can repro at https://test.getodk.cloud/#/projects/467/forms/my_form_2/submissions.

The passphrase is passphrase.
A couple of things that I'm noticing:

This form only has 24 fields. From above, the other cases we've heard about had more fields. The repro has >1,000 submissions. The main CSV file is 339 kB.
The form has media, but both All data tables and All data and attachments work great. So the issue seems to center on the CSV-only case.

authors: alxndrsn matthew-white

repo: getodk/central-backend


text:
Know whether it was an insert or update

When using onConflictUpdate I would like to know whether the query resulted in an insert or an update. Is that possible?
I tried to do this but didn't work:
var isUpdate = false

query[MyClass]
  .insert(lift(myClass))
  .onConflictUpdate(_.id)(
    (t, e) => {
      isUpdate = true
      t.id -> e.id
    },
    (t, e) => t.name -> e.name)

Everything in quote is translated to sql. Can you do it in sql? If so either write your own sql or try to figure it out how to write it in quill.

authors: fokot graineri

repo: getquill/quill


text:
fingerprint for Express middleware

We are querying external API services and creating Errors based on the results - so the stacktrace is always the same. These are being reported by the Express middleware into a single group. Is there any plans to support fingerprinting via this middleware?
Thanks!
https://docs.sentry.io/hosted/learn/rollups/

Hmm, I see the difficulty you're getting at. You could roll your own via the lower-level captureException method, but that sort of defeats the usefulness of the express middleware. We can investigate supporting this use case.
From your user-perspective, how are you imagining communicating your custom fingerprint array? The most immediate way that comes to my mind is via a property added to your Error object, but there are other ways it could work - potential new API methods, some state added to the req object, maybe others.

Ping @jmredfern. Is this still relevant for you?

Closed due to inactivity. Please feel free to reopen if it's still relevant.

authors: LewisJEllis jmredfern kamilogorek

repo: getsentry/raven-node


text:
Replace StackTrace.empty with StackTrace.current

When a user passes StackTrace.empty Sentry should automatically use StackTrace.current instead. An empty stacktrace doesn't contain any frames so you get pretty useless stacktraces. By using the current stacktrace instead, you can at least get a frame of whereever it was passed to Sentry.
An empty stacktrace is for example sometimes passed into the onError callback of stream listeners.

@ueman makes sense, wondering if somebody is passing StackTrace.empty purposely tho.

Yeah, I do wonder that too, but at least I only see instances where I don't want an empty stacktrace. Maybe hide it behind an option?

@ueman can you link me to examples where StackTrace.empty was purposely passed? I'm interested in learning why this is even a thing, the most important part of an error event is the stack trace, so I'm unsure if this has to be fixed here rather than where StackTrace.empty is being passed.

I'm seeing that for stream.handleError:
stream.handleError((Object exception, StackTrace stackTrace) {
  // stackTrace is StackTrace.empty sometimes
});

The stack trace argument may be StackTrace.empty if this stream received an error without a stack trace.

I see, that makes sense.

you can at least get a frame of whereever it was passed to Sentry.

If this is the case, I am all in for this change.

authors: marandaneto ueman

repo: getsentry/sentry-dart


text:
PlatformException.message should be treated like PlatformException.stacktrace

Problem Statement
In theory, only PlatformException.stacktrace should contain a stacktrace. However, in practice I see a lot of plugins misusing the PlatformException.message field for stacktraces.
Solution Brainstorm
Therefore, it would be nice if the PlatformException.message field could be treated like the PlatformException.stacktrace field.
Are you willing to submit a PR?
Yes

Do you have an example of how it's misused? Not sure if I understand correctly if message doesn't contain a stacktrace

Sure.
Here's an example where a native stacktrace is passed to Flutter in the PlatformException.message field:

As you can see, it's not really well formatted and Sentry could do better.
Here's an example of how it looks like when the native stacktrace is passed via the PlatformException.stacktrace field and how I want it to look like for the example above

It should be a straight forward change in the following file https://github.com/getsentry/sentry-dart/blob/955541a50762f04c301c83eb25aef0077742c29a/flutter/lib/src/event_processor/android_platform_exception_event_processor.dart
Basically the new logic should be in case PlatformException.stacktrace is null, try to parse PlatformException.message instead.

I see, makes sense if it is parsed as a fallback 👍

authors: buenaflor ueman


text:
traceback limit

Hi,
Is it possible to make the traceback limit size configurable? At the moment I just see a "removed because of size limit" warning in sentry. I would appreciate it if someone can let me know how it can be done. Alternatively, if it is not possible currently, can we please allow it to be configurable?
Many thanks

@rebx could you post a screenshot/link of the sentry issue?

Thanks for your reply. Please see below

@rebx I need to see what part of the UI you are talking about, this tiny screenshot is not informative, please post a link or something where I can clearly see what you are referring to.

ok nvm, I checked and this is a hard limit imposed by our ingestion pipeline that we do not allow users to customize. Closing, sorry.

I understand it's not customisable now, but can be made configurable in the future?

@rebx no, unfortunately server side limits can not be exposed to the user because they are necessary to protect our infrastructure from bad payloads.

repo: getsentry/sentry-python


text:
Ensure SSH keys are generated from hwrng

They were in the previous release but aren't currently in master since removing the raspberrypi-sys-mods package (https://github.com/getumbrel/umbrel-os/pull/167).

Closing due to adding the raspberrypi-sys-mods package back in.

authors: AaronDewes lukechilds

repo: getumbrel/umbrel-os


text:
Support multiple messages in the same request

I would like to send multiple messages to the bot service in the same request.

Yes, your solution works perfectly (in my case), I wrote an post call to callbackUrl sending the notification (same as reminders or trivia plugins do).
I also implemented an simple function to do this more easier.
function notifyProcess(target, message){
    let body = {
        chat: { id: target.chat.id },
        text: `*[🕗 ${message}]*`
    };
    axios.post(target.callbackUrl, body)
    .then(async response => {
        if (response.status == 200) {
            console.log(`Received back: ${JSON.stringify(response.data)}`);
        }
    });
}

Thanks in advance, nice work!.

Yeah I should really add a nicer way to send a callback message, thanks for the suggestion. Glad it worked out for you!

authors: KstmSoft gfaraj

repo: gfaraj/super-bot


text:
Delete lesser-quality files from Untouched directory at AWS

When a better quality version is added, lesser quality files are being removed from the appropriate library. Need to also remove lesser quality files from Untouched directory.

Files are already deleted as part of upload to AWS process; files in my library I checked weren't yet uploaded to AWS.

repo: gfitzp/fitzflix


text:
Improved texture creation helpers

Also, fixing this error with the previous helper:

thread 'main' panicked at 'called Result::unwrap() on an Err value: Texture(Invalid data size provided to update the texture, expected size 0)', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcore/result.rs:750

Merging since it is fairly straightforward, and my work depends on it now.

repo: gfx-rs/gfx-rs


text:
[dx12] aligned buffer-image copies

Replaces  #1877
Fixes #1843
PR checklist:

[ ] make succeeds (on *nix)
[x] make reftests succeeds
[x] tested examples with the following backends:

@msiglreith thanks for spotting the problems! should be addressed now, PTAL

Noted. Thanks for the review!
Bors r=msiglreith

On Mar 30, 2018, at 09:37, msiglreith notifications@github.com wrote:
@msiglreith approved this pull request.
I would suggest merging it and fixing upcoming issues later once we can check it again some more examples (e.g Vulkan samples). A bit hard to reason about the logic as it's quite complex (even without block compression support)
In src/backend/dx12/src/command.rs:

   } else {

       r.buffer_width

   };

   let buffer_height = if r.buffer_height == 0 {

       r.image_extent.height

   } else {

       r.buffer_height

   };

   let row_pitch = div(buffer_width, image.block_dim.0 as _) * image.bytes_per_block as u32;

   let slice_pitch = div(buffer_height, image.block_dim.1 as _) * row_pitch;

   let is_pitch_aligned = row_pitch % d3d12::D3D12_TEXTURE_DATA_PITCH_ALIGNMENT == 0;

   for layer in r.image_layers.layers.clone() {

       let img_subresource = image

           .calc_subresource(r.image_layers.level as _, layer as _, 0);

       let layer_offset = r.buffer_offset as u64 + (layer as u32 * slice_pitch * r.image_extent.depth) as u64;

r.image_extent.depth probably not needed

In src/backend/dx12/src/command.rs:

                       },

                       copy_extent: image::Extent {

                           width: cut_width,

                           height: 1,

                           depth: 1,

                       },

                   });

                   // and if it crosses a pitch alignment - we copy the rest separately

                   if cut_width == r.image_extent.width {

                       continue;

                   }

                   let leftover = r.image_extent.width - cut_width;

                   copies.push(Copy {

                       footprint_offset: next_aligned_offset,

This looks somewhat suspicious to me as D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT is twice as large as the required row pitch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

repo: gfx-rs/gfx


text:
⚠ Ristorante Gelateria All'Angelo Da Lalo has degraded performance

In 6df8dfd, Ristorante Gelateria All'Angelo Da Lalo ($SITE_RSTRLL) experienced degraded performance:

HTTP code: 200
Response time: 6835 ms

Resolved: Ristorante Gelateria All'Angelo Da Lalo performance has improved in 4ed7862.

repo: ggardin/uptime-monitor


text:
r.Context().Value(httpin.Input) always nil

Hey, I think Im using httpin right but r.Context().Value(httpin.Input) is always nil.
This is my setup:
Query: /api/cases?is_member=true&sort_by[]=age&sort_desc[]=false
Router: rApi.HandleFunc("/cases", handlers.PostCases).Methods("GET")
Handler: fmt.Printf("form: %#v\n",r.Context().Value(httpin.Input))
Im using mux. Is there something I have missed to configure? Do I have to use httpin.UseGorillaMux("path", mux.Vars)?

Ok as shown in the example (https://github.com/ggicci/httpin-example/blob/main/main.go) it is necessary to inject httpin.NewInput(*inputObject) in the router handle. Would be nice to mention this in the documentation for example in the "Getting Started" section

Thanks for the advice @thielpeter. I've updated the getting started section.

authors: ggicci thielpeter

repo: ggicci/httpin


text:
media.gmp-gmpopenh264.autoupdate is deprecated

While reviewing the source code of FF 66, I noticed media.gmp-gmpopenh264.autoupdate is deprecated.
You may want to update user.js.

No, I'm pretty sure it's not deprecated. They just access it in a generic way ie not by its full name:
https://dxr.mozilla.org/mozilla-central/search?q=KEY_PLUGIN_AUTOUPDATE
https://dxr.mozilla.org/mozilla-central/search?q=GMP_PLUGIN_IDS
https://dxr.mozilla.org/mozilla-central/source/toolkit/modules/GMPInstallManager.jsm#223-232

It's a hidden pref too, at least on windows - should we add that? @earthlng

@earthlng Yes. You are correct.  It is defined here: https://dxr.mozilla.org/mozilla-central/source/toolkit/modules/GMPUtils.jsm#124
I didn't find it at first because they used the replacement string in the middle.
Besides being a genius, how did you know to search for KEY_PLUGIN_AUTOUPDATE?

how did you know to search for KEY_PLUGIN_AUTOUPDATE?

I think I started by searching for autoupdate, found 380ish results (= a bit too much for my taste) and noticed that it also matched strings like AutoUpdateViewBatch so I limited it to "autoupdate end of word" using regex (regexp:autoupdate\b) and quickly spotted the line KEY_PLUGIN_AUTOUPDATE:        "media.{0}.autoupdate",