text:
Understanding Probability Distributions and their Simulations in R

Proposed title of the article
Understanding Probability Distributions and their Simulations in R
Proposed article introduction
When working with distribution, we typically want to know one of the four things below.

The density pdf of a particular value.
The distribution CDF.
The quantile value corresponding to a particular probability.
A random draw of values from a particular distribution.
R has functions for obtaining density, distribution, quartile, and a random value.

The general R naming is given as:

pname: This calculates the density at input X
pname: This calculates the cumulative probability density(CDF) at input X
qname: This calculates quartile at an input X
rname: This generates a random draw from a particular distribution

where the 'name' in all the four cases above represents the name of the given distribution.
Random value generation is a common activity in machine learning especially in Bayesian statistics where the posterior distribution can be intractable and therefore difficult to estimate parameters of interest from them. In such cases, we draw samples randomly from them using methods such as Monte Carlo simulation which is then used to estimate the population parameters. For the learner to be able to advance to such a level, first they should know the basics of how we draw samples from a certain distribution.
In this article, we will cover both the continuous and discrete probability distributions and how we simulate them as well as drawing samples from such simulated distributions.
Key takeaways

What's the probability distribution
What is the continuous and discrete probability distributions
Under the continuous probability distributions, the learner will know:

Uniform distribution; its pdf and how to simulate its distribution
Normal distribution; its pdf and how we simulate its distribution. Since the normal distribution is highly applicable in the real world, we shall have some application problems which we will learn how we can solve them using R instead of solving by hand.
Chi-Square distribution; how to simulate and solve its problems using R
Student-distribution; how to simulate and solve its problems using R
Exponential distribution; how to simulate and solve its problems using R

Under the discrete probability distribution the learner will know:

Binomial distribution: Here we will solve some practical problems using R code.
Poisson distributions: We will learn how to solve probability problems of Poisson distribution using R.

How to draw samples from the simulated distributions

Article quality
This article aims to make the learner able to solve any probability problem using R software instead of doing so by hand as in practice some problems might be highly challenging to address by hand. So, it will cover the topic in-depth and ensure clarity of the content so that the learner can grasp the content very easily.
References
N/A

Sounds like a helpful topic - let's please be sure it adds value beyond what is in any official docs and/or what is covered in other blog sites. (the articles should go beyond a basic explanation - and it is always best to reference any EngEd article and build upon it). @BejaminNaibei
Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting it for final approval. (There are some great free tools that we reference in EngEd resources.)
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.
Please be sure to double-check that it does not overlap with any existing EngEd articles, articles on other blog sites, or any incoming EngEd topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved

Just and FYI I will be closing this topic form just to help clear up the queue where possible - can be REOPENED at anytime when ready to link a PR. 👍

Closed #6652 via 7440

authors: BejaminNaibei WanjaMIKE ahmadmardeni1 hectorkambow


text:
Kubernetes Cost Optimization Using Autoscaling Methods

this fixes #2625
Article checklist
ATTENTION: In your PR - add the ISSUE (topic form) # that this PR corresponds to. You can do this by also adding a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
If you have not already please go over our Resources Page for more tips and tricks on how to improve our overall technical writing.
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Please place your article through a 3rd party plagiarism checker? We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution guidelines
For first-time contributors and for more details, see Contributing Guidelines

Good afternoon and thank you for submitting your article for publishing.
Your article has been entered into our queue and should be reviewed (and published pending any changes) as soon as a peer reviewer is finished with the ones in the queue before it. :rocket:
Thank you. @mumbi00

Hey @mumbi00 :wave:
Briana here.
First things first welcome to Section Eng-Ed. :tada:
We are happy to have you here.
I have noticed you do not have an author bio and a headshot image and we would like to give you credit for your work.
This is how you can do it:

Check the author folder under the content folder.
Create a folder with your name (small caps and use '-' instead of a space).
Create an index.md which will contain your details. Please refer to this bio.
Lastly, in the same folder upload an image of yourself preferably (600x400) and name it avatar.(can be png or jpg)

Remember to do this on your forked branch.
In case of any problem, question or clarification do not hesitate to reach out.
I am here to help.
Regards.

Hi @BrianaNzivu
What is the status of this article? I think it has taken a lot of time to review.

Hi @BrianaNzivu
What is the status of this article? I think it has taken a lot of time to review.

Hey Mumbi👋🏾.
I am done with the review.
Currently waiting for a plagiarism check to be done.
Cc @hectorkambow

Hi @BrianaNzivu
What is the status of this article? I think it has taken a lot of time to review.

Hey Mumbi👋🏾.
I am done with the review.
Currently waiting for a plagiarism check to be done.
Then from then on your article can proceed to the final review stage.
Cc @hectorkambow

Hi @BrianaNzivu
What is the status of this article? I think it has taken a lot of time to review.

Hey Mumbi👋🏾.
I am done with the review.
Currently waiting for a plagiarism check to be done.
Cc @hectorkambow

After the check has been done (hoping you have a plagiarism of 10% and below) your article will proceed to the final review stage.🚀
Regards.

plagiarism check done

Welcome to Section EngEd and congrats on your first article 🎉 @mumbi00
Thank you for the review @BrianaNzivu

source: gharchive/pull-request

license_type: permissive

license_source: github-api


text:
Add demo directory to store build artifact

Update the build to copy the output tarball to demo folder. This would
align the behaviour of build script with other components.
Signed-off-by: Behera, Tushar Ranjan tushar.ranjan.behera@intel.com

Actually, One more change is required :
As we are including the OnPremRV in AIO dependency, we need to clone and build it in build/build.sh along with other components. I will raise a PR for that today.

repo: secure-device-onboard/all-in-one-demo


text:
Custom Branding (?)

I am not sure if this is wanted. Differentiation from Fedora could be wished or not.

[ ] KDE Menu icon
[ ] "non verbose" boot screen
[ ] LUKS password entry screen
[ ] grub entries?
[ ] /etc/os-release (Fedora, but variant "Secureblue", custom URL)

Thats all I know currently. Please check what is unneeded or fixed. Is this wished for?

Is the /etc/os-release really excluded here? It should have some indication that this is silverblue-hardened/kinoite-hardened

Is the /etc/os-release really excluded here? It should have some indication that this is silverblue-hardened/kinoite-hardened

Yes it's excluded. Even upstream ublue doesn't rebrand this.

source: gharchive/issue

authors: qoijjj trytomakeyouprivate

repo: secureblue/secureblue


text:
Not able to save message template

I saved the users list in csv file as
شيئا ما,something,something@something.com.
When I create the message template with Hi {{client.firstname}}, it is not getting saved.
If I change csv file to unicode format, message preview showing as Hi , blah blah.
Was it the problem with arabic format words.
Is the tool supports only english words in csv file.
If it is problem with arabic format what is the solution.

All files need to be UTF-8 encoded. We don't support any other encodings at this time. If your CSV file and your template file are UTF-8, then everything should just work.

Thanks @zeroSteiner, it helped me

authors: gosusnkr zeroSteiner

repo: securestate/king-phisher


text:
fix(ERM-1089): Add ability to replace components in react-select

[x] Allow customize components properties from Select (see more here)

Signed-off-by: Riderman de Sousa Barbosa 725337+Ridermansb@users.noreply.github.com
Closes ERM-1089

@Ridermansb overall looks good. I have just three things:

one comment to solve
change the commit message to fix(Select): add ability to replace components in Select
generate missing visual test with yarn test:storybook:visual:update

Hey can you check this PR instead..
https://github.com/securityscorecard/design-system/pull/570

repo: securityscorecard/design-system


text:
Default shell is always bash on OSX

I just installed extraterm-0.5.0-darwin-x64 on OSX and then installed fish with brew install fish. Then I added /usr/local/bin/fish to /etc/shells and ran chsh -s /usr/local/bin/fish and entered my password. My default shell is now fish in the Apple Terminal and in iTerm, but when extraterm starts, it's bash.
I have logged out and logged back in. I have deleted extraterm and reinstalled it. Still, every terminal uses fish, except extraterm which is still using bash. I can start fish in extraterm by running fish, but I obviously want it to be the default.
Do I need to to something else in extraterm to change my default shell?
Thanks in advance.

From a little bit of googling I see that Mac OS X doesn't store the user's shell in /etc/passwd (which is what Extraterm is reading). It uses Open Directory.
https://superuser.com/questions/191330/users-in-etc-passwd-on-mac-os-x

Thanks a lot! Can't wait for the next release. Wish I had time to build it myself.

license: mit

license_source: bigquery


text:
移动端使用碰见的问题

移动端使用的情况下，出现了ios12以前白屏，鸿蒙系统也会出问题，应该是某个api不支持，没有排查出来，作者是否可以给些提示或者将源码中的使用的较新的api标注一下（v1的代码我没全看）

我这里只有一个ipad，最新版本v2.x我简单测试过，有问题，不过还没有白屏的现象

最近迭代项目，降级vconsole看到了报错，组件的语法报错，猜想可能是webpack5的问题，因为配置好了babel的。后来框架降级，使用webpack4，页面正常渲染了，但是部分机型还是有点问题，不得已使用了G6重构。

authors: seeksdream yuguaa

repo: seeksdream/relation-graph

license: MIT


text:
Proje derlenemiyor

*.java dosyaları UTF-8 değil ve bazı bağımlılıklar eksik. Ek olarak kod hiç formatlanmamış
hatess-MacBook-Pro:KanBagisi hates$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building KanBagisi 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ KanBagisi ---
[INFO] Deleting /Users/hates/temp/KanBagisiProjesi/KanBagisi/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ KanBagisi ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ KanBagisi ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 10 source files to /Users/hates/temp/KanBagisiProjesi/KanBagisi/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,113] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,115] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,119] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,126] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,136] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,137] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[110,113] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[110,115] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[110,119] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[110,136] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[110,137] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[4,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[5,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[6,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[7,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[8,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[9,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[11,44] cannot find symbol
symbol: class Filter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[14,26] cannot find symbol
symbol:   class FilterConfig
location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[14,60] cannot find symbol
symbol:   class ServletException
location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[20,30] cannot find symbol
symbol:   class ServletRequest
location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[20,54] cannot find symbol
symbol:   class ServletResponse
location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[20,80] cannot find symbol
symbol:   class FilterChain
location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[21,45] cannot find symbol
symbol:   class ServletException
location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[13,9] method does not override or implement a method from a supertype
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[19,9] method does not override or implement a method from a supertype
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[28,9] method does not override or implement a method from a supertype
[INFO] 27 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.417 s
[INFO] Finished at: 2018-03-18T11:58:39+02:00
[INFO] Final Memory: 17M/211M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project KanBagisi: Compilation failure: Compilation failure:
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,113] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,115] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,119] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,126] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,136] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[97,137] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[110,113] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[110,115] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[110,119] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[110,136] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/kanbagisi/jpa/controller/BagisciBean.java:[110,137] unmappable character for encoding UTF8
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[4,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[5,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[6,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[7,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[8,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[9,21] package javax.servlet does not exist
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[11,44] cannot find symbol
[ERROR] symbol: class Filter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[14,26] cannot find symbol
[ERROR] symbol:   class FilterConfig
[ERROR] location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[14,60] cannot find symbol
[ERROR] symbol:   class ServletException
[ERROR] location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[20,30] cannot find symbol
[ERROR] symbol:   class ServletRequest
[ERROR] location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[20,54] cannot find symbol
[ERROR] symbol:   class ServletResponse
[ERROR] location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[20,80] cannot find symbol
[ERROR] symbol:   class FilterChain
[ERROR] location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[21,45] cannot find symbol
[ERROR] symbol:   class ServletException
[ERROR] location: class _01.filters.UTF8EncodingFilter.UTF8EncodingFilter
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[13,9] method does not override or implement a method from a supertype
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[19,9] method does not override or implement a method from a supertype
[ERROR] /Users/hates/temp/KanBagisiProjesi/KanBagisi/src/_01/filters/UTF8EncodingFilter/UTF8EncodingFilter.java:[28,9] method does not override or implement a method from a supertype
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

pom.xml'de gerekli encoding işlemleri eksikti onları düzelttim tekrar deneyebilir misiniz?

Hala derlenemiyor. Logu okursan bazı bağımlılıklar eksik. mvn clean install ile kendin de test edebilirsin

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building KanBagisi 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ KanBagisi ---
[INFO] Deleting C:\Users\gecici\git\KanBagisiProjesi\KanBagisi\target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.434 s
[INFO] Finished at: 2018-03-21T16:57:40+02:00
[INFO] Final Memory: 6M/77M
[INFO] ------------------------------------------------------------------------

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building KanBagisi 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ KanBagisi ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\gecici\git\KanBagisiProjesi\KanBagisi\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ KanBagisi ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ KanBagisi ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\gecici\git\KanBagisiProjesi\KanBagisi\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ KanBagisi ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ KanBagisi ---
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.pom
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.pom (3 KB at 1.4 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.12.4/surefire-api-2.12.4.pom
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.12.4/surefire-api-2.12.4.pom (3 KB at 9.8 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.12.4/maven-surefire-common-2.12.4.pom
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.12.4/maven-surefire-common-2.12.4.pom (6 KB at 24.4 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.pom
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.pom (2 KB at 6.6 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-tools/3.1/maven-plugin-tools-3.1.pom
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-tools/3.1/maven-plugin-tools-3.1.pom (16 KB at 53.2 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.pom
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.pom (17 KB at 48.1 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.jar (34 KB at 86.2 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.12.4/surefire-api-2.12.4.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.12.4/surefire-api-2.12.4.jar (115 KB at 229.7 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.12.4/maven-surefire-common-2.12.4.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.12.4/maven-surefire-common-2.12.4.jar (257 KB at 352.3 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar (309 KB at 424.8 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/2.0.9/maven-toolchain-2.0.9.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/2.0.9/maven-toolchain-2.0.9.jar (38 KB at 133.4 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.jar (14 KB at 63.4 KB/sec)
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:3.0.0:war (default-war) @ KanBagisi ---
[INFO] Packaging webapp
[INFO] Assembling webapp [KanBagisi] in [C:\Users\gecici\git\KanBagisiProjesi\KanBagisi\target\KanBagisi-0.0.1-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\gecici\git\KanBagisiProjesi\KanBagisi\WebContent]
[INFO] Webapp assembled in [886 msecs]
[INFO] Building war: C:\Users\gecici\git\KanBagisiProjesi\KanBagisi\target\KanBagisi-0.0.1-SNAPSHOT.war
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ KanBagisi ---
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.pom
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.pom (3 KB at 10.4 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.jar (226 KB at 407.0 KB/sec)
[INFO] Installing C:\Users\gecici\git\KanBagisiProjesi\KanBagisi\target\KanBagisi-0.0.1-SNAPSHOT.war to C:\Users\gecici.m2\repository\KanBagisi\KanBagisi\0.0.1-SNAPSHOT\KanBagisi-0.0.1-SNAPSHOT.war
[INFO] Installing C:\Users\gecici\git\KanBagisiProjesi\KanBagisi\pom.xml to C:\Users\gecici.m2\repository\KanBagisi\KanBagisi\0.0.1-SNAPSHOT\KanBagisi-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.977 s
[INFO] Finished at: 2018-03-21T17:27:18+02:00
[INFO] Final Memory: 13M/176M
[INFO] ------------------------------------------------------------------------

authors: ateshuseyin sefauncu

repo: sefauncu/KanBagisiProjesi


text:
Can I change color for particular Link on a Page?

I tried to do that way, but it does not applied
<Link marginRight={8} size={300} color="#fff" cursor="pointer">
    LOGIN
</Link>

I see I can choose neutral but no way to make it white except modify for all in custom theme?

Only way I can solve it is
.navLink {
    color: #fff !important;
}

.navLink:hover {
    color: #D14343 !important;
}

import styles from './index.module.css';
...
 <Link marginRight={8} size={300} color="neutral" cursor="pointer" className={styles.navLink}>
 ...

Am I right ? No other way to exclude !important ?

The current Link component is not very flexible in terms of props or theming. In fact, the comment for that prop in the typescript definitions is misleading (passing in 'green' has no effect based on this code):
https://github.com/segmentio/evergreen/blob/0ba8a87b70c029febac59b57277336a8f45fe5cd/src/themes/default/components/link.js#L5-L11
It also does not support the appearance prop like some other components do. If you only ever expect to have one type of link, you can write custom theme values over the ones we have and that should work:
const theme = mergeTheme(defaultTheme, {
  components: {
    Link: {
      baseStyle: {
        color: "#f3f3f3"
      },
    }
  }
});

The other recommendation would be is just rolling your own Link component, since ours is pretty much just a <Text /> component for styling that creates an anchor tag under the hood:
https://github.com/segmentio/evergreen/blob/0ba8a87b70c029febac59b57277336a8f45fe5cd/src/typography/src/Link.js#L27

authors: boskiv brandongregoryscott

repo: segmentio/evergreen


text:
IBC transfer precompile

Describe your changes and provide context
Adding IBC transfer precompile
Testing performed to validate your change

unit testing
local testing

setup local Sei and gaia nodes
installed hermes and and setup channel
executed transfer via precompile with seid tx evm call-contract command
verified funds were deducted on sei wallet and added to gaia wallet. Verified no errors in hermes logs

Also this PR is in place of https://github.com/sei-protocol/sei-chain/pull/1459

Codecov Report
Attention: Patch coverage is 49.47368% with 96 lines in your changes are missing coverage. Please review.

Project coverage is 61.57%. Comparing base (4e37d32) to head (bbf3b13).
Report is 212 commits behind head on seiv2.

Additional details and impacted files

@@            Coverage Diff             @@
##            seiv2    #1485      +/-   ##
==========================================
- Coverage   61.65%   61.57%   -0.08%
==========================================
  Files         354      356       +2
  Lines       24646    24877     +231
==========================================
+ Hits        15195    15319     +124
- Misses       8576     8666      +90
- Partials      875      892      +17

Files
Coverage Δ

app/app.go
65.69% <100.00%> (-0.09%)
:arrow_down:

precompiles/wasmd/wasmd.go
72.39% <100.00%> (-1.88%)
:arrow_down:

x/evm/keeper/genesis.go
16.07% <ø> (ø)

x/evm/keeper/keeper.go
49.71% <100.00%> (+0.42%)
:arrow_up:

precompiles/common/precompiles.go
9.83% <0.00%> (-2.93%)
:arrow_down:

precompiles/ibc/ibc.go
50.00% <50.00%> (ø)

... and 8 files with indirect coverage changes

authors: codecov-commenter dssei

repo: sei-protocol/sei-chain


text:
Add x/evm/types unit tests

Describe your changes and provide context
Add unit tests for edge cases
Testing performed to validate your change
Unit tests pass

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

Project coverage is 60.83%. Comparing base (51f7ac0) to head (8c23269).
Report is 1 commits behind head on seiv2.

Additional details and impacted files

@@            Coverage Diff             @@
##            seiv2    #1537      +/-   ##
==========================================
+ Coverage   60.27%   60.83%   +0.55%
==========================================
  Files         366      366
  Lines       25893    25893
==========================================
+ Hits        15608    15751     +143
+ Misses       9296     9161     -135
+ Partials      989      981       -8

Files
Coverage Δ

x/evm/types/params.go
71.42% <100.00%> (+36.90%)
:arrow_up:

... and 11 files with indirect coverage changes


text:
Soundtts should say the nickname

When using soundtts the said message does not have a username before the message so it is hard to guess who used it.

This was found useless. Discarded.


text:
Fix for "leaking clicks"

Ok, this is another solution for clicks that are triggered on underlying elements on mobile devices.
This time mousedown and mouseup events are left intact. Instead touch-events are marked, but we are still waiting for a 'click' event to arrive. And once we got the click event we execute selectHighlighted , but only for marked events.
Fix for issue #2226.

When I type a name and click on drop down list, select uses focus and I can't type anymore. Dropdown list is still visible but I can't type. How to fix that?


text:
Feature/keyboard search interaction

This pull request includes a

[ ] Bug fix
[x] New feature
[ ] Translation

The following changes were made
I've added the possibility to search within dropdown even if the param
minimumResultsForSearch : Infinity
as per native select component
I've introduced 2 component variables.
Please let me know if i have done it correctly.
If this is related to an existing ticket: https://github.com/select2/select2/issues/4514
Thanks,
Francesco

I will made a new pull request with all tests passed.
Sorry.


text:
How to get proofSiblings and proofPathIndices from Identity?

I am trying to find a function in the @semaphore-protocol/group or @semaphore-protocol/identity package that can help me get proofSiblings and proofPathIndices of a certain identity.
I want to test out removing a member from a group. I went through the documentation, boilerplate code and the subgraph code but haven't found where to get this information from.
Please guide me to the right direction

Hey @HiraSiddiqui, proofSiblings and proofPathIndices are part of the MerkleProofreturn value, which you can get by using the generateMerkleProof function in the @semaphore-protocol/group package.

Hey @HiraSiddiqui, proofSiblings and proofPathIndices are part of the MerkleProofreturn value, which you can get by using the generateMerkleProof function in the @semaphore-protocol/group package.

Is there a way to generate this information from smart contract functions?
What if I don't want to keep a local state of the members that are in group, but only want to rely on smart contract state to check which members are part of the group and which are not?
Is it necessary to maintain an off-chain state of current group members?

Alright, this answers my question. Closing the ticket now. Thanks for your help!

authors: HiraSiddiqui cedoor

repo: semaphore-protocol/boilerplate


text:
Problem: ModuleNotFoundError: No module named 'ansible'

Issue
Playbooks do not run and throw error
Traceback (most recent call last):
  File "/home/semaphore/.local/bin/ansible-playbook", line 5, in
    from ansible.cli.playbook import main
ModuleNotFoundError: No module named 'ansible'
Running playbook failed: exit status 1

Impact
Service (scheduled tasks, alerts), Ansible (task execution)
Installation method
Docker
Browser
Chrome
Semaphore Version
v2.9.92-beta-476cd97-1715521506
Ansible Version
504526620c7c:~$ ansible --version
ansible [core 2.16.6]
  config file = None
  configured module search path = ['/home/semaphore/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/semaphore/.local/lib/python3.11/site-packages/ansible
  ansible collection location = /home/semaphore/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/semaphore/.local/bin/ansible
  python version = 3.11.9 (main, Apr 14 2024, 13:40:00) [GCC 13.2.1 20231014] (/usr/bin/python3)
  jinja version = 3.1.4
  libyaml = True

Logs & errors
Attempting to connect to database semaphore on mysql:3306 with user semaphore ...
No additional system dependencies to install
No additional python dependencies to install
Starting semaphore server
..Loading config
Validating config
MySQL semaphore@mysql:3306 semaphore
Tmp Path (projects home) /tmp/semaphore
Semaphore v2.9.92-beta-476cd97-1715521506
Interface
Port :3000
Server is running
time="2024-05-16T23:33:35+10:00" level=error msg="websocket: close sent" fields.level=Error
time="2024-05-16T23:33:35+10:00" level=error msg="close tcp 172.19.0.3:3000->10.4.180.160:39968: use of closed network connection" fields.level=Error
Manual installation - system information
Cloudflare tunnel
Configuration
version: '3'
volumes:
inventory:
authorized-keys:
config:
mysql:
services:
mysql:
image: mysql:8.4
hostname: mysql
volumes:
- mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=semaphore
- MYSQL_USER=semaphore
- MYSQL_PASSWORD=$DB_PW  # change!
restart: unless-stopped
app:
image: semaphoreui/semaphore:v2.9.92-beta
ports:
- $PORT:3000
environment:
- SEMAPHORE_DB_USER=semaphore
- SEMAPHORE_DB_PASS=$DB_PW  # change!
- SEMAPHORE_DB_HOST=mysql
- SEMAPHORE_DB_PORT=3306
- SEMAPHORE_DB_DIALECT=mysql
- SEMAPHORE_DB=semaphore
- SEMAPHORE_PLAYBOOK_PATH=/tmp/semaphore/
- SEMAPHORE_ADMIN_PASSWORD=$ADMIN_UN  # change!
- SEMAPHORE_ADMIN_NAME=$ADMIN_UN
- SEMAPHORE_ADMIN_EMAIL=ADMIN_EMAIL
- SEMAPHORE_ADMIN=$ADMIN_UN
- SEMAPHORE_ACCESS_KEY_ENCRYPTION=$ENCRYPTIONKEY  # add to your access key encryption !
- ANSIBLE_HOST_KEY_CHECKING=false  # (optional) change to true if you want to enable host key checking
volumes:
- inventory:/inventory:ro
- authorized-keys:/authorized-keys:ro
- config:/etc/semaphore:rw
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: unless-stopped
labels:
- autoheal=true
healthcheck:
test: curl --connect-timeout 15 --silent --show-error --fail -k http://localhost:3000
interval: 30s
retries: 3
start_period: 30s
timeout: 20s
depends_on:
- mysql
Additional information
No response

Changed docker container to version v2.9.83-premium and now playbooks can run

repo: semaphoreui/semaphore


text:
best way to stop scanning when $state.go("aView")

I am using the qr-scanner in a ng-view. When switching back with the arrows keys the view gets destroyed and so the qr-scanner stops scanning as expected. (because your module listens for $destroy if I understand the code correctly).
However, in my particular case I am switching the states/views with state.go().
After the view switched, the qr-scanners interval is still running. How can I stop it from doing so?
I could implement a listener into your code, to listen for a certain event to then clear the interval. But i am not sure, it's the cleanest way to go for.
thanks!
(I am an angular newbie, so excuse me if the answer to the problem is rather simple)

Hi,
You can also broadcast a $destroy event before switching state.
I also needed to stop the scanner with a button click and what I have done i this :
        function stopScan() {
            $scope.$broadcast('$destroy');
        }

Not sure this is the cleanest way to do but I does the job.

authors: nylki rllola

repo: sembrestels/angular-qr-scanner


text:
The GraphQL Aggregate function, the count value of string (so also text) properties results to null

count should display the number of property values filled per Aggregated group, but a result of null is consistently returned.

I have this issue with all data types.
This is the query I used:
{
  Aggregate {
    Things {
      MyClass(groupBy: ["someProperty"]) {
        name {
          count
        }
         groupedBy {
          value
          path
        }

      }
    }
  }
}

Current workaround is:
{
  Aggregate {
    Things {
      MyClass (where: {
        path: ["someProperty"]
        operator:Equal
        valueBoolean: true
      }){
        meta {
          count
        }
      }
    }
  }
}

duplicates #974
Closing in favor of the linked issue.

authors: etiennedi fefi42 laura-ham

repo: semi-technologies/weaviate


text:
Support for Life A2 NC

It would be great, if you could add support for the Soundcore Life A2 NC.

Have you tried it anyway, because it might work even though I haven't listed it.

Yes, I have tried it, I selected the headphones from the menu inside the Sonitus settings. If I try to change to noise cancel, the blue button appears and then disappears without any changes. Inside the Soundcore app it’s working normally.

Okay, could you message me on Discord, I communication is a bit easier over there. I will need some specific logs.

No problem, I will write you tomorrow on discord :)

I have the same model, and I had try but not work, this can be great make support this model.

Hi @AleksIralda , I've send you the test version over Discord. I haven't released that version yet because it doesn't automatically detect the device, I might add a setting to choose the headphones model in the preference bundle to bypass this.


text:
Update to API Keys Page: Permissions Instructions

Link to page: https://sendgrid.com/docs/API_Reference/Web_API_v3/API_Keys/index.html

Got this one!! (To include notes about the two calls you need to make to retrieve permissions then update to include permissions that are not included in the UI.)

#4322

repo: sendgrid/docs


text:
Send response is Accepted but not getting email

Hi,
Below is my sendgrid account. I am getting response as Accepted but not getting email. Can you please have a look?
UserName : sharidotnet
Thanks,
Hari.

Hello @HariSirigouniTest ,
We're sorry you're having this issue! Since this is not a docs-related issue, please contact our Support team directly and they can help you out. You can access support contact options by logging into https://support.sendgrid.com.
SendGrid Docs Team

authors: HariSirigouniTest Whatthefoxsays


text:
Link individual reseller API pages to the Overview

Description of the change:
Reason for the change:
Link to original source:
@ksigler7

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

Hello @krista-southworth,Thanks again for the PR! It's HACKTOBERFEST! We want to show our appreciation by sending                                              you some special Hacktoberfest swag. If you have not already, could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX


text:
Merge Develop into Master 3.1.2018 - EASE Beta, substitution tag fixes, typos

Description of the change:
Reason for the change:
Link to original source:

Closes #

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

authors: Whatthefoxsays thinkingserious


text:
Merging Develop into Master 9.19.2019 - fixing typos, adding email testing video, Apple domain auth release note

Description of the change:
Reason for the change:
Link to original source:

Closes #

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


text:
Inbound Parse Webhook received in un-structured format.

Issue Summary
I am using nest-js as a framework for my messaging service. This service receives the webhook from Inbound Parse API. Initially, the req.body field was an empty object. I had to update the library to node   app.use(express.urlencoded({     extended: true,     type: ["form-data", "multipart/form-data"]   }));. Once I did that, I was able to have the req.body populated. However, what was populated was multiform-data that was not in a structured format.
I used the multer library and also multiparty library. However, both those libraries internally use busboy which requires a form with fields that it operates on. Since the data I received in multiform data, I couldn't use those libraries. When I did use them, the req.body resulted being an empty object.
Here is my controller that receives the webhook:

    @Post('/sendgrid_webhook')
    sendGridSignIn(@Body() defaultPayload: any, @Req() request): Promise<any> {
       console.log("webhook data: ", req.body);
        return this.messageService.handleSendGridData(request.body);
    }

Steps to Reproduce

Create a simple nest-js controller
Add the code to handle multiform data
Print the object in the controller.

Code Snippet
Here is the data received from the webhook. Please let me know where I am going wrong.
request body:  {

  '--xYzZY\r\nContent-Disposition: form-data; name': '"dkim"\r\n' +

    '\r\n' +

    '{@hicleo.com : pass}\r\n' +

    '--xYzZY\r\n' +

    'Content-Disposition: form-data; name="email"\r\n' +

    '\r\n' +

    'Received: by mx0054p1mdw1.sendgrid.net with SMTP id RwQ04OE7TG Fri, 01 May 2020 01:47:06  0000 (UTC)\n' +

    'Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) by mx0054p1mdw1.sendgrid.net (Postfix) with ESMTPS id D86616E2057 for <shweta@parse.hicleo.com>; Fri,  1 May 2020 01:47:01  0000 (UTC)\n' +

    'Received: by mail-lf1-f47.google.com with SMTP id u10so2884392lfo.8 for <shweta@parse.hicleo.com>; Thu, 30 Apr 2020 18:47:01 -0700 (PDT)\n' +

    'DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hicleo.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=ZezKyBf56alsfrYzX/NC2BqNBfD85a7Ra8k33JEoXmc=; b=VgAXJKZUI3Q3mgf0hRYsVipvg b6DAItghUagDsKYYyAOiuda7abWmSNHxvLb HJ4p KrdzphMZaCZBm4ME8Z0xtuSxEYO88BniBU9tUFvYq2GWMrnY0iH5ZXfVAVAOxKTWN9Oj iUbY1N85tx0Gkc2K08uNVXRwMlD9KFrP3sOfJIyB6g7E7BnRzPhEnxHePVPjQyklosOK 0h0Xy9MBLWEJdcgXoCybwfTpMRu8NW/EzOUdn2DESvo1wWj9DyqE25TxdDU3Kn 6XHTj R9liecmx/LOs3Mr5W8r5Cfk8lwjlR3/DWOsS7 y1axbzNNS E0PjEAmwOVemszj1coEM stRA==\n' +

    'X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZezKyBf56alsfrYzX/NC2BqNBfD85a7Ra8k33JEoXmc=; b=Jh4Yz5dRFwppveiGpJuJ9Bd/1nqr1ehCJzV5 jDnQKQTZJzI6HjFpM M6pQ4OwaGHM VQGDAImSr6/9atdnP1uAR4J1XlZtaPJGJjUI3/fXYzqkvDNpd/b0MBj 1KGaEVYv1noJ /6WHNb2KdMOd6tr45MtUOZQjot9Sivz0eug/rqLiNWi9FYaRnt6k3uFTg8P9QEfYA2sr H8owl/vFB/KqZmyfLUpS3hvEsLVK7JIHWo c7WpmPPoeGCEBGPZILewdF1b7Pwmg0nmG JzvmV2UUNGFLyapt0/Fm m/rHwpRaIaKOxbE2rORZ JrGQ85nsOhPhjNnHJ4/xhJYbCf /qdA==\n' +

    'X-Gm-Message-State: AGi0PuYHUQwHgaBwZppYBuSkep Yo1vELSfhccrP3/JfDrKqsxosNF J ZQ8jqnP957kvFqGFdYB3AeVO8yap04zddR/ULCb1wajyPGixtg==\n' +

    'X-Google-Smtp-Source: APiQypItLHC4bf86/zvU9vIZ1mVpAXqKIxNI0c56QQ/k8pYY0Hwn4dr80u/3rGHXkxOsuhJ/Gh67/9tYZRntI1gm0TA=\n' +

    'X-Received: by 2002:a19:2389:: with SMTP id j131mr1020554lfj.116.1588297620726; Thu, 30 Apr 2020 18:47:00 -0700 (PDT)\n' +

    'MIME-Version: 1.0\n' +

    'From: Shweta Bhandare <shweta@hicleo.com>\n' +

    'Date: Thu, 30 Apr 2020 19:46:49 -0600\n' +

    'Message-ID: <CAEujyM2Xf1UC7sHa0_EcLsCpBK5uHfd1kMNh EfteH22HimHFg@mail.gmail.com>\n' +

    'Subject: hello\n' +

    'To: shweta@parse.hicleo.com\n' +

    'Content-Type: multipart/alternative; boundary="0000000000007b3eb105a48c5bb7"\n' +

    '\n' +

    '--0000000000007b3eb105a48c5bb7\n' +

    'Content-Type: text/plain; charset="UTF-8"\n' +

    '\n' +

    'world\n' +

    '\n' +

    '--0000000000007b3eb105a48c5bb7\n' +

    'Content-Type: text/html; charset="UTF-8"\n' +

    '\n' +

    '
world
\n' +

    '\n' +

    '--0000000000007b3eb105a48c5bb7--\n' +

    '\r\n' +

    '--xYzZY\r\n' +

    'Content-Disposition: form-data; name="to"\r\n' +

    '\r\n' +

    'shweta@parse.hicleo.com\r\n' +

    '--xYzZY\r\n' +

    'Content-Disposition: form-data; name="from"\r\n' +

    '\r\n' +

    'Shweta Bhandare <shweta@hicleo.com>\r\n' +

    '--xYzZY\r\n' +

    'Content-Disposition: form-data; name="sender_ip"\r\n' +

    '\r\n' +

    '209.85.167.47\r\n' +

    '--xYzZY\r\n' +

    'Content-Disposition: form-data; name="envelope"\r\n' +

    '\r\n' +

    '{"to":["shweta@parse.hicleo.com"],"from":"shweta@hicleo.com"}\r\n' +

    '--xYzZY\r\n' +

    'Content-Disposition: form-data; name="subject"\r\n' +

    '\r\n' +

    'hello\r\n' +

    '--xYzZY\r\n' +

    'Content-Disposition: form-data; name="charsets"\r\n' +

    '\r\n' +

    '{"to":"UTF-8","subject":"UTF-8","from":"UTF-8"}\r\n' +

    '--xYzZY\r\n' +

    'Content-Disposition: form-data; name="SPF"\r\n' +

    '\r\n' +

    'pass\r\n' +

    '--xYzZY--\r\n'

}

Exception/Log
# paste exception/log here

Technical details:

@sendgrid/inbound-mail-parser@7.0.1
@nestjs/common": "^7.0.0
"@nestjs/core": "^7.0.0",
"@nestjs/platform-express": "^7.0.0",
"@sendgrid/inbound-mail-parser": "^7.0.1",
"@sendgrid/mail": "^7.1.0",

Looks like you're getting the raw email. The inbound parser that's part of this repo uses mailparser to parse raw email content. Example here: https://github.com/sendgrid/sendgrid-nodejs/blob/master/packages/inbound-mail-parser/src/parser.js

It doesn't work using the raw email. I tested it out.
On Mon, May 18, 2020 at 3:20 PM childish-sambino notifications@github.com
wrote:

Looks like you're getting the raw email. The inbound parser that's part of
this repo uses mailparser to parse raw email content. Example here:
https://github.com/sendgrid/sendgrid-nodejs/blob/master/packages/inbound-mail-parser/src/parser.js
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/sendgrid/sendgrid-nodejs/issues/1119#issuecomment-630441270,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2ATHDHQ3RWTG7EKL7FMVLRSGRBXANCNFSM4M2XOI5A
.

--
Shweta Bhandare, PhD | Principal Software Engineer
shweta@hicleo.com
https://hicleo.com/
hicleo.com | Linkedin https://www.linkedin.com/company/hicleo/ | Twitter
https://twitter.com/hi_cleo/ | Instagram
https://www.instagram.com/hicleo.co/ | Facebook
https://www.facebook.com/hicleolabs
--
This message may contain confidential, proprietary, or protected
information.  If you are not the intended recipient, you may not review,
copy, or distribute this message. If you received this message in error,
please notify the sender by reply email and delete this message.

Looks like you were able to figure it out: https://github.com/sendgrid/sendgrid-nodejs/issues/482#issuecomment-633583059

authors: childish-sambino shwetabhandare

repo: sendgrid/sendgrid-nodejs


text:
Remove TLS using Send Grid API V3

How to remove TLS using send apiv3, i don't need it cause of email not reaching to the recipients.

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

authors: thinkingserious waqaransari

repo: sendgrid/sendgrid-php


text:
Visually Missing Snake After Game Restart

Seems the game doesn't render all the snakes after a game is restarted.
Steps to reproduce:

Add 3 snakes to the game (may work with 2, or more than 3),
Start game,
Pause game,
Restart game.

I was able to reproduce it consistently.
Here's a gif reproduction:

Hey thanks for the bug report! We have this in our backlog already and because it’s not a breaking issue we’re hoping to get to it this week before the event.
Cheers 🍻

@brandon-swu Totally low priority, just adding another video in case there's time:

@SynthesizedSoul we've since pushed out a new docker image that addresses this, let us know if this is still an issue.

authors: SynthesizedSoul brandon-swu

repo: sendwithus/battlesnake-server


text:
Fixed spelling in README.md

New Seneca user here. I'm about to deploy to production in an enterprise setting over the next few days here. I'm really fired up about the potential, both what Seneca can offer me as a product/devops manager, as well as that of the project and vision as a whole.
Hopefully I can offer a little help here and there in order to polish the project's presentation to provide a more professional and legitimized taste to potential new users poking around. Overall your community should be very proud of what you guys have been able to build!
Cheers!

thank you @jaamison

authors: jaamison mihaidma

repo: senecajs/seneca-mesh


text:
Misc doc tweaks and fixes

Thanks for publishing this nice bundle!
I propose in this PR some tweaks in the docs for your consideration. Thanks.

Some tweaks... that improves a lot the whole file!
Thank you very much @javiereguiluz!

authors: javiereguiluz smnandre

repo: sensiolabs/minify-bundle


text:
Add ignore_failure attribute to service resource definitions

Fixes issue #296.
Additionally, I've done the work to make the serverspec tests compatible with the serverspec 2 release earlier this month.

Closing this PR and related issue as sensu-client no longer fails to start when transport is unavailable.

authors: boldfield cwjohnston

repo: sensu/sensu-chef


text:
Add a mandatory -FileName Parameter to New-SM365Report

Output goes to stout - a Filename makes more sense

solved with 909ac3b9ef608d8295a778a5493583bc41a7c0fc


text:
Added .dockerignore. Removed layer at docker build

Signed-off-by: AndreasAugustin andy.augustin@t-online.de

The project is dead. Closing the PR.

repo: sequenceiq/docker-spark


text:
Some emojis is missing

Flag is short for flag

Not enough information, but probably related to these discussions: #78, #71, #72, #133.

It's not an image, it's a shorthand

https://hub.textile.io/ipfs/bafkreigaw64hstmqomgqn2rot2h6zl6uxlzipdsiqbaa6wyh2yp2vutdym

I do not understand what this issue is about. If you are still having the problem, please open a new issue and provide more details about it.

authors: KingJardon serebrov

repo: serebrov/emoji-mart-vue


text:
Library: Add compatibility for legacy Tokio 0.2

Adds support to the library for tokio 0.2 backward-compatibility. This should hopefully benefit users blocked on other libraries, and prevent lavalink-rs from being blocked on this feature.
These can be reached using, e.g., gateway-tokio-02, driver-tokio-02, serenity-rustls-tokio-02, and serenity-native-tokio-02 features.
Naturally, this requires some jiggering about with features and the underlying CI, which has been taken care of. Twilight can't be handled in this way, as their last tokio 0.2 version uses the deprecated Discord Gateway v6.

Double checked that this was working with serenity, seems good to go.

repo: serenity-rs/songbird

license: ISC


text:
Data Transfer: Ability to save settings as default for Project

Currently it appears that settings presented in the Data Transfer dialogs are saved to the Workspace not the individual projects.
It would be great if there was an option to save the settings for the Project using something similar to how you can save settings for the datasource by ticking the "Datasource ... settings" box in the Connection properties dialog.
Alternatively could variable substitution be added to the Directory field, much like the File name pattern field to allow for things like ${PROJECT_LOC}?
I can't seem to attach any files (jpg,png or zip) :(

Do you mean project or connection specific options?
BTW you can attach files/screenshots using drag-n-drop in the comment area.

There isn't any activity about this ticket very long time. It will be closed. However, if you think that it is actual just let us know.

authors: conceptrat serge-rider tati-kru

repo: serge-rider/dbeaver


text:
Add current item as argument in remove events

Hi,
would be nice to have the item which is removed (clicked) available in the event handler so additional tasks can be done like removing dependent values from relatives and so on.
$('input.flexdatalist').on('after:flexdatalist.remove', function(event, **item**) {     console.log(item.value); // });

Yes, totally I need this.!

authors: GabyMilla nhaberl

repo: sergiodlopes/jquery-flexdatalist


text:
🛑 sg2go.ipservers.xyz is down

In f59bb7a, sg2go.ipservers.xyz (sg2go.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg2go.ipservers.xyz is back up in 5566cb5.

repo: serversshnet/uptime


text:
🛑 idx1vpn.jagoanssh.com is down

In ec0cecb, idx1vpn.jagoanssh.com (idx1vpn.jagoanssh.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: idx1vpn.jagoanssh.com is back up in 80f123e.


text:
🛑 id2-7.ipservers.xyz is down

In d361d76, id2-7.ipservers.xyz (id2-7.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id2-7.ipservers.xyz is back up in 24e0cef after 1 day, 23 hours, 55 minutes.


text:
🛑 Gloucester Repairs is down

In 4ef9bbd, Gloucester Repairs (https://gloucesterrepairs.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Gloucester Repairs is back up in 7d830c2.

repo: servicesite/upptime


text:
🛑 Birmingham Repairs is down

In 7ea627f, Birmingham Repairs (https://birminghamrepairs.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Birmingham Repairs is back up in 317f220 after 2 days, 6 hours, 46 minutes.


text:
LTR Age output

Hi Evan
I was wondering if you could explain me the LTR age output.
How is it calculate the age in each LTR family? The summary file have these columns:
Superfamily	Family	Family_size	ElementID	Divergence	Age	Ts:Tv
Copia	RLC_family0	43	RLC_family0_exemplar	0.0471	2355000	3.2242
This particular family have 43 elements (family_size), however there is only one exemplar (ElementID) element. What is the Age value? Is the age from one element? Or the average for all 43 elements in that family? How is it calculate?
Best
Diego

The exemplar is the representative of the family, and by default the age command will try to calculate the age of only the exemplars for efficiency.
However, if you run the command with --all it will calculate the age of all the elements that were found.
The age value is in years, so in this case, the age of the element is estimated to be 2,355,000 years ol (or since insertion). Note that the age is dependent on the substitution rate, so you will get the most accurate results by researching what that value is for your species and also passing that as an option to the 'age' command.

Hi Evan, thanks for your reply.
Could you point me the name of the file in which all the elements have the age?
I did ran Tephra --all.
And additionally, what do you mean by adding the value of my species? Is this option valid for the --all option?
Thanks!

Yes, there are a number of options to the age command, and you can see these by executing tephra age command with no arguments like so:
$ tephra age

[ERROR]: The '--genome' argument was not given or the file does not exist. Check input.

Name:
     tephra age - Calculate the age distribution of LTR or TIR transposons.

Description:
     This subcommand takes a GFF3 of LTR or TIR transposons as input from Tephra and calculates
     the insertion time and age of each element using a substitution rate and model of evolution.

  USAGE: tephra age [-h] [-m]
      -m --man      :   Get the manual entry for a command.
      -h --help     :   Print the command usage.

  Required:
      -g|genome     :   The genome sequences in FASTA format used to search for LTRs/TIRs.
      -f|gff        :   The GFF3 file of LTRs/TIRs in <--genome>.
      -o|outfile    :   The output file containing the age of each element.
      -i|indir      :   The input directory of superfamily exemplars.
      --type        :   Type of transposon to calculate age for (must be 'ltr' or 'tir').

  Options:
      -i|indir      :   The input directory of superfamily exemplars.
      -r|subs_rate  :   The nucleotide substitution rate to use (Default: 1e-8).
      -t|threads    :   The number of threads to use for clustering coding domains (Default: 1).
      -c|clean      :   Clean up all the intermediate files from PAML and clustalw (Default: yes).
      -a|all        :   Calculate age of all LTRs/TIRs in <gff> instead of exemplars in <indir>.

So, to change the substitution rate and calculate the age of all elements with 12 threads, you could do something like:
tephra age -f tephra_ltrs_classified.gff3 -g genome.fas -o tehpra_ltrs_classified_ages.tsv -r 1e-10 -t 12 ---type ltr -all

Thanks evan!
I'll run it as you suggest me.
My input file, however is named tephra_ltrs_trims_classified.gff3, with the trims as well, but I assume that is the same file.

Hi Evan,
I ran as you told me:
tephra age -f potato_dm_v404_all_pm_un_tephra_ltrs_trims_classified.gff3 -g potato_dm_v404_all_pm_un.fasta  -o tehpra_ltrs_classified_ages.tsv -r 1e-9 -t 5 --type ltr --all
Indeed, all the elements have their own age.
Nevertheless, I have a few questions:
Is the age file with only the examplar age  include singletons? Are the singletons complete LTRs but with only one member in the family? Should I include them?
I'm asking you this, because now I have more than 27,000 elements with their own age (including singletons, TRIMs and LARDs) and before it seems to be only 10,400 elements (accordingo to the file named: potato_dm_v404_all_pm_un_tephra_ltrs_trims_classified_family-level_domain_org.tsv.
And also I found something strange in the age per se. The first run, had an age range between 0- 10 millions years approx. and this run have a range between 0 - 100 millions! I saw the numbers and it appears to have an extra 0 in all the numbers. For instance:

First run:
Copia	RLC_family0	43	RLC_family0_exemplar	0.0471	2355000	3.2242
Second run:
RLC_family0_LTR_retrotransposon11004_chr06_41085231_41090619	0.0471	23550000	3.2242

Could be this an error?
Best
Diego

Is the age file with only the examplar age include singletons?

No, the exemplars are from multi-copy families, so they do not include singletons.

Are the singletons complete LTRs but with only one member in the family? Should I include them?

Yes, that's right. The singletons are single-copy elements not belonging to any family. I would include all the elements if possible because this will give you a broader view of the age distribution. This is not the default because it can be time-consuming to calculate for hundreds of thousands of elements.
Concerning the difference in ages, I would expect differences with a different sample of elements. Though, the confusion about the variation is puzzling because I'm not sure this is the same element. Could you share the age file, and also the classified LTR headers?
You can create that list like so:
grep ">" tephra_classified_ltrs.fasta | sed 's/>//' > tephra_classified_ltrs_headers.txt

Hi Evan, thanks for the reply
I think I know what was wrong. In the first run the substitution rate was default (1e-8), and in the second one (running only tephra age) I set it as 1e-9. can this difference be responsible for the extra 0?

Hi Evan, thanks for the reply
I think I know what was wrong. In the first run the substitution rate was default (1e-8), and in the second one (running only tephra age) I set it as 1e-9. can this difference be responsible for the extra 0?

Yes! That is the reason for the difference, so it's not an error.

authors: DiegoZvallo sestaton

repo: sestaton/tephra


text:
Just a couple suggestions and some typos on the start.ipynb

You might want to point out that the * indicates processing and a number displays once the cell has completed execution.
For step one you might want to clarify that after I click launch I need to click import on the notebook to get to the start.ipynb notebook.
a.	Example: "Click the Launch button above. In the new page that opens click the “Import” button to import the notebook."
Typo:  Without data we really can't do anythin with machine learning
a. Should be anything
Typo:  A couple of things that ight seem strange when you print them out:
a. Should be might
Typo: This is another hyperparameter that needs to be chose
a. Should be chosen
Typo: way as befor and printing them
a. Should be before

Thanks for the help!

authors: cassieview sethjuarez

repo: sethjuarez/pytorchintro


text:
Chef::Config[:client_key] being set to nil, breaks chef-client recipe

We ran into an issue when running ChefSpec against our base cookbook that includes running the chef-client cookbook.
chef-client::delete_validation runs File.exists?(Chef::Config[:client_key]) to check for a client key. But since it is being set to nil inside of ChefSpec::Runner, it fails with the following error:
Failure/Error: ChefSpec::Runner.new(platform: platform, version: version, log_level: :error).converge(described_recipe)
     TypeError:
       can't convert nil into String
     # /var/folders/7m/p10c4zdx7v16x1_czkg80kw00000gp/T/d20140228-834-1s0yd2s/chef-client/recipes/delete_validation.rb:28:in `exists?'
     # /var/folders/7m/p10c4zdx7v16x1_czkg80kw00000gp/T/d20140228-834-1s0yd2s/chef-client/recipes/delete_validation.rb:28:in `block (2 levels) in from_file'
     # ./spec/default_spec.rb:8:in `block (5 levels) in <top (required)>'
     # ./spec/default_spec.rb:41:in `block (5 levels) in <top (required)>'

I found issue #237 that mentions this is being done on purpose to keep :search from breaking.
Stubbing out include_recipe('chef-client::delete_validation') to return true does allow ChefSpec to run, but then expect(chef_run).to include_recipe('chef-client::delete_validation') fails due to the recipe not showing up in the run_list (Separate bug?).
Failure/Error: expect(chef_run).to include_recipe('chef-client::delete_validation')
       expected ["base::chef-client", "chef-client::service", "chef-client::upstart_service", "chef-client::config"] to include "chef-client::delete_validation"
     # ./spec/chef-client_spec.rb:23:in `block (5 levels) in <top (required)>'

This can reproduced simply by adding include_recipe chef-client::delete_validation to a cookbook.

I'm having a similar issue.  Was this ever solved?

For people who (like me) landed here from Google, here's how I fixed it on my setup:
  let(:chef_run) do
    runner = ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '14.04') do
      Chef::Config[:client_key] = "/etc/chef/client.pem"
    end
    runner.converge described_recipe
  end

authors: gh2k jmauntel smedefind

repo: sethvargo/chefspec


text:
Second container which pulls vault image goes in CrashLoopBackOff

@sethvargo
So there are 2 containers which runs inside one pod, however image of vault-init container gets pulled successfully and get the container running, however there seems to be a problem with the second (vault) image. I even changed the vault image from (1.0.2) in your master k8s/vault.yaml to 1.2.2.(in my local), however wasn't fruitful. Both of the images tags aren't working(1.0.2, and 1.2.2). Container keeps on restarting. No logs can be seen as such. Please help us out. Thanks in advance.
$ kubectl get pods

NAME        READY      STATUS   RESTARTS   AGE
vault-0        1/2            Error             5          3m58s

$ kubectl describe pod vault-0

Successfully pulled image "registry.hub.docker.com/library/vault:1.2.2"
Created container
Started container
Back-off restarting failed container

PS: We are running everything inside Google cloud shell, and have been following everything presented in this link:
https://codelabs.developers.google.com/codelabs/vault-on-gke/index.html?index=..%2F..cloud#0
Attached is the screenshot of error for better understanding:

Modified(new) vault.yaml:

Hi @pravargauba - I ran through the codelab, updated it to the latest versions, and verified it works end-to-end. Please refresh the codelab and restart from the beginning. Thanks!

authors: pravargauba sethvargo

repo: sethvargo/vault-kubernetes-workshop


text:
Use of "sign" in FFTS used by MPM

According to comments in ffts.h, the second "sign" argument to ffts_init_1d() should be -1 for forward (real to complex) and +1 for backward (complex to real), however the value in mpm.c is equal to 0:
auto fft_forward = ffts_init_1d(N2, false);
auto fft_backward = ffts_init_1d(N2, false);
How can this work correctly with a value of false=0?  Is it documented somewhere how this is supposed to work?

I got the same results as you - if I changed my code (which doesn't feel like it makes sense), the output wasn't too good  ¯_(ツ)_/¯
I could look into it further some day.

With the new MPM changes, this is no longer an issue: https://github.com/sevagh/pitch-detection/issues/35

authors: doffen sevagh

repo: sevagh/pitch-detection


text:
Fixes #1 - Inconsistent Sidebar Styles

This fixes issue # 1 - Inconsistent Sidebar Styles.
Problem: The styling for Archives sidebar section was different from the other sidebar styling in the page. This was due to incorrect naming of the class of the h3 and div sections of the Archives sidebar.
Solution: The h3 class "sidebar_title" was corrected to "sidebar-title", and the div class "sidebar_body" was corrected to "sidebar-body". This matches the classes of the other sidebars which allows the styling to also match.

remove space between hash tag and issue number to correctly reference issue.

authors: nathanallen rccacho


text:
Changes to fix ios issues and add CI for ios platforms

Remove keychain when on ios platform, this requires the latest master from https://github.com/sfackler/rust-security-framework.
Uses https://github.com/SSheldon/rust-test-ios to build and run tests on ios simulator.

Seems some upstream components have stopped building on ios.

The incoming changes are quite significant and I have no way of testing (or even building) them locally. There might be a lot of "commit and hope" changes while I figure it out.

All tests are passed.

Thanks!

authors: azdlowry sfackler

repo: sfackler/rust-native-tls


text:
How does do_handshake().await be waked?

I found cx pass into poll_do_handshake
https://github.com/sfackler/tokio-openssl/blob/df062b7d2d0b548090d2ec4ec4fa4ccb530a61fc/src/lib.rs#L147
but s.do_handshake() don't pass cx down.
pub fn poll_do_handshake(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Result<(), ssl::Error>> {
        // we lose cx when call s.do_handshake
        self.with_context(cx, |s| cvt_ossl(s.do_handshake()))
    }

If cx don't reregister into tokio scheduler, do_handshake().await will never give us Poll::Ready
How does tokio-openssl handle this problem? I don't know why we need with_context
Thank you :)

We need with_context because it is the thing that passes cx down. https://github.com/sfackler/tokio-openssl/blob/master/src/lib.rs#L210

We need with_context because it is the thing that passes cx down. https://github.com/sfackler/tokio-openssl/blob/master/src/lib.rs#L210

I can't get it. how with_context passes cx down. I can only see
// put at .context
this.0.get_mut().context = ctx as *mut _ as usize;
let r = f(&mut this.0);
// reset context to zero
this.0.get_mut().context = 0;

I have read all codes, I don't see where cx be passed down

The context is stored in the context field there, and retrieved here https://github.com/sfackler/tokio-openssl/blob/master/src/lib.rs#L40

The context is stored in the context field there, and retrieved here https://github.com/sfackler/tokio-openssl/blob/master/src/lib.rs#L40

only read, write have a call to parts. not async fn do_handshake. how do_handshake passes cx down?

do_handshake will call read and write.

do_handshake will call read and write.

where do_handshake call read/write? I can only see do_handshake directly call into SSL_do_handshake, no read/write called
from
https://github.com/sfackler/tokio-openssl/blob/df062b7d2d0b548090d2ec4ec4fa4ccb530a61fc/src/lib.rs#L142
call into
https://github.com/sfackler/rust-openssl/blob/e43eb58540b27a17f8029c397e3edc12bbc9011f/openssl/src/ssl/mod.rs#L3325

SSL_do_handshake calls read and write.

authors: iamwwc sfackler

repo: sfackler/tokio-openssl


text:
How to donate to the project?

@sferik your work looks great, any way we can offer you a beer or something?

I setup a Pledgie campaign a few years ago for people or companies who wanted to donate.
Thank you for your encouraging words and support!

authors: giacecco sferik

repo: sferik/t


text:
Spec text?

https://github.com/sffc/proposal-unified-intl-numberformat/blob/master/spec.emu doesn't seem to be your spec :-) where can i review this text?

nvm, i found it here: https://github.com/sffc/proposal-unified-intl-numberformat/blob/master/numberformat_proposed.html
however it'd be ideal to see it in ecmarkup, and rendered here: https://sffc.github.io/proposal-unified-intl-numberformat/

I saved the exported HTML in the repository:
https://github.com/sffc/proposal-unified-intl-numberformat/blob/master/numberformat_proposed_out.html
https://github.com/sffc/proposal-unified-intl-numberformat/blob/master/locales-currencies-tz_out.html
I'll try to figure out the github.io auto-generation.

For github.io auto-generation, you could copy what I have at some of my repositories, e.g., see deploy.sh and .travis.yml in https://github.com/tc39/proposal-intl-list-format . To generate the keys, I followed @domenic's instructions at https://gist.github.com/domenic/ec8b0fc8ab45f39403dd

Yep, I think I figured it out.
https://sffc.github.io/proposal-unified-intl-numberformat/

authors: littledan ljharb sffc

repo: sffc/proposal-unified-intl-numberformat


text:
add secondary source selection and tapering for WFS auralisation

Secondary source selection and tapering had been missing for WFS auralisation and are now added in ssr_brs_wfs().

Oh, that's interesting. I guess I have to check the scripts from my last experiments.

authors: VeraE hagenw

repo: sfstoolbox/sfs-matlab


text:
Render page without saving a file

Is there a way to render a page without saving a file?

To answer my own question yes there is:
page.renderBase64(format, callback) gets you a base64 string without saving anything to the disk.

repo: sgentle/phantomjs-node


text:
Questions Regarding sglang vs vllm and Memory Management

Checklist

[X] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.
[ ] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
[ ] 4. If the issue you raised is not a bug but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
[ ] 5. Please use English, otherwise it will be closed.

Describe the bug
Hi, I have a few questions regarding the sglang framework:

Relationship with vllm: Is sglang based on vllm? If so, what are the key differences between the two?

Multi-GPU Support: For multi-GPU setups, are you using Ray or another framework for managing tensors?

KV Profile Cache Differences: What are the differences between the KV profile cache in sglang and the one in vllm? Specifically, I’m curious about GPU memory utilization.

For example, on VLLM with a 24GB GPU, I can set memory utilization to 0.9 or 0.95 for the llama3-8b model (which is 15.6GB) when loading it into memory.

However, I encountered an "out of memory" error when I set the memory fraction in sglang to 0.9. I had to lower it to 0.7 or 0.8 to avoid this issue. Can you clarify why this happens?

Thank you!
Reproduction

Environment
sglang: 0.3.3.post1

Checklist

[x]  1. I have searched related issues but cannot get the expected help.
[ ]  2. The bug has not been fixed in the latest version.
[ ]  3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
[ ]  4. If the issue you raised is not a bug but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
[ ]  5. Please use English, otherwise it will be closed.

Describe the bug
Hi, I have a few questions regarding the sglang framework:

Relationship with vllm: Is sglang based on vllm? If so, what are the key differences between the two?
Multi-GPU Support: For multi-GPU setups, are you using Ray or another framework for managing tensors?
KV Profile Cache Differences: What are the differences between the KV profile cache in sglang and the one in vllm? Specifically, I’m curious about GPU memory utilization.

For example, on VLLM with a 24GB GPU, I can set memory utilization to 0.9 or 0.95 for the llama3-8b model (which is 15.6GB) when loading it into memory.
However, I encountered an "out of memory" error when I set the memory fraction in sglang to 0.9. I had to lower it to 0.7 or 0.8 to avoid this issue. Can you clarify why this happens?

Thank you!
Reproduction
Environment
sglang: 0.3.3.post1

sglang is an alternative of vllm, but sglang has more prettier benchmark results, that is, higher throughput, lower latency and lower TTFT. Now there is some dependency on vllm about loading models, rope and other things. But in the near future, the dependency will be removed.
Sglang uses its own implementations for multi-node, it's not Ray, it's very convinient, there're samples in the readme.md.
Sglang uses radix tree for kv cache, you can refer to the paper: https://arxiv.org/abs/2312.07104

I think radix-tree cache is more effective than vllm's prefix-cache implementation. By the way, I'm not an expert.

Vllm only uses GPU memory utilization that you set, it means if you set 0.95, it will only use 95% GPU memory.
Sglang set 0.95, it will use 0.95 memory for static state such as model, kv cache, etc. When inference, it will also use rest 0.05 of memory, so if you set GPU memory utilization too big, it may not enough for inference computing.

Thanks @yileld  and @zeng-zc for your responses.
@yileld I don't know why i can't load a model like gemma2-9b on a GPU of 24G with SGLANG even if I tried all possible values of mem_fraction_static, it always get out of memory if I increase it or a negative self.max_total_num_tokens if i decease it.
However, I can load the same model on the 24G GPU with vllm when I use the GPU memory utilization : 0.95

authors: hahmad2008 yileld zeng-zc

repo: sgl-project/sglang


text:
do we need to resize image from the phone camera first?

looking at your demo code.  it looks like you take the picture directly from the phone camera and send it to caffe to predict.  in my case, the image size from my camera on nexus 6 is 4160 x 3120, but the crop size is only specified as 227.
so how does this work?  does caffe automatically resize the image from 4160 x 3120 to something smaller?
if there is no resize, how does the crop of 227 happens?  i assume that's 227 x 227.  is that in the middle of the image?
my concern is that if it's in the middle and there is no resize, then 227 x 227 is a really small part of the entire image of 4160 x 3120.
any comment is much appreciated.
10-28 15:43:55.966  26041-26041/com.sh1r0.caffe_android_demo D/MainActivity﹕ /storage/emulated/0/Pictures/Caffe-Android-Demo/IMG_20151028_154348.jpg
10-28 15:43:55.966  26041-26041/com.sh1r0.caffe_android_demo D/MainActivity﹕ 4160
10-28 15:43:55.966  26041-26041/com.sh1r0.caffe_android_demo D/MainActivity﹕ 3120

transform_param {
    crop_size: 227
    mean_value: 104
    mean_value: 117
    mean_value: 123
    mirror: false
}

just found this.  does that mean all images are resized to 256 x 256 before prediction?  for example, in my case, the phone original image 4160 x 3120 is resized to 256 x 256.  and then it takes a crop in the middle 227 x 227.  and then run the prediction on the 227 x 227 image?
int CaffeMobile::test(string img_path) {
	CHECK(caffe_net != NULL);

	Datum datum;
	CHECK(ReadImageToDatum(img_path, 0, 256, 256, true, &datum));
	const shared_ptr<MemoryDataLayer<float>> memory_data_layer =
		static_pointer_cast<MemoryDataLayer<float>>(
			caffe_net->layer_by_name("data"));
	memory_data_layer->AddDatumVector(vector<Datum>({datum}));

	vector<Blob<float>* > dummy_bottom_vec;
	float loss;
	clock_t t_start = clock();
	const vector<Blob<float>*>& result = caffe_net->Forward(dummy_bottom_vec, &loss);
	clock_t t_end = clock();
	LOG(DEBUG) << "Prediction time: " << 1000.0 * (t_end - t_start) / CLOCKS_PER_SEC << " ms.";

	const float* argmaxs = result[1]->cpu_data();
	for (int i = 0; i < result[1]->num(); i++) {
		for (int j = 0; j < result[1]->height(); j++) {
			LOG(INFO) << " Image: "<< i << " class:"
			          << argmaxs[i*result[1]->height() + j];
		}
	}

	return argmaxs[0];
}

Yes. These questions are more related to the Caffe core rather than this demo app. If you are curious about the underlying implementation, you can refer to Caffe repository.


text:
NER task

@uakarsh @shabie Hello
Thank you for the great work.
Can you give some more insights on NER task?
Thanks and Regards.

@BakingBrains Hi,
Actually, the way I trained DocFormer on RVL-CDIP has some assumptions (you can check out the Kaggle Notebook, where I mentioned the assumptions, and these assumptions were based on the fact that, the GPU memory was limited and the time constraints)
You can check out this line of code, where I load the weights. Ckpt. If that doesn't work, the checkpoint are saved in the version 5 of the kaggle notebook (shared in the examples/docformer_pl/ of cloned repo of docformer)
And for the NER task, in some time I would be uploading the script as well, so stay tuned. And, as soon as I upload it, I would let you know the same
Hope this helps
Regards,
Akarsh

@uakarsh Thank you.
What do you think the number of epochs required to get good output for document classification.
Also, in the paper author has mentioned:
three task heads. We add one linear projection head and
fine-tune all components of the model for all downstream
tasks```

In section 3.2. Are we doing the same thing for document classification as well?
Had this doubt.

Thanks and Regards

Hi,
I think that the good results is a subjective topic (maybe, depends upon your usage of application, i.e how you wish to use this architecture). From my perspective, you can just to tune the hyperparameters and observe the results (I have integrated W&B for visualization of progress), and come to a conclusion
Currently, if you are talking about the 4th Notebook (i.e the Kaggle Notebook), no we are not using the pre-trained weights (I have seperately described the pre-training on MLM), but rather directly training it from scratch
If you want to go with pre-training, here is a simple approach. Pre-train the docformer with MLM (from 3rd notebook in the example), and then use the 4th notebook (and load the specific weights from the checkpoint you saved)
Hope this helps.
Regards,
Akarsh

@uakarsh  Thank you😄

authors: BakingBrains uakarsh

repo: shabie/docformer


text:
Update sbt-sonatype to 3.9.6

Updates org.xerial.sbt:sbt-sonatype from 3.9.5 to 3.9.6.
GitHub Release Notes - Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.xerial.sbt", artifactId = "sbt-sonatype" } ]

labels: sbt-plugin-update, semver-patch

Superseded by #471.

repo: shadaj/slinky


text:
how to e.preventDefault()?

I'm using react-hook-form as mentioned in shadncn-ui docs and the page keeps refreshing everytime I try to submit the form. Is there anyway I can prevent default behavior of the form ?

You can use form.handleSubmit(yourCallbackSubmitFunction)
<Form>
<form onSubmit={form.handleSubmit(onSubmit)}
  <FormField
    control={...}
    name="..."
    render={() => (
      <FormItem>
        <FormLabel />
        <FormControl>
          { /* Your form field */}
        </FormControl>
        <FormDescription />
        <FormMessage />
      </FormItem>
    )}
  />
</form>
</Form>

More info: https://ui.shadcn.com/docs/components/form#build-your-form

I'm using react-hook-form as mentioned in shadncn-ui docs and the page keeps refreshing everytime I try to submit the form. Is there anyway I can prevent default behavior of the form ?

Hey friend, how did you manage to resolve this? i did the exact same thing, copied from the docs but when i'm clicking the button the page refreshes...

You can use form.handleSubmit(yourCallbackSubmitFunction)
<Form>
<form onSubmit={form.handleSubmit(onSubmit)}
  <FormField
    control={...}
    name="..."
    render={() => (
      <FormItem>
        <FormLabel />
        <FormControl>
          { /* Your form field */}
        </FormControl>
        <FormDescription />
        <FormMessage />
      </FormItem>
    )}
  />
</form>
</Form>

More info: https://ui.shadcn.com/docs/components/form#build-your-form

Hey friend, i copied the entire code from the link you provided and it still refreshes the page, didn't understand your fix, would love to know what to do :)

Hi @mortz123
For me it worked fine without having to provide e.preventDefault() because I think handleSubmit from useForm is doing that behind the scene.
Here's my form code:
const formSchema = z.object({
      email: z
        .string({
          required_error: 'Email is required",
        })
        .email({ message: "Email is invalid" }),
      password: z
        .string({
          required_error: "Password is required"
        })
        .min(5, { message: "Password must be at least 5 characters long" })
    });

  const { handleSubmit, control, formState } = useForm({
    resolver: zodResolver(formSchema),
  });

// and in the form element

<form
    className="hawa-flex hawa-flex-col hawa-gap-4"
    onSubmit={handleSubmit((e) => {
        return props.handleLogin(e);
    })}
>
// the form content here
</form>

"use client";
import { CardWrapper } from "./card-wrapper";
import * as z from "zod";
import { LoginSchema } from "../../../schema";
import { Input } from "@/components/ui/input";
import {
  Form,
  FormControl,
  FormDescription,
  FormField,
  FormItem,
  FormLabel,
  FormMessage,
  useFormField,
} from "@/components/ui/form";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@/components/ui/button";
import { ChangeEvent } from "react";

export const LoginForm = () => {
  const form = useForm<z.infer<typeof LoginSchema>>({
    resolver: zodResolver(LoginSchema),
    defaultValues: {
      email: "",
      password: "",
    },
    mode: "onChange",
  });
  const onSubmit = (values: z.infer<typeof LoginSchema>) => {

    console.log(values);
  };
  return (
    <CardWrapper
      headerLabel="Welcome back"
      backButtonLabel="Don't have an account?"
      backButtonHref="/auth/register"
      showSocial
    >
      <Form {...form}>
        <form
          onSubmit={form.handleSubmit(onSubmit)}
          className="space-y-6"
        >

            <FormField
              control={form.control}
              name="email"
              render={({ field }) => (
                <FormItem>
                  <FormLabel>Email</FormLabel>
                  <FormControl>
                    <Input
                      {...field} // this is the main solution
                      // disabled={isPending}
                      placeholder="john.doe@example.com"
                      type="email"
                    />
                  </FormControl>
                  <FormMessage />
                </FormItem>
              )}
            />
            <FormField
              control={form.control}
              name="password"
              render={({ field }) => (
                <FormItem>
                  <FormLabel>Password</FormLabel>
                  <FormControl>
                    <Input
                      {...field}
                      // disabled={isPending}
                      placeholder="******"
                      type="password"
                    />
                  </FormControl>
                  <FormMessage />
                </FormItem>
              )}
            />

          <Button type="submit" className="w-full">
            Login
          </Button>
        </form>
      </Form>
    </CardWrapper>
  );
};

You have to use the spread operator to get props from react-hook-form only in this way so that the page doesn't refresh as you expect

"use client";
import { CardWrapper } from "./card-wrapper";
import * as z from "zod";
import { LoginSchema } from "../../../schema";
import { Input } from "@/components/ui/input";
import {
  Form,
  FormControl,
  FormDescription,
  FormField,
  FormItem,
  FormLabel,
  FormMessage,
  useFormField,
} from "@/components/ui/form";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@/components/ui/button";
import { ChangeEvent } from "react";

export const LoginForm = () => {
  const form = useForm<z.infer<typeof LoginSchema>>({
    resolver: zodResolver(LoginSchema),
    defaultValues: {
      email: "",
      password: "",
    },
    mode: "onChange",
  });
  const onSubmit = (values: z.infer<typeof LoginSchema>) => {

    console.log(values);
  };
  return (
    <CardWrapper
      headerLabel="Welcome back"
      backButtonLabel="Don't have an account?"
      backButtonHref="/auth/register"
      showSocial
    >
      <Form {...form}>
// use this spread operator to prevent unexpected page refreshing issue then implement at onSubmit()
        <form
          onSubmit={form.handleSubmit(onSubmit)}
          className="space-y-6"
        >

            <FormField
              control={form.control}
              name="email"
              render={({ field }) => (
                <FormItem>
                  <FormLabel>Email</FormLabel>
                  <FormControl>
                    <Input
                      {...field}
                      // disabled={isPending}
                      placeholder="john.doe@example.com"
                      type="email"
                    />
                  </FormControl>
                  <FormMessage />
                </FormItem>
              )}
            />
            <FormField
              control={form.control}
              name="password"
              render={({ field }) => (
                <FormItem>
                  <FormLabel>Password</FormLabel>
                  <FormControl>
                    <Input
                      {...field}
                      // disabled={isPending}
                      placeholder="******"
                      type="password"
                    />
                  </FormControl>
                  <FormMessage />
                </FormItem>
              )}
            />

          <Button type="submit" className="w-full">
            Login
          </Button>
        </form>
      </Form>
    </CardWrapper>
  );
};

You have to use the spread operator to get props from react-hook-form only in this way so that the page doesn't refresh as you expect

repo: shadcn-ui/ui