How to configure a Relational Database Server on AWS #2662

Article checklist
This fixes #2662
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

@Bamimore-Tomi
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. 🚀
Thank you.

plagiarism check completed - all good
2120420-845f9c8f7e5feb83dd5f-1626806921679.pdf

Hi @WanjaMIKE
Seems like nothing is happening on my PR.
@hectorkambow

I am working on the PR. Don't worry. Thanks

@Bamimore-Tomi Thank you for your understanding while our Peer reviewer team works diligently to go through our EngEd articles.

@Bamimore-Tomi your PR has over 70 images and not all are included in the article. Please check and delete irrelevant ones. You also need to add a hero image.
You should use the full link to sight an image. Kinda like this:
![O-1-graph](/engineering-education/how-to-configure-a-relational-database-server-on-aws/o-1.png)

HI @WanjaMIKE
I think I have made all the revisions you asked for.

@Bamimore-Tomi you cited 22 images but the article folder has 21 images. Could you check to ensure that everything is covered. Thanks

Hi @WanjaMIKE
I have committed the missing image. Thanks.

![Add here a name that explains the image](/engineering-education/configuring-a-relational-database-server-on-aws/12oqesy3zgigzg4pf91f.png)
Like
![configuring rds](/engineering-education/configuring-a-relational-database-server-on-aws/12oqesy3zgigzg4pf91f.png)

Hi @WanjaMIKE
I have made the requested updates.

@Bamimore-Tomi Almost done, just a few details remaining. Could you rename all your images to appropriate names. For instance, database.png instead of eok26fqxrcha19wihv3j.png. Do not forget to change the image links.
Also
Explain add some statements to explain the code in the section below.
### Creating a database table

Thanks

Hi @WanjaMIKE
I have made the requested updates.

@Bamimore-Tomi Note that you need to add an author's folder and push it alongside this PR. Check what other contributors have done in the content/authors folder on your local repository. Thanks

@WanjaMIKE
I have done that previously.

@WanjaMIKE
I have done that previously.

What names did you use @Bamimore-Tomi

@WanjaMIKE
https://github.com/Bamimore-Tomi/engineering-education/tree/master/content/authors/oluwatomisin-bamimore
Oluwatomisin Bamimore

Hi @Bamimore-Tomi
This is a really informative article and quite intuitive. Keep up the amazing job.
cc: @WanjaMIKE Great job on the review.

Hi @WanjaMIKE  @LinusMuema  @hectorkambow
Thanks for merging my article. I just checked the https://www.section.io/engineering-education/ website. I can't see the merged article there. Please, is there any problem?

@Bamimore-Tomi I think there is an issue but not on your part. Don't worry it will be resolved soon. cc @LinusMuema

Sorry about that @Bamimore-Tomi
I'll check on your issue ASAP


no-schema qualifiers

We shall drop the schema qualifiers on the top of the documents,
as they are not really enforced and we don't really have the bandwidth to enforce them.
schema: apigear.module/1.0
name: tb.enum
version: "1.0.0"

will become
name: tb.enum
version: "1.0.0"

I expect for most customers the schema identifiers are more a unknown thing. If we could replace these later with a $id (see https://json-schema.org/understanding-json-schema/basics#declaring-a-unique-identifier) and a ref to the used json-schema (see https://json-schema.org/understanding-json-schema/basics#declaring-a-json-schema).
$schema: https://json-schema.org/draft/2020-12/schema
$id: http://apigear.io/schemas/v1/module.json
name: tb.enum
version: "1.0.0"

Make them optional

The qualifiers should be optional and the if missing the latest should be assumed


Issue #17 Use "request" data for default app_url

Merged via https://github.com/ruby-grape/grape-swagger-rails/commit/b51bf27e483a6483a9b0ba44c53279504308e235.


[HELP] - How I can generate config.bin ?

Hello everyone
Can someone help me with creating a backup/config file,
I have a username and password but with limit access (I can't generate config/backup file)

Not enough information, closing stale issue.


README ends prematurely(?)

The README has this text on the bottom:

miette provides two facilities for supplying help text for your errors:

And then nothing follows.

Wait this is really weird. Sorry, I didn't notice this issue before, but this should be fixed now. There was a lone missing ! lol.


Prettier with editorconfig

@pudgereyem, thanks again for #37.  I wanted to check up on this...   for every file now we get this:
$ yarn prettier -c .
yarn run v1.22.10
$ /home/dragon/www/npm/node-yahoo-finance2/node_modules/.bin/prettier -c .

Checking formatting...
[warn] Ignored unknown option { editorconfig: true }.
[warn] Ignored unknown option { editorconfig: true }.
[warn] Ignored unknown option { editorconfig: true }.
[warn] Ignored unknown option { editorconfig: true }.

I did some looking up a while back (but then got distracted so don't have the links anymore), and editorconfig: true is not a prettierrc option, it's an option when using the prettier API from another package.
I'm happy to leave this in if it fixes issues for people using Visual Studio, but I wonder if there might be a more correct way to get the VS plugin to work like this.  From the prettier side, they say it will always use an .editorconfig file if found.

Hey @gadicc!

I did some looking up a while back (but then got distracted so don't have the links anymore), and editorconfig: true is not a prettierrc option, it's an option when using the prettier API from another package.

I see, interesting.

I'm happy to leave this in if it fixes issues for people using Visual Studio, but I wonder if there might be a more correct way to get the VS plugin to work like this. From the prettier side, they say it will always use an .editorconfig file if found.

After doing some research I found a solution to the problem; by changing the Prettier configuration from .prettierrc.yaml to .prettierrc.js.
I think the reason behind this is is that our .prettierrc.yaml was completely empty, and therefore Visual Studio Code didn't pick it up as a configuration. Maybe has something to do with Syntax for empty dictionary in YAML - not saying that it is, but yeah.
I'm opening up a PR that'll fix this.

@gadicc here we go; https://github.com/gadicc/node-yahoo-finance2/pull/59

Hey @pudgereyem that's some great research there!
Don't hate me, but I'd prefer to keep the yaml file if possible... I find they're a lot clearer and more maintainable.  However, I see you edited your message and took out the SO link, so I'm guessing putting just {} in the yaml file still didn't work, in which case, happy to merge :)  (Unfortunately I don't have Visual Studio to test on)

@gadicc, no worries at all! I thought it was weird to have {} in a .yaml file, but it works. Will update the PR :)

@gadicc https://github.com/gadicc/node-yahoo-finance2/pull/59 💯

Legend!!  Thanks, @pudgereyem :raised_hands:

:tada: This issue has been resolved in version 1.7.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


RPCs block wallet UI from loading

Problem
Wallet is waiting for RPCs to load UI. If there is a delay from RPCs user is not able to see UI.
Expected Behavior
If there is a delay from PCs, user should be able to see Wallet UI with some main loader.
Nice to have would be if Wallet would detect if there is RPC delay and display proper information to the user.

@corwinharrell
Could you please propose the loader or some alternative solution.
The thing is that if this situation happens, we will not be able to show any data (user account will not be loaded yet), so ideally if user will be able to see that Wallet is loaded, but also some indicator/information that something is happening in background and user needs to wait.
Maybe we should show an empty top bar (without options), footer, and some information in the middle?

Sounds good @marcinbodnar have added this to my list 👍

Being fixed by #1665


wewkernelbase.pdb问题

Describe the bug

Steps to reproduce the bug

Steps to reproduce the behavior:

Go to '...'
Click on '....'

Expected behavior

Screenshots

Version Info

NuGet package version:

Windows 10 version
Saw the problem?

| May 2020 Update (19041)            |    |
Additional context

页面只添加了导航视图,然后运行报这个错误

@Linjie123
Do you have a sample project? Can you attach a ZIP here?
你有一个样本项目吗？ 您可以在此处附加ZIP吗？

@riverar 过两天发给你

@riverar

Transferring this to WinUI, sounds like a NavigationView issue and the Linjie123 said they'd include a repro sample in two days.


make failed - /usr/bin/ld: cannot find -lmint

I encountered a dependency issue today. Here it is

What is this mint library?
Any suggestions?

Sorry, I don't recognise mint. Can you examine the makefiles and logs to see why it is linked?

Silly me. I didn't realize I was working on a forked off modified project, that was based on the sony-nmos-cpp repository. I apologize for the distraction.
After executing git remote show origin I see, that the URL is not equal to https://github.com/sony/nmos-cpp.git


Sync 2023b branch with commit from main for feature freeze of 2.8 sprint

Description

Sync 2023b branch with commit from main for feature freeze of 2.8 sprint
Commits cherry-picked:
https://github.com/opendatahub-io/notebooks/pull/420
https://github.com/opendatahub-io/notebooks/pull/415
as ci failed:
https://github.com/opendatahub-io/notebooks/pull/420#issuecomment-1961481841
https://github.com/opendatahub-io/notebooks/pull/415#issuecomment-1961481714
How Has This Been Tested?

NA
Pre-tested in main branch
Merge criteria:

[X] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work

Merging to get everything in order.


[HOLD][$500] [MEDIUM] Tags: All tags are revealed when searching for hidden tag and clearing the search field

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v1.4.44-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:

User is an employee of Collect workspace.
The Collect workspace has more than 500 tags.

Go to workspace chat.
Open money request page.
Proceed to confirmation page.
Click Show more > Tag.
Search for a term that is originally hidden behind "Show more" button.
(If there are 700 tags, the last 200 will be hidden behind "Show more". In this case, we can search for the 700th tag.)
Clear the search field.
Scroll down.

Expected Result:
Only the first 500 tags will appear and the remaining will be hidden with "Show more" button.
Actual Result:
All the tags are revealed and there is no "Show more" button.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/93399543/add3e82b-e325-41c4-a715-e3711946f144
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0171a76cd580844a9b
Upwork Job ID:<PHONE_NUMBER>110538752
Last Price Increase: 2024-02-27

We think that this bug might be related to #wave6-collect-submitters
CC @greg-schroeder

Looks like this is a regression from https://github.com/Expensify/App/pull/31606, which has several other regressions tied to it as well. cc: @Piotrfj since it looks like you're handling the regressions that arose from that PR

@NikkiWines ther's an ongoing refactor and a cleanup for the BaseOptionsSelector  https://github.com/Expensify/App/pull/37353 , I think this should be onhold for now

ended up closing https://github.com/Expensify/App/pull/37353 in favor of the revert of https://github.com/Expensify/App/pull/31606. I'll closely review the 2nd attempt to migrate this component in hopes that most or all of the simplifications from https://github.com/Expensify/App/pull/37353 make it into the migration round 2.

Update: re-refactoring is ready to be tested, it fixes all the regression issues I was aware of. Please test it (especially the tags, because I could not yet replicate the scenario on my site).
The fix is based on the @roryabraham solution, so special thanks for him!
Link to PR: https://github.com/Expensify/App/pull/37494

Okay @ishpaul777 you were assigned on the other issue for payment i believe (https://github.com/Expensify/App/issues/37256) so I don't think this one actually requires payment based on what happened, as @fedirjh didn't actually do the review on the linked PR

We may be able to close in that case

Let's close it then! :)


Added rebus + hint

Associated Issue: #121
Summary of Changes

Added a new rebus with hint!
☁+🤿

Pull Request Test Coverage Report for Build 896

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 87.143%

Totals

Change from base Build 514:
0.0%

Covered Lines:
158

Relevant Lines:
180

💛  - Coveralls


imp: Improve the texts for the internship program 2024 cycle 01

thank you for the review, @EverVino !


Unusable with dark theme

Describe the bug
Extension is not theme aware and unusable with dark them

To Reproduce
Steps to reproduce the behavior:
Install.
Switch to dark theme
from jupyter_bifrost import Chart
import pandas as pd
df = pd.read_csv('https://s3.amazonaws.com/nyc-tlc/trip+data/yellow_tripdata_2018-12.csv')
chart = Chart(df)
chart.plot()

Expected behavior
Font to be visible.
Screenshots

Desktop (please complete the following information):

OS: Windows
Browser: Chrome
Version 92.0.4515.159

Additional context
Add any other context about the problem here.

Thanks so much for the feedback! We are hoping to implement a workable dark mode soon!

Here is an initial prototype for Bifrost's dark mode.
https://user-images.githubusercontent.com/83424843/153977044-90f94826-3e4a-498a-be4e-ea5e04627ef9.mov


Improve macro hygiene

I keep running into places where Yew's macros aren't as hygienic as they could be. Especially now that the MSRV is 1.45.0 (which brings a few more macro features like mixed_site) it's time to do a full sweep and solve all the remaining issues:

Ensure all trait methods are invoked unambiguously
Use fully qualified paths everywhere (including primitives from ::std::primitive)
Use a configurable yew crate parameter
Use Span::mixed_site() for macro variables so they aren't available in user code
Test with #![no_implicit_prelude]

[x] html_macro
[x] properties derive
[x] props macro
[x] classes macro
[x] function component derive

Add #[doc(hidden)] to all structs (especially in derive_props)

Use a configurable yew crate parameter

Why not? :)

Use Span::mixed_site() for macro variables so they aren't available in user code

When I've tried to tackle this I find that either I have to lose out on a useful span for error messages - or jump through some hoops to still use a variable from one quote block to another. Not sure if I'm missing something here :) thought I'd mention why I have seemingly stopped chipping away at this issue 😅


[SQL] Accept MapType in the schema provided to a JSON dataset.

Test build #27797 has started for   PR 4710 at commit 3e40390.

This patch merges cleanly.

Test build #27797 has finished for   PR 4710 at commit 3e40390.

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

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


Proceed with the Django Girls tutorial

Do a PR per each tutorial page or less, trying to identify atomic sets of changes or an easily reviewable size. For simplicity of tracking the progress, you may add a checkboxed markdown list here. Do your best to apply what you learned in the previous tasks.
https://tutorial.djangogirls.org/en/
The main objective here is not to blindly follow the tutorial (it has a lot of oversimplifications and the practices describe don't follow the real-world professional development standards) but to do better and practice development according to our GitHub Flow flavor in the environment of linters, tests and code reviews. We'll also do more integrations with other systems along the way.

During the tutorial, the following should be implemented:

[ ] Create the Django project


Problems running python code

Hi,
I've tried to run the code using the README and ran into a problem when I tried executing uc01-faceted-search/search.py.
Traceback (most recent call last):
  File "/home/stonecharioteer/code/learning/redis-labs-datastructures/redisu/ru101/uc01-faceted-search/search.py", line 8, in <module>
    import redisu.utils.keynamehelper as keynamehelper
ModuleNotFoundError: No module named 'redisu'

The folder exists, but it seems unable to identify it. This is possibly because there are no __init__.py files. I'm using Python 3.9.2.

This Python code isn't packaged in a way that makes it easily installable, so you need to adjust your PYTHONPATH so that Python can see this code. Did you follow this section in the README? https://github.com/redislabs-training/ru101#python


Does not work with vite and commonJs for a typescript project.

Getting a failed to import with a vite project for a commonjs typescript project

type is set to commonjs in my package.json
and tsconfig.json looks like
{
  /* Visit https://aka.ms/tsconfig to read more about this file */
  "compilerOptions": {
    "module": "commonjs",
    "outDir": "dist",
    "strict": true,
    "sourceMap": true,
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "noImplicitAny": true,
    "skipLibCheck": true
  },
  "exclude": ["node_modules", "vite.config.ts"]
}

PS: This works in version 1.0.0

On the last update 1.1.0 I merged PR #12 where it adds support for the ESM module. This functionality can lead to an error when both ESM and Commonjs modules are loaded. Check this doc


Update default value of connection property 'sendTimeAsDatetime' to false.

Codecov Report

Merging #1007 into dev will increase coverage by 0.04%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##                dev    #1007      +/-   ##
============================================
+ Coverage     50.09%   50.13%   +0.04%
- Complexity     2879     2881       +2
============================================
  Files           120      120
  Lines         27989    27989
  Branches       4677     4677
============================================
+ Hits          14020    14032      +12
+ Misses        11709    11699      -10
+ Partials       2260     2258       -2

Flag
Coverage Δ
Complexity Δ

#JDBC42
49.69% <100%> (+0.01%)
2842 <0> (+1)
:arrow_up:

#JDBC43
50.01% <100%> (+0.03%)
2875 <0> (+5)
:arrow_up:

Impacted Files
Coverage Δ
Complexity Δ

.../com/microsoft/sqlserver/jdbc/SQLServerDriver.java
83.36% <100%> (ø)
36 <0> (ø)
:arrow_down:

...c/main/java/com/microsoft/sqlserver/jdbc/Util.java
62.5% <0%> (-0.44%)
91% <0%> (-1%)

...om/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java
50.39% <0%> (-0.13%)
245% <0%> (-1%)

...rc/main/java/com/microsoft/sqlserver/jdbc/dtv.java
68.41% <0%> (+0.05%)
0% <0%> (ø)
:arrow_down:

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
55.48% <0%> (+0.13%)
0% <0%> (ø)
:arrow_down:

...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java
43.86% <0%> (+0.19%)
318% <0%> (+1%)
:arrow_up:

...ncurrentlinkedhashmap/ConcurrentLinkedHashMap.java
39% <0%> (+0.64%)
43% <0%> (+1%)
:arrow_up:

...om/microsoft/sqlserver/jdbc/ReaderInputStream.java
43.95% <0%> (+3.29%)
15% <0%> (+2%)
:arrow_up:

Continue to review full report at Codecov.

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

These are changes we want to make but this is a breaking change and our test lab is currently unable to test this scenario


Update carrier details for United Kingdom (GB)

Hi.
I found an issues with the carrier not being returned for this number -<PHONE_NUMBER>33
However the OFCOM numbering plan lists 447393 as Vodafone UK Ltd
Country/region affected : GB
Example number(s) affected :<PHONE_NUMBER>33 - Although I suspect it's the whole 447393 range 4473930 - 4473939
The type of the number(s) : mobile
Supporting evidence: Attached the public carrier list from Ofcom
S7.zip
link to demo
Thanks.
Iain
*Note, this range was allocated at the end of 2015, along with quite a few others.

@IainSutherland
Thanks for providing all the details we need!
We've accepted this issue and will fix this in an upcoming release.

Thanks!

@penmetsaa Will the full Ofcom carrier list be put into libphonenumber, not just this mobile range?
Also, the Ofcom list contains all prefixes, not just the Mobile, Fixed Line or Mobile, and Pager (the number types the Carrier Mapper supports) numbers?
Thanks

@giggsey,
Thanks for your interest :)
We will support all the mobile and pager carrier updates that are mentioned in s7.xls as part of this issue.
In next coming updates we will start supporting documents that are listed in http://www.ofcom.org.uk/static/numbering/
Presently library can provide carrier details only for mobile and pager numbers. Not for numbers like fixed-line, personal numbers...etc

Is there any intention to expand it cover include carrier details for fixed lines etc in the future? If there is it would make sense to at least start gathering that data even if it's not yet used.
Also note that OFCOM don't publish anything about number portability.

@DrHyde,
We have no plans of including carrier details for fixed line numbers hence we won’t be collecting the data. However out of curiosity, we would like to know as to how can this data be useful for you.

I maintain Number::Phone, which is a mostly work-a-like for libphonenumber in perl. It supports a bit more functionality than libphonenumber, in particular exposing carrier details for any number where I have the information for it. It also allows third-parties to extend it by providing country-specific data themselves instead of trying to do everything itself, although for countries where I don't have better information I just suck in libphonenumber's metadata.
There is also a slight difference of emphasis - libphonenumber is aimed more at phone users, whereas Number::Phone is aimed more at small telcos, a number of which use it in their billing and provisioning systems.

Thanks for explaining your use case. It's not clear to us how this information can be useful for users and clients of the library so for now we'll keep maintaining carrier data only for mobile ranges. This could change in the future.

Just as a FYI for those who are subscribed.
v8.0.1 now contains carrier information for GB mobiles.

Thanks @giggsey! We're still updating the metadata for +44 regions (GB, GG, IM, JE) but that's separate from this issue, so I'll close it.


Clarification (doc or behavior) of setViewClear (MRT version)

The MRT version of the setViewClear function will silently add BGFX_CLEAR_COLOR to the flags whenever one of the colors passed in the function is not the default 0xff.
I find this behavior a little unintuive; I would rather have the clear flags get precedence over whatever colors are provided (the case where clearing is requested and no color is given would need special case treatment however)
In any case, I think this deserves a word in the documentation of the function.

There are 8 colors in MRT version of the function. How intuitive function in your opinion would look like?
This is current function:
void bgfx::setViewClear(ViewId _id, uint16_t _flags, float _depth, uint8_t _stencil, uint8_t _0 = UINT8_MAX, uint8_t _1 = UINT8_MAX, uint8_t _2 = UINT8_MAX, uint8_t _3 = UINT8_MAX, uint8_t _4 = UINT8_MAX, uint8_t _5 = UINT8_MAX, uint8_t _6 = UINT8_MAX, uint8_t _7 = UINT8_MAX)

I would not change the signature at all. I'm just pointing out that right now something like
bgfx::setViewClear(viewId, BGFX_CLEAR_NONE,  0, 1)
will actually clear the framebuffer with the given palette colors, despite BGFX_CLEAR_NONE. If the doc mentioned this behavior I'd be fine.
I'd be even finer if the flag was respected even when passing colors. In a generic code  (this happened to me) you could have:
bgfx::setViewClear(viewId, flags, color_ids[0], color_ids[1],..., color_ids[7]);
in all case and not bother resetting all colors_ids[x] to UINT8_MAX when (flags & BGFX_CLEAR_NONE) == true.

In MRT with 8 textures, how you would selectively clear specific texture? For example if every even target needs to be cleared, but every odd needs to be cleared?

Oh I actually thought this was not possible.
Isn't it what
setViewClear(id, BGFX_CLEAR_COLOR, 0, UINT8_MAX, 1, UINT8_MAX, 2, UINT8_MAX, 3, UINT8_MAX);

do though ? clearing buffers 0, 2, 4 and 6 and not touching the others ?

All right !


Add ws fallback for browserify

This should be logically equivalent to the previous fallback in ws,
which was removed in this commit

nice and simple. btw @deanlandolt are you interested in helping maintain this? i can add you if so, http://openopensource.org/ style

Sure -- I'd be happy to help out.
Thanks again, @maxogden!

published 3.0.1. also added @deanlandolt as a collaborator


Content-Security-Policy issue

I believe the current Content-Security-Policy in index.html is not working as intended.
Current code:
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: script-src style-src 'self' 'unsafe-inline'; media-src *">

There are some missing semicolons in between the "default-src", "script-src", "style-src".
In addition to fixing the typos I believe you will need to whitelist the domain randomuser.me to see results in the "Simple List" and "Complex List"
You may also wish to whitelist localhost:35729 while debugging to continue to have livereload work correctly.
The simplest solution is to open up the security completely:
<meta http-equiv="Content-Security-Policy" >

If you want a tighter security policy it might look something like the following (I haven't tested this on all platforms):
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-inline' http://localhost:35729; connect-src  https://*.randomuser.me http://*.randomuser.me ws://localhost:35729; img-src 'self' https://*.randomuser.me http://*.randomuser.me; ">

Thanks for the fix suggestions @robreiss! I've opened it up somewhere between your two suggestions; I don't think there's really any concern with doing so because it's intended as a "boilerplate" project anyway, but let me know if you think I should change it any further.


A9G's firmware verification error when download finished.

1. SDK version（SDK 版本）
{
firmware: Ai-Thinker_A9_A9G_AT_V02.02.20180825R.afw
GPS firmware: GK9501_Release_GB_1.4_20180224.bin
Download tools:  AI-thinker GSM&GPS Download tool v02.00.01
}

2. In what kind of operation problems appear, and how to reproduce the problem ?（什么样的操作步骤问题会出现，是否是稳定复现，如何复现问题？）
{
we are using the A9G module to build our products ,and we are using this firmware which is download from your official website:   Ai-Thinker_A9_A9G_AT_V02.02.20180825R.afw
and GPS hex binary file : GK9501_Release_GB_1.4_20180224.bin
using your Download tools: AI-thinker GSM&GPS Download tool v02.00.01
on my windows 10 PC with administrator privilleges.

and it can be download to module, but after downloading, it appears a warning:

and we are trying several times, please help me!
thanks a lot!
}

anyone with a link to the flash tool? and the firmwire?

anyone with a link to the flash tool? and the firmwire?

please give the link of new firmware, The official Ai thinker wesite https://docs.ai-thinker.com/_media/gprs/ai-thinker_a9_a9g_at_v02.02.20190915r.rar file is corrupted. if anyone have working downloaded firmware

please give the link of new firmware, The official Ai thinker wesite https://docs.ai-thinker.com/_media/gprs/ai-thinker_a9_a9g_at_v02.02.20190915r.rar file is corrupted. if anyone have working downloaded firmware

Same issue here ! Any idea, where I can get firmware?

please give the link of new firmware, The official Ai thinker wesite https://docs.ai-thinker.com/_media/gprs/ai-thinker_a9_a9g_at_v02.02.20190915r.rar file is corrupted. if anyone have working downloaded firmware

Try different browser.I got resolved that way !

problem resolved. thanks for tips.


Build issues on iOS

When trying to build iOS project I get this errors:
/node_modules/react-native-applovin-max/ios/AppLovinMAX.m:155:14: Property 'consentFlowSettings' not found on object of type 'ALSdkSettings *'
/node_modules/react-native-applovin-max/ios/AppLovinMAX.m:189:27: Property 'creativeDebuggerEnabled' not found on object of type 'ALSdkSettings *'
/node_modules/react-native-applovin-max/ios/AppLovinMAX.m:316:25: Property 'creativeDebuggerEnabled' not found on object of type 'ALSdkSettings *'
"react-native": "0.64.0",
"react-native-applovin-max": "^2.0.1"

@dmitry-markevich
Looks like your project is using older SDK. Could you try updating it by running pod install or pod update inside your iOS project to update the SDK?
You can verify it by checking in your pods folder to see you have applovin-ios-sdk-10.2.0.

@alvarshahanji
Thank you, this is the reason, I have version 6.15.1
But how can I fix it?
Deleting pods and podfile.lock, pod update, pod install --repo-update have the same result with old version:
Installing AppLovinSDK (6.15.1)

Updated: solved. It was a conflict with AdMob AppLovin adapter, deleting it solved the problem.

Good to hear @dmitry-markevich - next time you get CocoaPods related errors, please feel free to send us the contents of your Podfile.


Track traffic data

Must make APIs. Frontend can handle as long as it doesn't create vulnerabilities

Metrics:

Total Visitors
Visitors per day
Recurrent visitors
Times they click "generate code" in total/per day


Can't run examples

In order to run examples I had to edit gradle wrapper from version 6.1 to 6.3 and I also had to update polkaJ version from 0.4.0-snapshot to 0.3.0 because the snapshot is not being hosted in bintray.

If you have a different version of the Gradle just use it as is. I.e. just gradle <command>.
Bundled ./gradlew wrapper script is useful, in my opinion, only when you don't have any Gradle installed so it installs it on the first run. Otherwise just use any version you already have.
You can run gradle install in root directory of the project to build and install snapshot locally, and 0.4.0-SNAPSHOT would work after that.

Thanks okay yes running gradle install now I can run examples with snapshot.  Running my installed gradle does work, but I do believe the wrapper files need to be updated to version 6.3 to work. At least for my configuration they do. I have java 15.0.1 on Big Sur and gradle 6.8

@splix any idea on the error for balance I posted?

Have resolved examples not running will be included in next pr

I ran into the same
This examples\common.gradle is misleading:
If we use SNAPSHOT versions, that requires running gradle install,
then repository entry is not needed.
//
// Common config for Polkaj Examples
//
ext {
   polkajVersion = "0.4.0-SNAPSHOT"
}

repositories {
   // polkaj public repo
   maven { url  "https://dl.bintray.com/emerald/polkaj" }
}


Look into gov.uk's different recommendations for various form input scenarios

https://design-system.service.gov.uk/patterns/addresses/

Merged with #108

Duplicate of #108


MicroWin iso error while installing

Describe the bug
i got this error after installing MicroWin windows 10

after searching I found the probable cause is windows traying to create computer name based on serial number and it's too long
the solution that worked for me is in this article
https://techglimpse.com/solve-windows-parse-process-unattend-answer-file/#google_vignette

@KonTy We may need to check the resulting answer file in Windows SIM to verify it

@CodingWonders @nassimna hey guys this is a known issue for Win10, it doesn't have specialize section, i just was not prioritizing this, since not many people use win10. Let me look at it today.

@CodingWonders @nassimna hey guys this is a known issue for Win10, it doesn't have specialize section, i just was not prioritizing this, since not many people use win10. Let me look at it today.

We can detect this when we begin processing by detecting the version of the index of the WIM file, specifically the Build area. For example:
PS C:\WINDOWS\system32> Get-WindowsImage -ImagePath C:\wims\boot.wim -Index 1

ImageIndex       : 1
ImageName        : Microsoft Windows PE (amd64)
ImageDescription : Microsoft Windows PE (amd64)
ImageSize        : 1.910.022.115 bytes
WIMBoot          : False
Architecture     : x64
Hal              :
Version          : 10.0.22000.194
SPBuild          : 194
SPLevel          : 0
EditionId        : WindowsPE
InstallationType : WindowsPE
ProductType      : WinNT
ProductSuite     :
SystemRoot       : WINDOWS
DirectoryCount   : 3935
FileCount        : 16228
CreatedTime      : 05/06/2021 13:43:02
ModifiedTime     : 23/11/2022 20:52:52
Languages        : en-US (Default)

PS C:\WINDOWS\system32> [Version](Get-WindowsImage -ImagePath C:\wims\boot.wim -Index 1).Version

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      22000  194

PS C:\WINDOWS\system32> ([Version](Get-WindowsImage -ImagePath C:\wims\boot.wim -Index 1).Version).Build
22000

PS C:\WINDOWS\system32> ([Version](Get-WindowsImage -ImagePath C:\wims\boot.wim -Index 1).Version).Build -ge 21380
True


Further questions about function use

Hi again,
I have successfully been able to use your function MFBB on my dataset of interest, which is a time series of the solar wind with gaps missing.
However, I am slightly confused in that the MFBB (in blue, below) seems to be closely following the observed data points (in green) but not exactly matching up with them. Also, does the argument sigma represent the standard deviation of the stochastic process? Thanks.

Hi Daniel,
Thanks again for using the MFBB function; I'm happy to see it being used on such an applied problem as the gaps in solar wind measurements.
Unfortunately -  as of now - the MFBB function only works in a very idealized setting, i.e., for equidistantly spaced data and interpolating resolution in multiples of the original data resolution.  What you are seeing in your example is exactly due to this problem as your data is non-equidistant. The construction itself, as detailed in our paper, is an exact interpolator. Hence, this is only an implementation problem in the code, and I'm currently fixing it so that it can cope with more general data types - including your case with gaps in the data.
Your second question is equally important: Sigma is not exactly the std of the underlying fractional Brownian motion. This might be a bit misleading, but historically, the covariance of the fBm is defined as
<X(t)X(t')>= sigma^2 (t^2H+t'^2H-|t-t'|^2H)/2
Hence, the variance is given as <X(t)^2> = sigma^2 t^2H and is thus non-stationary which makes it hard to match the variance of your signal, and the definition of sigma may depend on what you're further intentions with the bridge process are. A quite useful assumption, which is currently implemented in the code, is that the std of the fBm and your data matches at the largest time scale t.
I hope this clarifies your issues and I will let you know once the non-equidistant version of the MFBB function is implemented (I hope to this by the end of this week).
Best wishes,
Jan

Thanks very much for your detailed and helpful response Jan! I look forward to the update.

Hi Daniel,
No problem; I created a new branch for non-equidistantly spaced data that should suit your situation. Please let me know if you encounter any further issues.
Best,
Jan


PHP Support for the SDK

Are there any plans for it?

I can take this to the team, but as of now no plans for php support at least for up to next year


[Bug]: Bucket duping caused by stacking

General Info

[ ] I didn't added any mods
[X] I get this issue consistently in single-player
[X] I get this issue consistently in multi-player
[ ] I am crashing and can provide my crash report(s)
[X] I am using the latest version of the modpack

Your launcher
Curseforge
Modpack version
1.1.8 - 1.2.0
Describe your issue
The bucket of water is dupable (video: https://imgur.com/a/G1yUK18)
occured in 1.1.8, updated to 1.2.0, still persists
Steps to reproduce the issue
Holding right click while having another stack of buckets.
Additional Information
its not crashing but here you go
https://mclo.gs/OxLxHWY
also i didnt try it in multiplayer, but somehow it was not optional

This issue still remains in 1.2.1 on server, someone reported:
"weird bug. bucket duplication when having a stack of empty in inventory and placing a water bucket"
Asked if issue persists in singleplayer as well, and it does.


Add option to replace existing ingest [Ingest]

Sometimes an ingest occurs and mistakes are included in the definition. The only option right now is to find all areas where ingest files exist and delete them before attempting again.

#1036 duplicate


Build-tag selectable build-time fabric system-chaincode plugin configuration

Is your feature request related to a problem? Please describe.**
Currently we apply the TLCC patch to fabric which are specific to FPC and work only when building Fabric including FPC, so is unlikely to be upstreamed.   The bigger issue in Fabric though is that there is no general (build-time) way to add system-chaincode in an easy and configurable way.
Describe the solution you'd like
The basic idea is to use build-tags for a particular system-chaincode configuration. Practically, it would require outsourcing from internal/peer/node/start.go list of to-be-configured system chaincodes into a struct defined in a separate, build-tag-controlled file which then would be used inside start.go to iterate through (instead of the explicit list as currently done).

[X] strategy/design on how to handle it
[X] FPC PR #422
[ ] Fabric PR 1822
[ ] Adapt FPC to Fabric (once Fabric PR is integrated)

Describe alternatives you've considered
Carrying around a patch of a specific file. The proposed solution offers a way to replace a built in file instead of modifying it.
Additional context

See also FAB-17564 which touches on issue (but does not give any guidance as of 2020-05-09)

Even better approach than above might be to define a package global static variable which is used in internal/peer/node/start.go and then populate/extend it via init functions (which golang supports multiples per package and can be defined in separate build-tag controlled files).  The standard set of course could be part of the static variable initialization and on extensions might be done in separate init functions ....

FPC does not require custom system chaincode anymore. In case this integration concept comes back we can reopen this issue.


GroupMe Windows Client not showing Card immediately

Using the following code with the C# gnuget, I send a reply back to GroupMe.  It doesn't render on Windows or Android unless i reload the discussion.  It works on iOS.  After working with the GroupMe people it seems the GroupMe client is barfing on the "lat" and "lng" being sent as null.  They are fixing their clients, but older ones will barf.
`AdaptiveCard card = new AdaptiveCard();
botMessage.Attachments = new List();
        card.BackgroundImage = "https://messagecardplayground.azurewebsites.net/assets/Mostly%20Cloudy-Background-Dark.jpg";

        AdaptiveCard card = new AdaptiveCard();

        ColumnSet cs = new ColumnSet
        {
            Columns = new List<Column>()
        };
        Image img = new Image
        {
            Url = "http://messagecardplayground.azurewebsites.net/assets/Mostly Cloudy-Square.png",
            Size = ImageSize.Stretch
        };

        cs.Columns.Add(new Column
        {
            Size = "35",
            Items = { img }
        });

        TextBlock tb1 = new TextBlock
        {
            Text = "Monday April 1",
            Weight = TextWeight.Bolder,
            Size = TextSize.Large,
            Color = TextColor.Light
        };
        TextBlock tb2 = new TextBlock
        {
            Text = "63 / 42",
            Size = TextSize.Medium,
            Separation = SeparationStyle.None
        };
        TextBlock tb3 = new TextBlock
        {
            Text = "20% chance of rain",
            IsSubtle = true,
            Separation = SeparationStyle.None
        };
        TextBlock tb4 = new TextBlock
        {
            Text = "Winds 5 mph NE",
            IsSubtle = true,
            Separation = SeparationStyle.None
       };
        cs.Columns.Add(new Column
        {
            Size = "65",
            Items = { tb1, tb2, tb3, tb4 }
        });

        card.Body.Add(cs);

        Attachment attachment = new Attachment()
        {
            ContentType = AdaptiveCard.ContentType,
            Content = card
        };

        botMessage.Attachments.Add(attachment);

        await context.PostAsync(botMessage);

`

Possibly EmitDefaultValue=false???

Hi, Mark from the GroupMe team here. Like he said, what happens here is GroupMe is receiving a malformed payload that some clients are handling better than others. When an attachment is sent to GroupMe, it should only have attachments specified that are there, not the full payload of possible attachment types with nulls.
This is an example of a correct attachment payload for an image:
"attachments\":[{"type":"image","url":\"MY_IMAGE_URL"}]
This is what is being sent in the case noted above:
"attachments":[{"lat":null,"lng":null,"name":null,"type":"image","url":"MY_IMAGE_URL"}]
If the service writing these messages is C# and uses a standard attachment type for every attachment, and serializing it to JSON, the proper thing to do, as stated above, is to use EmitDefaultValue=false like this:
   ```

///
/// Gets or sets the Latitude of the attached location
///
[DataMember(Name = "lat", EmitDefaultValue = false)]
public double Latitude { get; set; }
    /// <summary>
    /// Gets or sets the Longitude of the attached location
    /// </summary>
    [DataMember(Name = "lng", EmitDefaultValue = false)]
    public double Longitude { get; set; }

@matthidinger / @andrewleader what is GroupMe?


setting listenIP: on a system with multiple ip's crashes exe

Which version are you using?
v0.15.4
Which operating system are you using?

OS

[ ] Linux
[X] Windows
[ ] macOS

Describe the issue
When using rtspss on a windows machine with multiple ip's , setting the listenIP: to one of those ip's immediately closes the exe. Also, with that configured it won't start. Removing the listenip fixes the issue.
Describe how to replicate the issue

Start server with dual ip's configured
Set listen ip to one of the ip's
App will close

Hello, i tested the server on a Windows machine and

i was able to listen on a specific IP when there were two interfaces, each one with a different IP
i was able to listen on a specific IP when there was a single interface, configured with two IPs at once. In this case, i was able to listen only on one of these two IPs, while the second one gave this log

2021/04/16 17:14:14 [I] [0/0/0] rtsp-simple-server v0.15.4
2021/04/16 17:14:14 [I] [0/0/0] ERR: listen udp <IP_ADDRESS>:8000: bind: The requested address is not valid in its context.

but anyway, it doesn't depend from the server, since net.Listen behavior is handled by the Golang team.
Maybe it's a permission problem, to find out more you need to look at the logs, that can be obtained by either

using the logFile parameter
starting the server from the command prompt, that can be launched by typing "cmd" in the search bar and opening the correspondent app


Update nimbix trial instructions in Korean L10N

I can't read this but I updated the nimbix trial instructions to match the powerai-notebook version.
Should be the same here, but please review.

@changwoojung can you review this patch?

@changwoojung @stevemart  i've reviewed this PR and proposed new one with c8764074c428d4066d0d81c5eb77f18e375ce905
https://github.com/IBM/powerai-transfer-learning/compare/new_nimbix_ko...hongjsk:patch-1

@hongjsk thank you, i will use https://github.com/IBM/powerai-transfer-learning/pull/22 instead.


Allow admins to msg all volunteers at once

@SarahOMD wrote via email:

Is there a way to communicate to all users via text using the scheduler?  Since things are changing so rapidly, this is really the best way to ensure that all volunteers are receiving the same message at the same time

[ ] Create Announcement model

message (string, not null)
author_id (integer, not null, fk on User table)
user_ids (bigint [], not null)
timestamps

[ ] Add Rails validations to model
[ ] Add method to model to send announcement
[ ] Add spec(s) for model
[ ] Add AnnouncementPolicy (for pundit)
[ ] Add AnnouncementsController

[ ] Index
[ ] New
[ ] Create
[ ] Show
I dont think we need edit/update as it doesn't really make sense to edit a message after it's been sent. IMO, destroy should not be implemented either

[ ] Add specs for controller
[ ] Add Announcement to ActiveAdmin

[ ] Add nav link
[ ] Index
[ ] New
[ ] Show


improve ChunkGroup.isInitial()

What kind of change does this PR introduce?
Improve ChunkGroup.isInitial() with typescript's type guards

Did you add tests for your changes?
no

Does this PR introduce a breaking change?
no

What needs to be documented once your changes are merged?
no

closed for further test investigation


Windows overlapping with simple bar

I tried to set both of these options neither work:
It is important to note that you'll need to use yabai in bsp or stack layout mode in order to prevent app windows to overlap simple-bar.
yabai -m config layout bsp
yabai -m config layout stack

Nevermind, I just added massive amounts of top padding and it works now.


Simplify if let unwrapping for userdefaults

I found the original code ok but we can simplify that with what I've done for the exact same result.

Thank you! I wrote the original style by preference; I find multi-step if-let rather hard to read, and the indenting gives me a bit of an eye twitch 😅

Thank you! I wrote the original style by preference; I find multi-step if-let rather hard to read, and the indenting gives me a bit of an eye twitch 😅

Okay I understand, it's code style preference 😄


Sample policy to validate for v1.22 deprecated APIs

See: https://twitter.com/Marcus_Noble_/status/1417007780888825856
Kubernetes v1.22 removes a number of deprecated APIs. The policy would check for those apiVersions and kinds and block / report their usage.

Here is a sample:
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: check-deprecated-apis
  annotations:
    policies.kyverno.io/category: Best Practices
    policies.kyverno.io/description: >-
      As the Kubernetes API evolves, APIs are periodically reorganized or upgraded.
      When APIs evolve, the old APIs they replace are deprecated, and eventually removed.
      See Kubernetes API removals to read more about Kubernetes' policy on removing APIs.
      See: https://kubernetes.io/blog/2021/07/14/upcoming-changes-in-kubernetes-1-22/
      for details.
spec:
  validationFailureAction: enforce
  rules:
  - name: validate-v1-22-removals
    match:
      resources:
        kinds:
        - admissionregistration.k8s.io/v1beta1/ValidatingWebhookConfiguration
        - admissionregistration.k8s.io/v1beta1/MutatingWebhookConfiguration
        - apiextensions.k8s.io/v1beta1/CustomResourceDefinition
        - apiregistration.k8s.io/v1beta1/APIService
        - authentication.k8s.io/v1beta1/TokenReview
        - authorization.k8s.io/v1beta1/SubjectAccessReview
        - authorization.k8s.io/v1beta1/LocalSubjectAccessReview
        - authorization.k8s.io/v1beta1/SelfSubjectAccessReview
        - certificates.k8s.io/v1beta1/CertificateSigningRequest
        - coordination.k8s.io/v1beta1/Lease
        - extensions/v1beta1/Ingress
        - networking.k8s.io/v1beta1/Ingress
    validate:
      message: "{{ request.object.apiVersion }}/{{ request.object.kind }} is deprecated and will be removed in v1.22. See: https://kubernetes.io/blog/2021/07/14/upcoming-changes-in-kubernetes-1-22/"
      deny: {}

When used with this YAML:
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: ingress-fanout
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
    - host: foo.bar.com
      http:
        paths:
          - path: /path1
            backend:
              serviceName: testsvc1
              servicePort: 4201
          - path: /path2
            backend:
              serviceName: testsvc2
              servicePort: 4202

It blocks creation as follows:
kubectl create -f C:\tmp\kyverno\resources\ingress.yaml
Warning: networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
Error from server: error when creating "C:\\tmp\\kyverno\\resources\\ingress.yaml": admission webhook "validate.kyverno.svc" denied the request:

resource Ingress/default/ingress-fanout was blocked due to the following policies

check-deprecated-apis:
  validate-v1-22-removals: 'networking.k8s.io/v1beta1/Ingress is deprecated and will
    be removed in v1.22. See: https://kubernetes.io/blog/2021/07/14/upcoming-changes-in-kubernetes-1-22/'

This is a good policy to add. Probably should make these more regular occurrences as K8s moves forward.


Challenges
Currently, all the WIT binding generators are written in Rust to emit bindings in different languages. Given that the parsed WIT AST (in particular, Resolve struct) is represented in Rust data structures, this makes sense. However, this poses some challenges to language experts to develop and maintain WIT binding generators because they will have to know Rust well. This motivates the idea of developing bindgen in their own languages consuming resolved WIT packages. The question is how and in what format can we supply resolved WIT packages to bindgen written in different languages.
Details
wit-bindgen is a tool to generate guest language bindings for .wit files for languages that compile to Wasm components. It leverages wit-parser crate from wasm-tools to parse and interpret WIT packages. There is a clear difference between wit-bindgen and wit-parser:

wit-parser parses the input WIT files, resolves all the imports, including foreign imports, and represent all the worlds and interfaces in a struct called wit_parser::Resolved.
wit-bindgen uses fully-resolved WIT packages in wit_parser::Resolved to generate bindings. Roughly speaking, a new language bindgen needs to implement these Rust traits:

wit_bindgen_core::Bindgen - lower and lift signatures from Wasm types to WIT types
wit_bindgen_core::WorldGenerator - generate source code to files for WIT worlds
wit_bindgen_core::InterfaceGenerator - generate source code to files for WIT interfaces

Ideas

Complete rewrite of wit-parser and wit-bindgen in each language. For example, wit-parser-go and wit-bindgen-go for WIT binding Go generator. See an example for wit-parser in Go by @jordan-rash
Reuse wit-parser as much as possible by serializing its exported modules (mainly wit_parser::Resolve) and deserialized to each binding generators in their respective languages for consuming. @alexcrichton has some insights into this.
@lann suggested to turn language generators to Wasm components by defining generator interfaces as WIT packages.

I suggest to also consider exporting parts of the abi crate (which controls the lifting and lowering mechanisms; currently in move to wit-bindgen - see https://github.com/bytecodealliance/wasm-tools/pull/1149 for details) to other languages as getting the ABI conventions right will be the more thankless part of language bindings generation.

I think (2) makes sense, and (3) after a language has been bootstrapped.

I suggest to also consider exporting parts of the abi crate (which controls the lifting and lowering mechanisms; currently in move to wit-bindgen - see bytecodealliance/wasm-tools#1149 for details) to other languages as getting the ABI conventions right will be the more thankless part of language bindings generation.

Would it be possible to annotate the Resolve struct (or its JSON representation) with ABI information so target language generators can correctly lift/lower?

As an extension to "turn language generators to Wasm components", if the generator interfaces can avoid resources then bootstrapping could also be done by adapting the interfaces to some RPC system with widespread implementations like gRPC or JSON-RPC. This RPC adapter could itself be generated by the same system.

Makes sense. Question—what would require bidirectional communication between wit-bindgen and, say, wit-bindgen-go? Versus, say, just piping JSON into another process?
I’m probably missing something! (asking because an RPC layer, even if autogenerated, is another order of complexity versus just parsing some intermediate representation)

what would require bidirectional communication

It depends on how much wit-bindgen code you want to share with generators. With no sharing, this approach would be no better than approach 2 (serializing Resolve), but that leaves a lot of common functionality up to every bindings generator as alluded to in https://github.com/bytecodealliance/wit-bindgen/issues/640#issuecomment-1674283672.

what would require bidirectional communication

It depends on how much wit-bindgen code you want to share with generators. With no sharing, this approach would be no better than approach 2 (serializing Resolve), but that leaves a lot of common functionality up to every bindings generator as alluded to in #640 (comment).

Repeating question from above, in case it got lost: Would it be possible to annotate the Resolve struct (or its JSON representation) with ABI information so target language generators can correctly lift/lower?

Would it be possible to annotate the Resolve struct (or its JSON representation) with ABI information so target language generators can correctly lift/lower?

I am not familiar enough with that code to be confident, but I suspect the answer is "possible but somewhat difficult, especially to maintain".

Got it. How would you envision an RPC flow between wit-bindgen and a language specific tool? Specifically for ABI related code gen?

Off the cuff, I might expect a "generator component" to have exports corresponding to e.g. WorldGenerator and Bindgen and imports corresponding to at least large portions of what is currently in the public interface of wit-parser, e.g. some methods of Resolve.

The Pr to add Serde::Serialize to wit-parser has been merged! We are now able to consume the JSON output to write Go binding generator in Go, where @ydnar is making some progress at https://github.com/ydnar/wasm-tools-go

The Pr to add Serde::Serialize to wit-parser has been merged! We are now able to consume the JSON output to write Go binding generator in Go, where @ydnar is making some progress at https://github.com/ydnar/wasm-tools-go

Amazing! Thanks everyone that worked to get this merged!!

I’ve introduced some aspects of the Component Model ABI into wasm-tools-go, namely Type, TypeDef, and TypeDefKind conform to an ABI interface with (currently) two methods:

Size() uintptr
Align() uintptr

Docs here, which link to the canonical ABI document that this is based on: https://pkg.go.dev/github.com/ydnar/wasm-tools-go/wit
This should help the lift/lower codegen. I’d love some feedback on this direction.

To help me understand the WIT spec and the data structures from the wit-parser crate, I have a branch that can reverse the JSON into WIT. For example:
This command:
go run ./cmd/wit-bindgen-go describe ./testdata/wasi/clocks.wit.json
Generates this:
package wasi:poll

interface poll {
    type pollable = u32
    drop-pollable: func(this: pollable)
    poll-oneoff: func(in: list<pollable>) -> list<bool>
}

world example-world {
    import poll
}

package wasi:clocks

interface monotonic-clock {
    type instant = u64
    use wasi:poll/poll.{pollable}
    now: func() -> instant
    resolution: func() -> instant
    subscribe: func(when: instant, absolute: bool) -> pollable
}

interface timezone {
    use wasi:clocks/wall-clock.{datetime}
    TODO
    display: func(when: datetime) -> timezone-display
    utc-offset: func(when: datetime) -> s32
}

interface wall-clock {
    TODO
    now: func() -> datetime
    resolution: func() -> datetime
}

world imports {
    import wasi:poll/poll
    import monotonic-clock
    import wall-clock
    import timezone
}

@ydnar if you want more hands on this, im happy to help. Parsing JSON is a lot easier than creating/maintaining a new WIT parser, so I might just  archive that effort. That said, happy to help in any way, and most importantly, THANK YOU

@ydnar if you want more hands on this, im happy to help. Parsing JSON is a lot easier than creating/maintaining a new WIT parser, so I might just archive that effort. That said, happy to help in any way, and most importantly, THANK YOU

The WIT parser you built is undoubtably useful. Maybe at some point we can glue the two together to have another fully standalone implementation of a WIT toolchain?
As far as wasm-tools-go, pull requests are welcome!
I have a couple things to do before I merge the wit-syntax branch, mainly helpers to determine the nature of a TypeDef (whether it’s a type alias), and synthesizing package-local import paths for use statements.
After that lands, I want to take an initial stab at generating Go types and functions from the WIT tree. My current thinking is to ignore the WIT package → Go package path question for now, and experiment with a couple approaches for mapping the WIT type system to Go (e.g. sealed interfaces vs sealed structs, result<ok, err> as function arguments, etc.

Close this issue as it's implemented in wasm-tools https://github.com/bytecodealliance/wasm-tools/pull/1203


gets routes for a space

Adding support for getting routes for a space

Hi, the code is Ok, but it need an example to close this pull request.

@jabrena
return this.cf.spaces.getSpaceRoutes(spaceGuid, {'q' :'host:' + host});

@jsloyer, we didn't receive the test


Saya Proving

closes DOJ-255
closes DOJ-256
closes #1653 #1654

Will be rebased once /dev/katana is merged into main. :+1:

@matzayonc this was closed due to the rebase of Katana.
If you prefer having it open again in this one I will change the target branch. If you prefer doing it in a new PR, let me know. :+1:

@matzayonc this was closed due to the rebase of Katana. If you prefer having it open again in this one I will change the target branch. If you prefer doing it in a new PR, let me know. 👍

Sure, I think we can keep it. Should it just be to the main now?

@matzayonc this was closed due to the rebase of Katana. If you prefer having it open again in this one I will change the target branch. If you prefer doing it in a new PR, let me know. 👍

It way much easier to create a new branch and cherry-pick, it is now feat/saya-prove-verify


安装需要开发者模式是正常吗？

如题
Also, thanks for open sourcing this.

应该不需要，没出现过这个提示

ios16才需要把

hello, i got the same question, how can i install the app without developer mode on


R: Replace /bin/sh

Description of changes
This PR replaces impure references to /bin/sh in src/unix/sys-unix.c with nix's bash. In practice, I've found the system /bin/sh can break calls to python via reticulate because the system sh preloads /lib64/libc.so.6. Some previous discussion can be found here.
@alexvorobiev @jbedo
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[X] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

The change looks small and safe — did it solve the problem in question?


DeviceProperties - children missing when saving config.plist

Hi, and thanks for your work!
I've noticed that when selecting "Save" to update a validated config.plist, OCAT removes children from DeviceProperties entries.
For example, a "disable-gpu" flag under an unused Nvidia GPU is just deleted. One has to check and restore the missing value by hand. Of note, there does not appear to be any validation issues.
Thanks!

Can you provide config.plist for me to analyze?
In principle, if validation issues occur after you upgrade the OC, OCAT will automatically fix them after you save them. If validation issues still occur after you save them, then you need to manually adjust them to eliminate OC validation issues.
Anyway, thank you for raising this question.

我也遇到过类似问题，手动修改显卡驱动参数时，填写进去的子项不能被保存

Can you provide config.plist for me to analyze?
In principle, if validation issues occur after you upgrade the OC, OCAT will automatically fix them after you save them. If validation issues still occur after you save them, then you need to manually adjust them to eliminate OC validation issues.
Anyway, thank you for raising this question.

DeviceProperties
<Path_your_GPU>

Not boolean value exist in OCAT.


Staking rate targeting and specific rewards.

I_NPoS
The total payout is calculated using I_NPoS function defined in http://research.web3.foundation/en/latest/polkadot/Token Economics/#payment-details
I_NPoS is implemented using some a piecewise linear function. This piecewise linear function has been generated with a test and is tested not to differ from actual float implementation with an error of 0.2%
Staking api

The previous era reward accumulated at each new session is removed as reward is now computed from P_NPoS
a root call add_points_to_validator is added so ppl rewarded can call it from inherent mecanism.

TODO:

add inherent call to add_points_to_validator so ppl are actually rewarded:

[ ] In the branch of validity checking, we reward:

a parachain validator for each validity statement of the parachain block that it issues.
should be made in polkadot, probably near https://github.com/paritytech/polkadot/blob/master/runtime/src/parachains.rs#L741

[x] In the branch of block production, we reward:

the block producer for producing a (non-uncle) block in the relay chain,
the block producer for each reference to a previously unreferenced uncle, and
the producer of each referenced uncle block.

[x] traitify timestamp instead of direct use, note that contract and aura are using it directly as well
timestamp trait: what api is to be used, returning 0 if timestamp is not yet inserted ?

related to https://github.com/paritytech/substrate/issues/2781

@alistairstewart could you take a look (and/or anyone else that knows how this should work)

hmm first era duration is incorrect because it is the time since unix_epoch. But I can't query the time from genesis config as it is 0.
solutions I can find are:

first era is not rewarded
first era is rewarded for a predefined duration (const param)

I have locally a branch on which stakers has information from current elected set and the elected set of previous era.
Thus uncle referenced have their author rewarded if they are in current or previous era.
At the same time the number of era to save might be to be thought. But more important we might want to make use of session historical there: https://github.com/paritytech/substrate/pull/2970
This session historical is just the trieroot of the session for a blocknumber, thus the referenced uncle needs to provide information related to the session of this time. I havn't looked at how this could be implemented.
(Also I'm on holiday this week, but I'm reachable, I can push version with stakers for two era, but I wanted to implement one test more)

@thiolliere Probably the best thing for the moment is to just disallow uncles across session boundaries. They wouldn't be verifiable anyway (via the CheckHeader implementation) without lots of extra trie-proof data, and would just slightly lower the expected value of authoring a block at the last block of a session.

or master is merged, so current PR only reward uncle author if they are in elected set.
We might want to change authorship dependency behind a feature, or an abstraction of some kind. but this can be done in another PR

seems broadly decent to me.

@thiolliere doesn't build?

@AlfonsoCev could you have a quick check that these code changes look like they have the correct logic?

@Kianenigma are you happy with this?

@thiolliere Observation is on inflation.rs, on the definition of function I_full: for full generality, we should have that I_full is equal to I_left when x <= x_ideal, and equal to I_right otherwise. Right now the division is set at x=0.5, which is the current value of the parameter x_ideal, but since we defined that parameter we should use it.


microk8s hostpath provisioner ignores "reclaimPolicy: Retain" for dynamic volume provisioning

I've defined a storage class in my microk8s cluster and set the reclaimPolicy: Retain property on it:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: my.db-storage
  labels:
    ikosa.stage: dev
provisioner: microk8s.io/hostpath
reclaimPolicy: Retain
volumeBindingMode: Immediate
allowVolumeExpansion: true

Defining a PersistentVolume using this class works as expected, as the volume automatically gets the persistentVolumeReclaimPolicy: Retain set.
apiVersion: v1
kind: PersistentVolume
metadata:
  name: test
  labels:
    my.volume: test
    my.stage: dev
spec:
  storageClassName: my.db-storage
  capacity:
    storage: 15Mi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: "/home/data/test"

kubectl describe persistentvolumes test
Name:            test
Labels:          my.stage=dev
                 my.volume=test
Annotations:     kubectl.kubernetes.io/last-applied-configuration:
                   {"apiVersion":"v1","kind":"PersistentVolume","metadata":{"annotations":{},"labels":{"my.stage":"dev","my.volume":"test"},"name":"tes...
Finalizers:      [kubernetes.io/pv-protection]
StorageClass:    my.db-storage
Status:          Available
Claim:
Reclaim Policy:  Retain
Access Modes:    RWO
VolumeMode:      Filesystem
Capacity:        15Mi
Node Affinity:   <none>
Message:
Source:
    Type:          HostPath (bare host directory volume)
    Path:          /home/data/test
    HostPathType:
Events:            <none>

Altough, when defining a PersistentVolumeClaim using this class, the Persistent Volume created dynamically gets the default persistentVolumeReclaimPolicy: Delete set.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: my-db-data
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 100Mi
  storageClassName: my.db-storage

kubectl describe persistentvolumes pvc-e273048d-1ec9-11e9-bab6-08002761592a
Name:            pvc-e273048d-1ec9-11e9-bab6-08002761592a
Labels:          <none>
Annotations:     hostPathProvisionerIdentity: my-microk8s-host
                 pv.kubernetes.io/provisioned-by: microk8s.io/hostpath
Finalizers:      [kubernetes.io/pv-protection]
StorageClass:    my.db-storage
Status:          Bound
Claim:           default/my-service-claim-db-data
Reclaim Policy:  Delete
Access Modes:    RWO
VolumeMode:      Filesystem
Capacity:        100Mi
Node Affinity:   <none>
Message:
Source:
    Type:          HostPath (bare host directory volume)
    Path:          /var/snap/microk8s/common/default-storage/default-my-service-claim-db-data-pvc-e273048d-1ec9-11e9-bab6-08002761592a
    HostPathType:
Events:            <none>

I tried to look into https://hub.docker.com/r/cdkbot/hostpath-provisioner, but there is no source repo linked.

I am facing a similar issue:
helm install --name my-release --set persistence.storageClass=microk8s-hostpath stable/cockroachdb
kubectl logs -n kube-system hostpath-provisioner-599db8d5fb-ghbhl
1 controller.go:445] Error getting claim "default/datadir-my-release-cockroachdb-2"'s StorageClass's fields: StorageClass "" not found

Hi all, make sure you have "storage" addon enabled. You should have a "hostpath" pod running on system

@alexkreidler The lines you mention are reading from the existing PV, not the PVC. It seems like https://github.com/kubernetes-incubator/external-storage/blob/v2.0.0/lib/controller/volume.go#L68 is our best hope to read it from the storageclass.
I do think it would be a better idea to recreate this on a more recent version of external-storage, but that might be a larger undertaking.

hmm, looks like retain policy could be configured using PV_RECLAIM_POLICY env var for provisioner pod (see https://github.com/juju-solutions/hostpath-provisioner/blob/master/hostpath-provisioner.go#L73). I added that to hostpath-provisioner deployment and volumes are created with Retain reclaim policy. But that env variable is commented in hostpath deployment spec, I think there is some reason for that? @ktsakalozos, maybe you know reasons for that?

I also would like to know why is this commented out. We are going to use microk8s in production soon and need to retain volumes.

@mcwienczek the hostpath-provisioner is based on [1]. You would better not use it in production. As mentioned in the upstream repository the code is not maintained anymore. It is offered in MicroK8s as an quick and easy way to get you a storage class. On a production environment you would want to follow a suggestion from upstream [2]. Let me know if you are interested in Canonical's recommendation.
[1] https://github.com/MaZderMind/hostpath-provisioner
[2] https://kubernetes.io/docs/concepts/storage/volumes/ and https://kubernetes.io/docs/concepts/storage/storage-classes/#provisioner

I didn't know that I can use hostPath from vanilla kubernetes. I will use hostPath instead then. Thank you for help @ktsakalozos.

@ktsakalozos maybe you should consider using https://github.com/rancher/local-path-provisioner instead. This seems alive and kicking.


Apache code highlighting

Describe the feature you'd like
I'd like syntax highlighting for Apache/httpd code, same as nginx already included. It is already included in highlighting.js library.
Describe the benefits this would bring to existing BookStack users
It's one of the most web server service and missing for the code block.
Can the goal of this request already be achieved via other means?
No. I tried to edit manually the source code to set as language-apache but didn't work.
Have you searched for an existing open/closed issue?

[X] I have searched for existing issues and none cover my fundemental request

How long have you been using BookStack?
1 to 5 years
Additional context
No response

Thanks for the request @tete2soja,
For code languages, I tend to stick with what's supported/provided officially by the codemirror project, for which there is no supported apache mode.

Thanks for the feedback. I will take a look to codemirror then and to ask them to add Apache on their side to get downstream after.

I don't believe codemirror are taking on new languages, and there's been a previous request for apache. If you do interact with codemirror, please don't do so on BookStack's behalf. I do not wish to burden them at all for the purpose of BookStack.

Since there's not an official language to use, and I'm not looking to support additional languages myself, I'll close this off.


Very compact view

As we described here near the end from sunnyape it would be nice to have a very compact view that matches the compact view from the original Transmission webui, one line per entry, to fit many more on a screen. This is handy when handling many, many entries.
Thanks!

Update: Looks like you have a typo on line 301 of List.vue ... it should be
return UserSettings.state.compactMode ? 46 : 72;
instead of
return UserSettings.state.condensedMode ? 46 : 72;
With this change, you actually get a much more compact view without the padding space. It would still be nice to have a one-line display as well.

Hi,
You're absolutely right, there's a typo in the current version, but it has already been fixed in the dev branch: https://github.com/6c65726f79/Transmissionic/blob/dev/src/views/List.vue
So when the new version will be released, there will be no more space between the lines. But I don't think I can make a more compact mode because it has to fit all screen sizes.
I'll try to work on it in the next few weeks.

Oh, nice! Thanks. I just manually corrected my install by editing the css file by hand. My install is downloaded from releases, I do not have a build system up to build the dev branch as of yet.) Appreciate it!

Which branch should be the safest and yet up to date branch if I wanted to build my own?

The dev branch contains all the latest changes, but it may contain unfinished features, so it is better to keep your current version. The next version should be ready soon.

Roger that. Will wait for the next release then.


update create_order doc

update result and full response of create_order doc.
https://binance-docs.github.io/apidocs/spot/en/#new-order-trade
cummulativeQuoteQty added at 2018-07-18

Thanks @amirmehdi


Truncate Description of RSS feed

How do I limit the description of an rss feed to a limited number of characters? (And if that's not possible: How do I remove the description?)

You should be able to use the Liquid truncate fileter either in the output Agent directly or in a EventFormattingAgent.

Thank you very much!
For future reference, if you have an RSS feed as an input and want to limit the description here's the code for the EventFormattingAgent:
{
 "instructions": {
   "title": "<a href=\"{{url}}\">{{title}}<\/a>",
   "description": "{{description | truncate: 500 }}"
 },
 "matchers": [

 ],
 "mode": "clean"
}

It might be worth adding this to the wiki for future reference.

added to the wiki


add typescript

it'd be great to have types for this modules. if needed, i'm able to help

coincidentally, just pushed some code to add base TypeScript. this is high on the priority list right now.

that's great! ty


improve Index[View].getKnownUsers()

I often add miniature features in micro releases, but you're probably right -- this should go into 3.2.0.
I'll change the milestone and make this a draft for now.

Agree. Thanks!


 I can see a search bar and enter a proposal ID or proposer ID. Currently, entering a valid proposal ID does filter the list of governance proposals but not the list of network upgrades, which stay on the screen. The result is it feels / looks like your search hasn't worked at all because the first "search results" bear no relevance to the ID you searched!
This chore is to hide network upgrade proposals when searching by proposal ID or proposer ID.
Acceptance criteria

[ ] When I search by proposer ID or proposal ID, the list of results returned are only for relevant proposals that match either of those terms

Steps to Reproduce

Go to 'Proposals'
Click on 'Filter'
Search for a proposal ID (go find a proposal to copy one from first)
See issue

Screenshots

Resolved by #4145 @jtsang586 if you could double check that would be amazing


What is the possible improvement on the performance of this project?

I've trained LibriSpeech train-clean-100 dataset with 20 epoch and get this results.
Training Epoch: 20 Average Loss: 2.504252 Average Validation WER: 40.84 Average Validation CER: 3.60
It doesn't seem maximally optimized as done in the paper(They suggest 1% of their dataset, 120 hours and got WER 29.23).
But the result seems encouraging for catching up their performance by adapting few techniques. Like SortaGrad or Language Models.
Could you suggest me what part of the paper is not implemented in here or possible improvements, then I could work on it improving performance of this project!

I'll  hopefully be able to answer this soon when I train a model on the full 1k hour dataset, but I wonder if baidu's results was the WER with a language model... That would have a nice reduction on the WER!

I actually just got an EC2 instance with more powerful GPUs so I can use larger batch sizes. I will be experimenting with parameters. As for the question of whether a language model is used, check out this resource (from one of the Baidu Engineers).  https://svail.github.io/mandarin/
The Key Part of the blog:
"Deep Speech predicts characters directly, it is learning a language model of its own. In theory it can model the long-term dependencies of language and doesn’t necessarily need a language model."

I just found this projects implements SortaGrad with initial sorted LMDB data and permuteBatchOrder.
And while seeing this lecture, Deep Learning for Speech Recognition (Adam Coates, Baidu) - around 1:15:10, normalizing utterances so that batches have similar lengths by padding some short utterances would improve performance after first sorted epoch.
What do you think?

@chanil1218 thanks for your input! Yeah currently I use permuteBatchOrder to implement sortaGrad for the first epoch. The mini-batches currently are also of similar lengths since they are batched by order of size, is that what you meant?

I'm not sure but the idea is little bit different because when we decide
the batch size in un-normalized inputs we end up concerning longest size
inputs due to possible memory exceed.
Then smaller piece of audio would take same one batch with left space with
the 0s.
They suggests padding smaller audio files into one piece to normalize size
of all of the possible audios to take similar memory space.
So then we don't have to waste.
The illustration would like this. For 3 batch size.
Before normalize audio,

-------- 0s

--------------- 0s

To nomalize(pad smaller audios to take one batch),

-------- --------------

-----------------------

--------------- ------

For utilizing memory efficiently.

For first sorted case would same issue because upper bound determined by
batch size(concerning longest audio, like 12000MB / 20 batches).
Earlier short audios,

-------

---------

But the last case,

---------------------

----------------------

-----------------------

I'm not just telling initial SortaGrad epoch.
2016년 10월 4일 (화) 오후 9:45, Sean Naren<EMAIL_ADDRESS>작성:

@chanil1218 https://github.com/chanil1218 thanks for your input! Yeah
currently I usepermuteBatchOrder to implement sortaGrad for the first
epoch. The mini-batches currently are also of similar lengths since they
are batched by order of size, is that what you meant?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SeanNaren/deepspeech.torch/issues/51#issuecomment-251377270,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABWrZfB_iWmdp5FnVbBSC39VUPc0iKVGks5qwkpPgaJpZM4KLvOB
.

@chanil1218 Can you report what hyperparameters you have used or have tried? Did you modify the model at all or the maxnorm?

@nn-learner I just modified maxNorm to 100

I also have to set the maxNorm to 100 to prevent exploding gradients. I'm going to revise the structure to maybe incorporate LSTMs instead of RNNs which have proven to be easier to train, but this goes away from the structure of DS2 thus isn't set in stone!

Revise the structure may work, I change the network form  BRNNs to BLSTMs results in  better performance, with 28.37% WER after 30~50 epochs.

I'll run tests using LSTMs instead of RNNs for AN4. If it gets better results (with roughly the same parameters) then I'll replace the RNNs with LSTMs on the main branch.

@ZhishengWang I don't have a powerful set of GPUs. It takes forever to get the WER rate down. Do you mind sharing the weights for the 100 hours that it was trained on?

@nn-learner Currently  I only have a trained model with default architecture (BRNNs) and it gets about 42.15% WER on  the LibriSpeech train-clean-100 dataset. If it's helpful to you, I will be glad to share the trained model.

It's the current issue I'm dealing with (not enough compute power), once I've knuckled down the architecture that doesn't blow up as easily (gradient wise), I'll spin up a server and train on the 1k dataset.

@ZhishengWang Yes, I would actually appreciate even those weights. The best I have been able to perform is 50% on 1x12gb GPU.

@SeanNaren Yes, I will probably try to launch those new Amazon K80 Instances they have as well.

I have a couple of question regarding the training performance.
First of all I observed that time and GPU memory needed to process each batch constantly increase in the first epoch. But I assume that's expected behaviour as the first epoch uses SortaGrad, right? What bothers me is that after going through all batches in the training, the memory usage is around 70%-85% (depending on the batch size) on Titan X and then suddenly it goes up and the script crashes due to out of memory error (produced by cutorch). Can an increase of 2-4GB in GPU usage after processing all batches be somehow explained? Does the validation consume so much resources?
The second issue with Titan X was that I was often getting inf losses and further training was impossible. But I didn't change the maxNorm, maybe that could be the problem?
I have also run training on 2xK80 and it seems that batch size of 20 is around maximum what can be handled by a single K80. The training time was around 1h17m per epoch for 100h Librispeech. Seems quite long, doesn't it?
@SeanNaren You are trying to train the model on full 1k Libri dataset, so you have probably got decent training performance for smaller sets like 100 hours. Can you share what setup you use and whether you changed any hyperparameters  other than maxNorm?
And one last question: how can I save the model? "-saveModelInTraining true" results in error...

Hi, @nn-learner, try this link  and see if it's available.

@ZhishengWang Hi, I don't think it is the correct link. It says page does not exit.

do you guys have 1k hour Libri data training performance? I can reach something like 19% CER and 50% WER on the clean test set. thanks

When you guys have been training the data, I know you have been using the 100 hours Librispeech data. What validation dataset are you using? Is it the test set, "clean" speech (http://www.openslr.org/resources/12/test-clean.tar.gz)?

Have a look here for WER/CERs as well as the pre-trained models!
I'll close this issue for now but there is a pretty blatant piece missing from the package (but its not simple!). Using a language model and a CTC beam decoder would help drastically since the training data is fairly small. But this does take work and time!

What hardware configuration did you end up using for the LibriSpeech
training?  Did you use the EC2 K80?  Roughly how long did it take?
On Thu, Jan 5, 2017 at 4:23 PM, Sean Naren<EMAIL_ADDRESS>wrote:

Have a look here
https://github.com/SeanNaren/deepspeech.torch#pre-trained-networks for
WER/CERs as well as the pre-trained models!
I'll close this issue for now but there is a pretty blatant piece missing
from the package (but its not simple!). Using a language model and a CTC
beam decoder would help drastically since the training data is fairly
small. But this does take work and time!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/SeanNaren/deepspeech.torch/issues/51#issuecomment-270669802,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AANaAy29GGIFL5PlaGRkZZXdam6Rg1qFks5rPQr6gaJpZM4KLvOB
.

@AdolfVonKleist I used the p2.xlarge instance and it took around a week and a bit to train (giving a rough estimate because I had to restart training a few times from the saved models)


Sending InputEvent with rpc over network doesn't work properly

Operating system or device - Godot version:
Windows 10, Godot 2.2 alpha compiled with VS2015
Issue description:

rpc_id( 1, "receive_input", event)
should call receive_input(event) on server but event change from source to destination.
example:
original InputEvent sent:
Device 0 ID 279 Event: Key Unicode:  Scan: 16777231 Echo: True PressedTrue
InputEvent received:
Device 0 ID 0 Event: Key Unicode:  Scan: 16777231 Echo: False PressedFalse
Steps to reproduce:
-Open the project in two instances
-Click on server in one instance
-Click on client in the other.
-Perform inputs on client window
-Look console outputs
Link to minimal example project:
input_event_issue.zip

This is and is not a bug.
It is a bug because the binary serializer (unlike the text one) can't handle objects. this needs to be added.
At the same time, sending serialized objects via network (In 3.0, InputEvent is an object) is super dangerous, as they can contain scripts. This will probably disabled by default.
I suggest these are converted to dictionaries before sending.

@reduz Maybe we should disallow sending and receiving of objects containing scripts, and issue a warning when attempting to send such?

Aside from prevent to send objects due to security issues, it's not so uncommon sending input from clients to server. I think that having to write a wrapper every time you need to send what is an object (not a script) it's a futile effort. If it's possible to block scripts (or nodes in general) from being sent over network it'll be better. (IMHO of course)

Maybe blocking scripts would be possible.. I am not sure..
On Jul 1, 2017 12:14 PM, "Lorenzo Beccaro"<EMAIL_ADDRESS>wrote:

Aside from prevent to send objects due to security issues, it's not so
uncommon sending input from clients to server. I think that having to write
a wrapper every time you need to send what is an object (not a script) it's
a futile effort. If it's possible to block scripts (or nodes in general)
from being sent over network it'll be better. (IMHO of course)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/9456#issuecomment-312437560,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z25Whavp4828N3bj3vLG8hOeE_ZJeks5sJmJmgaJpZM4OK3oV
.

First of all thank you for your report and sorry for the delay.
We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to.
We still have hundreds of issues whose relevance/reproducibility needs to be checked against the current stable version, and that's where you can help us.
Could you check if the issue that you described initially is still relevant/reproducible in Godot 3.0 or any newer version, and comment about its current status here?
For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors.
Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed.
Thanks in advance.
Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it.

InputEvent objects get sent as EncodedObjectAsID in Godot 3.1. I'm not sure when this change happened, but that the new behaviour. Just in case someone gets to this page looking for the same thing.
Perhaps EncodedObjectAsID is the default for all objects sent over RPC but it doesn't make sense for an InputEvent, because that object would only exist on the machine that received it.


Support using a fixed port number. Removed (broken) support for client and added s…

I ran into some issues with getting Webmock/VCR to behave nicely with this gem. By pinning the port we can use VCR to record the responses. This speeds up tests(and makes it less of a hassle to configure VCR.
I've also broken the logic up into objects and added some tests.

Sorry, but this code will fail when I have 4 unicorn workers that al try to start Chrome on the same port at the same time. The random port should be kept to support this.

Sorry, but this code will fail when I have 4 unicorn workers that al try to start Chrome on the same port at the same time. The random port should be kept to support this.

Random ports are still the default behaviour.

What part of the client support is broken?

This part:
     if options[:client].nil?
      # random port at 1025 or higher
      random_port = 1024 + Random.rand(65_535 - 1024)
      pid = Process.spawn "chrome --remote-debugging-port=#{random_port} --headless"
    end

    success = false
    10.times do
      begin
        TCPSocket.new('localhost', random_port)
        success = true
        break
      rescue
      end
      sleep 1
    end

    return unless success

I think you should be able to use that in tests if you really want to mock at the network level. I would advise you to use mocha on a higher level though.

I'm testing it on a higher level. I'm using an adapter pattern to be able to user recorded VCR responses in development. Its really nice. I could elaborate on it if you are interested.

@frenkel I've added even more changes. I destroyed quite a bit of code during the refactor. I think everyting runs now and added a readme for future me.
If you want to run the gem in isolation you can run the script in bin/run_with_website. I haven't tried this in your usecase yet. Let me know if I missed something!

 I think this branch still needs more debugging.

@frenkel I think this PR is done. Let me know if I missed something!

I'll have a look tomorrow.

Sorry for the delay. I've solved the issue for the dummy app. Does it work in the your host apps as well?

Seems to work fine now, thanks!

After some more testing I discovered that it will print the default browser header/footer text such as the url and page number. Any idea what causes that? I've yanked the release for now. Do you not get those? It seems the logic for passing displayHeaderFooter is now different/wrong. In my use case I'm not passing any of those, so they will probably be nil.

Sorry for that. I think I noticed on the way and has a similar issue with the way it was implemented in the host application. I'll reproduce and solve it asap!


[Blog Contribution] Run a MicroProfile application as a serverless function with CloudEvents in IBM Cloud Code Engine

MicroProfile.io WordPress
MicroProfiler
To new Contributors who need to gain access to the WordPress site, please provide:

[ ]   Name:
[ ]   Email:

**Content copy/edit review (available & optional)

[ ]  Draft

Social Media Description

[ ]  280 max chararters includes the author's Twitter or Github ID & blog link
Alex Butcher (GH: abutch3r) and @emilyfhjiang demonstrate how to run a MicroProfile app on @OpenLibertyIO as a serverless function on IBM Cloud Code Engine.

Design Card  (for MicroProfile designer)

[ ]  Minimal requirements highlight the MicroProfiler & the title of the blog

Notes
To help with everything

Landing here!!

@lauracowen This one is missing the link, also the image looks different to the other 3 , it is OK if that is the purpose, just verifying

Oops, sorry, I've added the link in now.
In what way does the image look different? I have uploaded a smaller, cropped version of it in case it was just the image dimensions. Could you paste a screenshot here if it still looks odd, pls?

Approved and published
Permalink: https://microprofile.io/2022/12/09/microprofile-serverless-function/
Added tags:  docker serverless and cloud native

[x]  Ensure the content of post is relevant and applicable to Microprofile
[x]  Check that content has the author(s) name
[x]  Check that the content provides credit to collaborators
[x]  Check that post has a “Page Header Image”
[x]  The image should be between 1600px - 2000px wide and have a minimum height of 500px for best results.
codeengine2.png - 116 KB - 2942 by 895 pixels
[x]  Check for grammatical errors
[x]  Check for TMs and copyrights

Great, thank you.


Highlight on mobile click

Version 2.5.0
Steps to Reproduce
When users interact with the menu on mobile devices, the burger is highlighted during the transition.
Reproduceable on the example site: https://hamburger-react.netlify.app/
Note
This may or may not be expected, but it would be nice to have the option to turn it off. I recognize most click events on mobile are associated with this behavior.
Workaround
My temporary (tested only on chrome) workaround using style jsx:
<div className='burger-container' onClick={props.onClick}>
    <Spiral size={28} label='menu' easing="ease-out" hideOutline={true}/>
</div>
<style jsx>{`
  .burger-container:first-child {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
`}</style>

webkit, moz, ms, and user-select statements taken from this stack overflow.

Thanks for reporting.
I indeed decided not to turn this off by default since it's expected on click, but I agree it would be helpful to make it more easy to turn off.
In version 3.0 you will be able to simply forward style and className, for now this would be simplest:
.hamburger-react { -webkit-touch-callout: … }

hello, thanks for the pkg it's great
any eta for the v3 release ?
thanks !

No ETA yet! Working on it in the v3 branch whenever I can, but I've been short on time. I'll let you know when it's ready to test.

Update about v3.0: Looking for new owner