[RFC] add metadata alongside templates

This PR is an experiment in introducing machine-parseable data alongside the current set of gitignore templates, to address some of the current limitations.
The Problem
There's a significant amount of implicit context that's accrued over time with this repository, and it's not communicated clearly to consumers of this repository.
Some examples:

we receive lots of PRs to add editor support to language templates (VSCode is a recent example of this), which adds rules that don't match what's captured in the editor template. This also adds a maintenance burden that isn't sustainable at scale.
we use comments to link templates together like XCode/ObjectiveC/Swift, but we fall back to manual work to keep these up to date
modelling the ecosystem of tools with a single file can be hard to follow, and while the templates are intended to be composed together based on your environment we leave consumers to their own devices

Prior Art
This idea comes from choosealicense.com, which is a static site for learning more about common software licenses. The source for this site is a Jekyll project which attaches metadata to each license file in the form of YAML front matter.
An example of this is the the MIT License file. In this situation the front matter is used to provide content related to each license, but we could use a similar pattern for gitignore files as a way to store related data for tools to build upon.
A Potential Solution
Having a unified file containing metadata and the contents would have been neat, but as I suspect a lot of consumers are using these files directly I don't want to break them - instead I'm proposing additive metadata alongside the raw gitignore templates.
Examples:

VisualStudio.gitignore is complemented by VisualStudio.yml
Global/JetBrains.gitignore is complemented by Global/JetBrains.yml

These files are only necessary when metadata needs to be tracked. If no file exists, the the template is considered standalone.
The current VisualStudio.yml file is probably the best example of what metadata can give us:
aliases:
  - CSharp
  - C#
  - FSharp
  - F#
  - VisualBasic
  - VB

editors:
  - Global/JetBrains.gitignore
  - Global/VisualStudioCode.gitignore

This helps guide consumers of this repository that this template is associated with some other popular languages, and that there are other editors that could potentially be added when generating this template.
The contents of these files are described in more detail in this document and I've used this PR to show what moving to this metadata file looks like for some common headaches I've been dealing with:

Visual Studio supports a number of different languages - C#, F#, Visual Basic - how can users discover that?
The unified XCode/Objective-C/Swift templates - how can we make this more maintainable?
JetBrains supports a number of different languages with their suite of editors - how can we make this clearer?

Bringing The World Along
This doesn't completely address scenarios that people raise like "How can we improve the GitHub New Repository experience?" but the current process of "throw all the rules into every template" is a recipe for maintenance hell, so I wanted to help clarify where I see the separation of responsibilities:

this repository - used to track reference templates and metadata about how they relate
contributors to this repository - keep templates and metadata up-to-date
consumers of this repository - take these reference templates and metadata and bake them into their apps, build tooling to leverage the new metadata

Having a sane way to manage these templates and automate things will be a great thing for the long-term, and getting stuff out of my head and into metadata means it becomes a shared set of knowledge. And being able to work with structured data means
I'd like to hear from people who work with this repository their initial reactions to this proposal:

Does this interest you at all?
What other metadata about these templates should we be capturing?
Are there things in this problem space I haven't thought about yet that I should be aware of?

I'd also love to hear from @joeblau who has been doing some amazing work with gitignore.io over the years - does this help make your work easier?
I'll also see if I can get some feedback from GitHub about how these changes might affect the New Repository setup experience.

Appreciate the relationships being described so far.

The following gives some idea of the amount of duplication found throughout, and could help find possible new ways to compose larger templates from smaller ones.
$ find . -type l | xargs rm
$ find . -name '*.gitignore' | xargs  grep '^[^ #]' | cut -d ':' -f 2 | sort | uniq -c | sort -rn | grep -v '^ *[12] '
     17 *.o
     15 *.log
     13 build/
     12 *.so
     12 *.exe
     11 *.dll
     11 *.a
     10 *.dylib
      8 *.bak
      8 *~
      7 bin/
      6 *.tmp
      6 *.out
      6 *.obj
      6 *.lo
      6 *.lib
      6 *.la
      6 *.jar
      5 *.zip
      5 *.pch
      5 node_modules/
      5 dist/
      5 *.class
      4 *.ipa
      4 /.htaccess
      4 .htaccess
      4 *.gch
      4 .env
      4 *.egg
      4 .cache
      4 *.app
      4 *.apk
      3 xcuserdata/
      3 *.xcscmblueprint
      3 *.xccheckout
      3 .vs/
      3 /vendor/
      3 *.userprefs
      3 *.user
      3 *.tgz
      3 /target/
      3 target/
      3 *.suo
      3 *.so.*
      3 *.slo
      3 .settings/
      3 .sass-cache/
      3 *.rbc
      3 *.pyc
      3 .project
      3 *.pidb
      3 *.perspectivev3
      3 *.pdf
      3 *.pdb
      3 *.pbxuser
      3 [Oo]bj/
      3 *.msi
      3 *.moved-aside
      3 *.mode2v3
      3 *.mode1v3
      3 *.mo
      3 *.map
      3 lib/
      3 *.lai
      3 fastlane/test_output
      3 fastlane/report.xml
      3 fastlane/Preview.html
      3 .DS_Store
      3 DerivedData/
      3 !default.perspectivev3
      3 !default.pbxuser
      3 !default.mode2v3
      3 !default.mode1v3
      3 *.d
      3 /cache/*

@jayvdb thanks for the feedback!

Yeah, identifying how current templates relate as part of their ecosystem helps. I'm not really across Python tooling but could a hint like this to include a related template (because it's more important than an editor to the setup) help?
# Python.yml
include:
  - Global/VirtualEnv.gitignore

The following gives some idea of the amount of duplication found throughout, and could help find possible new ways to compose larger templates from smaller ones.

For the moment I don't want to go too overboard with this syntax and fragment things too much. Let's focus on finding the accidental and deliberate relationships between templates.

Do you want to use include to describe relationship which are not fully realised at the moment, such as Plone.yml & TurboGears2.yml 'should' have
include:
  - Python.gitignore

They contain some of the entries, but all entries apply as they are a layer above. p.s. I am not proposing modifying the actual file, but describing the links between them only in the yaml.
There are quite a few like this, such as Jekyll is Ruby
etc.

@jayvdb there's a couple of interesting relationships to clarify here - maybe something will fall out of these thoughts:

choosing a Python.gitignore project, enhancing it with VirtualEnv.gitignore, and maybe some editors that support Python
choosing Plone.gitignore because that's a specialized template for the project you are working on, which should then pull in Python.gitignore because it's a dependency

That means potentially building up a graph of templates Plone -> Python -> Global/VirtualEnv.gitignore, and these would be splatted onto disk in the order of traversal.
Does that make sense? Does include as metadata make sense for both cases?

@shiftkey ❤ the intent here!
I wonder if we could leverage GitHub's code owners instead of the reviewer key to streamline the review/change process? To combat the two files needing to stay in sync issue, perhaps we could look to convert everything to YAML and then on master merge have the gitignore compatible files written out to disk with all the logic you've described above? I see you've mentioned it as a potential longer term thing but I think that might help the maintenance and consumer sides equally since there will be a sane management of the files but also keep the expected output that people are used to at the moment.

That means potentially building up a graph of templates Plone.gitignore -> Python.gitignore -> Global/VirtualEnv.gitignore, and these would be splatted onto disk in the order of traversal.

That is basically what I've done with the stack concept in the dvcs.gitignore repo.  You can have:
Python.gitignore
Python.VirtualEnv.stack -> VirtualEnv.gitignore

then
Plone.gitignore
Plone.Python.stack -> Python.gitignore
Plone.VirtualEnv.stack -> VirtualEnv.gitignore

This structure allows for composition of templates removing duplication so you can reference VirtualEnv in multiple templates.  Since the stacks are just symlinks to actual templates, you can use your terminal to execute.
cat Python.* > .gitignore

@shiftkey To address the main challenges, I think I've got solutions to all of those challenges using just a flat file system.  You can use the @dvcs/gitignore repo as an example for where I implement these solutions.

we receive lots of PRs to add editor support to language templates (VSCode is a recent example of this), which adds rules that don't match what's captured in the editor template. This also adds a maintenance burden that isn't sustainable at scale.

This can be solved with the .patch file extension concept.  When @github/gitignore was a main upstream, I needed a way to allow "unapproved" additions to templates.  If you create a .patch extension, you can combine that with with @jacobbednarz mentioned of a CODEOWNERS file and allow the public or specific owners to modify the .patch files.  This will separate the "official" part of the template (.gitignore) from the "community" part of the template (.patch).
With the .patch files you can specify owners or just let anyone in the community approve the changes.
-rw-r--r--  1 josephblau  staff   1.0K Jun 19 06:59 JetBrains.gitignore
-rw-r--r--  1 josephblau  staff   176B Dec 31 11:08 JetBrains.patch

Create Official Template
cat JetBrains.gitignore > .gitignore

Create Community Template
cat JetBrains.* > .gitignore

we use comments to link templates together like XCode/ObjectiveC/Swift, but we fall back to manual work to keep these up to date

I mentioned how I solved these above with the stack concept.
Another issue you may run into is having aliases of a template.
What I've done for linking templates is to use a simple symlink.  For Example, Apple renamed OSX to macOS.  What I've done is represent OSX as symlink of macOS that way when one template is changed, the other is also changed
lrwxr-xr-x  1 josephblau  staff    15B Mar 26  2017 OSX.gitignore@ -> macOS.gitignore
-rw-r--r--  1 josephblau  staff   402B Jun 19 06:59 macOS.gitignore

This allows for tons of aliases, such as all of the JetBrains projects (Webstorm, AppCode, CLion, IntelliJ, PHPStorm, PyCharm).
comm OSX.gitignore macOS.gitignore
# returns nothing because files are the same

modelling the ecosystem of tools with a single file can be hard to follow, and while the templates are intended to be composed together based on your environment we leave consumers to their own devices

My opinionated design goal
One of the key takeaways with the design of having file extensions and symlinks is that you don't want any extra magic metadata in the files.  The goal is to use standard Linux command line tools to be able to recreate your templates.  If templates contain reference information to other  templates, that means users will need special tools outside of things like cat, grep, ls, | and > to create a template.
A second added benefit is that you can keep everything working exactly how it works now and just add functionality to make the repo easier to maintain.

Re CODEOWNERS, see https://github.com/jusx/mergeable/issues/24 for workaround and potential dropin solution in near future.

The one challenge that I can see with CODEOWNERS file is that the approvers would have to be part of the GitHub organization with write access to the repository.

Write access not necessary with mergeable probot.
But that is technical. Policy is a different matter.

1

Este PR es un experimento en la introducción de datos analizables por máquina junto con el conjunto actual de plantillas de gitignore, para abordar algunas de las limitaciones actuales.
El problema
Hay una cantidad significativa de contexto implícito que se acumula con el tiempo con este repositorio, y no se comunica claramente a los consumidores de este repositorio.
Algunos ejemplos:

recibimos muchos PR para agregar compatibilidad con el editor a las plantillas de idioma (VSCode es un ejemplo reciente de esto), que agrega reglas que no coinciden con lo que se captura en la plantilla del editor. Esto también agrega una carga de mantenimiento que no es sostenible a escala.
usamos comentarios para vincular plantillas como XCode/ObjectiveC/Swift, pero recurrimos al trabajo manual para mantenerlos actualizados
modelar el ecosistema de herramientas con un solo archivo puede ser difícil de seguir, y aunque las plantillas están diseñadas para componerse juntas en función de su entorno, dejamos a los consumidores con sus propios dispositivos.

Estado de la técnica
This idea comes from choosealicense.com, which is a static site for learning more about common software licenses. The source for this site is a Jekyll project which attaches metadata to each license file in the form of YAML front matter.
An example of this is the the MIT License file. In this situation the front matter is used to provide content related to each license, but we could use a similar pattern for gitignore files as a way to store related data for tools to build upon.
A Potential Solution
Having a unified file containing metadata and the contents would have been neat, but as I suspect a lot of consumers are using these files directly I don't want to break them - instead I'm proposing additive metadata alongside the raw gitignore templates.
Examples:

VisualStudio.gitignore is complemented by VisualStudio.yml
Global/JetBrains.gitignore is complemented by Global/JetBrains.yml

These files are only necessary when metadata needs to be tracked. If no file exists, the the template is considered standalone.
The current VisualStudio.yml file is probably the best example of what metadata can give us:
aliases:
  - CSharp
  - C#
  - FSharp
  - F#
  - VisualBasic
  - VB

editors:
  - Global/JetBrains.gitignore
  - Global/VisualStudioCode.gitignore

This helps guide consumers of this repository that this template is associated with some other popular languages, and that there are other editors that could potentially be added when generating this template.
The contents of these files are described in more detail in this document and I've used this PR to show what moving to this metadata file looks like for some common headaches I've been dealing with:

Visual Studio supports a number of different languages - C#, F#, Visual Basic - how can users discover that?
The unified XCode/Objective-C/Swift templates - how can we make this more maintainable?
JetBrains supports a number of different languages with their suite of editors - how can we make this clearer?

Bringing The World Along
This doesn't completely address scenarios that people raise like "How can we improve the GitHub New Repository experience?" but the current process of "throw all the rules into every template" is a recipe for maintenance hell, so I wanted to help clarify where I see the separation of responsibilities:

this repository - used to track reference templates and metadata about how they relate
contributors to this repository - keep templates and metadata up-to-date
consumers of this repository - take these reference templates and metadata and bake them into their apps, build tooling to leverage the new metadata

Having a sane way to manage these templates and automate things will be a great thing for the long-term, and getting stuff out of my head and into metadata means it becomes a shared set of knowledge. And being able to work with structured data means
I'd like to hear from people who work with this repository their initial reactions to this proposal:

Does this interest you at all?
What other metadata about these templates should we be capturing?
Are there things in this problem space I haven't thought about yet that I should be aware of?

I'd also love to hear from @joeblau who has been doing some amazing work with gitignore.io over the years - does this help make your work easier?
I'll also see if I can get some feedback from GitHub about how these changes might affect the New Repository setup experience.

agregar metadatos


fix: do not disable a select button for the already selected value

Fixes #1145

The wrong behavior here.
Will be done in #1176

Reopens for testing a PR auto builds

run tests

run tests

run tests


suboptimal text getting generated in comparison to spaces demo.

          > Awesome! This is great to hear! Feel free to close the issue!

Hi @younesbelkada , i used below code for inference on merged RL adapter with HF-LLAMA model.
    model = AutoModelForCausalLMWithValueHead.from_pretrained(rl_model_pth,
                                                          load_in_8bit=True,
                                                          peft_config=lora_config,).to(device)
    tokenizer = LlamaTokenizer.from_pretrained("hf-internal-testing/llama-tokenizer")
    query_txt = "<random question here>"
    query_tensor = tokenizer.encode(query_txt, return_tensors="pt").to(device)

    response_tensor = respond_to_batch(model, query_tensor)
    response_txt = tokenizer.decode(response_tensor[0,:])

The response seem to be mostly short, whereas in stack-llama rl_training.py i could see ppo_trainer.generate in combination of length sampler getting used for text generation.
Also in gradio demo, there are additional params(temperature, max new tokens..) to control generation.
Could you please suggest how to use these additional params, respond_to_batch seem to be limited.
Originally posted by @prasad4fun in https://github.com/lvwerra/trl/issues/347#issuecomment-1546322550

Hi @prasad4fun To generate text using that model, you should call generate instead of respond_to_batch. Please refer to the text generation docs of transformers

Thankyou for the suggestion, i have used below settings and its fairly decent.
model.generate(**inputs, streamer=streamer, temperature=0.9,  max_new_tokens=256, top_p=0.970, repetition_penalty=1.2)

Awesome! Closing the issue for now, assuming this has been fixed. Feel free to re-open if you don't think so


No Activation Information for mxnet.gluon.nn._Conv

Description
It's confused that there is no any activation information for mxnet.gluon.nn._Conv
>>> mx.gluon.nn.Conv2D(channels=3,kernel_size=(1,1))
Conv2D(None -> 3, kernel_size=(1, 1), stride=(1, 1))
>>> mx.gluon.nn.Conv2D(channels=3,kernel_size=(1,1),activation='relu')
Conv2D(None -> 3, kernel_size=(1, 1), stride=(1, 1))

Environment info (Required)
Package used (Python/R/Scala/Julia):
Python
Build info (Required if built from source)
MXNet commit hash:
ad34e05b
ver 1.3.0
What have you tried to solve it?

Add the activation information in mxnet.gluon.nn._Conv.__repr__

@mxnet-label-bot [Feature Request, Gluon]


Set advertise_mtu to False. Pre-mitaka behavior.

Can one of the admins verify this patch?

"ok to test" to accept this pull request for testing
"test this please" for a one time test run
"add to whitelist" to add the author to the whitelist

Can one of the admins verify this patch?

"ok to test" to accept this pull request for testing
"test this please" for a one time test run
"add to whitelist" to add the author to the whitelist

ok to test

retest


Chore/merge 1.10.0

关联的Issues (Related Issues)

close
改动 (Proposed Changes)

附注 (Additional Info)

自查清单 (Checklist)
在你认为本 PR 满足被审阅的标准之前，需要确保 / Before you mark the PR ready for review, please make sure that:

[ ] 符合Venus项目管理规范中关于PR的相关标准 / The PR follows the PR standards set out in the Venus project management guidelines
[ ] 具有清晰明确的commit message / All commits have a clear commit message.
[ ] 包含相关的的测试用例或者不需要新增测试用例 / This PR has tests for new functionality or change in behaviour or not need to add new tests.
[ ] 包含相关的的指南以及文档或者不需要新增文档 / This PR has updated usage guidelines and documentation or not need
[ ] 通过必要的检查项 / All checks are green

Codecov Report

Merging #156 (3407f50) into master (d1c9380) will increase coverage by 0.01%.
The diff coverage is 63.63%.

Additional details and impacted files

@@            Coverage Diff             @@
##           master     #156      +/-   ##
==========================================
+ Coverage   44.14%   44.16%   +0.01%
==========================================
  Files          38       38
  Lines        4281     4284       +3
==========================================
+ Hits         1890     1892       +2
- Misses       2161     2162       +1
  Partials      230      230

Flag
Coverage Δ

unittests
44.16% <63.63%> (+0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

core/const.go
59.45% <ø> (ø)

auth/jwt.go
72.70% <50.00%> (+0.05%)
:arrow_up:

auth/route.go
78.08% <71.42%> (-0.32%)
:arrow_down:


feat: add issue and PR templates

Why:
Weaviate-io repository has issue templates (bug, doc feedback) and a PR template through this PR. Since this is a core repository, we need templates like bug report and feature request.

I agree with CLA

Hey @sebawita, can we merge this now?
__
  Summary: :hammer_and_wrench: This code needs a fix


⚠ Samsung has degraded performance

In 60eec61, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2379 ms

Resolved: Samsung performance has improved in 3282b75.


[SPARK-24076][SQL] Use different seed in HashAggregate to avoid hash conflict

What changes were proposed in this pull request?
HashAggregate uses the same hash algorithm and seed as ShuffleExchange, it may lead to bad hash conflict when shuffle.partitions=8192*n.
Considering below example:
SET spark.sql.shuffle.partitions=8192;
INSERT OVERWRITE TABLE target_xxx
SELECT
 item_id,
 auct_end_dt
FROM
 from source_xxx
GROUP BY
 item_id,
 auct_end_dt;

In the shuffle stage, if user sets the shuffle.partition = 8192, all tuples in the same partition will meet the following relationship:
hash(tuple x) = hash(tuple y) + n * 8192

Then in the next HashAggregate stage, all tuples from the same partition need be put into a 16K BytesToBytesMap (unsafeRowAggBuffer).
Here, the HashAggregate uses the same hash algorithm on the same expression as shuffle, and uses the same seed, and 16K = 8192 * 2, so actually, all tuples in the same parititon will only be hashed to 2 different places in the BytesToBytesMap. It is bad hash conflict. With BytesToBytesMap growing, the conflict will always exist.

How was this patch tested?
Unit tests and production cases.

oh... good catch. I think you'd be better to put the detailed info. (written in the jira) in the description above?

@maropu Thanks for comments, I have updated, could you help take a look at?

Test build #89839 has started for PR 21149 at commit 0818618.

cc: @hvanhovell

Test build #89830 has finished for PR 21149 at commit 5e88468.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/89830/
Test PASSed.

Merged build finished. Test PASSed.

Test build #89839 has finished for PR 21149 at commit 0818618.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/89839/
Test PASSed.

LGTM - merging to master. Thanks!

@maropu @hvanhovell thanks very much!


Add toulouse.miage.fr domain

Glenbrook north high school
email:
_____@glenbrook225
glenbrook225.txt

@s0nnyhu Please provide us with:

the school official website URL
the school street address, including city and country
an URL of a page on the official website where the school offers an IT-related long-term (>1 year) course
a proof, which shows that the school recognizes the domain you are submitting as an official email domain for the students.

You can provide us with any of the following as the proof:

A copy of instruction (a hard-copy or electronic one) given to you by the school that tells you to use an email address in this email domain
An URL of a page at the official school website that says that students use this email domain
A reference to a recognized journal where an article was published by someone from the school, with explicit affiliation to the school, and e-mail address from the email domain
A WHOIS data that link the email domain to the school somehow
A copy of official letter from the school representative saying that the school provides e-mail addresses in this domain to the students
Anything else that can prove this fact in similar way, i.e. can be verified independently.

@philipto

School official website URL : https://www.univ-tlse3.fr | http://toulouse.miage.fr
Street adress, city, country : 118 route de Narbonne - 31062 Toulouse  - FRANCE
URL page on the official website where the school offers an IT-related long-term : https://www.univ-tlse3.fr/master-mention-methodes-informatiques-appliquees-a-la-gestion-des-entreprises-miage | http://toulouse.miage.fr/

http://toulouse.miage.fr/ is related to https://www.univ-tlse3.fr

@s0nnyhu Thank you for the clarification. Pull request merged.


newbie questions about a bulk of errors.

Hello,
I am trying to start using ceedling and I am a bit lost. I followed some example that runs correctly, I can mock some simple header following the tutorial https://dmitryfrank.com/articles/unit_testing_embedded_c_applications
As soon as I started integrating all the stuff in a brand new project that use some freertos library I receive a bulk of errors while trying to compile some simple example.
My setup is targetting a avr xmega device. I'm using cmake as makefile generator and I plan to use ceedling by it's side for the testing.
I placed some basic versions of avr/io.h and similar files. I exported the function of freertos that I use in a brand new .h file that I placed in the support folder under test.
#ifndef TASK_H
#define TASK_H

typedef void (*TaskFunction_t)( void * );
typedef unsigned char UBaseType_t;
typedef char BaseType_t;
typedef void * TaskHandle_t;

BaseType_t xTaskCreate(	TaskFunction_t pxTaskCode,
						const char * const pcName,
						const uint16_t usStackDepth,
						void * const pvParameters,
						UBaseType_t uxPriority,
						TaskHandle_t * const pxCreatedTask );

#endif

As soon as I mocked this function with a
#include <mock_task.h>

I receive a lot of errors related to cmock.
build/test/mocks/mock_task.c:37:3: error: unknown type name ‘CMOCK_MEM_INDEX_TYPE’
CMOCK_MEM_INDEX_TYPE xTaskCreate_CallInstance;
^~~~~~~~~~~~~~~~~~~~
build/test/mocks/mock_task.c: In function ‘mock_task_Verify’:
build/test/mocks/mock_task.c:48:37: error: ‘CMOCK_GUTS_NONE’ undeclared (first use in this function)
 Mock.xTaskCreate_CallInstance = CMOCK_GUTS_NONE;
                                 ^~~~~~~~~~~~~~~
build/test/mocks/mock_task.c:48:37: note: each undeclared identifier is reported only once for each function it appears in
In file included from ../Src/Tests/Unity/src/unity.h:16:0,
             from build/test/mocks/mock_task.c:5:
build/test/mocks/mock_task.c:50:83: error: ‘CMockStringCalledLess’ undeclared (first use in this function)
   UNITY_TEST_ASSERT(CMOCK_GUTS_NONE == Mock.xTaskCreate_CallInstance, cmock_line, CMockStringCalledLess);

I am a bit lost because it looks like that the mocking can't find itself.
Any hint on why this is happening?
relevant informations:
ceedling version
Ceedling:: 0.25.0
CException:: <IP_ADDRESS>
 CMock:: <IP_ADDRESS>
 Unity:: <IP_ADDRESS>

I have no idea about your issue (sorry), but since you are using an AVR Xmega, you might be interested in a script I wrote some time back. It converts a device-specific header (e.g. iox32e5.h) into a testable version. It supports interrupts and registers (with some limitations - see file comments).
It takes the file path as argument and creates a testable copy (e.g. python iox32e5.h would output a iox32e5_testable.h). You then need to modify io.h to include the testable version, as below.
#elif defined (__AVR_ATxmega32E5__)
#ifdef TEST
#include <avr/iox32e5_testable.h>
#else
#  include <avr/iox32e5.h>
#endif

Anyway, it was just something I throw together quickly, so I make no guarantees of it's exactness, but it has worked fine for me for x16e5 and x32e5.

Hello 0ge,
thank you for your kind reply.
Yes, mine is an x32e5 too so it could work flawlessy.
I will give it a try.
anyway I have the feeling that everything is in some way with the include order that is handled by cmock because I cannot reproduce it with a simple repository with just a couple of functions.

I suspect that the root issues might be that (1) your test file doesn't
#include cmock.h and (2) that you are using angle brackets to tell the
compiler you're loading a system file instead of "" to tell it your mock is
in one of your paths.
Mark
On Tue, Feb 14, 2017 at 5:57 AM andyinno<EMAIL_ADDRESS>wrote:

Hello 0ge,
thank you for your kind reply.
Yes, mine is an x32e5 too so it could work flawlessy.
I will give it a try.
anyway I have the feeling that everything is in some way with the include
order that is handled by cmock because I cannot reproduce it with a simple
repository with just a couple of functions.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ThrowTheSwitch/Ceedling/issues/126#issuecomment-279675945,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABAf5jgn797OPYgZbdeX8shgCI9FWJMks5rcYiDgaJpZM4MAQcD
.

Hi mvandervoord,
I tried to work around what you are suggesting. In a header file I have a #include <FreeRTOS.h> instead of a "FreeRTOS.h" so yes, this helped a lot.
regarding (1) I don't see any difference from including it or not.
In any case I receive the same output after checking all the includes.

If you open mock_task.c, does the top look like this?
[code]
/* AUTOGENERATED FILE. DO NOT EDIT. */
#include <string.h>
#include <stdlib.h>
#include <setjmp.h>
#include "unity.h"
#include "cmock.h"
#include "mock_task.h"
[/code]
And you're still getting the error that it can't find the types in cmock.h?

Hi mvandervoord,
I can confirm that the top of the file is the same you posted.
I am attaching to this post a zip file with some includes that maybe could be useful.
CeedlingError.zip
The included files are a dump of the terminal with rake test:all --trace
the source file and relative header
the mocked files generated.
project.yml

Hm. One thing I notice from your zip (and I don't know that this is actually THE problem, but it is probably A problem) is that your source paths probably include a lot more than you care for them to. For example, they include your test folders (which is never something you want them to include). Also, they include the build directories (which again, sounds bad).
You have your source specified as any C file in any folder under the parent folder of where your project file is:
  :source:
    - ../**

I don't think that is probably what you want. If nothing else, you want to make sure it doesn't include the build and test folders. I suspect there are other folders you want to disclude also. Maybe disclude everything in TestCeedling to start?
  :source:
    - ../**
    - -:../TestCeedling/**

Really, I'd just like to say that the ** operator, while useful, can get carried away really quickly. It's almost always better to specify paths fully... or, if you DO use them, keep them specific to a certain subfolder where you know everything inside is valuable.
Can you try to fix that quick and see if this problem still exists?

Hi mvandervoord,
thank you for your really helpful suggestion.
As you pointed out moving the TestCeedling folder out of the Src directory did the trick.
I then updated the source path with explicit directories instead of the ** also if it was not needed.
The reason I put the TestCeedling dir as subdirectory of Src is that I usually apply this scheme with cmake and I add the test subdirectory only if it is a debug build. Different tools different standard and way to work.
Now it compile correctly. Back on the road :)

As a clarification (and for anyone coming across this in the future): I don't believe you need to physically move the folder out, just that you need to make sure you don't include TestCeedling as part of your "source" when you tell Ceedling about it. You should be able to locate that folder whereever you like. :)


[Spec Deviation] Fix XML characters iteration

Description:
As per the spec (v0.990:2019-01-16 - page 23), "An XML value is iterable as a sequence of its items, where each character item is represented by a string with a single code point and other items are represented by a singleton XML value. "
But in the current implementation, XML character items are also iterated as singleton XML values, as opposed to the expected single code point iteration.
import ballerina/io;

public function main(string... args) {
    xml xmlCharacters = xml `Hello, world!`;

    anydata[] arr = [];
    int index = 0;

    foreach xml|string item in xmlCharacters {
        arr[index] = item;
        index += 1;
    }

    foreach anydata item in arr {
        io:println(item);
    }
}

$ ballerina run xmlTest.bal
Hello, world!

Affected Versions:
0.990.2

Fixed with https://github.com/ballerina-platform/ballerina-lang/pull/13893


[tool_crash] FileSystemException: Deletion failed, OS Error: The system cannot find the file specified., errno = 2

Command
flutter pub get --no-example

Steps to Reproduce

...
...
...

Logs
FileSystemException: Deletion failed, OS Error: The system cannot find the file specified.
, errno = 2
#0      _Directory._deleteSync (dart:io/directory_impl.dart:188:7)
#1      FileSystemEntity.deleteSync (dart:io/file_system_entity.dart:407:7)
#2      ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:70:16)
#3      ErrorHandlingDirectory.deleteSync.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:479:22)
#4      _runSync (package:flutter_tools/src/base/error_handling_io.dart:587:14)
#5      ErrorHandlingDirectory.deleteSync (package:flutter_tools/src/base/error_handling_io.dart:478:12)
#6      _createPlatformPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:967:22)
#7      createPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:903:5)
#8      refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1013:5)
<asynchronous suspension>
#9      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:367:5)
<asynchronous suspension>
#10     PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:383:7)
<asynchronous suspension>
#11     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1394:27)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:372:9)
<asynchronous suspension>
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#16     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:308:5)

[!] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22621.4037], locale en-GB)
    • Flutter version 3.22.2 on channel stable at E:\Flutter\batufo\flutter
    ! Warning: `flutter` on your path resolves to E:\Flutter\src\flutter\bin\flutter, which is not inside your current Flutter SDK checkout at E:\Flutter\batufo\flutter. Consider adding E:\Flutter\batufo\flutter\bin to the front of your path.
    ! Warning: `dart` on your path resolves to E:\Flutter\src\flutter\bin\dart, which is not inside your current Flutter SDK checkout at E:\Flutter\batufo\flutter. Consider adding E:\Flutter\batufo\flutter\bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (3 months ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\HP\AppData\Local\Android\sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.32)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.34301.259
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2023.3)
    • Android Studio at E:\androidStudio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)

[✓] VS Code (version 1.92.2)
    • VS Code at C:\Users\HP\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.95.20240801

[✓] Connected device (4 available)
    • MyPhone (mobile) • a5b5878b • android-arm64  • Android 13 (API 33)
    • Windows (desktop) • windows  • windows-x64    • Microsoft Windows [Version 10.0.22621.4037]
    • Chrome (web)      • chrome   • web-javascript • Google Chrome 127.0.6533.120
    • Edge (web)        • edge     • web-javascript • Microsoft Edge 127.0.2651.105

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Flutter Application Metadata
Type: app
Version: 0.23.0
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 761747bfc538b5af34aa0d3fac380f1bc331ec49
Plugins
file_picker-8.0.7
firebase_core-3.3.0
firebase_core_web-2.17.4
firebase_messaging-15.0.4
firebase_messaging_web-3.8.12
flutter_plugin_android_lifecycle-2.0.20
geocoding-3.0.0
geocoding_android-3.3.1
geocoding_ios-3.0.1
geolocator-12.0.0
geolocator_android-4.6.1
geolocator_apple-2.3.7
geolocator_web-4.0.0
geolocator_windows-0.2.3
google_maps_flutter-2.9.0
google_maps_flutter_android-2.14.0
google_maps_flutter_ios-2.13.0
google_maps_flutter_web-0.5.10
path_provider-2.1.4
path_provider_android-2.2.9
path_provider_foundation-2.4.0
path_provider_linux-2.2.1
path_provider_windows-2.3.0
share_plus-7.2.2
shared_preferences-2.3.1
shared_preferences_android-2.3.0
shared_preferences_foundation-2.5.0
shared_preferences_linux-2.4.0
shared_preferences_web-2.4.1
shared_preferences_windows-2.4.0
sqflite-2.3.3+1
url_launcher-6.3.0
url_launcher_android-6.3.8
url_launcher_ios-6.3.1
url_launcher_linux-3.2.0
url_launcher_macos-3.2.0
url_launcher_web-2.3.3
url_launcher_windows-3.1.2

Closing this as a duplicate of https://github.com/flutter/flutter/issues/106953


Build client Failed in v1.0.0

Env:

centos: 3.10.0-1160.el7.x86_64 x86_64
go: go1.16.4 linux/amd64

The steps to reproduce:

git clone this project ; git checkout v1.0.0;
go mod init some_name
In Client directory, sh build.sh

What i got:

fuse.go:37:2: cannot find package "." in:
/opt/chubaofs-1.0.0/chubaofs-1.0.0/vendor/github.com/chubaofs/cfs/client/fs
fuse.go:38:2: cannot find package "." in:
/opt/chubaofs-1.0.0/chubaofs-1.0.0/vendor/github.com/chubaofs/cfs/util/config
fuse.go:39:2: cannot find package "." in:
/opt/chubaofs-1.0.0/chubaofs-1.0.0/vendor/github.com/chubaofs/cfs/util/exporter
fuse.go:40:2: cannot find package "." in:
/opt/chubaofs-1.0.0/chubaofs-1.0.0/vendor/github.com/chubaofs/cfs/util/log

What i tried:

use cannot find package "." as keyword in google or stackoverflow, no solution found

you can try the latest version v2.3.0，replace build.sh and build/build.sh with github main branch.
See #1125


graalvm: Run native tests

This makes it possible to run tests via native image with mvn -P native test.
What I find interesting is that it does show some failing tests, but not the same ones as the inputs where @slarse noticed that the outputs were different in https://github.com/ASSERT-KTH/spork/pull/481#issuecomment-1913688408.
For instance, on my machine the method_visibility_left_empty test passes in mvn -P native test, but the output of the native binary is different from the expected one.
I have strictly no idea why!

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

Project coverage is 82.25%. Comparing base (ba76361) to head (3b8b85b).
Report is 5 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #511      +/-   ##
============================================
- Coverage     82.70%   82.25%   -0.45%
  Complexity      363      363
============================================
  Files            43       43
  Lines          1769     1719      -50
  Branches        303      303
============================================
- Hits           1463     1414      -49
+ Misses          180      179       -1
  Partials        126      126

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

Hi @wetneb,
I'm going to have to get back to you on this one. My main machine has a malfunctioning thermal sensor and keeps shutting down, and my backup doesn't have GraalVM configured (and probably not enough RAM to build the native image anyway).
Wanna try this out before a merge :)

I've finally gotten my main development machine back in working order. It needed two rounds of repairs because the first repair broke another thing :s
In any case, I will revisit this during the weekend and hopefully get it merged. Sorry about the wait.

@slarse how to make progress to merge this?

@monperrus Someone on our end should run the native tests with Graal. It consumes a lot of memory and I couldn't do it without my main workstation (which was out for repairs). Then I unceremoniously forgot about it when I got the workstation back a couple of months ago :)
I can run them and merge if all is well on Sunday.

Thanks @wetneb !


Create pyload.py

Description:
Support for monitoring pyLoad download speed.
Example entry for configuration.yaml (if applicable):
sensor:
  - platform: pyload
    host: <IP_ADDRESS>
    port: 8001
    username: py
    password: load

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

Hi @iMarkus,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

@fabaff could you please tell me how to fix the last error (coverage/coveralls) ?

It doesn't work with https only:
2017-11-19 11:48:26 ERROR (Thread-4) [homeassistant.components.sensor.pyload] Error setting up pyLoad API: HTTPConnectionPool(host='https', port=80): Max retries exceeded with url: //my.dns.tld:8000/api/login (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb11f8450>: Failed to establish a new connection: [Errno -2] Name or service not known',))

platform: pyload
host: https://my.dns.tld
port: 8000

If there's an issue, please open an issue and link to the PR which you suspect. Don't report issues in merged PRs. Thanks!


change directory structure for nightly documentation publish

The new path for nightlies will be
pekko/docs/pekko/main-snapshot/{docs,api,japi}
Refs #179
This will also try to use a single rsync invocation by building up the destination folder structure up front.

Now published here: https://nightlies.apache.org/pekko/docs/pekko/main-snapshot/


system_command: improve EOF handling

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

Discussion in #10834. eof? is a blocking call, and I don't think it's a call that's necessary to do.

Review period will end on 2021-04-02 at 14:53:33 UTC.

Hmm, bit odd those tests passed locally for me. Maybe I overlooked something.

Nice work @Bo98!

Review period skipped due to critical label.


Add format parameter to RenderTargetTexture constructor

As internal format has been added to createRenderTargetTexture() and createRenderTargetCubeTexture() functions, please consider adding format (or an options object) parameter to RenderTargetTexture constructor in order to use it.

Nice, would you update the What's new file in the dist/preview release folder ?

Oh yeah, I'm sorry.


[Relay][Pass] ConcretizeCastLikeRewrite for SimplifyExpr

ConcretizeCastLikeRewrite：Concretize cast_like to cast.
Not inheriting from ConcretizeLikeRewrite because even if shape is not static, still can concretize.

cc @csullivan @AndrewZhaoLuo


fix spellling/case of rewriteBatchedInserts in Java docs

We have a few docs that mention the JDBC parameter called "reWriteBatchedInserts", but in the docs we spell it as "rewriteBatchedInserts"
https://www.cockroachlabs.com/docs/v21.2/build-a-java-app-with-cockroachdb-hibernate.html
https://www.cockroachlabs.com/docs/v21.2/build-a-java-app-with-cockroachdb.html
This option is actually case-sensitive in JDBC and can be silently ignored if not spelled right.
Can we update all these references to use a capital W on "Write"?

link to the JDBC spec: https://jdbc.postgresql.org/documentation/94/connect.html

@jhatcher9999 I made a PR that I think fixes the issue, but I'm not sure how to request a review. This is what I see in the PR:

I don't see the dropdown that lets you request a review, so how would I go about doing that?
Thank you so much in advance!


[New Feature]: Notify package submitters when their package is about to be removed

Description of the new feature/enhancement
There are some packages where the publisher only retains the newest copy, and wingetbot is either unable to update the manifest properly #107968 or the link is version specific #104960 . Notifying package submitters would allow them (by pinging them in the removal PR) to avoid total removal when just an update would be necessary.
Sites like wikipedia automate this similarly:

A user is notified their image is about to be removed since it is unused, and is given notice to either fix it or let it go.
Proposed technical implementation details (optional)
No response

One challenge here is that we aren't actually removing the package - someone else already removed it - and we're removing the errant manifest, of which we're only aware because our robot checked on the package. It creates a gap between package update and manifest update, where the package isn't available.

An ideal solution is for developers to update the WinGet public manifest when they update their package. This would minimize the duration of that gap time.
Our automation checks many packages daily, trying to minimize that gap time.
Some packages aren't monitored and only get updated when enough users notice for someone to create an issue. Based on 1/9/90 math, this means potentially hundreds of users are impacted by the missing package.

To really address this feature request, and present forewarning of a package being removed - what's really needed is advanced awareness of ISV changes to the packages on their hosting. Also there's the question of how other package managers handle this gap time.


SixLabors.ImageSharp 3.1.4 vulnerable

Current behavior
DevToys.Api dependency SixLabors.ImageSharp version 3.1.4 is vulnerable:

Severity 1 - https://github.com/advisories/GHSA-qxrv-gp6x-rc23
Severity 2 - https://github.com/advisories/GHSA-63p8-c4ww-9cg7

How to reproduce it (as minimally and precisely as possible)
No response
Expected behavior
No vulnerabilities.
Screenshots
No response
Workaround
No response
Affected platforms
No response
Affected DevToys kind
DevToys (app with GUI), DevToys CLI
DevToys Version
DevToys.Api.2.0.5-preview
Relevant Assets/Logs
No response

Ping @veler for these vulnerabilities.

Hello,
Sorry for the late answer here and thank you for notifying this issue. I opened a PR to update the dependencies.


MERGE task not found at launch

Hi,
I'm trying to launch pippin and the job is dying at the config stage:
cd /project2/rkessler/SURVEYS/WFIRST/USERS/pmacias/dev/pippin
pippin.sh -c WFIRST_starterKit+ALT04.yml &
which yields
"Unable to resolve merge WFIRSTfit_WFIRST_SIMDATA_G10 from list of merge_tasks. There are valid options: ['WFIRSTfit_WFIRST_BIASCOR_G10', 'FOUNDfit_FOUND_BIASCOR_G10']
Task failed config"
Rick and I checked the input file and can't find anything obvious, so any help would be much appreciated. Output (which is only the log file) is located here:
/scratch/midway2/rkessler/PIPPIN_OUTPUT/WFIRST_STARTERKIT+ALT04
Thanks!

Phil

Few issues in your input file.

You can't have duplicate LCFIT tasks, so having WFIRSTfit_SIM and WFIRSTfit_BIAS will fix up this issue. Make sure to update the biascor task with this as well.
The CREATE_COV task needs to mask a BIASCOR task so MASK: BBC is needed
COSMOMC should mask CREATE_COV so MASK: WFIRST is needed

See /project2/rkessler/SURVEYS/DES/USERS/parmstrong/inputs/debug/pa_wfirst.yml for a working example.


Catboost integration

Look to https://catboost.ai/en/docs/concepts/c-plus-plus-api_dynamic-c-pluplus-wrapper, could it be integrated to postgresml?

Yes, we could use bindgen to create a rust interface, and it looks like it would follow the integration pattern used for xgboost and lightgbm fairly closely.

It looks like catboost already has rust bindings


conditionals - not working

It seems that "conditionals" rules are not working - or are not sending notifications - or I didn't understand how they are working.
If I run a docker image with a config.yml - I'm receiving notification for same coin - same indicators, but if I add those indicators in a "rule" in "conditionals" section, I'm not receiving anything:
STR:
defaults.yml(original project file, except that I've set everything to enabled; false)
config.yml - a have something like this:
`
indicators:
....
iiv:
- enabled: true
alert_enabled: true
alert_frequency: always
signal:
- iiv
hot: 1
cold: 0
candle_period: 1h
indicator_label: "IIV - STRATEGY"
ichimoku:
- enabled: true
alert_enabled: true
alert_frequency: always
signal:
- leading_span_a
- leading_span_b
hot: true
cold: true
candle_period: 1h
indicator_label: 'Ichimoku'
mute_cold: true
ma_ribbon:
- enabled: true
alert_enabled: true
alert_frequency: always
signal:
- pval
- corr
hot: 10
cold: -10
hot_label: 'Uptrend is coming'
cold_label: 'Downtred is coming'
candle_period: 1h
pval_th: 20
ma_series: 5, 15, 25, 35, 45
mute_cold: true
informants:
ohlcv:
- enabled: true
signal:
- high
- low
- close
candle_period: 1h
period_count: 14
conditionals:
############### ichimoku & ma_ribbon #################

label: "1h - ichimoku && ma_ribbon"
hot:

ichimoku: 0
ma_ribbon: 0

############### ichimoku & iiv #################

label: "1h - ichimoku && iiv"
hot:

ichimoku: 0
iiv: 0

############### ma_ribbon #################

label: "1h - ma_ribbon && iiv"
hot:

ma_ribbon: 0
iiv: 0
`
If i run:
docker run --rm -i -v D:\DEV\test_notifications\crypto-signal\app:/app dev/crypto-signals:latest

I'm not receiving anything in telegram, but if I run same config.yml without rules in "conditionals" section, I'm receiving alerts(same time) for the same indicators used in rules, like;
binance-WAVES/USDT-ichimoku-Ichimoku is hot!
[1h] Prices: [ High: 12.6772 Low: 12.6282 Close: 12.6772]
binance-WAVES/USDT-ma_ribbon- is hot!
[1h] Prices: [ High: 12.6772 Low: 12.6282 Close: 12.6772]
// => if I've understand how conditions work, this should have triggered first condition

Running with docker on windows:
docker build -t dev/crypto-signals:latest .
docker run --rm -i -v D:\DEV\test_notifications\crypto-signal\app:/app dev/crypto-signals:latest
docker version
Client: Docker Engine - Community
Cloud integration: 1.0.7
Version:           20.10.2
API version:       1.41
Go version:        go1.13.15
Git commit:        2291f61
Built:             Mon Dec 28 16:14:16 2020
OS/Arch:           windows/amd64
Context:           default
Experimental:      true
I really appreciate if you can point me in the right direction!
Thank you!

@danield32 it seems you are using the Telegram notifier. In this case, removing "analysis" from template fixed the problem (for now). (E.g.  removing: analysis.config.candleperiod)

@danield32 can you use the template "Bug report" ? I can't reproduce your issue with the partial config.yml you've provided.


how to pass arguments to webclient?

trying web.reactions.add({'name':'thumbsup', 'channel':channel, 'timestamp':ts, 'pretty':'1'}, function(err, data){}); but nothing happens...
(2.0.0beta)

Think it would be web.reactions.add('thumbsup', { channel: channel, timestamp: ts }, function(err, data) {});. See https://github.com/slackhq/node-slack-client/blob/2.0.0-beta/lib%2Fclients%2Fweb%2Ffacets%2Freactions.js#L20-L39 for more information.

thank you!


PosterLoop slice make fix?

// PosterLoop to start post loop
// 循环推送，10s一次
func PosterLoop() {
dlog.Info("PosterLoop Start")
go func() {
for {
select {
case p := <-pushQueue:
points := make([]*FalconPoint, 0)
points = append(points, p)
DONE:
for {
select {
case tmp := <-pushQueue:
points = append(points, tmp)
continue
default:
break DONE
}
}
//先推到cache中
PostToCache(points)
//开一个协程，异步发送至odin-agent
go postToFalconAgent(points)
}
time.Sleep(10 * time.Second)
}
}()
}
this code maybe is better for：
points := make([]*FalconPoint, len(pushQueue))
or len(pushQueue) + x

I think cannot, pushQueue is a queue for collecting the data points which were pushed from other goroutine.
During the for loop which get the points from queue continously, there may be other input writed into the queue, so if we structed the points size, it may cannot save all the points from queue.
any idea?


Inline $$|$$ cut text unexpectedly

Have you checked that your issue isn't already filed?

[X] I read through FAQ and searched through the past issues, none of which addressed my issue.
[X] Yes, I have checked that this issue isn't already filed.

Bug description
In posts, symbol | creates columns but does not display symbol |.
How to reproduce the bug

Create a new post with the content:

---
layout: post
title: test
date: 2024-01-01 23:58
description:
tags:
categories:
tabs:
published: true

---
The vibrant community of al-folio users is growing! Academics around the world use this theme for their homepages, blogs, lab pages, as well as webpages for courses, workshops, conferences, meetups, and more. Test $$\psi\rangle$$ and $$|\psi\rangle$$. Check out the community webpages below. Feel free to add your own page(s) by sending a PR.

Run "docker compose up" to deploy the webpage.

Error messages and logs
See the screenshot below. The symbol | unexpectedly cut the text into two columns rather than displaying $$|\psi\rangle$$.

What operating system are you using?
Mac
Where are you seeing the problem on?
Running locally with Docker (docker compose)
More info
No response

Some personal experience for your reference: When working with quantum operators, I use \vert to represent the | symbol, which avoids any issues.


Supporting rrweb as plugin

rrweb is an open-source JavaScript library for recording and replaying user sessions in web applications. It captures user interactions and allows developers to replay them, providing valuable insights into user behavior and facilitating efficient debugging.
The addition of rrweb support to OpenTelemetry would provide invaluable insights into user interactions, helping developers to better understand and reproduce user sessions. By seamlessly integrating rrweb with OpenTelemetry, we can bridge the gap between performance monitoring and user behavior analysis.
Benefits:
Comprehensive Observability: Combining rrweb with OpenTelemetry will enable developers to correlate user interactions with performance metrics, creating a comprehensive view of application behavior.
Efficient Debugging: The ability to replay user sessions captured by rrweb alongside OpenTelemetry traces will significantly expedite debugging processes, allowing developers to quickly identify and resolve issues.
Potential Use Cases:
Error Reproduction: Developers can use rrweb recordings to reproduce user interactions leading up to an error, facilitating efficient debugging and issue resolution.
Performance Optimization: Identify performance bottlenecks by analyzing rrweb recordings in conjunction with OpenTelemetry traces, allowing for targeted optimizations.
User Flow Analysis: Gain insights into how users navigate through the application by analyzing rrweb recordings alongside telemetry data, aiding in the optimization of user flows.

[ X ] This only affects the JavaScript OpenTelemetry library

This is useful.

+1 - this would be awesome to have.


Possbile timing issue

Hi,
I encountered a problem with updating the store dependent on another store observable. Not sure whether this a problem withing angular2, ngrx or my app... Given the following component:
@Component({
  selector: 'shop-activity',
  template: `
    <div class="component shop-content">
        ...
        <content-workflow [transitions]="transitionService.transitions | async"></content-workflow>
    </div>
  `,
  directives: [ContentWorkflowComponent]
})
export class ShopActivityContainer {
  @Input() selectedShop: Shop;
  @Input() selectedCountry: Country;

  constructor(private contentService: ContentService, private transitionService: TransitionService) {
    this.contentService.content
      .subscribe((content: Content) => {
          this.transitionService.getTransitions(content.state);
          //setTimeout(() => {
          //  this.transitionService.getTransitions(content.state);
          //}, 0);
        }
      });

    this.transitionService.transitions.subscribe(transitions => {
      console.log('test', transitions);
    })
  }

 loadContent() {
    this.contentService.getContent(this.selectedShop, this.selectedCountry);
  }
}

where loadContent is triggered via a click callback. this.transitionService.getTransitions(content.state); just dispatches an action (synchronously) like so:
this.store.dispatch({
  type: LOAD_TRANSITIONS_SUCCESS,
  payload: some_local_array[state]
});

The initial state of transitions is an empty array. Now, what happens when clicking on a button to trigger loadContent? Some content is loaded, we subscribed to the content observable, so loading transitions is triggered. The corresponding action is fired, reducer function called, everything seems to work fine. But in the content-workflow component the array with the transitions never arrives. When subscribing to the transitions observable one sees, that after the new array was propagated, immediately a new value is propagated, which is the inital value, an empty array.
However, all this works fine when using setTimeout (see 3 out-commented lines) instead. Hopefully the problem is understandable, if you need more input/context just ask ;)
Any ideas? I am totally clueless ^^ Thanks!

+1
if dispatch any action inside any subscriber of a store, the target subscription will be fired twice with the new and the legacy value once by once..


Demo is not working

Submit a Form to Google Sheets | Demo
After clicking the Demo hyperlink. I arrived to this page: https://form-to-google-sheets.surge.sh/
I filled out the simple form and got an error.
Does anyone have a real time working solution for how to Submit HTML form DIRECTLY to Google Sheets.

Got that error after submitting the details


TS Stubs need determinstic ordering

The generated TS type graph, although it makes sense and is correct, gets generated unpredictably. It makes it harder to see changes in generated TS RPC stubs.

Fixed in 1.2.5


Azure CLI login failure

From @kylepeters on Tuesday, July 2, 2019 6:42:21 PM
Problem encountered on https://dotnet.microsoft.com/learn/web/aspnet-deploy-microservice-tutorial/azure-resources
Operating System: windows
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
Every time I attempt to use the >az login command, it launches a browser window for me to log in. After successful login via browser window, I get this error...
C:>az login
Note, we have launched a browser for you to login. For old experience with device code, use "az login --use-device-code"
You have logged in. Now let us find all the subscriptions to which you have access...
request failed: Error occurred in request., SSLError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /tenants?api-version=2016-06-01 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
Copied from original issue: dotnet/core#2975

From @carlossanlop on Tuesday, July 9, 2019 8:04:02 PM
@Pilchie I am not sure if this is something for the ASP.NET team specifically, since the question is happening in Azure tools. Is this something your team would be able to address? If not, do you know who would be the best contact for this?

From @Pilchie on Tuesday, July 9, 2019 8:05:19 PM
@Petermarcu any ideas?

From @Petermarcu on Tuesday, July 9, 2019 8:53:17 PM
This is probably best opened here: https://github.com/Azure/azure-cli

@yugangw-msft FYI

@kylepeters, can you please try again? This error happened once before that the azure resource manager service hit a deployment error which ended up having an incomplete certificate chain. If this error persists, please run with --debug and mail the trace to me at yugangw at microsoft dot com.

I just tried this again, and received the exact same request failure.

@kylepeters, are you behind a proxy? To get unblocked, please try the tips here. If you don't think you are behind a proxy, please run with --debug and send the trace to me: yugangw at microsoft dot com

Unblocking the proxy by [temporarily] setting an AZURE_CLI_DISABLE_CONNECTION_VERIFICATION environment variable worked. I will have to work with our infrastructure guys to set the REQUESTS_CA_BUNDLE to the file path of the proxy server's certificate....if we even have one, and if they know where to find it.  Thank you for the assist - much appreciated.

@kylepeters, good to know you are unblocked. Since this is related with the proxy server in your work space, not a CLI specific issue, I am closing this.

Understood. But hey thanks for pointing me to the solution!
Sincerely,
Kyle Peters

On Jul 15, 2019, at 9:41 PM, Yugang Wang<EMAIL_ADDRESS>wrote:
@kylepeters, good to know you are unblocked. Since this is related with the proxy server in your work space, not a CLI specific issue, I am closing this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Roles

In the instructions it says to remove ApplicationDbContext, but how would one add roles? Anyone who have a snippet. All of the existing sample implements using ApplicationDbContext:
    public class ApplicationRoleManager : RoleManager<IdentityRole>
    {
        public ApplicationRoleManager(IRoleStore<IdentityRole, string> store)
            : base(store)
        {
        }
        public static ApplicationRoleManager Create(IdentityFactoryOptions<ApplicationRoleManager> options, IOwinContext context)
        {
            var roleStore = new RoleStore<IdentityRole>(context.Get<AuthenticationDbContext>());
            return new ApplicationRoleManager(roleStore);
        }
    }

Did you figure this out, I have tried
var appRoleManager = new ApplicationRoleManager(new MySqlRoleStore());
return appRoleManager;
Which works for creating but it seems a lot of functions don't work, FindByIdAsync doesn't seem to work, CreateAsync works fine, and it seems Roles is not implemented at all, which makes a lot of examples out there no good whatsoever?

@JasonColeyNZ Some issues are fixed but I haven't got a time to re-publish updated NuGet package.
You can try to pull latest version code and build it locally or wait for few days until I re-publish latest version of NuGet package.Thanks.

Thank you

OK I got the roles working from the latest code, thank you.
Now can we add claims using this API yet or is this not finished?

@JasonColeyNZ I think you need to extend identity implementation to add more fields. Not sure about claims.

@JasonColeyNZ Would you be able to share the steps you used to get roles working please. I'm now trying to implement the same using MySQL and being relatively new to C# / ASP.NET I'm struggling a little ;)

hello, i started to use mysql database.when i search the resource about mysql, i found your project.
its really good resource.
if you interest i created roles and users manager.
#10

I know it's been a long time since the last commit, but nuget package is still outdated. @radenkozec any plans to re-publish latest code?


da: calldata version prefix, eth fallback

Overview

Fixes #264
While here, add $CELESTIA_NAMESPACE to da image and remove docker-compose-testnet.yml.
Also fixes op-node tests.
Checklist

[x] New and updated code has appropriate documentation
[x] New and updated code has new and/or updated testing
[x] Required CI checks are passing
[x] Visual proof for any user facing features like CLI or documentation updates
[x] Linked issues closed with keywords

This makes e2e tests pass again, although it requires the following flags:
OP_E2E_DISABLE_PARALLEL=true OP_E2E_CANNON_ENABLED=false OP_NODE_DA_RPC=localhost:26650 OP_BATCHER_DA_RPC=localhost:26650


Unable to run

If I follow the directions and do a npm run dev after npm run hot in a different terminal then nothing seems to happen and if I browse to http://localhost:8080, it's just a blank page.
If I run npm run prod, then I get the following error:
App threw an error during load
Error: Cannot find module './js/core/mainThreadReceiver.js'
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename (/Users/jeff/sleep-tight/source/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/Users/jeff/sleep-tight/source/app/build/app.js:10:28)
at Object. (/Users/jeff/sleep-tight/source/app/build/app.js:89:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
(sorry no easy pull request for this one, at this time!)

Fixed