Ribbon types without ymin/ymax should inherit from y

Otherwise you get nonsensical plots like:
tinyplot::plt(Petal.Length ~ Sepal.Length, data = iris, type = "ribbon")

Created on 2024-10-07 with reprex v2.1.1
Another option would be to error out explicitly with warning that ymin and ymax are required args for type = "ribbon". But I think inheriting from y (so that the above plot looks the same as a line plot) is a better default, since we already draw y as a line if it is provided.
(H/T @zeileis comment here. I'll fix as part of the same PR.)

I agree that resorting to a line plot is a good default.
Related question: Would we want to be able to specify ymin and ymax through the formula?

Related question: Would we want to be able to specify ymin and ymax through the formula?

Yes!
Honestly, this is something that I'd love to have a "good" syntax for. I'm all ears if you have ideas. We should probably open a separate issue to discuss.
P.S. The way that base plot handles this AFAICT is to allow ymin/ymax passing through NSE. I can't think of an example off the top of my head, though...

Not a strong preference, but I feel that we already have arguments called ymin and ymax, and it's generally good to have only one way of doing things, and to avoid overloading the formula. by is a very common use-case, and I think it might be confusing if the formula is used for more than that.
But again, this is a relatively weak preference.

Well, we can either use standard non-standard evaluation when building the model.frame(). This would be like weights = ... or offset = ... in regression functions like lm() and glm(). So we could include ymin and ymax there. BTW: weights might also be handy, especially for categorical data but also for pre-binned data.
Alternatively, we could have formulas like cbind(ymin, y, ymax) ~ x | by. But then we would need to decide whether to turn multivariate responses into matrices or data frames etc.


Fix checkstyle

Fixes some CheckStyle violations.
Note:

Some JavaDoc comments not complete and labelled TODO, created in order to resolve some CheckStyle violations.

Checkstyle resolved 👍


More zap undo fixes II

I am currently torturing myself with zap undos enabled in prod. I think zap undos can be a nice feature but we're not there yet.[^1] The code could probably also be refactored to make it more simple and thus less error-prone. However, this PR focuses on simply fixing some more[^2] existing issues with it:
toasts due to zaps to the same item are not merged if not same method is used (default vs custom amount):
https://github.com/stackernews/stacker.news/assets/27162016/2e947122-d6ff-44e8-97c1-134361945630
fixed in 24a89135
progress bar jumped if an underlying toast finished:
https://github.com/stackernews/stacker.news/assets/27162016/66f6f433-4931-4b01-a7b2-7a0024ded9ee
fixed in 92d98839
custom zap modal is always closed after any custom zap is finished. this can get REALLY annoying if you use custom zaps a lot:
https://github.com/stackernews/stacker.news/assets/27162016/960ba7e2-6f5a-43ef-8fee-6dc0385a3939
fixed in eeb68e38
[^1]: For example, it would make more sense to make the setting numeric so the undo flow would only get triggered if your zap is above X sats. I think that would make this feature a lot more useful, less annoying and hence more used. I will do this in another PR though, it should only require very few changes.
[^2]: "some more" due to #872

Just a heads up to be extra careful with causing the entire component tree to rerender in by changing the value of context providers, eg make sure your hook deps are airtight. Currently, both the modal provider and toast provider each cause an additional rerender on every page load according to the React profiler.


syncyomi: init at 0.3.8

Description of changes
SyncYomi, an open-source project to synchronize Tachiyomi manga reading progress and library across multiple devices.
I've also written a NixOS service module that is working for me so far but will probably need some more polishing before a PR.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] 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
[x] 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

[x] Fits CONTRIBUTING.md.

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

Thanks for the feedback. Thoughts on using pnpmDeps as an environment variable in the build script instead of a recursive binding? It'd presumably make overriding the package easier, seeing as how buildGoModule doesn't seem to offer a way to get the final attributes within the derivation.


Size of calibration board

What's the size of the calibration board and how to change the square size and the board size from code?

The calibration board can be any size. You can change the square size and the board size in this camera_calibration.launch file.

To get the square size and the board dimensions, check this website


Collecting all yum executions for slaves in one for the sake of performance

@Sanne It's not as nice "semantically", but running all yum executions within one transaction gives a nice speed-up.

@Sanne pushed one more commit for installing CouchDB via yum for now. Docker continues to fail with intermittend errors related to device mapper (maybe this issue is related: https://github.com/docker/docker/issues/4036), and I think it's best to wait until there is a new Docker release which run more stable.

Hi @gunnarmorling , sorry I don't agree with the yum refactoring. Speed is definitely not a point, maintainability is the priority and after now creating a couple more machines for other reasons I'd actually prefer to split out each database support into a different role.
I'll apply your "ll" alias, but remember you shouldn't ever need to actually login to these.
About the CouchDB not running in Docker.. why we rung MongoDB in it if it's not ready for that?
I'd rather get rid of Docker at this point, and rather use Docker only for developer images (for developers to run locally).

merged, except the yum executions merge

sorry I don't agree with the yum refactoring. Speed is definitely not a point

Sanne, please let's come in the future to a consensus in case of disagreements prior to just altering a proposed change and moving ahead. No biggie in this case, but it should be a general base for working together. Remember, this is infrastructure we all contribute to and we all use.
Speed is for sure a point; If setting up things takes painfully long, it will create a barrier for improving this stuff and eventually people will run yum manually on nodes if the automated way blocks their flow. Regarding different roles, sure, we can look into it, but it seems like overkill to me. If it weren't for the issues with Docker, starting all these services on demand still appears as the best option to me (not only for Couch/MongoDB, but also for SQL databases).

why we rung MongoDB in it if it's not ready for that

The OGM jobs run Mongo via that Maven plug-in, just as it was the case before. There is no equivalent plug-in for CouchDB hence the install. I'm quite happy with Docker as is, it is not really used by any jobs atm. We could remove it from the set-up, but having the package around does do no harm.

Sanne, please let's come in the future to a consensus in case of disagreements prior to just altering a proposed change and moving ahead. No biggie in this case, but it should be a general base for working together. Remember, this is infrastructure we all contribute to and we all use.

Yea I agree, sorry I made a practical call to cleanup the PR block to not let them hanging here as we switch to other topics.
It was also conflicting with other changes I needed urgently, and not having much time now. I wouldn't have done this shameful move if I wasn't sure it would be trivial to repeat your change in case we agree to do it one day, so it was more like to get your other improvements in asap ;)
I agree speed is nice, but the benefit is too low imho. Happy to rediscuss this in future when we learn more about it. I'm definitely not sitting in front of the screen waiting when it runs.. 15 minutes or 15m:20s is the same for me.

The OGM jobs run Mongo via that Maven plug-in, just as it was the case before. There is no equivalent plug-in for CouchDB hence the install. I'm quite happy with Docker as is, it is not really used by any jobs atm. We could remove it from the set-up, but having the package around does do no harm.

Ok, thanks I got confused. I thought Mongo would be used via the non-plugin ultimately. I'd like to have both options at some point.


Added CryptoMB private key provider.

Commit Message:
Intel's IPP (Integrated Performance Primitives) crypto library has support for multi-buffer crypto operations (see https://github.com/intel/ipp-crypto/tree/develop/sources/ippcp/crypto_mb). Briefly, multi-buffer
cryptography is implemented with AVX-512 IFMA instructions using a SIMD (single instruction, multiple data) mechanism. Up to eight RSA or ECDSA operations are gathered together into a buffer and processed at the same time, providing potentially improved performance. The AVX-512 instructions are available on recently launched 3rd generation Xeon Scalable server processors (Ice Lake server) processors.
This commit adds a private key provider to accelerate RSA and ECDSA crypto operations on recent Intel Xeon processors. Every worker thread has a queue of up-to-eight crypto operations. When the queue is full or when the timer is triggered, the queue is processed and all the pending handshakes are notified.
The potential performance benefit depends on many factors: the size of the cpuset Envoy is running on, incoming traffic pattern, encryption type (RSA or ECDSA), and key size. In my own testing I saw the biggest performance increase when long RSA keys were used on an Envoy running in a fairly limited environment serving lots of new incoming TLS requests.
Additional Description:
One new dependency is introduced: Intel’s ipp-crypto library. The library has to be patched at the moment in order to make it compile against BoringSSL and Bazel build system. The ipp-crypto team has indicated that they will accept the patches and release them in future ipp-crypto versions.
Basic end-to-end tests are provided, and a fake library interface is included for testing on systems without the required AVX-512 instruction set.
Risk Level: Medium (TLS security feature, not enabled by default)
Testing: unit tests, integration tests
Docs Changes: API interface is documented
Release Notes: N/A
Platform Specific Features: Requires Intel 3rd generation Xeon Scalable server processor for the AVX-512 IFMA instruction set.
Fixes: #15871

Results from OSSF Scorecard. Scores need improving based on https://github.com/envoyproxy/envoy/blob/main/DEPENDENCY_POLICY.md#new-external-dependencies

RESULTS
-------
Repo: github.com/intel/ipp-crypto
Active: Fail 10
Automatic-Dependency-Update: Fail 3
Binary-Artifacts: Fail 10
Branch-Protection: Fail 10
CI-Tests: Fail 10
CII-Best-Practices: Fail 10
Code-Review: Pass 10
Contributors: Fail 10
Frozen-Deps: Fail 5
Fuzzing: Fail 10
Packaging: Fail 0
Pull-Requests: Fail 10
SAST: Fail 10
Security-Policy: Pass 10
Signed-Releases: Fail 0
Signed-Tags: Fail 10
Token-Permissions: Pass 10

Do we have an assigned sponsor for this extension? As per the extension policy these kind of extensions will need someone shepherding this (especially due to the complexity of this PR) PR
cc @ggreenway @lizan @htuch since ya'll have been somewhat involved in reviewing this already
Since there seems to be some identified delays here around making sure the necessary patches are upstreamed it might be that the contrib/ extension system will have landed by then, at which point we can be a bit more lax about sponsorship requirements

I don't have the cycles right now to be able to sponsor this (but super cool extension). @ipuustin what is your thought on a contrib/ vs. core Envoy extension here?

I think this is a good candidate for contrib, and if it receives significant interest/usage, I may sponsor moving it into core at that time.

@ipuustin should we go with contrib/ and close this PR?

@htuch Sorry for the delay answering this (I was travelling and am still out of office :-). I now read through the contrib proposal and I think it sounds a good match for CryptoMB private key provider. The extension is clearly relevant only to people who have access to supported hardware. I think that people with that hardware and who are also processing large amounts of TLS requests can find the extension in contrib and take it into use.
Do you know what's the timeline for contrib infrastructure work? And will it be possible to enable particular contrib extensions in Envoy builds just from bazel command line, or will it require file changes?
@ggreenway Thanks for considering to sponsor this extension in the future!

@mattklein123 is working on contrib/ right now, tracked at https://github.com/envoyproxy/envoy/issues/14078.

Waiting for /contrib
/wait

Let's continue in contrib: https://github.com/envoyproxy/envoy/pull/17826


[FFI] Specifically check handle for recursion during shutdown

NOTE: previously slot may get overriden by child class and it
is better to directly check for handle here.
Can resolve some flaky error for long throw in CI

Thanks for the PR! Does it finally resolve the infinite recursion issue when an exception is thrown in the constructor?


docs: fix Bidi_Mirroring_Glyph readme

Fixes the docs regression introduced in #83.
Ref: https://github.com/node-unicode/node-unicode-data/pull/83#issuecomment-2464110901.

…and released in v1.6.4. Thanks!


gql: Search with multiple target vectors and weights

Closes #304
This PR adds support for "multiple vectors per target"  and "multiple weights per target" features in search, using the PR from go-client as a reference.
How is this tested?
Added unit tests for Targets and NearVectorArgument builders.

I'll need to bump the version of the target container to v1.27 and update the integration tests to use the new feature before we merge.


Missing H1 for cosmos-spark_3-1_2-12-readme

The cosmos-spark_3-1_2-12-readme landing page article on https://github.com/Azure/azure-docs-sdk-java/blob/main/docs-ref-services/latest/cosmos-spark_3-1_2-12-readme.md has an H2 instead of an H1 for the title header.
The Readme at sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md is using the H2 instead of H1 for title header. Can the readme be updated and re-imported to Docs?

It is intentional because it is pulled-in (inlined) form the public documentation (which is in a separate repo) under an H1 header.

@FabianMeiswinkel This is part of a cleanup of warnings in Docs, and this document is throwing a Missing H1 in the error logs.


Multi-Platform (Mac/Windows) Macro Stager plus MacOS Sandbox Fixes

Added the macro stager generator to rule all macro stagers! Empire can now generate a single macro payload that will run in both Windows & Mac targets without modification, including handling the various dylib references needed for MacOS (which seems to vary with MS Office versions and basically without notice).  This means a single payload can be used to target without concern of victim's OS.  The macro determines if Mac or if Win and does the rest. [Note: this could also be used to sub in your favorite Mac or Win specific payload from another tool, e.g. Cobalt Strike for Windows, without having to build the macro from scratch-- simply copy and paste over the top of the platform's section.
Also in the Macro payload is a basic framework to add in click/pixel tracking with your favorite host/provider (or DIY on your own).  This is handy to help determine if shell call backs are from persistence or from new macro openings, also helps to troubleshoot when callbacks don't happen but pixel tracking does (e.g. IPS).
Fixes for Mac OS sandbox mode, specifically Mac OS sandboxes (e.g. macros firing on Office 2016) do NOT let you make socket connections via python to determine the local host's IP address, so I added a fall back to simply parse ifconfig which seems to work just fine in the sandbox, if a little clunky.
Also, sometimes in Mac OS Sandbox mode, python returns a leading '' char in the username.  Added checking for this and removed it from sysinfo.
A couple minor tweaks to things, like more specific logging on the crypto exceptions (still a random bug occasionally happens where the agent can't seem to properly decrypt messages from the server, but hopefully this will help track this down).

Oh, and big thanks to the work from @disk0nn3ct for deving up the core of the template this module is based off of, and to @h1ghtopfade and "Not Charles" for testing.  Great team!

Hey @malcomvetter , the windows/powershell portion of this works fine. The logic for executing the python version is working. Unless I'm missing something??? It looks like there is an issue before making a request to the tracking url.

I think there's a crypto bug in the python payload (superseding this
module). For example, if I set the the python payload to redirect standard
error to a file, about 1/3 or 1/4 times there's a crypto error. That's why
I added the more granular exception handling in the crypto bits. My
suspicion is when the python payload's last two chars are "==" on its own
line, and something isn't rendering those last bytes correctly.
When I encountered this, I just ran execute again and got a python payload
with more than "==" in the last line of the payload and it works.
We need to figure out what is upstream causing this. Unless you're maybe
seeing something more than me??
On Fri, Aug 25, 2017 at 10:44 PM Chris Ross<EMAIL_ADDRESS>wrote:

Hey @malcomvetter https://github.com/malcomvetter , the
windows/powershell portion of this works fine. The logic for executing the
python version is working. Unless I'm missing something??? It looks like
there is an issue before making a request to the tracking url.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/EmpireProject/Empire/pull/644#issuecomment-325081068,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMJRZZDnOQ8sqGgmZmzFalMiI_vDIt7zks5sb5S4gaJpZM4O-JiP
.

Ah ok gotcha, I'll see if I can figure it out. The python portion of Empire needs some love anyway.

A hack could be to just regenerate the payload until the padding/last bits
don't end up as "==" as its own string. Maybe.
On Fri, Aug 25, 2017 at 11:09 PM Chris Ross<EMAIL_ADDRESS>wrote:

Ah ok gotcha, I'll see if I can figure it out. The python portion of
Empire needs some love anyway.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/EmpireProject/Empire/pull/644#issuecomment-325083004,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMJRZQhsq3hNBWhSXrmJ_qN39EOrQPc9ks5sb5qFgaJpZM4O-JiP
.

What do you guys need for this?

Replacing this PR with this one:
https://github.com/EmpireProject/Empire/pull/767


MRG, DOC: Better org of source PSD

Yesterday I wanted to show a colleague our source PSD normalization, but it was difficult to find. This re-tittles and moves it to a more appropriate location with better title keywords.
Also I changed "power spectrum density" (PSD) to be the more standard (AFAIK) "power spectral density".
@drammock feel free to merge if you're happy

renderings:

https://13529-1301584-gh.circle-artifacts.com/0/dev/auto_examples/time_frequency/plot_source_power_spectrum.html#sphx-glr-auto-examples-time-frequency-plot-source-power-spectrum-py
https://13529-1301584-gh.circle-artifacts.com/0/dev/auto_examples/time_frequency/plot_source_power_spectrum_opm.html#sphx-glr-auto-examples-time-frequency-plot-source-power-spectrum-opm-py

thanks @larsoner


[Bug] addButtonFromView($stack, $name, $view, $position = false) without 'meta'

Bug report
Why method addButtonFromView without meta?

Hello @zivarg
As Kapa says, if you check our docs you can use meta for that's method.
I will close this issue, but please feel free to re-open or create a new one if needed.
Cheers.


Changing extension to jsx

As I'm using atom, formatting a component with .js extension will not work properly. I want to change the extension to .jsx.
How is it possible. Any side effects ?

No side effects, but you may need to update the scripts under the tools directory so that it generates files with jsx extension.


Add missing std:: namespace

Description
I wish there was a systematic way to find uses of C standard library functions that have C++ standard library equivalents. The only way I find this is by staring at enough code for a long time.
Eventually once we can use import std; then any remaining uses of C standard library functions will be detected since import std; does not include the C standard library.

By the way, std::fwrite and a few other standard library functions we use have a return value that we're ignoring. I came across a clang-tidy check in the cert- category that can flag such ignored return values. That may be something we should enable.


Cannot support Carthage

Cannot integrate with Carthage, met the error like: xcodebuild timed out while trying to read YPImagePicker.xcworkspace 😭

is it on your roadmap?


CTRL+C / CTRL+V not working from windows

In what browser? Did you check devel branch?

Chrome
Nope, v0.8.8

Try latest 0.9.3 it work in chrome but not in IE

When upgrading to 0.9.3 marking an expression with a mouse double click does not work from mac on chrome

By "marking an expression with a mouse double click" you mean selecting text inside terminal?

yes

Should be fixed in version 0.11.2.


Create check index and tabular output

Description
This PR adds a "check index" for the almanack, that is, a described list of "checks" which are performed by the almanack package. It also organizes the output so that the data descriptions and unique identifiers can be observed from the same location. While I worked through this I noticed a need to perform changes with regards to subpackage and module naming or organization. I added these changes to this work as progressive refactoring to make the structure more defined in relationship to the check index.
Closes #108
What is the nature of your change?

[ ] Content additions or updates (adds or updates content)
[ ] Bug fix (fixes an issue).
[x] Enhancement (adds functionality).
[ ] Breaking change (these changes would cause existing functionality to not work as expected).

Checklist
Please ensure that all boxes are checked before indicating that this pull request is ready for review.

[x] I have read the CONTRIBUTING.md guidelines.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own contributions.
[x] I have commented my content, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to related documentation (outside of book content).
[x] My changes generate no new warnings.
[x] New and existing tests pass locally with my changes.
[x] I have added tests that prove my additions are effective or that my feature works.
[x] I have deleted all non-relevant text in this pull request template.

Thank you @gwaybio ! After making some updates based on your comments I'm going to merge this in now.


Mr.Fedorov

Type: Feature Request
it's always asked me API key, don't do that. I hope you can change your marketing.
VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z)
OS version: Windows_NT x64 10.0.19042
Modes:

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


[Feature Request]: Read INPUT from GPIO pins

What feature would you like to see added to TallyArbiter?
I know that seems weird but we have a second switcher that is solid relay (no TCP or UDP) tally. I want to be able to listen on GPIO pins as a source. If a GPIO pin gets pulled to ground, then  that's program. Of course with this type of system, you can't tell preview vs program. Only Program.
Is there a way to do this?

@chalamministries maybe this gist will help you:
https://gist.github.com/josephdadams/889bac1bcbc1d48d0f0d496ba6c4d44f
I think GPI and GPO support should be separate programs outside of Tally Arbiter server so that you can run the server anywhere and have the data sent to it.
This gist could run on a Pi and get the data you want and send it to TA via OSC.


Remove "External" mode?

If so, replace it with some way to go into Tube display 100% (crossfade entirely to the tubes)

Done per #6


HTML

HTML
User Story
As a boot-camp student
I want the pre-work notes to be structured on webpage so that I can easily find and reach information
##Acceptance Criteria
GIVEN A Pre-work Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, GIT and Java Script with associated notes listed

closed


Add COS integration

This PR adds integration with Canonical Observability Stack.

needs https://github.com/canonical/oathkeeper-rock/pull/69 to be merged first


ADT Plugins not enabled or unavailable

Question
Thanks for those great addons!
For any reason when opening the search tool, I see an error an the bottom of window in tab Abap Code Search (DevEpos) and a similar one in tab Abap Object Search (DevEpos) and within Tags, too:

I'm running Eclipse 2024-06 and those plugin versions

S/4 Hana on-premise is version SAP-Basis 7.57 SP2.
Do I miss the obvious? Anything I've got to upgrade or any switches I've to enable?

Hi @MichiFr,
did you install the ABAP parts for each plug-in in your system?

ABAP Tags
ABAP Code Search
ABAP Search and Analysis Tools

Yes, I did.
At least the screenshot about installed components in Eclipse claims, those are installed.
Or do I misunderstand the prerequisites and need additional parts on Eclipse side?

Those are only the parts for Eclipse, so the UI parts. There is currently no overview from Eclipse if the required ABAP part is installed. Please go into your system and check if the backend part is installed.

Open abapGit in your ABAP system -  transaction ZABAPGIT or program ZABAPGIT_STANDALONE
Check if repository is fully installed

For ABAP Code Search it should look like this in abapGit

If you are not familiar with abapGit, you can find the documentation how to install and use it here https://docs.abapgit.org.
The links I posted in my previous comment are the ABAP repositories that you need to install with abapGit.

Ah thanks, that explains it!
We do have abapGit installed in S/4, so I will installed the backend parts of you plugins as well and see if this solves the "issue".
Thanks for your support!

No problem. Do not forget to restart your eclipse after you installed the backend parts with abapGit.

@MichiFr Is the issue resolved?

Hi, did not yet retried ao far, sorry.


Reduce locale definitions

Summary

Currently projects using terra-dev-site are required to define which locales they use in two different places: terraI18n.config.js and site.config.js. This update allows terra-dev-site to read locale configurations directly from terraI18n.config.js. Terra-dev-site will fall back on defaults if locale configs are not found.

Closes #151
Deployment Link

https://terra-dev-site-deployed-pr-#.herokuapp.com/
Testing

I used the orion-application repo as a testing environment for this change using the following steps:

changed the terra-dev-site dependency from ^6.0.0 to cerner/terra-dev-site#reduce-locale-definition in packages.json.
Commented out lines 2 and 7 in site.config.js.
Reduced the number of locales defined in terraI18n.config.js (so that they would differ from the defaults).
Ran npm install and npm start.
The site's settings menu only showed the locales defined in step 3.
Comment out the locale definitions in terraI18n.config.js.
Relaunched the site using npm start.
The site's settings menu showed the default locales.

Additional Details

Thank you for contributing to Terra.
@cerner/terra

This is essentially the simplest possible solution I could come up with, so feedback is very welcome. It doesn't use the global TERRA_AGGREGATED_LOCALES variable Matt mentioned in his comment on the issue since I wasn't sure if I could access webpack variables within the scripts folder. Additionally, this could lead to a bug where unsupported locales are defined in terraI18n.json, in which case the user could change the locale setting, but the language would remain english.

My intention was to access the TERRA_AGGREGATED_LOCALES global set via webpack in _AppSettingsProvider.jsx and to remove the locale config entirely.
Technically this is non-passive, however, in practice it makes no sense to add locales that aren't aggregated to the app config. We just need to make sure that adding the locale config is a no-op.
@emilyrohrbough @ryanthemanuel  @StephenEsser  Do you agree with my logic?

@mjhenkes I agree, although technically non-passive I think it is confusing terra-dev-site has the potential to show / list locales that were not aggregated during webpack. +1 to using the TERRA_AGGREGATED_LOCALES.
With this change, we should add a deprecation message (or remove the option) for the 'locales' config for anyone referencing it in the docs:  https://github.com/cerner/terra-dev-site/blob/master/config/site/site.config.js#L79

@mjhenkes @emilyrohrbough Thanks for the feedback, this gives me a better understanding of what we're going for. I'll start reworking things today.

@mjhenkes I also agree with that approach. The only caveat being the minimum version of terra-toolkit required for the TERRA_AGGREGATED_LOCALES to exist. Some teams may be using a version prior to this being available. This might force our hand to keep some passivity depending on how much of a concern we believe it to be.
We could also bump the minimum peer dependency of terra-toolkit to ^5.21.0
https://github.com/cerner/terra-toolkit-boneyard/blob/master/CHANGELOG.md#5210---february-18-2020
https://github.com/cerner/terra-dev-site/blob/master/package.json#L148

That's a good point about the terra-toolkit version. My thoughts would be to use the TERRA_AGGREGATED_LOCALES if available and fallback to the locales listed defined in the config.


Update Solidity compiler to latest version

Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Other than the above, the build LGTM


ipadOs

Any chance to make it working in IpadOs?

I will look into it, to make it "mobile" available


Crash on Documenting Autogenerated Code

I wanted to use autodoc2 to create documentation for the code in https://pypi.org/project/gitea/1.0.0/
But autodoc2 crashed with a stacktrace, see the attached log. My setup is as follows:

I untarred the tarball from PyPI and created a 'docs' subdirectory inside the top dir.
I ran sphinx-init and added '../../gitea' to 'autodoc2_packages' in 'sources/conf.y', as well as 'autodoc2' to the extensions.
I ran 'make html' in order to generate the documentation, which failed.

Then I manually ran 'autodoc2 list .' from the top directory ('gitea') to get the same stacktrace.
autodoc2-failure.log
I am using Debian Bookworm with autodoc2 0.5.0 (ie, the latest).
The bug was introduces in PR #40.

Problem with outdated version of astroid, sorry.


Add a menu for components

Create a menu similar to the tooltip for components. The components will be in a grid of 2 columns with icons displaying which component it is.

Done


setState update function

Now you can update your state in the same way as in React (still no reducers).

@chevsky this is great!
Just some small considerations:

Could you please update the npm package version? I think that the right thing to do here is to put 2.1.0, what you think?
Could you please also add this to the CHANGELOG file?

And, a non related question: did you find easy to add this feature? Is the code readable?
Thanks again!

@matheusml yep, that was not difficult, especially if you already know how redux works.

Thank you! 💯


org.bouncycastle:bcprov-jdk15on vulnerability detected

Hi folks,
From: https://snyk.io/vuln/SNYK-JAVA-ORGBOUNCYCASTLE-32412

Affected versions of this package are vulnerable to Unexpected Code Execution via the XMSS/XMSS^MT private key deserialization. A handcrafted private key could include references to unexpected classes which would be picked up from the class path for the executing application.

The recommendation is to use 1.60 at least.
This library uses PGPSecretKeyRingCollection(InputStream in) which is deprecated in 1.50-1.51 (https://github.com/bcgit/bc-java/blob/r1rv51/pg/src/main/java/org/bouncycastle/openpgp/PGPSecretKeyRingCollection.java#L48) and removed in 1.60 and 1.62 https://github.com/bcgit/bc-java/blob/r1rv62/pg/src/main/java/org/bouncycastle/openpgp/PGPSecretKeyRingCollection.java
Any chance you could do the adjustment soon?
Thanks

@craigwblake, I believe https://github.com/craigwblake/redline/pull/144 should take care of this

Any ETA on releasing v1.2.9 with this fix?

Any ETA on releasing v1.2.9 with this fix?

Seconded! :)
This is also causing issues when using other gradle plugins that depend on newer 1.60+ versions of bouncycastle modules. Gradle's default dependency resolution of using the newest version (assuming that the libraries are backwards compatible) doesn't work in this case because the PGPSecretKeyRingCollection(InputStream in) method was removed.

Should be able to get a new release out today.

Should be able to get a new release out today.

Wonderful! Thank you so much!

Thank you for the release @craigwblake 👍 you 🎸


help command is broken.

When running the command "smartthings help" after using the windows msi installer, you receive the following response:
 »   Warning: help is not a smartthings command. Did you mean apps? [y/n]:  »   Error: Run smartthings help for a list of available commands.
Version: @smartthings/cli/1.0.0-beta.15 win32-x64 node-v16.16.0
OS: Win10 21H2 build 19044.1889

We've added this to our list. We had decided to leave the help command out in favor of the --help flag so the fix may be just updating the error message. In any case, you can use --help already.

Sounds good, Thank you.

Fixed with #399


Add an endpoint to calculate Loan EMI #13

Created a function to calculate Loan Emi
Parameter Taken:
principle_amount: float,
annual_rate: float,
months: int
Return format
{
"Tag": "Loan Emi",
"Princiapl amount borrowed": principle_amount,
"Annual Rate of interest": annual_rate,
"Total number of monthly payments": months,
"EMI": f"{emi}%",
"Total Amount Payble": f"{emimonths}%",
"Interest amount": f"{emimonths-principle_amount}%"
}

Hey @DarK-VEnOM-16, requested some changes. Also, include your endpoint in the ENDPOINTS.md file.

@nikhil25803  Added /loan_emi to Endpoints.md Corrected the response output, and merged the branch conflicts

Congrats 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow these steps.

Star this repository. ⭐
SignIn / SignUp in [ClueLess Website](https://www.clueless.tech/)
Go to the profile section from the top right-hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.
That’s it. Follow the leaderboard!
And don’t forget to share your achievement with your friends.


Created new en_UK.lang

Created a new en_UK lang keyboard map for the british keyboard.

Hi @Devleaf-IT,
Please add to the localeList file as specified in the wiki... :D
I'll merge the PR as soon as you do this :D

Added now, thanks for reminding me :)

No problem @Devleaf-IT, Thanks for your work ;D


[develop] Request object

I'm finding that the current code doesn't work consistently, but if I change line 949 to
$physicalPath = rtrim($physicalPath, '/'); // <-- Remove trailing slashes

then getScriptName returns the script name and not an empty string (script name being index.php)
Is that right?

@designermonkey Is this still relevant?

I don't know I'm afraid. Been out of the loop best part of a year :(
Going to close it until I can test development for you again at a (hopefully not too) later date.


Linux support, only supports google drive

Simple linux support, only works with google drive at the moment.
For some reason I cannot get the plgx version to work, but this does work with the dll and dependencies copied into the Plugins directory.

How can I download it? And install it?

Hi, I found a KeeAnywhere.dll file in the zip release here (https://github.com/Kyrodan/KeeAnywhere/releases), It required an older version of KP 2.43 to run. And it runs without complaining errors on the NET requirements of the plugin (running with mono KeePass.exe) on Ubuntu.
However, its not listed as a plugin and cant find how to sync.. any ideas? Thanks

@Kyrodan any chances to merge this?

I have compiled this version but it doesn't run correctly, it throws an exception when loading at the start of KeePass.
/usr/lib/keepass2/Plugins/KeeAnywhere/KeeAnywhere.dll

Exception has been thrown by the target of an invocation.
mscorlib
 at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <a17fa1457c5d44f2885ac746c1764ea5>:0
 at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00095] in <a17fa1457c5d44f2885ac746c1764ea5>:0
...

Inner:
The type initializer for 'KeeAnywhere.KeeAnyWhereExt' threw an exception.
 at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo, object, object[], System.Exception&)
 at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, SystemBoolean wrapExceptions) [0x00005] in <a17fa1457c5d44f2885ac746c1764ea5>:0

Hi @vossim,
we should close this without merge because v2.0.0 is nearly there and hopefully contains fixes for this PR.
Can you try the beta-builds from #252 and report back?


FPS of YoloV4 tiny is slower than Yolo3 tiny

@TNTWEN , thanks for the great work. I was able to convert and run the yolov4 tiny using the object_detection_demo_yolov3_async demo program. I've noticed that this new model is 10fps slower than yolov3 tiny. Then I realized the model is using data type FP32 vs FP16 in yolov3 tiny ( file size: 23MB vs 16.8MB). Is there a way to convert it to FP16? Thanks.

Hello! @at1993
Thanks for your trying!
https://github.com/TNTWEN/OpenVINO-YOLOV4/issues/10,
10、FP32 ,FP16
The default precision is FP32,if you want to use FP16 ,add --data_type FP16 when you run mo.py
python "C:\Program Files (x86)\IntelSWTools\openvino_2020.4.287\deployment_tools\model_optimizer\mo.py" --input_model frozen_darknet_yolov4_model.pb --transformations_config yolo_v4_tiny.json --batch 1 --reverse_input_channels --data_type FP16

https://github.com/TNTWEN/OpenVINO-YOLOV4/issues/5
For intel GPU,FP16 is more suitable than FP32

Thank you. Yes I agree that FP16 is better on intel GPU.
I did try the conversion today with --data_type PF16 however, file size did not changed compared to PF32 (should be half the size right?). I thought maybe I've overlooked something.

@TNTWEN , I did a quick test, there's no difference in fps .


Move Set-StrictMode to run after PSModule-Helpers.ps1 operations

Move Set-StrictMode to run after PSModule-Helpers.ps1 operations which violate strict mode and cause a falure as in https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1389880&view=logs&j=dc056dfc-c0cf-5958-c8c4-8da4f91a3739&t=61cf404c-fb38-582c-ffd7-16eb9e7ec7ac&l=97
Successful run after moving Set-StrictMode -- https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1389980&view=logs&j=dc056dfc-c0cf-5958-c8c4-8da4f91a3739&t=61cf404c-fb38-582c-ffd7-16eb9e7ec7ac
@benbp -- PTAL

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow


(REQUEST) units (pre) for velocity indicator

if anyone knows this code for the units or (pre) of the velocity indicator, please send me. I'm looking and trying to do and I never can :(
Example: https://prnt.sc/tgir6s

there's a pull request about velocity indicator. go to pull request

if anyone knows this code for the units or (pre) of the velocity indicator, please send me. I'm looking and trying to do and I never can :(
Example: https://prnt.sc/tgir6s

i have made a pull request for this feature

if anyone knows this code for the units or (pre) of the velocity indicator, please send me. I'm looking and trying to do and I never can :(
Example: https://prnt.sc/tgir6s

If you would be so kind to close this issue thanks

if anyone knows this code for the units or (pre) of the velocity indicator, please send me. I'm looking and trying to do and I never can :(
Example: https://prnt.sc/tgir6s

If you would be so kind to close this issue thanks

he is talking about last velocity on ground not about current local player velocity.

if anyone knows this code for the units or (pre) of the velocity indicator, please send me. I'm looking and trying to do and I never can :(
Example: https://prnt.sc/tgir6s

If you would be so kind to close this issue thanks

he is talking about last velocity on ground not about current local player velocity.

yes, I've been looking for this code for a long time, but I don't think


batchopenchannel fails with "unmatched backend error: -26: mempool min fee not met" (lnd 0.14-rc3)

Background
For example, trying to open a channel with 2 sat/vB, I got
2021-11-12 19:58:49.046 [ERR] RPCS: [/lnrpc.Lightning/BatchOpenChannel]: batch funding failed: error publishing final batch transaction: unmatched backend error: -26: mempool min fee not met, 924 < 2783
while the mempool looked like this:

(The time on my machine is in UTC, I am pretty sure it corresponds to 20:58 CET shown on the screenshot.)
So 2 sat/vB seems reasonable, maybe the tx would wait a few blocks, but no reason to refuse it altogether.
Similar behaviour observed with lndmanage (https://github.com/bitromortac/lndmanage), AFAIK it uses the equivalent of lncli wallet psbt to create multiple channels in one tx . (I am sure it does not rely on lnd's batchopenchannels, because it works with lnd 0.13.)
Possibly related: when using lncli openchannel using even lower fee (1 sat/vB), the transaction is created, but not broadcasted . Restarting lnd does force the broadcast.
Your environment

version of lnd: 0.14.rc3
which operating system (uname -a on *Nix): Linux ubuntu 5.11.0-1021-raspi #22-Ubuntu SMP PREEMPT Wed Oct 6 17:30:38 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
version of btcd, bitcoind, or other backend: bitcoin-0.21.1

Steps to reproduce
Run lncli batchopenchannel --sat_per_vbyte=1 "$CHAN_JSON" when the mempool has less than 1M of transactions with fee 1 sat/vB.
Expected behaviour
The transaction which opens the channels should be broadcasted.
Actual behaviour
Returns error message (see above), no transaction is broadcasted, the channels are cleaned up.

Your node rejected the transaction. You need to raise its min mempool fee

But please note that openchannel works with even lower fee, the transaction is not rejected in that case. The only difference I see is in tx size, does it matter?

I tried openchannel at 22:15 CET, with 1 sat/vB , so even worse conditions, and that tx was not rejected. (But is seems it was not broadcasted either, cannot find it on blockstream explorer.)

Yeah this is about the absolute fee paid. Are you limiting the mempool of your bitcoind node?

I guess I am, those are some values of my bitcoin.conf:
dbcache=20M
maxmempool=20M
minrelaytxfee=0.000001

Yeah so the effect of that is that as your mempool gets larger, then the floor of the transaction fee rate will rise.

ok, raised maxmempool to 100M, and successfully initiated batch of 3 channels, so it seems resolved. Thanks, and sorry for opening a non-issue.


Setting node alert for a host, then delete host causes rancher-server to crash and not recover

I added a cluster alert for an existing node. Then deleted the node to test the alert.  This caused the rancher server to repeatedly crash.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x218 pc=0x191490f]

goroutine 9652 [running]:
github.com/rancher/rancher/pkg/controllers/user/alert/watcher.(*NodeWatcher).checkNodeReady(0xc42e4c4a20, 0xc4235bd698, 0x0)
        /go/src/github.com/rancher/rancher/pkg/controllers/user/alert/watcher/node.go:200 +0x9f
github.com/rancher/rancher/pkg/controllers/user/alert/watcher.(*NodeWatcher).checkNodeCondition(0xc42e4c4a20, 0xc4235bd698, 0x0)
        /go/src/github.com/rancher/rancher/pkg/controllers/user/alert/watcher/node.go:122 +0xaa
github.com/rancher/rancher/pkg/controllers/user/alert/watcher.(*NodeWatcher).watchRule(0xc42e4c4a20, 0xc42e4cd798, 0x6fc23ac01)
        /go/src/github.com/rancher/rancher/pkg/controllers/user/alert/watcher/node.go:83 +0x7a2
github.com/rancher/rancher/pkg/controllers/user/alert/watcher.(*NodeWatcher).watch(0xc42e4c4a20, 0xa85a460, 0xc42e300f40, 0x6fc23ac00)
        /go/src/github.com/rancher/rancher/pkg/controllers/user/alert/watcher/node.go:45 +0xbb
created by github.com/rancher/rancher/pkg/controllers/user/alert/watcher.StartNodeWatcher
        /go/src/github.com/rancher/rancher/pkg/controllers/user/alert/watcher/node.go:40 +0x318

Rancher versions:
rancher/rancher:v2.0.0
Setup details:
HA rancher (rke created management cluster)
Steps to Reproduce:
Cluster ->  Tools -> Alerts -> Add alerts

Then from the Cluster -> Nodes screen, I deleted the jgreat-demo2-do-worker4.
This caused rancher server to go into a crash loop.
Recovery
Find the clusteralert object that's broken
kubectl --kubeconfig=kube_config_cluster.yml get clusteralerts.management.cattle.io --all-namespaces

Delete the object
kubectl --kubeconfig=kube_config_cluster.yml delete clusteralerts.management.cattle.io <name>

Master 6/12/18
Delete nodes assigned to alerts and also scaled down node pool with nodes assigned to alerts. Verified server does not go into a crash loop


Option to open daily log in new pane

Hi, thanks for your plugin; it's a nice view and avoids me having to browse through the long list of daily notes.
There is a small feature that would be of tremendous use for me: the addition of "Open in a new pane" in the right-click context menu.  Should be an easy addition of an additional menu item here.
If you accept community PRs, I could take a stab at it myself.

This would help me a lot 🙌

I am new to Obsidian and use this after seeing it used by https://www.youtube.com/c/NicolevanderHoeven I use it to create and jump to daily notes - so the daily note becomes a gateway document to virtually the rest of the content. I suppose I should consider the daily note to be the first thing created every day and manage the rest of the workflow after that to make sure new docs always open in new Panes. This makes me wonder if an open in new pane is the best solution. Maybe it's a way to lock a doc open for until its not needed.


Relationship of nullness findings to java unchecked warnings

(Minor.) In any case where:

We would issue a nullness finding, and
Javac already issues an unchecked finding, and
We're doing this for highly analogous reasons

My first claim is that in concept a nullness finding is redundant.
Claim 2 is that I think JSpecify can/should simply require that tools do recognize a finding anyway. A tool can still decline to actually issue that finding to the user (and maybe should).
Another strange option might be to specify that tools should actually recognize both "nullness" and "unchecked" as a valid suppression of this particular finding. (A build that doesn't use -Xlint:unchecked would then still get them, which might or might not make sense.)
Any other stance seems like it could encumber tools with having to reverse engineer "did javac warn here already or should it have?" which obviously we don't want.

I think I agree with Claim 2 and maybe also Claim 1, but here is a sorta kinda counterargument to Claim 1 that I'm pondering:
A legacy codebase contains a cast from List<?> to List<Object>, whose unchecked warning the owners have suppressed because it's safe because they only ever read from the list. They might not consider a further nullness warning to be "redundant," since it's actually calling out a further assumption, which is that the list doesn't contain nulls. And so they might not want for @SuppressWarnings("unchecked") to suppress such a warning.
But I'd guess that that's a somewhat unusual case. Certainly Guava ended up with 10 copies of @SuppressWarnings({"unchecked", "nullness"}). (But arguably that's really not that many! However, I'm not sure how aggressively the reference checker warns on casts.) In contrast... well, I guess I can't simply grep for "How many places would that have happened if we hadn't decided to address the nullness error in some way other than suppression?" :\
Setting that aside: Claim 2 has me wondering how easy it will be to distinguish "a cast that is unchecked for nullness reasons" from "a cast that is unchecked for nullness or other reasons"... at least without "having to reverse engineer 'did javac warn here already or should it have?'" :) Can we "check only the nullness parts" the way that we otherwise do? But I am nowhere near up to thinking about JLS <IP_ADDRESS> and such things at the moment.

Current decision: JSpecify will require conformant tools to recognize nullness issues even when there are also Java unchecked warnings for the same reason. Tools do not have to report them to users if they feel that the warnings would be redundant.
Argument for changing: None.
Timing: This must be decided before version 1.0 of the spec.
Proposal for 1.0: Finalize the current decision. If you agree, please add a thumbs-up emoji (👍) to this comment. If you disagree, please add a thumbs-down emoji (👎) to this comment and briefly explain your disagreement. Please only add a thumbs-down if you feel you can make a strong case why this decision will be materially worse for users or tool providers than an alternative.

Decision: JSpecify requires conformant tools to recognize nullness issues even when there are also Java unchecked warnings for the same reason. Tools do not have to report the nullness issues to users in that case. (In general, conformant tools do not need to report anything in particular to their users.)


fix(html): menu component

Summary
Fixing Bug Issue described here
Fixes:

change element.previousSibling to element.previousElementSibling to avoid TextNodes to be considered on opening the menu
extract the nested menu handler to avoid multiple eventlisteners attached to the nested menu causing it not to open when there is an odd number of listeners attached

Hi @oren1991,
Thanks a lot for contributing to the @material-tailwind/html, could you please add me also as a reviewer, Stefan is on a vacation and also for both React and HTML versions of the library you should add me so that I can review it and release a new update of the product.
All the best,
Sajad


Search box needed for list of templates and customizations

From a DMPTool admin view, Sherry would really like a search box on both of these lists (templates and customizations):
https://dmptool.org/requirements_templates
https://dmptool.org/resource_contexts

+1 from Kris Bolt at Harvard

+1 Stephanie et al.


Yocto-2.0: Can't boot from microSD

I'm now trying to build & run yocto_2.0 branch according to http://elinux.org/RZ-G/Boards/Yocto_2.0.
Although I succeeded to run it over TFTP & NFS, I can't run it from microSD card in the follwoing steps:

http://elinux.org/RZ-G/Boards/Yocto#Loading_kernel_and_rootfs_from_microSD_card

Since I can run Yocto-1.6 in the same steps, I believe it should work also for Yocto-2.0.

Boot log:
Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.4.6 (aho@aho-Aspire-M3970-2) (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #1 SMP PREEMPT Wed Jan 18 18:59:18 JST 2017
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Skrzg1e
debug: ignoring loglevel setting.
cma: Reserved 256 MiB at 0x0000000070000000
cma: Reserved 256 MiB at 0x0000000057800000
Forcing write-allocate cache policy for SMP
Memory policy: Data cache writealloc
On node 0 totalpages: 262144
free_area_init_node: node 0, pgdat c07d0280, node_mem_map d6f79000
  DMA zone: 1264 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 161792 pages, LIFO batch:31
  HighMem zone: 100352 pages, LIFO batch:31
PERCPU: Embedded 12 pages/cpu @d6f40000 s18304 r8192 d22656 u49152
pcpu-alloc: s18304 r8192 d22656 u49152 alloc=12*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260880
Kernel command line: console=ttySC10,38400 ignore_loglevel rw rootfstype=ext3 root=/dev/mmcblk0p1 rootwait vmalloc=384M video=HDMI-A-1:1280x720-32@60e video=VGA-1:1280x720-32@60
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 506296K/1048576K available (5280K kernel code, 208K rwdata, 2188K rodata, 292K init, 211K bss, 17992K reserved, 524288K cma-reserved, 139264K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe8000000 - 0xff800000   ( 376 MB)
    lowmem  : 0xc0000000 - 0xe7800000   ( 632 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc075404c   (7473 kB)
      .init : 0xc0755000 - 0xc079e000   ( 292 kB)
      .data : 0xc079e000 - 0xc07d2220   ( 209 kB)
       .bss : 0xc07d5000 - 0xc0809e54   ( 212 kB)
Preemptible hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
        RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
Architected cp15 timer(s) running at 32.50MHz (virt).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x77ed8cafd, max_idle_ns:<PHONE_NUMBER>33 ns
sched_clock: 56 bits at 32MHz, resolution 30ns, wraps every<PHONE_NUMBER>550ns
Switching to timer-based delay loop, resolution 30ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 65.00 BogoMIPS (lpj=325000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: update cpu_capacity 1024
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x40009000 - 0x40009058
CPU1: update cpu_capacity 1024
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (130.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns:<PHONE_NUMBER>2750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
renesas_irqc e61c0000.interrupt-controller: driving 10 irqs
sh-pfc e6060000.pin-controller: r8a77450_pfc support registered
No ATAGs?
hw-breakpoint: Failed to enable monitor mode on CPU 1.
Installing sgx clock quirk
gpio-regulator regulator@4: Could not obtain regulator setting GPIOs: -517
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-sh_mobile e6510000.i2c: I2C adapter 7, bus speed 100000 Hz
media: Linux media interface: v0.10
Linux video capture interface: v2.00
sh_cmt ffca0000.timer: ch0: used for clock events
sh_cmt ffca0000.timer: ch1: used as clock source
clocksource: ffca0000.timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns:<PHONE_NUMBER>275000000 ns
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 0 bytes, default 64
futex hash table entries: 512 (order: 3, 32768 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
bounce: pool size: 64 pages
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
gpio_rcar e6050000.gpio: driving 32 GPIOs
gpio_rcar e6051000.gpio: driving 26 GPIOs
gpio_rcar e6052000.gpio: driving 32 GPIOs
gpio_rcar e6053000.gpio: driving 32 GPIOs
gpio_rcar e6054000.gpio: driving 32 GPIOs
gpio_rcar e6055000.gpio: driving 28 GPIOs
gpio_rcar e6055400.gpio: driving 26 GPIOs
pci-rcar-gen2 ee090000.pci: PCI: bus0 revision 11
pci-rcar-gen2 ee090000.pci: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0xee080000-0xee0810ff]
pci_bus 0000:00: root bus resource [mem 0xee080000-0xee0810ff]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
pci 0000:00:00.0: [1033:0000] type 00 class 0x060000
pci 0000:00:00.0: reg 0x10: [mem 0xee090800-0xee090bff]
pci 0000:00:00.0: reg 0x14: [mem 0x40000000-0x7fffffff pref]
pci 0000:00:01.0: [1033:0035] type 00 class 0x0c0310
pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
pci 0000:00:01.0: supports D1 D2
pci 0000:00:01.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:02.0: [1033:00e0] type 00 class 0x0c0320
pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x000000ff]
pci 0000:00:02.0: supports D1 D2
pci 0000:00:02.0: PME# supported from D0 D1 D2 D3hot
PCI: bus0: Fast back to back transfers disabled
pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
pci 0000:00:01.0: BAR 0: assigned [mem 0xee080000-0xee080fff]
pci 0000:00:02.0: BAR 0: assigned [mem 0xee081000-0xee0810ff]
pci 0000:00:01.0: enabling device (0140 -> 0142)
pci 0000:00:02.0: enabling device (0140 -> 0142)
pci-rcar-gen2 ee0d0000.pci: PCI: bus0 revision 11
pci-rcar-gen2 ee0d0000.pci: PCI host bridge to bus 0001:01
pci_bus 0001:01: root bus resource [io  0xee0c0000-0xee0c10ff]
pci_bus 0001:01: root bus resource [mem 0xee0c0000-0xee0c10ff]
pci_bus 0001:01: No busn resource found for root bus, will use [bus 01-ff]
pci 0001:01:00.0: [1033:0000] type 00 class 0x060000
pci 0001:01:00.0: reg 0x10: [mem 0xee0d0800-0xee0d0bff]
pci 0001:01:00.0: reg 0x14: [mem 0x40000000-0x7fffffff pref]
pci 0001:01:01.0: [1033:0035] type 00 class 0x0c0310
pci 0001:01:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
pci 0001:01:01.0: supports D1 D2
pci 0001:01:01.0: PME# supported from D0 D1 D2 D3hot
pci 0001:01:02.0: [1033:00e0] type 00 class 0x0c0320
pci 0001:01:02.0: reg 0x10: [mem 0x00000000-0x000000ff]
pci 0001:01:02.0: supports D1 D2
pci 0001:01:02.0: PME# supported from D0 D1 D2 D3hot
PCI: bus1: Fast back to back transfers disabled
pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
pci 0001:01:01.0: BAR 0: assigned [mem 0xee0c0000-0xee0c0fff]
pci 0001:01:02.0: BAR 0: assigned [mem 0xee0c1000-0xee0c10ff]
pci 0001:01:01.0: enabling device (0140 -> 0142)
pci 0001:01:02.0: enabling device (0140 -> 0142)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
SuperH (H)SCI(F) driver initialized
e6e58000.serial: ttySC10 at MMIO 0xe6e58000 (irq = 87, base_baud = 0) is a scif
console [ttySC10] enabled
[drm] Initialized drm 1.1.0 20060810
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] No driver support for vblank timestamp query.
rcar-du feb00000.display: failed to initialize DRM/KMS (-517)
da9063 7-0058: Device detected (chip-ID: 0x61, var-ID: 0x60)
renesas_spi e6b10000.spi: DMA available
m25p80 spi0.0: s25fl512s (65536 Kbytes)
3 ofpart partitions found on MTD device spi0.0
Creating 3 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "loader"
0x000000040000-0x000000440000 : "user"
0x000000440000-0x000004000000 : "flash"
renesas_spi e6b10000.spi: probed
libphy: sh_mii: probed
sh-eth ee700000.ethernet eth0: Base address at 0xee700000, 2e:09:0a:00:87:de, IRQ 88.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-pci 0000:00:02.0: EHCI Host Controller
ehci-pci 0000:00:02.0: new USB bus registered, assigned bus number 1
ehci-pci 0000:00:02.0: irq 97, io mem 0xee081000
ehci-pci 0000:00:02.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci-pci: EHCI PCI platform driver
ehci-pci 0000:00:02.0: EHCI Host Controller
ehci-pci 0000:00:02.0: new USB bus registered, assigned bus number 1
ehci-pci 0000:00:02.0: irq 97, io mem 0xee081000
ehci-pci 0000:00:02.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci-pci 0001:01:02.0: EHCI Host Controller
ehci-pci 0001:01:02.0: new USB bus registered, assigned bus number 2
ehci-pci 0001:01:02.0: irq 98, io mem 0xee0c1000
ehci-pci 0001:01:02.0: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
ohci-pci 0000:00:01.0: OHCI PCI host controller
ohci-pci 0000:00:01.0: new USB bus registered, assigned bus number 3
ohci-pci 0000:00:01.0: irq 97, io mem 0xee080000
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
ohci-pci 0001:01:01.0: OHCI PCI host controller
ohci-pci 0001:01:01.0: new USB bus registered, assigned bus number 4
ohci-pci 0001:01:01.0: irq 98, io mem 0xee0c0000
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
da9063-rtc da9063-rtc: rtc core: registered da9063-rtc as rtc0
i2c /dev entries driver
i2c-rcar e6518000.i2c: probed
adv7180 1-0020: chip found @ 0x20 (e6518000.i2c)
soc-camera-pdrv soc-camera-pdrv.0: Probing soc-camera-pdrv.0
sh_mobile_sdhi ee140000.sd: Got CD GPIO
sh_mmcif ee200000.mmc: Chip version 0x0003, clock rate 12MHz
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
rcar_sound ec500000.sound: probed
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Key type dns_resolver registered
Registering SWP/SWPB emulation handler
mmc0: MAN_BKOPS_EN bit is not set
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] No driver support for vblank timestamp query.
mmc0: new high speed MMC card at address 0001
[drm] forcing HDMI-A-1 connector ON
mmcblk0: mmc0:0001 eMMC   7.28 GiB
mmcblk0boot0: mmc0:0001 eMMC   partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 eMMC   partition 2 4.00 MiB
 mmcblk0: p1
Console: switching to colour frame buffer device 160x45
rcar-du feb00000.display: fb0:  frame buffer device
[drm] Device feb00000.display probed
sh_mobile_sdhi ee140000.sd: Got CD GPIO
sh_mobile_sdhi ee140000.sd: mmc1 base at 0xee140000 clock rate 97 MHz
asoc-simple-card sound: ak4642-hifi <-> ec500000.sound mapping ok
input: gpio-keys as /devices/platform/gpio-keys/input/input0
da9063-rtc da9063-rtc: setting system clock to 2017-01-18 11:14:39 UTC<PHONE_NUMBER>)
ALSA device list:
  #0: rsnd-dai.0-ak4642-hifi
List of all partitions:
1f00             256 mtdblock0  (driver?)
1f01            4096 mtdblock1  (driver?)
1f02           61184 mtdblock2  (driver?)
b300         7634944 mmcblk0  driver: mmcblk
  b301         7630848 mmcblk0p1 00000000-01
b310            4096 mmcblk0boot1  (driver?)
b308            4096 mmcblk0boot0  (driver?)
No filesystem could mount root, tried:  ext3
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,1)
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.4.6 #1
Hardware name: Generic R8A7745 (Flattened Device Tree)
Backtrace:
[<c0013330>] (dump_backtrace) from [<c001352c>] (show_stack+0x18/0x1c)
 r7:c07af1f8 r6:60000193 r5:00000000 r4:c07af1f8
[<c0013514>] (show_stack) from [<c020a4cc>] (dump_stack+0x78/0x94)
[<c020a454>] (dump_stack) from [<c009bd8c>] (panic+0x90/0x214)
 r7:00008001 r6:c078b85c r5:c06b6399 r4:c07d5728
[<c009bd00>] (panic) from [<c075636c>] (mount_block_root+0x1f0/0x230)
 r3:00000000 r2:80000000 r1:d6851eb8 r0:c06ab046
 r7:00008001mmc1: new high speed SDHC card at address 1234
mmcblk1: mmc1:1234 SA16G 14.4 GiB
 mmcblk1: p1

[<c075617c>] (mount_block_root) from [<c07564ac>] (mount_root+0x100/0x128)
 r10:00000000 r9:c07981f4 r8:c07d5000 r7:c078b838 r6:c07d5024 r5:c07a3648
 r4:0b300001
[<c07563ac>] (mount_root) from [<c0756604>] (prepare_namespace+0x130/0x190)
 r9:c07981f4 r8:c07d5000 r7:c078b838 r6:000000b3 r5:c078b871 r4:c07d5024
[<c07564d4>] (prepare_namespace) from [<c0755eb0>] (kernel_init_freeable+0x190/0x1e4)
 r5:c07d5000 r4:00000008
[<c0755d20>] (kernel_init_freeable) from [<c052a1a0>] (kernel_init+0x10/0xe8)
 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c052a190 r4:00000000
[<c052a190>] (kernel_init) from [<c0010088>] (ret_from_fork+0x14/0x2c)
 r5:c052a190 r4:00000000
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.6 #1
Hardware name: Generic R8A7745 (Flattened Device Tree)
Backtrace:
[<c0013330>] (dump_backtrace) from [<c001352c>] (show_stack+0x18/0x1c)
 r7:c07af1f8 r6:20000193 r5:00000000 r4:c07af1f8
[<c0013514>] (show_stack) from [<c020a4cc>] (dump_stack+0x78/0x94)
[<c020a454>] (dump_stack) from [<c0016264>] (handle_IPI+0xf8/0x1ac)
 r7:00000000 r6:00000005 r5:00000000 r4:c079a3ec
[<c001616c>] (handle_IPI) from [<c000a418>] (gic_handle_irq+0x7c/0x98)
 r9:c07a0400 r8:e8003000 r7:c07af400 r6:c079ff08 r5:c07a07ac r4:e8002000
[<c000a39c>] (gic_handle_irq) from [<c0013fc0>] (__irq_svc+0x40/0x74)
Exception stack(0xc079ff08 to 0xc079ff50)
ff00:                   00000000 00000000 00001640 c001fac0 c07a0504 c079e000
ff20: c0799324 c079ff78 ffffffff c07a0400 c078ba28 c079ff64 c079ff68 c079ff58
ff40: c0010abc c0010ac0 60000013 ffffffff
 r9:c07a0400 r8:ffffffff r7:c079ff3c r6:ffffffff r5:60000013 r4:c0010ac0
[<c0010a8c>] (arch_cpu_idle) from [<c00583c8>] (default_idle_call+0x30/0x34)
[<c0058398>] (default_idle_call) from [<c00584f4>] (cpu_startup_entry+0x128/0x194)
[<c00583cc>] (cpu_startup_entry) from [<c052a178>] (rest_init+0x7c/0x94)
 r7:00000000 r4:00000002
[<c052a0fc>] (rest_init) from [<c0755cb4>] (start_kernel+0x354/0x3c0)
 r5:00000001 r4:c07d5040
[<c0755960>] (start_kernel) from [<40008090>] (0x40008090)
 r10:00000000 r9:410fc075 r8:40007000 r7:c07a47a8 r6:c078ba24 r5:c07a0480
 r4:c07d5394
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,1)

Hi ashie,
In the Yocto 2.0 BSP the SD card is recognized as mmcblk1 on the RZ/G1E board, so you need to change that in your u-boot 'bootargs' parameter. Looking at your boot log you only have one partition (p1) on the card, so the following should do the job -
... root=/dev/mmcblk1p1 ...

Hi. Thank you for your comment.

... root=/dev/mmcblk1p1 ...

I confirmed it on my environment. Thanks!
I think the document should be updated.
I'm now requesting the account of eLinux.org to do it by myself.


Create separate directories for v1 and v2 plutus scripts

Refactor plutus-example to make it easier to add future versions of plutus
Add an example plutus v2

What do we do about existing Alonzo scripts that we want to compile as V2? I made this comment on #482: It would be good to be able to compile all existing V1 scripts as V2 without so much code repetition. Perhaps it would be better to keep just V2 functionality in the V2 dir and add V2 serialisation to the existing scripts? To make it less confusing, directories could be named after era and export multiple versions where supported.


[sil] Change two SILInstruction::removeFromParent => SILInstruction::eraseFromParent.

[sil] Change two SILInstruction::removeFromParent => SILInstruction::eraseFromParent.
removeFromParent should only be used when one is moving a SILInstruction from
one block to another or in preparation for deleting an instruction. In this
case, we are removing these two SILInstructions from their parent block and
leaking the instruction. The right thing to do is to use eraseFromParent.
rdar://problem/31276565

@swift-ci smoke test

Nice catch!


Implement functionality like this to external i2c EEPROMs

First I was to say thank you for your excellent work on this an many other libraries. I see myself as a "skilled amateur programmer" so I wonder; how can I learn to write so compact (and so hard to understand ;-) ) libraries like this? I mean, the super "high level" EEPROM library you've written compile Wil less than a kilobyte on the UNO. Hands down, I'm impressed.
But enough with the worshipping. Would it be possible to create a library like this to work with external i2c EEPROMs (24c32, 24c16, they exist from 128B to 2048kB)? IIRC they're also bye orientated. I think the whole community would benefit from a library like that! I'd love to be able to write something like this myself, but I doesn't got what it takes (yet!)

Hi,
Thanks for the kind words. Its always good to hear words of appreciation.

how can I learn to write so compact (and so hard to understand ;-) ) libraries like this?

Lots of practice and research :smile:
This library uses a paradigm known as "generic programming" . As you can see in the code, actual defined types do not come into play until the very end of the file:
    typedef EEWrap< char > int8_e;                   //char
    typedef EEWrap< unsigned char > uint8_e;         //unsigned char
    //...

This means that basically the whole library, when used is based on the type it is 'templated' for. And this allows for the compiler to generate very specific code for the types used.
This is exploited in all the objects used by EEWrap like the EEMode struct. It will select a method of dealing with the EEPROM based on the size of the template type (EESingleByte & EEMultiByte). If you haven't dealt with templates or forms of generic programming other than to make a function accept different types, I can fully understand why the code looks hard to understand.
When making decisions in compile time, you can't use values to make decisions on how the code is compiled. You have to use types. As a quick example, here is a compile time if-statement:
 /***
    Select different types based on a condition, an 'if statement' for types.
    The type Select<V,T,F>::Result is type T when V is true, otherwise it is set to type F.
***/
template< bool V, typename T, typename F > struct select{ typedef T type; };
template< typename T, typename F > struct select< false, T, F >{ typedef F type; };

This can be used for simple, to very complex decisions. For instance, based on some compile time value I can decide if a variable is going to be an int or float:
#define USE_FLOAT true

typedef typename select< USE_FLOAT, float, int >::type MyType;

MyType var;  //Is a float if USE_FLOAT is true, otherise it is an int.

You could also use it to select what functionality a class by using select to determine which base the class uses. This is what EEWrap does.

struct LongDelay{
  void doDelay(){ delay( 5000 ); }
};

struct ShortDelay{
  void doDelay(){ delay( 100 ); }
};

//Maybe an AVR needs a shorter delay than an ARM due to processor speeds.
#ifdef __AVR__
  #define USE_SHORT_DELAY true
#else
  #define SHORT_DELAY false
#endif

struct Foo : select<SHORT_DELAY, ShortDelay, LongDelay >::type {
  //doDelay is inherited
};

Foo f;

//...

void loop(){
  f.doDelay();
}

If you use OOP regularly, you may notice the design is almost backwards. Rather than having the most derived class providing the unique code for that object, the derived class now is generic and its implementation is built by the bases it has inherited.
This can go further using CRTP to provide 'static polymorphism'. The concepts I have used is a very large topic and not something that can be learned in a day, but definitely something worth learning especially for micro controllers or scenarios that require very efficient code.
Feel free to ask more questions if you want me to clear other stuff up.

Would it be possible to create a library like this to work with external i2c EEPROMs (24c32, 24c16, they exist from 128B to 2048kB)?

Yes, it can be done quite easily. However it will not be as efficient as it stands. The size shouldn't be affected, but the speed will.
For each byte the address is effectively set and then the byte is read/written. The AVR EEPROM only requires a few cycles to set the registers so this is quite optimal. However external devices may take many cycles for the communication protocols. If a small overhead isn't an issue then the port is quite easy.
If the EEPROM supports setting an address, then writing a stream of consecutive bytes, an extension to the code will be needed to take advantage of this. Looking at the datasheet for the 24c16 it can do 32byte page writes.
I've been thinking of adding support for external EEPROMS as selectable modules, so over the weekend I can give certainly modify it to support a simple byte-write addition for the 24c16/24c32 chips. The page write feature may have to wait a bit as that might require a large change to the code.

Hi,
this is exactly what I would like to have with external SPI SRAM. I'm testing now Arduino Nano with 23LC1024 SPI SRAM (128 KB):
//---- Wiring -----
// Arduino -- 23LC1024
// D13 <------> SCK
// D12 <------> MISO
// D11 <------> MOSI
// D10 <------> CS
// 5V  <------> VCC
// 5V  <------> HOLD
// 5V  <-10K-> CS       Resistor
// GND <------> Vss

#include <SPI.h>

//SRAM opcodes
#define RDSR        5
#define WRSR        1
#define READ        3
#define WRITE       2

uint8_t Spi23LC1024Read8(uint32_t address)
{
    uint8_t read_byte;

    PORTB &= ~(1 << PORTB2);            // Set SPI_SS low
    SPI.transfer(READ);
    SPI.transfer((uint8_t)(address >> 16) & 0xff);
    SPI.transfer((uint8_t)(address >> 8) & 0xff);
    SPI.transfer((uint8_t)address);
    read_byte = SPI.transfer(0x00);
    PORTB |= (1 << PORTB2);             // Set SPI_SS high
    return read_byte;
}

void Spi23LC1024Write8(uint32_t address, uint8_t data_byte)
{
    PORTB &= ~(1 << PORTB2);            // Set SPI_SS low
    SPI.transfer(WRITE);
    SPI.transfer((uint8_t)(address >> 16) & 0xff);
    SPI.transfer((uint8_t)(address >> 8) & 0xff);
    SPI.transfer((uint8_t)address);
    SPI.transfer(data_byte);
    PORTB |= (1 << PORTB2);             // Set SPI_SS high
}
...

Having access there through similar wrapper will be a killing feature.


x/pkgsite: frontend testing strategy

Summary
The frontend testing strategy will include a combination of unit, e2e, visual diffing, accessibility, and performance tests using Puppeteer and the Jest testing framework. Lighthouse will be integrated in the testing suite to make assertions on performance and accessibility.
Details
Code in script files should be tested by co-located .test.ts files.
// hello.ts
export function hello(name: string): string {
  return `hello, ${name}!`
}

// hello.test.ts
describe('example', () => {
  test('hello', () => {
    expect(hello('world')).toEqual('hello, world!');
  });
});

Snapshot tests will be written for pages served by the pkgsite.
describe('Snapshot matches for', () => {
  const baseUrl = process.env.FRONTEND_URL || 'localhost';
  let browser: puppeteer.Browser;

  beforeAll(async () => {
    browser = await puppeteer.launch({
      defaultViewport: { height: 800, width: 1280 },
    });
  });

  test('homepage', async () => {
    const page = await browser.newPage();
    await page.goto(baseUrl);
    const image = await page.screenshot({ fullPage: true });
    expect(image).toMatchImageSnapshot();
  });

<EMAIL_ADDRESS>async () => {
    const page = await browser.newPage();
    await page.goto(`${baseUrl}/github.com/sirupsen/logrus@v1.7.0`);
    const image = await page.screenshot({ fullPage: true });
    expect(image).toMatchImageSnapshot();
  });
});

Example performance tests.
describe('Lighthouse Audit', () => {
  const baseUrl = process.env.FRONTEND_URL || 'localhost';
  let browser: puppeteer.Browser;
  let audit: lighthouse.Audit;

  beforeAll(async () => {
    browser = await puppeteer.launch({
      defaultViewport: { height: 800, width: 1280 },
    });
    audit = lighthouse(`${baseUrl}/net/http`)
  });

  test('performance should score 90+', () => {
    expect(audit.performance.score).toBeGreaterThanOrEqual(0.9);
  });
})

Related Issues

#43358: using npm packages for frontend development
#43359: migrating to typescript with esbuild
#43360: transforming styles with PostCSS

https://golang.org/cl/280600


💡 [REQUEST] - Migrate to a modern Python stack

Summary
Following up on issues like https://github.com/google/slo-generator/issues/432 and https://github.com/google/slo-generator/issues/456 that involve dependency management and packaging, moving to a more modern Python stack would make things a lot simple and a lot easier.
Basic Example
For example, mature tools like Poetry and Hatch support lock files for reproducibility. They can also isolate different parts of a CI pipeline in dedicated virtual environments, allowing linting and testing to have different dependencies from the default installation. Finally, they are able to publish to PyPi without twine.
Ruff is a fast and reliable drop-in replacement for packages like flake8, black, isort and pylint. And it is written in Rust! It does not replace type checkers like mypy though.
Screenshots
No response
Drawbacks
A bit of work required to migrate. Hatch is able to migrate from setuptools with hatch new --init.
Unresolved questions
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

After three days spent testing Poetry, Hatch and Rye, a first good step might be as simple as migrating from pip to pipx. Let's try this in a separate branch.

Hatch has an interesting concept with environment matrices. Compared to GitHub matrix strategies, Hatch might be able to speed up CI as a whole. For example by automatically caching pytype artifacts in .pytype/, as the different Python versions used in the matrix seem to share the checked-out codebase.


ewre

Related Issues or bug

Info about Issue or bug

Proposed Changes

Info about changes Goes here

Additional Info

Anything related Issues

Screenshots

Original
Updated

original screenshot
**updated screenshot **

trash


How can i use complex filter with your module?

 async getLastYearEditions(limit = -1) {
        try {
            const lastYear = DateTime.local().minus({ years: 1 }).year
            const fields = [
                'year(data_edicao)',
            ]
            const { meta } = await this.directus.getItems<Edicao>({
                collection: 'edicao',
                params: {
                   filter[year(date_created)][_eq]: lastYear,
                    meta: 'total_count',
                    sort: '-DOM',
                    limit,
                },
            })

            return meta
        } catch (e: any) {
            throw new Error('Connection failed', e.message)
        }
    }

I don't know the correct approach to use the api/sdk fuctions. Could you guide me?
https://docs.directus.io/reference/query.html#functions

Hello @hermesalvesbr,
Can you share the repository with the example or a stackblitz?
The documentation for nuxt-directus module is not available on the main directus docs, but at https://www.nuxt-directus.site/
This is because the module uses natives nuxt element and not the SDK from directus.


Android app

Hi I am trying to build an android app that records a route that a user is following, then replay that the route for another user to follow. I have been able to successfully create the route and save the geo points to a database.   I am trying to figure out how to send  this data to the ffwdme to replay this route in ffwdme, given that I would be providing a list of predefined geopoints

Hi!
Yes you can do this. By default ffwdme works with the Graphhopper API, but instead of calculating directions, you could also provide your own.
You can do this by implementing your own sublcass of the ffwdme.routing.Base class https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/base.js
If you call it ffwdme.routing.MyRouting you can pass it to the initializer like this:
  ffwdme.initialize({
    routing: 'MyRouting'
  });

Your own subclass has to do the following:

implement a method fetch() that get called by the framework if a new route is needed.
The fetch() method needs to trigger a start event, like here https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/graph_hopper.js#L86
It needs to load the route from somewhere (e.g. the database)
If this does not work, it needs to call the error method
If it does work, it needs to convert your route in a ffwdme.Route object and call the success method. see https://github.com/ffwdme/ffwdme.js/blob/master/src/core/route.js

I think a good starting point is the implementation of the Graphhopper service:
https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/graph_hopper.js#L54-L146
Also, have a look at the specs - they should help you to see the basic structure of a route:
https://github.com/ffwdme/ffwdme.js/blob/master/spec/fixtures/route_response_simplified.json
https://github.com/ffwdme/ffwdme.js/blob/8db4c7721f253211eadddffca7bf83c23f65874e/spec/core/route_spec.js
Let me know, if this works out for you!
Cheers,
Christian

Thanks so much. I'll look into it
On Sun, Sep 13, 2015 at 8:57 AM, Christian Bäuerlein <
<EMAIL_ADDRESS>wrote:

Hi!
Yes you can do this. By default ffwdme works with the Graphhopper API, but
instead of calculating directions, you could also provide your own.
You can do this by implementing your own sublcass of the
ffwdme.routing.Base class
https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/base.js
If you call it ffwdme.routing.MyRouting you can pass it to the
initializer like this:
ffwdme.initialize({
routing: 'MyRouting'
});
Your own subclass has to do the following:

implement a method fetch() that get called by the framework if a new
route is needed.
The fetch() method needs to trigger a start event, like here
https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/graph_hopper.js#L86
It needs to load the route from somewhere (e.g. the database)
If this does not work, it needs to call the error method
If it does work, it needs to convert your route in a ffwdme.Route
object and call the success method. see
https://github.com/ffwdme/ffwdme.js/blob/master/src/core/route.js

I think a good starting point is the implementation of the Graphhopper
service:
https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/graph_hopper.js#L54-L146
Also, have a look at the specs - they should help you to see the basic
structure of a route:
https://github.com/ffwdme/ffwdme.js/blob/master/spec/fixtures/route_response_simplified.json
https://github.com/ffwdme/ffwdme.js/blob/8db4c7721f253211eadddffca7bf83c23f65874e/spec/core/route_spec.js
Let me know, if this works out for you!
Cheers,
Christian
—
Reply to this email directly or view it on GitHub
https://github.com/ffwdme/ffwdme.js/issues/7#issuecomment-139849793.

--
Innovate & Prevail

Is hosting the javascript lib on a server the best approach or loading it
locally from the device
On Sun, Sep 13, 2015 at 10:25 AM, Samson Akisanya<EMAIL_ADDRESS>
wrote:

Thanks so much. I'll look into it
On Sun, Sep 13, 2015 at 8:57 AM, Christian Bäuerlein <
<EMAIL_ADDRESS>wrote:

Hi!
Yes you can do this. By default ffwdme works with the Graphhopper API,
but instead of calculating directions, you could also provide your own.
You can do this by implementing your own sublcass of the
ffwdme.routing.Base class
https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/base.js
If you call it ffwdme.routing.MyRouting you can pass it to the
initializer like this:
ffwdme.initialize({
routing: 'MyRouting'
});
Your own subclass has to do the following:

implement a method fetch() that get called by the framework if a
new route is needed.
The fetch() method needs to trigger a start event, like here
https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/graph_hopper.js#L86
It needs to load the route from somewhere (e.g. the database)
If this does not work, it needs to call the error method
If it does work, it needs to convert your route in a ffwdme.Route
object and call the success method. see
https://github.com/ffwdme/ffwdme.js/blob/master/src/core/route.js

I think a good starting point is the implementation of the Graphhopper
service:
https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/graph_hopper.js#L54-L146
Also, have a look at the specs - they should help you to see the basic
structure of a route:
https://github.com/ffwdme/ffwdme.js/blob/master/spec/fixtures/route_response_simplified.json
https://github.com/ffwdme/ffwdme.js/blob/8db4c7721f253211eadddffca7bf83c23f65874e/spec/core/route_spec.js
Let me know, if this works out for you!
Cheers,
Christian
—
Reply to this email directly or view it on GitHub
https://github.com/ffwdme/ffwdme.js/issues/7#issuecomment-139849793.

--
Innovate & Prevail

--
Innovate & Prevail

This depends, I guess...
The best solution would be to host it on the server and cache it on the client unless there is an update available. Maybe an application cache could be useful for you http://www.html5rocks.com/en/tutorials/appcache/beginner/

closing this for now - let me know if there is anything else you need help with


IPFS Plugin - move config into envs + method options

Want to complete before merge:

[x] Tests for timeouts

[x] IPFS
[x] IPFS Resolver

[x] Determine what to do regarding IPFS Interface fallbackProviders

Should we have fallbackProviders be part of the IPFS interface specification? Seems like the answer would be “no”, because this would mean we are assuming that all implementations of the IPFS plugin should use fallback providers.
After discussing with @nerfZael we have decided to, for now, move fallbackProviders into the Options type of the Ipfs interface

[x] Determine what to do regarding the naming of skipCheckIfExistsBeforeGetFile in IPFS Resolver Plugin env

I’m not a big fan of how I named this, though I can’t come up with a better name… any suggestion is welcome!

[ ] See if we would maybe want to switch to a providers system instead of having a provider and fallbackProviders

Probably not part of this PR, but wanted to see people’s thoughts.

[x] Should we include Env in IPFS Interface schema?

[x] Should we include Env in IPFS Interface schema?

Including Env in the interface would assume too much regarding the implementation itself - IMO we should not include it in the interface schema.


Add Nong Song:

Song Name
Kawaii Dancing Girl (Yandere Remix)
Artist Name
Mistry, yandere
Source
Direct file download
Youtube Link
No response
Direct File Link
https://web.ligaudio.ru/mp3/kawaii dancing girl yandere?ysclid=lze9tlroo7824839783
Song ID
13798561
Start Offset [ms]
No response
Extra
No response

reject
non-YouTube sources are not supported, unless it is a permanent direct download link from a CDN that has given permission for Auto Nong to download from


fix: remove duplicate wording

Removed duplicate wording in antipattern/non-atomic-jsonfield-s.md:

databases older than this, for databases older than this,

Also changed the work since to in for better readability (if that's a word?).
P.S. Stumbled onto this project while troubleshooting a Django issue and found it to help me understand what is going on in Django, which I sometimes struggle with.  So thanks!

Thanks! Merged.


Editing second in timer box affect minute value.

I believe it is due to this typo.
https://github.com/DanielYKPan/date-time-picker/blob/master/src/date-time/timer.component.html#L30

Oh...
Surely it is a typo...
Thanks...


[stable/openvpn] fixing typo in  OVPN_K8S_SVC_SUBNET property name

What this PR does / why we need it:
typo in property name, should be fixed
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #7470
Special notes for your reviewer:

/ok-to-test

/assign @paulczar

/assign @davidkarlsen

/assign @jfelten

/approve


Workflow name and tool name aren't validated when manually publishing using CLI

Describe the bug
The UI performs validation on the workflow name, like making sure it doesn't contain slashes.

It seems like this type of validation isn't done on the CLI because I was able to manually publish a workflow with a workflow name containing slashes. This leads to several problems in the UI.
I can see this workflow on the search page: https://dev.dockstore.net/search?entryType=workflows&search=foo%2Fbar, but clicking on it leads to nowhere.
It shows up on my "My Workflows" page, but I can't unpublish it. The View Public button also leads to nowhere.

I didn't perform extensive testing for registering tools via the CLI, but I was able to register a tool with a tool name containing slashes (didn't publish), so a similar problem may also happen for tools.
To Reproduce
Steps to reproduce the behavior:

Using the CLI, I created a workflow with a workflow name containing slashes:
{{ dockstore workflow manual_publish --repository ghcr-workflow --organization kathy-t --git-version-control github --workflow-path /Dockstore.wdl --descriptor-type WDL --workflow-name foo/bar}}.
Go to dev.dockstore.net and go to the Search page.
Search for "foo/bar" to find the workflow that was successfully registered and published.
Click on the workflow link. It takes you to the homepage instead of the workflow's page.
Go to My Workflows.
View the workflow that was published.
Observe that the "Unpublished" button is disabled.
Click on the "View Public" button. It takes you to the homepage instead of the public workflow page.

Expected behavior
Shouldn't be able to register a workflow/tool with a workflow/tool name containing slashes. Should perform similar validation that the UI does for workflow/tool name.
Screenshots
This is the workflow on the Search page:

When I click on the workflow link, it takes me to the homepage:

Additional context
Webservice

d2b3048

UI

2.8.1-54-gc61d706b

Compose Setup

dfb11f4

Deploy

1.11.1-44-gb119630

┆Issue is synchronized with this Jira Story
┆Fix Versions: Dockstore 1.11.X
┆Issue Number: DOCK-1902
┆Sprint: Sprint 72-Yellowspotted Catsha
┆Issue Type: Story

Sounds good!


Mojibake problem: Ã«

Hi,
I have a problem with a piece of text that I need to fix.
The word that causes problems is: "ongeÃ«venaard". (It's Dutch)
When I put this in: print(ftfy.fix_text("ongeÃ«venaard")) I get the same mangled word back.
print(ftfy.fixes.fix_one_step_and_explain("ongeÃ«venaard")) This fixes my problem, and gives back the word that I want: "ongeëvenaard", with a plan how to fix it. However this does not seem like a usable way to fix a lot texts. (need to do this for millions of pieces of text, fix_text() works for ~99% of them)
After digging some in the ftfy.fixes and ftfy.badness, it seems that both words have no "weirdness" from the def sequence_weirdness(text): method. So the def text_cost(text): remains the same for both words, since it does have an "adjustment" of 1 in that method, so ftfy thinks the words are the same, when they obviously are not.
Anyhow, my question is if this is intentional behavior, and is it possible to fix? Is using the fix_one_step_and_explain() not a valid strategy? Help is appreciated.
PS: The letters:
U+00C3  Ã       [Lu] LATIN CAPITAL LETTER A WITH TILDE
U+00AB  «       [Pi] LEFT-POINTING DOUBLE ANGLE QUOTATION MARK

Thanks for the report! It's not really intended. It's being overly conservative about double angle quotation marks.
In the case where there are only two characters of mojibake, and one of them is a reasonable punctuation mark, the boundary line can be very hard to draw. I have tried to draw such a boundary line anyway, with a pair of regular expressions in badness.py. But the expressions are just too careful around quotation marks.
I bet I can tweak the rules to fix a few more obvious cases such as Ã«.

Awesome! Looking forward for an update then. I will keep it as is for now then.
If I can help in any way with the problem then give me a shout.


Enable Azure accelerated networking

How to categorize this PR?

/kind enhancement
/area os
/os garden-linux
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1198
Special notes for your reviewer:
The Azure feature is described here: https://docs.microsoft.com/en-us/azure/virtual-network/accelerated-networking-overview
I have checked the configuration on the VM to ensure it is enabled and working. I will add an integration test for this later on.
Release note:

Garden Linux supports Azure accelerated networking.

... but you might want to drop commit 5e957ba from this PR as it would merge the changes you posted for review in PR #1216

done

Can you please rebase this PR to latest main so that the checks can succeed?
/needs rebase

done rebase


Better error message when SPIR-V version mismatch

Currently rust-gpu ICE's if you accidentally use a module with the wrong SPIR-V version. It would be better to provide a nice compiler error instead.
 thread 'rustc' panicked at 'assertion failed: `(left == right)`
    left: `(1, 0)`,
   right: `(1, 3)`', crates/rustc_codegen_spirv/src/linker/mod.rs:102:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  error: internal compiler error: unexpected panic

  note: the compiler unexpectedly panicked. this is a bug.

  note: we would appreciate a bug report: https://github.com/EmbarkStudios/rust-gpu/issues/new

  note: rustc 1.49.0-nightly (25f6938da 2020-11-09) running on x86_64-apple-darwin

https://github.com/EmbarkStudios/rust-gpu/blob/9c8cec36396a1f328c8582da488d469963982590/crates/rustc_codegen_spirv/src/linker/mod.rs#L102

I'm honestly really curious how you hit this, because there's probably some further bug beyond that (maybe core doesn't rebuild when you change feature flags?), but anyway, submitted PR for just the ICE


add semver to go.mod

github.com/blang/semver should have been added to go.mod as part of https://github.com/openshift/hive/pull/1041

/lgtm


Error downloading 20.0.5-slim on linux/amd64

I'm having issues downloading the latest image. It might have something to do with the recent changes to support multiple architectures.
$ docker run erlang:20.0.5-slim
Unable to find image 'erlang:20.0.5-slim' locally
20.0.5-slim: Pulling from library/erlang
docker: no matching manifest for linux/amd64 in the manifest list entries.

I see the same for erlang:latest
$ docker run -it erlang
Unable to find image 'erlang:latest' locally
latest: Pulling from library/erlang
docker: no matching manifest for linux/amd64 in the manifest list entries.
See 'docker run --help'.

$ docker -v
Docker version 17.06.2-ce, build cec0b72

Have the same issue.

it looks like a registry issue, does @tianon have any idea?
I'm talking with registry API by https://docs.docker.com/registry/spec/api/#pulling-an-image
GET https://registry-1.docker.io/v2/library/erlang/tags/list
Authorization: Bearer :token

# returns a list of tags

GET https://registry-1.docker.io/v2/library/erlang/manifests/20.0.4
Authorization: Bearer :token

# the previous tag is still ok; returns the good manifest in schemaVersion 1

GET https://registry-1.docker.io/v2/library/erlang/manifests/20.0.4
Authorization: Bearer :token
Accept: application/vnd.docker.distribution.manifest.v2+json

# use Accept to get good manifest in schemaVersion 2

GET https://registry-1.docker.io/v2/library/erlang/manifests/20.0.5      <= check 20.0.5 or latest or any new tags
Authorization: Bearer :token
Accept: application/vnd.docker.distribution.manifest.v2+json

# however, try to get manifests for 20.0.5 or latest or any other newer tags get manifest unknown

HTTP/1.1 404 Not Found
Content-Type: application/json; charset=utf-8
Docker-Distribution-Api-Version: registry/2.0
Date: Tue, 19 Sep 2017 17:05:56 GMT
Content-Length: 70
Connection: close
Strict-Transport-Security: max-age=31536000
Request duration: 0.207446s

{
  "errors": [
    {
      "code": "MANIFEST_UNKNOWN",
      "message": "manifest unknown"
    }
  ]
}

This is the same as https://github.com/docker-library/ruby/issues/159; see specifically https://github.com/docker-library/ruby/issues/159#issuecomment-329909957.
You can see the build progress of new erlang images here: https://doi-janky.infosiftr.net/job/multiarch/view/images/view/erlang/.

I see now resolved.

I've filed https://github.com/docker-library/official-images/issues/3835 in order to have a central place to track this problem globally more directly. :+1: :heart: