Fix EGL_image_external

Different phone models need different extensions for samplerExternalOES:
Adreno-based, GL_OES_EGL_image_external_essl3
Mali-based, GL_OES_EGL_image_external
Instead of 'require' a particular extension in the fragment shader, 'enable' both.

Uniform locations are always GLint
Uniform location -1 is reserved for situations when a particular uniform was optimized out by compiler.

We should keep '#version 300 es' in the shaders for the following reasons:
(1) MULTIVIEW shader matches the unchanged non-multiview shader that already has this directive.
(2) Omitting version directive is equivalent to declaring '#version 100 es' according to https://www.khronos.org/registry/OpenGL/specs/es/2.0/GLSL_ES_Specification_1.00.pdf Section 3.4. The shader is not conformant to GLSL ES 1.00: it uses 'in' and 'out' storage specifiers instead of 'varying'.
GLProgram class passes shader source unchanged to glShaderSource() and specifically does not add any version directives to the source.

GVRShaderTemplate and GVRShaderTemplate adds the directive for you.
Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------
From: dnvasilev<EMAIL_ADDRESS>Date: 7/5/17 6:48 AM (GMT-10:00)
To: Samsung/GearVRf<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: Re: [Samsung/GearVRf] Fix EGL_image_external (#1267)
We should keep '#version 300 es' in the shaders for the following reasons:
(1) MULTIVIEW shader matches the unchanged non-multiview shader that already has this directive.
(2) Omitting version directive is equivalent to declaring '#version 100 es' according to https://www.khronos.org/registry/OpenGL/specs/es/2.0/GLSL_ES_Specification_1.00.pdf Section 3.4. The shader is not conformant to GLSL ES 1.00: it uses 'in' and 'out' storage specifiers instead of 'varying'.
GLProgram class passes shader source unchanged to glShaderSource() and specifically does not add any version directives to the source.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/Samsung/GearVRf/pull/1267#issuecomment-313160712, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQw1SzN-pOMIDNhAoIW5uBwbQBQxeZVFks5sK75JgaJpZM4OIqEx.

This is master branch, and I am modifying old-style native-side oes_shader.cpp
We use GLProgram(const char*, const char*) constructor that calls GLProgram::createProgram(int, const char**, const GLint*, const char**, const GLint*), that calls GLProgram::loadShader(GLenum, int, const char**, const GLint*), that calls glShaderSource(). Nothing adds the directive on the way. No GVRShaderTemplate -- this is in the native code.

I don't remember exactly why I did keep glsl 100 es shaders, but we should check multiview enabled with oes_shader once.

Code before this change was using GLSL ES 1.00 shaders with multiview disabled, and GLSL ES 3.00 shaders with multiview enabled.
@roshanch , what tests do you propose to run with multiview enabled and with multiview disabled?

Try 360-video with multiview enabled on Mali s6 and s7.

I think we still have to keep using GLSL 1.0 shaders for the non-multiview case. This is the issue Rahul encountered, unfortunately we don't know the device: https://github.com/Samsung/GearVRf/issues/755. Roshan's fix https://github.com/Samsung/GearVRf/pull/759.

@liaxim No. My fix fixes #755 properly.

Why is it fixed properly? Rahul said he was getting errors for both:
2:1: P0003: Extension 'GL_OES_EGL_image_external' not supported
2:1: P0003: Extension 'GL_OES_EGL_image_external_essl3' not supported

As I recall, we are using version 100 in some of the demos because when we coded them with version 300 they did not work on all devices. This was especially apparent in the cinema demo gvr-video. We should try recoding the shaders in this demo as level 300 instead of 100 and see if it is really fixed. When I did that, the colors in the external texture for the video were wrong.

Rahul's error P0003 is triggered by 'require'. This is fixed by 'enable'.
I need a positive proof that fix doesn't work.

Ok, there is missing information from Rahul's issue so it is hard to argue.
I do expect this to work but it seemed like there was some weird device/sw combination where neither worked for 300. Can't tell from Rahul's issue whether he was testing on the same device with 300 shader or not.

I plan to merge vertex shaders (#ifdef MULTIVIEW) and test on a multitude of phones

Planning to merge on Monday.


Test support for C++

This PR adds a test to CI ensuring that the Prism C API is functional in a C++ environment.

Thanks @egiurleo! I ended up going a slightly different way because after living with operator_ being different in Ruby vs C it was weirding me out. So I renamed those fields to binary_operator in all layers here: https://github.com/ruby/ruby/pull/10758.
I still would like to merge the github action and the test script though.

@kddnewton Removed the commit that introduced operator_ and just kept the testing.


Issue #179 draft

Closes #595

I've added my suggested updates in a separate PR this week instead of directly editing the file. Let me know if that works. I feel more comfortable doing it this way rather than directly editing a file. :)

@fassko I've added my suggested updates in a separate PR this week instead of directly editing the file.

I'll add my changes to your PR @JaredHalpern, if that's ok. Then all copy edits can be merged in a single step.

Thank you @JaredHalpern and @morqon! 🙏
I'm so happy to have you both.

Happy to help :)

A pleasure!


how to use wavlm model to extract speaker embedding for speaker verification task?

Hi,
I wanna use wavlm model to extract speaker embedding for speaker verification task. In the paper it is mentioned that for the task of speaker verification, the weighted sum of the representations from transformer layers should be used.
I've used the mean of all layers' representations and also the last layer's representation as speaker embedding and haven't got reasonable cosine similarity between two different embeddings belonging to one speaker.
I wanted to ask if you could provide me with the learned weights of the transformer layers so that I could extract robust speaker embedding from the model.

Hi @fatemeshiravand  We have released the pre-trained speaker verification models here. Please refer to the README instructions and scripts for the speaker representation extraction.

Thank you for your reply @Sanyuan-Chen.
I've read the repo you provided for me and used the WavLM large model to compare audios from same speaker and audios from two different speakers. In both case I've got a cosine similarity near 1 (about 0.99) and I'm confused whether the model just doesn't work or I'm doing something wrong.


Performance on startpage.com

Visiting any page of https://startpage.com causes the whole browser to slow down, disabling the extension or just closing the tab fixes that, but switching tabs dosent.
ATBC ver : 2.1.4
Firefox ver: 123.0.1 (64-bit) Mercury Fork

Hi, @LelIllumina. I haven’t been able to reproduce the issue. Are the issues still present?


Add build instructions for Windows

Please add build instructions for Windows, the direct pip install command from the README fails to install.
I think you have mentioned in another issue (issue comment) that it requires Microsoft Visual C++ Build Tools. Maybe a link to it and telling users explicitly that they need to install it, will be beneficial.

The referenced issue should have been fixed in a previous release.
Are you getting the exact same error ?
If not, would you mind dumping a trace? I'll try to simulate and contribute to the readme.
For me, things work fine on Windows, apart from the fact that it's missing the wmi dependancy at runtime.
(venv) C:\Users\Cedric\PycharmProjects\testspec>pip3 install pyspectator
Collecting pyspectator
  Using cached pyspectator-1.2.2-py3-none-any.whl (13 kB)
Collecting enum34>=1.0
  Using cached enum34-1.1.10-py3-none-any.whl (11 kB)
Collecting netifaces>=0.10.4
  Using cached netifaces-0.10.9-cp37-cp37m-win_amd64.whl (16 kB)
Collecting psutil>=2.1.1
  Using cached psutil-5.7.3-cp37-cp37m-win_amd64.whl (243 kB)
Collecting pyvalid>=0.9
  Using cached pyvalid-1.0.4-py3-none-any.whl (11 kB)
Collecting six~=1.15
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: six, pyvalid, psutil, netifaces, enum34, pyspectator
Successfully installed enum34-1.1.10 netifaces-0.10.9 psutil-5.7.3 pyspectator-1.2.2 pyvalid-1.0.4 six-1.15.0

I should note that this is a dev machine and I do have VC++ installed for multiple other projects.


Prepare written content for the website

I would like to claim this issue and get more detail on how to proceed


[WIP] Remove cross-db dbt_utils references

This PR removes internal references to deprecated dbt_utils macros in favor of their dbt-core counterparts.
This is a:

[ ] documentation update
[x] bug fix with no breaking changes
[ ] new functionality
[ ] a breaking change

All pull requests from community contributors should target the main branch (default).
Description & motivation
Several dbt-utils macros internally reference deprecated macros using the dbt_utils namespace. This triggers warnings in downstream models and packages.
Checklist

[ ] This code is associated with an Issue which has been triaged and accepted for development.
[x] I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)

[x] BigQuery
[x] Postgres
[ ] Redshift
[x] Snowflake

[ ] I followed guidelines to ensure that my changes will work on "non-core" adapters by:

[ ] dispatching any new macro(s) so non-core adapters can also use them (e.g. the star() source)
[ ] using the limit_zero() macro in place of the literal string: limit 0
[ ] using dbt.type_* macros instead of explicit datatypes (e.g. dbt.type_timestamp() instead of TIMESTAMP

[ ] I have updated the README.md (if applicable)
[ ] I have added tests & descriptions to my models (and macros if applicable)
[ ] I have added an entry to CHANGELOG.md

Having a couple of unrelated issues with integration tests for data_get_column_values_dropped.
On Postgres and BigQuery I'm getting errors similar to this
Database Error in test test_get_column_values_use_default (tests/sql/test_get_column_values_use_default.sql)
14:52:55    relation "test.data_get_column_values_dropped" does not exist
14:52:55    LINE 5:             from "postgres"."test"."data_get_column_values_d...

FYI, I removed the dbt_utils.current_timestamp(). I wasn't sure what the strategy was for this one?

Are we ready to update the docs as well?

Thanks heaps @clausherther!


NVList.update() method

It seems that NVList.update() method is unusable now, because internally it calls NVList.add() with 2 parameters, but actual NVList.add() requires 3 parameters. It is not clear whether it would be possible to infer proper data types from python types at all.
So, is this unfinished work-in-progress code or is this dead code? Or am I missing something?

I am currently in the process of rewriting a lot of things (check the 'rewrite' branch for what i'm actively working on)... I will look into it as I'm starting to head towards re-implementing libnvpair as I got this notification.

7bd6472dea6338 reimplemented NVList mostly (though it's untested until I can rework zpool a bit more).. mind that it no longer features a NVList.update() , as it's much easier to just do:
[NVList.add(key, data_type, value) for key, data_type_value in listing]

The old NVList.update functionality pretty much did the same anyhow.. and there's no proper way to detect which data type you want to use.. maybe at some point in the future we can make a guessing system for the data types so this becomes more easily available.

Thanks!


Show diagnostics on hover

This lets the user hover over a diagnostic in the editor and have the text displayed in the hover window.
I decided to put the diagnostics before the documentation (VSCode does after) because typically they are small and more pertinent anyway, though making a config setting to support both would not be hard.
There are some improvements that could be made, such as showing related things (ex, I believe: if you use a non-mutable variable in a way that needs it to be mutable, and rustc will provide an extra underline under the definition of that variable along with the diagnostic where you use it incorrectly), but this works as an initial impl.
I drew a rect for the separator since I don't know of any other place that uses a separator like that, so I was unsure if there was existing methods for doing it and/or colors.

Though, perhaps there should be a bit of margin on the top?

Awesome work! I like the diagnostics is above documentation.


noverlap plugin is stoping automatically within seconds after start

I am using noverlap plugin. I am starting it using s.startNoverlap(); but when I test if this noverlap is running or not using s.isNoverlapRunning(); then it is returning false.
If I am correct it should return true as I have already started plugin.
I don't want to stop this noverlap plugin. How to keep this remain started ??
Any help will be greatly appreciated.
@apitts

@geekyminhaj The plugin is not in a webworker so I'm actually not sure how useful s.isNoverlapRunning() is since that function will probably only return post convergence in any case. It sounds like the algorithm is running and your nodes are still overlapping - is that the case? If so, the first place I would start would be with the settings. I would especially check the setting for the index of the renderer. I suggest you also review the noverlap example in the examples folder. If that is working for you then perhaps try to understand the differences between that example and your own code. You can also add some print statements into the noverlap algorithm to understand why you are seeing what you are seeing. Particularly around the collision calculation.

@apitts thanks for the details help. I will try the things you have mentioned.
Actually, I am working on one use case where I am using noverlap plugin along with forceAtlas2  plugin but nodes are still overlapping.


Refactor usages of getenv to $_ENV

getenv is not thread safe, and generally slower than using $_ENV. Making this change will support PHP environments not using getenv.

Closing in favor of a PR incoming from @bfeaver


DWC-A from ITIS

ITIS import using DWC-A
I sort of gave up Castor Import of nomenclature, but still think a import usig ITIS would be very useful, so I tried to import DWC-A files from ITIS, but they do not work. Is it because the DWC import could be oly done if the taxon hierarchy is already present?
9259859.zip

@teleaslamellatus the file you uploaded had taxa.txt incorrectly named, but even after fixed then there is another problem of inconsistent line termination that had to be solved by re-saving the files with file editor to make all lines the same. Finally, there was a mapping error in meta.xml with all indices offset by one. After fixing all that the file will get staged, but still not be enough to import because acceptedUsageNameID must point to valid name regardless of taxonomicStatus (if valid then must be equal to taxonID), so you'll end up with all names in NotReady status.
Could you point me to the tools you use to produce the DwC-As? I'd like to take a closer look to see what is going on. Is any of https://github.com/GlobalNamesArchitecture/dwca_hunter/ or https://github.com/gaurav/dwca-hunter ? Which one?
Thanks
PS: The corrected file, but please do note that although the importer accepts it and displays the grid view, it will not import anything in its current form: 9259859-new.zip

Hello Hernan,
I got the file straight from the ITIS website! This sounds ridiculous!
I know symbiota can import files from ITIS, it would be perhaps reasonable
to reach out to Ed Gilbert?
Thanks a lot!
Istvan
On Mon, Feb 22, 2021 at 10:17 PM Hernán Lucas Pereira <
<EMAIL_ADDRESS>wrote:

@teleaslamellatus https://github.com/teleaslamellatus the file you
uploaded had taxa.txt incorrectly named, but even after fixed then there is
another problem of inconsistent line termination that had to be solved by
re-saving the files with file editor to make all lines the same. Finally,
there was a mapping error in meta.xml with all indices offset by one. After
fixing all that the file will get staged, but still not be enough to import
because acceptedUsageNameID must point to valid name regardless of
taxonomicStatus (if valid then must be equal to taxonID), so you'll end up
with all names in NotReady status.
Could you point me to the tools you use to produce the DwC-As? I'd like to
take a closer look to see what is going on. Is any of
https://github.com/GlobalNamesArchitecture/dwca_hunter/ or
https://github.com/gaurav/dwca-hunter ? Which one?
Thanks
PS: The corrected file, but please do note that although the importer
accepts it and displays the grid view, it will not import anything in its
current form: 9259859-new.zip
https://github.com/SpeciesFileGroup/taxonworks/files/6026570/9259859-new.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SpeciesFileGroup/taxonworks/issues/2058#issuecomment-783847420,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACGX6JPV3DVLFJJEKSZ76EDTAMM4RANCNFSM4YBEWP6Q
.

--
István Mikó PhD
Collection Manager
Don Chandler Entomological Collection
Department of Biological Sciences
University of New Hampshire
Spaulding Hall
Durham, NH 03824

This may be repetitive, but has anyone pointed out that you can download a DWCA or any taxa and its children from ITIS by navigating to that taxon and clicking the "Download DwC-A" button?

Yes, the DWC-A Hérnan is working with was downloaded from ITIS.

@tmcelrath 🤦♂ I don't know what I was doing but the only option was some ITIS custom text format, no option of DwC-A... Thanks
So they indeed have a problem. Third party to confirm:
https://tools.gbif.org/dwca-reports/054-897625691578541428.html (Gryllus 7536072.zip)
https://tools.gbif.org/dwca-reports/054-2536582649780533159.html (@teleaslamellatus sample with only taxa.txt filename corrected)
https://tools.gbif.org/dwca-reports/054-1547452434238719386.html (fully corrected @teleaslamellatus sample)
BTW, I think I'll revisit relaxing acceptedNameUsageID requirement in cases where taxononicStatus unless I find something against this idea. The reference datasets do always use acceptedNameUsageID, also GBIFs guidelines recommend doing that (because ICN is more complex than ICZN and could happen that a name is valid but another is the accepted one?)

@LocoDelAssembly , Wallace - the ITIS DwCA download generator - is designed to have NULL acceptedNameUsageID when taxonomicStatus equals valid. From the Wallace data application manual

The Darwin Core term dwc:acceptedNameUsageID is the identifier for the currently valid or accepted taxon. The ITIS DwCA implementation uses the Taxonomic Serial Number (TSN) from the field tsn_accepted (table synonym_links) to populate acceptedNameUsageID.The field is null when dwc:taxonomicStatusis 'accepted' or 'valid', and is non-null when dwc:taxonomicStatus is 'synonym', 'homotypic synonym', 'heterotypic synonym', 'proParteSynonym',  or 'misapplied'. In ITIS an invalid/not accepted synonym can have more than one valid/accepted name. When this occurs the result will be multiple records differing only in values found in acceptedNameUsageID and possibly in the dwc:modified field and the hierarchy attribute fields.

If acceptedNameUsageID becomes nullable for valid/accepted names, and Wallace's meta.xml usage is fixed so the field count begins at zero (ITIS can fix that), and the user updates the name of the archive contents before upload (eml_9259859.xml to eml.xml and taxa_9259859.txt to taxa.txt - an identity 'feature' that perhaps could change in the future), then everything should be a-ok.
I did not notice the issue of inconsistent line termination. Wallace's record terminator should be unix-style linefeed feed character \n. I will investigate further.

Thanks @mitchelldf! Will change import on my side to allow NULL acceptedNameUsageID for valid names, looks safe. I guess GBIF's guidelines/examples shown using it always to simplify parsing.
Regarding the inconsistent line termination, mentioned on gitter the placement for forgot to reiterate here. The problem is with the header line that is different (Unix-style) than the data lines (Windows-style):
$ tail -n +1 taxa_7536072.txt | file - # Entire file
/dev/stdin: UTF-8 Unicode text, with very long lines, with CRLF, LF line terminators
$ tail -n +2 taxa_7536072.txt | file - # Skip header line
/dev/stdin: UTF-8 Unicode text, with very long lines, with CRLF line terminators

The ITIS DwCA download has been updated. Now all lines are terminated with \n, and the metal.xml reflects this
encoding="UTF-8" linesTerminatedBy="\n"
And the field index count to begins at zero in the meta.xml file.
See attached
5680265.zip
If the _5680265 ID string of the eml and taxa file names is removed, the import should run smoothly.

Thanks for the update @mitchelldf!
After renaming files to strip out numbers I get this report: https://tools.gbif.org/dwca-reports/083-88078739738051714.html
The fix for the first error would be to add <id index="0" /> in the same section <field> elements are located (it is absolutely fine to use the same index taxonId is using, no need to add extra column in the data file). The problem with superfamily is harder to solve, requires creating an extension of your own and adding it in meta (and take advantage of the fact that extension data can be mapped to the same data file the core data is). Standard practice I believe is to just ignore unknown terms rather than failing to process the archive, so I don't think fixing superfamily is important. Not having the file names matching those in meta.xml is important as processors cannot read the data otherwise.


Add dotnet-bot on a motherboard icon

A new additional icon for dotnet-bot.
dotnet-bot likes hardware.
h/t to @kendrahavens for original draft drawing.

/cc @martinwoodward @terrajobst @kendrahavens @bleroy

What's the reason we closed this? Looks great to me :-)


[QUESTION]Uncaught SyntaxError: The requested module<EMAIL_ADDRESS>does not provide an export named 'Component'

    externals: [
      'react',
    ],
  }),

but show
index.tsx:4 Uncaught SyntaxError: The requested module<EMAIL_ADDRESS>does not provide an export named 'Component' (at index.tsx:4:10)

How are you injecting React? Through import maps, or?

Closing due to inactivity. Feel free to reopen if the issue still persists.


When do you plan to release this code?

Dear Authors,
The performance of your work is impressive. When do you plan to release this code?

Thanks for your interest in our work!
The code is delayed by a few weeks due to timing conflicts with my wedding and honeymoon. I hope you can understand my prioritisation of the latter items.
Late October is the best estimate I can give. I apologise for the delay.

OK. If you release the code, could you tell me? Thank you.

Hi @AmingWu, terribly sorry for the delays. The code is now uploaded to reproduce the results from SAFE. If any troubles are encountered, please raise an issue and I'll be happy to assist.


Update tooltip_theme_test to unblock Dart SDK roll

Description
The dart-sdk roll is blocked with https://github.com/dart-lang/sdk/commit/038e981f89d6e26d44db155202517df7901ce153
https://github.com/flutter/engine/pull/19186

It looks like you will need to update the test to accept both the old and the new formatting.


Support for API v2

Now that API v1 has been deprecated, is there a plan to port this unofficial lib to v2?
Thanks.

We're working on it! See https://github.com/dropbox/dropbox-sdk-js


Dependabot changed labels, broke changelog

Summary of Bug
The updated dependabot no longer labels PRs with ‘dependabot’ it uses ‘dependacies’ which has broken our change log workflow.
Version
main
Steps to Reproduce
Review any PR from dependabot, note the changelog job doesn’t see the required label and so it doesn’t run despite the successful execution.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

We got this fixed at some point in the last month. :D


Change all theme names to new style: npm package name

Change all Hyperterm package names to match to match the packages name on npm. This means all lower case, with hyphens instead of spaces.

Committed guide to CONTRIBUTING.md in https://github.com/bnb/awesome-hyperterm/commit/e1c34e11ac4b6a8bc579b6f49f3400e7c404c8ca


README work

Initial version of README based on @dhruvchand's original plus some minor edits.
⚠ In my opinion, if the script remains in its current state, both the script and the README need significant work prior to releasing this for customer use, including but likely not limited to:

Accurate list of prerequisites

Including the AzureAD PowerShell module version required and troubleshooting/workaround steps for those without the right version.

Full step-by-step to find relevant data in the Excel doc that's currently the only output format.

Of the six tabs, which of them contain the data I need, and what term(s) should I search for?

Accurate description of the script in the intro.

As of https://github.com/microsoft/AzureADGraphApps/commit/349f1188da10d85c165ba59a76830f57d5adb260 (the time of this writing), it does much more than "lists applications in your tenant that use permissions for Azure AD Graph."

Add CSV output for those that would rather send the output to STDOUT

@dhruvchand Did you want to pull these changes in? If so, let me know and I'll resolve the conflict and we can get it merged.


feat: support env for tracing

Cortex supports tracing using envvars to enable it on a per-component/pod basis. I don't know if there's anything else that use envvars. Another option could be to expose a tracing-specific section, but there's a lot of tracing client options for things like tags and auth, making it feel more straightforward to just expose an env option directly.
Also updates the sample config to exercise more fields.
NOTE: Haven't really tried this out yet, outside of checking that existing tests were happy with the new sample config.
Signed-off-by: Nick Parker<EMAIL_ADDRESS>

Closing in favor of https://gitlab.com/gitlab-org/opstrace/cortex-operator/-/merge_requests/17


issue#26 removed newline character \n from description of Lambda reso…

…urce
Issue #26
Description of changes: Removed \n character from Description in CFN template as it generates error during stack creation -
1 validation error detected: Value 'AWS Lambda test' at 'description' failed to satisfy constraint: Member must satisfy regular expression pattern: .* (Service: AWSLambdaInternal; Status Code: 400; Error Code: ValidationException; Request ID: e4b06017-d6b1-4414-9aae-98f2b7690ea4)
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thank you for your feedback! This has been merged into the new development branch: https://github.com/amazon-connect/voicemail-for-amazon-connect/tree/development


gsl: re-enable check phase on aarch64

Motivation for this change
gsl 2.7's testsuite is more robust, so we can reenable tests on aarch64.
Things done

Built on platform(s)

[ ] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Do we really need a comment about what used to fail? nixpkgs could get pretty big that way...

I decided to add the comment as a way of saying "upstream doesn't really seem to test non-x86 archs, so feel free to disable tests again for aarch64 if it doesn't look like a packaging bug", but I am not attached to it.


Usage with Browserify

Probably related to #136 and #137, but it would be nice to be able to use this as a npm package with browserify.
npm install riot

var riot = require('riot')
riot.mount('todo')

Do .tag files have to be precompiled? This could be an issue. It could also be fine if the individual components (or tags) as npm packages did their own compiling.

+1
Can source code be commonjs? Using browserify to build files.

Also, if the node.js API allowed or the CLI allowed for string input (stdin for the CLI and a string for the node.js API), it would be easy to create a riotify browserify transform to process the .tag files automatically.

Sounds like a great idea!

+1
I just made a "riotify" module, but it has limited usage, because of this limitation.
https://www.npmjs.com/package/riotify

I'm trying to make it work with gulp & browserify.
gulp.task('riot', function (cb) {
  exec('riot ./src', function (err, stdout, stderr) {
    console.log(stdout);
    console.log(stderr);
    cb(err);
  });
});

Riot just puts the .js files next to the .tag files which I named like FooTag.tag, so I can have a */**/*Tag.js in my .hgignore. I tried adding that gulp task as a dependency to my browserify build task and required the outputted js files from normal files. I still can't do require('riot') because browserify can't convert it but it works if riot is already in the global scope.

+1

Yup, this is high on our list.

This will be possible in the next release (already implemented):
npm install riot
var riot = require('riot')
riot.mount('todo')

Transform is coming after that (likely in another release).

@aurri: Could you tell me...

How I can improve the tranform I wrote #issuecomment-71165305
Let me know how I can hand over the npm namespace to you (I'm new to node)

@jhthorsen: We're currently focused on wrapping things up for the next release. Browserify transform will follow soon after that. Will definitely look at riotify once we get to that. Thanks!

Cool! Let me know if you add support for streaming, and I'll update my transform package accordingly.

Added riotify to the docs (pending update): 17379b1c8d2e3028e266024cfa9e0fdfdff8530f
Thanks @jhthorsen, good job!
Not sure about the disclaimer.
It's actually now possible to use riot with browserify:
npm install riot
var riot = require('riot')
riot.mount('todo')

And riotify examples seem to show it working exactly as it should:
require('./todo.tag')
riot.mount('todo')

There's no use for var todo = require('./todo.tag') in Riot if that's what you mean in the disclaimer.

Related: https://github.com/muut/riotjs/issues/207

@aurri Maybe I misunderstand, but how should riot.mount('todo') work when running through browserify? Does it look for ./todo.tag? I couldn't make it work.
@jhthorsen Nice work with riotify, using it now.

@freeall Without riotify, pre-complie is needed before the process of Browserify.
var riot = require('riot');
require('./todo.tag.js'); // pre-compiled tag file

riot.mount('todo');

I prefer the way with riotify like below.
var riot = require('riot');
require('./todo.tag'); // no precompile needed

riot.mount('todo');

I'm considering making require("./todo.tag") have a return value. Please comment if you have any input: https://github.com/jhthorsen/riotify/issues/9

Thanks @cognitom, @jhthorsen!
I hope that answers your question @freeall.


Create database step

I was wondering if there was a way to create the database with the grate tool, that grate doesn't use its own script for creating the database. I would like to provide a custom script that creates the database during the execution of the grate tool.
The reason I would like to do this is that I want to be able to set the following settings at time of creation

location of mdf file
location of ldf file
initial size of database
file growth of database
collate settings

Describe the solution you'd like
An optional create database step would be nice. And when no script in step is present, then grate runs as currently provided. The creation of the grate specific tables and schema, I would prefer that this is still handled by grate itself.
Describe alternatives you've considered
I tried to add a script to the beforeMigration step that creates the database when it doesn't exist yet, but I receive the error that the database already exists. --createdatabase option set to false does not work for this because grate expects that the database already exists before executing the beforeMigration script from what I can see.
Database: Microsoft SQL Server

Hi, @JaDuyve.
Customising creation of the database with a custom script is definitely possible. However, there is a special folder for this, called createDatabase. This is described in the Default folder configuration section of the documentation: https://erikbra.github.io/grate/folder-configuration/#default-folder-configuration
You shouldn't have to do any other special configuration, as setting the createdatabase option to false. Just leave those options as default.
(this is also in the test report, which is generated at every CI build, but expire quite quickly):

Looking at the documentation, do you think this is well enough described, @JaDuyve? Or does the documentation need improvements?

My apologies. I didn't notice there were other steps other than the steps described at the getting started page.
Thanks for the quick response!

Lovely! Maybe we should make it clear on the "getting started page" that there are other, less used steps as well. If you have suggestions on how to make it easier to get started, please come with suggestions, or even better, submit a PR on the documentation :)

Hi @erikbra, I have created a small PR (#463) to make the changes to the documentation.
I was also trying to use a custom folder configuration and I got some errors when I wanted to give the step createDatabase a custom folder. Am I correct in assuming that there is no support for providing different location for createDatabase script other than the default configuration?
Reproduce
Here are 2 zips that contain for both cases the folder structure that was used in tests below

DefaultFolderConfig.zip
CustomFolderConfig.zip

I used docker for running the database
version: "3.9"
services:
  LocalDB:
    container_name: LocalDB
    image: mcr.microsoft.com/mssql/server:2022-latest
    environment:
      SA_PASSWORD: T3stPa55w0rd
      ACCEPT_EULA: Y
      TZ: "Europe/Brussels"
    ports:
      - "1433:1433"
    healthcheck:
      test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "T3stPa55w0rd" -Q "SELECT 1" || exit 1
      interval: 10s
      timeout: 3s
      retries: 10
      start_period: 10s

Test with default folder config
Directory structure
.
├── createDatabase
│   └── 20240304_01_CreateDatabase.sql
└── up
    └── 20240304_01_CreateTable.sql

Output command
grate --connstring="Server=localhost,1433;Database=TestDB;User ID=sa;Password=T3stPa55w0rd;TrustServerCertificate=True" --create true -t
Initializing connections.
Running grate v1.6.1 (build date 02/16/2024 07:52:45) against localhost,1433 - TestDB.
Looking in . for scripts to run.
Please press enter when ready to kick...

================================================================================
Setup, Backup, Create/Restore/Drop
================================================================================
  Running '20240304_01_CreateDatabase.sql'.
================================================================================
Grate Structure
================================================================================
================================================================================
Versioning
================================================================================
 Migrating TestDB from version <IP_ADDRESS> to <IP_ADDRESS>.
 Versioning TestDB database with version <IP_ADDRESS>.
================================================================================
Migration Scripts
================================================================================
Skipping 'BeforeMigration', beforeMigration does not exist.
Skipping 'AlterDatabase', alterDatabase does not exist.
Skipping 'Run After Create Database', runAfterCreateDatabase does not exist.
Skipping 'Run Before Update', runBeforeUp does not exist.

Looking for Update scripts in "./up". These should be one time only scripts.
--------------------------------------------------------------------------------
  Running '20240304_01_CreateTable.sql'.
--------------------------------------------------------------------------------

Skipping 'Run First After Update', runFirstAfterUp does not exist.
Skipping 'Functions', functions does not exist.
Skipping 'Views', views does not exist.
Skipping 'Stored Procedures', sprocs does not exist.
Skipping 'Triggers', triggers does not exist.
Skipping 'Indexes', indexes does not exist.
Skipping 'Run after Other Anytime Scripts', runAfterOtherAnyTimeScripts does not exist.
Skipping 'Permissions', permissions does not exist.
Skipping 'AfterMigration', afterMigration does not exist.

grate v1.6.1 (build date 02/16/2024 07:52:45) has grated your database (TestDB)! You are now at version <IP_ADDRESS>. All changes

Test with custom folder config
Directory structure
.
├── ddl
│   ├── 00_CreateDatabase.AnyTime
│   │   └── 20240304_01_CreateDatabase.sql
│   └── 05_Up.OneTime
│       └── 20240304_01_CreateTable.sql
└── folder_config.txt

Folder config
createDatabase=./ddl/00_CreateDatabase.AnyTime
up=./ddl/05_Up.OneTime

Output command
$ grate --connstring="Server=localhost,1433;Database=TestDB;User ID=sa;Password=T3stPa55w0rd;TrustServerCertificate=True" --folders ./folder_config.txt --create true -t
Initializing connections.
Running grate v1.6.1 (build date 02/16/2024 07:52:45) against localhost,1433 - TestDB.
Looking in . for scripts to run.
Please press enter when ready to kick...

================================================================================
Setup, Backup, Create/Restore/Drop
================================================================================
================================================================================
Grate Structure
================================================================================
================================================================================
Versioning
================================================================================
 Migrating TestDB from version <IP_ADDRESS> to <IP_ADDRESS>.
 Versioning TestDB database with version <IP_ADDRESS>.
================================================================================
Migration Scripts
================================================================================

Looking for createDatabase scripts in "././ddl/00_CreateDatabase.AnyTime". These should be one time only scripts.
--------------------------------------------------------------------------------
  Running '20240304_01_CreateDatabase.sql'.
Error running script "20240304_01_CreateDatabase.sql": CREATE DATABASE statement not allowed within multi-statement transaction.
Rolling back changes.
Unhandled exception: grate.Exceptions.MigrationFailed: Migration failed due to errors:
 * CREATE DATABASE statement not allowed within multi-statement transaction.
 ---> Microsoft.Data.SqlClient.SqlException (0x80131904): CREATE DATABASE statement not allowed within multi-statement transaction.
   at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at Microsoft.Data.SqlClient.SqlCommand.InternalEndExecuteNonQuery(IAsyncResult asyncResult, Boolean isInternal, String endMethod)
   at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryInternal(IAsyncResult asyncResult)
   at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryAsync(IAsyncResult asyncResult)
   at Microsoft.Data.SqlClient.SqlCommand.<>c.<InternalExecuteNonQueryAsync>b__210_1(IAsyncResult result)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult, Func`2, Action`1, Task`1, Boolean)
--- End of stack trace from previous location ---
   at grate.Migration.AnsiSqlDatabase.ExecuteNonQuery(DbConnection conn, String sql, Nullable`1 timeout)
   at grate.Migration.AnsiSqlDatabase.ExecuteNonQuery(DbConnection conn, String sql, Nullable`1 timeout)
   at grate.Migration.AnsiSqlDatabase.RunSql(String sql, ConnectionType connectionType, TransactionHandling transactionHandling)
   at grate.Migration.DbMigrator.RunTheActualSql(String sql, String scriptName, MigrationType migrationType, Int64 versionId, ConnectionType connectionType, TransactionHandling transactionHandling)
   at grate.Migration.DbMigrator.RunTheActualSql(String sql, String scriptName, MigrationType migrationType, Int64 versionId, ConnectionType connectionType, TransactionHandling transactionHandling)
   at grate.Migration.DbMigrator.<>c__DisplayClass27_0.<<RunSql>g__LogAndRunSql|0>d.MoveNext()
--- End of stack trace from previous location ---
   at grate.Migration.DbMigrator.RunSql(String sql, String scriptName, MigrationType migrationType, Int64 versionId, GrateEnvironment environment, ConnectionType connectionType, TransactionHandling transactionHandling)
   at grate.Migration.GrateMigrator.Process(DirectoryInfo root, MigrationsFolder folder, String changeDropFolder, Int64 versionId, ConnectionType connectionType, TransactionHandling transactionHandling)
   at grate.Migration.GrateMigrator.LogAndProcess(DirectoryInfo root, MigrationsFolder folder, String changeDropFolder, Int64 versionId, ConnectionType connectionType, TransactionHandling transactionHandling)
   at grate.Migration.GrateMigrator.Migrate()
ClientConnectionId:51e5002f-1f37-4770-ad5e-d953c0a8c697
Error Number:226,State:5,Class:16
   --- End of inner exception stack trace ---
   at grate.Migration.GrateMigrator.Migrate()
   at grate.Commands.MigrateCommand.<>c__DisplayClass0_0.<<-ctor>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.NamingConventionBinder.CommandHandler.GetExitCodeAsync(Object returnValue, InvocationContext context)
   at System.CommandLine.NamingConventionBinder.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()

Setup

Database: Microsoft SQL Server 2022
OS: MacOS 14.2.1 (23C71) - Intel
Grate: v<IP_ADDRESS>


Clean logging statements

This should also be considered when addressing #255, but is an independent topic.
Stumbled upon code like this: (example from get )
if error_path_absent:
    log.error("The following paths do not exist:")
    log.error("\n".join(error_path_absent))
    log.error("\n Exiting.")
    sys.exit(1)

While this looks fine on terminal when everything is (pretty much) default, log.error is not an elaborate print statement. Instead, it generates log "records" (objects) that may be acted upon by potentially a whole bunch of different filters, handlers and formatters. Code like above would produce three distinct records instead of one record with a multi-line message. Thus, it's kinda sabotaging potential future filters, handlers, formatters.

Leaving a record of a somewhat related issue:
Logging of exceptions is currently happening in the form of
def some_command():
    try:
        subroutine()
    except SomeError:
        do_stuff()
        sys.exit()

    finalize_stuff()

def do_stuff():
    ...
    if something_is_wrong:
        log.error("tell the user that the command stopped and didn't proceed to finalize stuff")
        raise SomeError

This is fundamentally flawed. do_stuff must not incorporate knowledge (rather: assumptions) about what the caller is or isn't doing because of the exception. The entire point of raising an exception is to leave it the caller what to do with it. This kind of messaging needs to happen where the exception is treated, not where it is raised.


chore(main): release core-js 1.0.0

:robot: I have created a release beep boop
1.0.0 (2024-11-03)
✨ New Features

core-js: updated cicd (d4ac1f6)
core-js: updated the history interface (d026ccc)
expanded core (fa5d4eb)
setting up core-js (d0baef6)
updated core interface (fba7271)
updated core interface (8d60a91)
updated core interface (2c87b17)
updated core interface required interface (cd92204)
updated organization (830ca46)
updated react sdk name (4935256)
updating core-js provider (5529aae)

🐛 Bug Fixes

linting is fixed (9b48035)
linting is fixed (f531955)
release process fixed (0617fde)
test cases fixed (6ffc8ea)
testing build (f1b0772)
typedoc updated (fcfd4dd)
unsubscribe (408dd00)
updated jest types, added few test in core-js (dce0a18)
updated publish command (83053bd)

🧹 Chore

deps: update dependency @testing-library/jest-dom to v6.6.3 (7000d12)
main: release core-js 0.0.2-experimental (e8fc875)
main: release core-js 0.0.2-experimental (7615f35)
main: release core-js 0.0.2-experimental (c7ac70c)
main: release core-js 0.0.2-experimental (8250a20)
main: release core-js 0.0.2-experimental (a523bef)
main: release core-js 0.0.3-experimental (80960e7)
main: release core-js 0.0.4-experimental (1bcd00d)
main: release core-js 0.0.5-experimental (c4868b2)
main: release core-js 0.0.6-experimental (7dd676d)
main: release core-js 0.0.7-experimental (e92b58d)
release main (784cbb9)
release main (0702a21)
release main (bcbb7b4)
release main (26efd1b)
release main (eae5899)
release main (b46d42f)
release main (4b17328)
release: 1.10.0 [skip ci] (c801187)
release: 1.11.0 [skip ci] (abf0434)
release: 1.12.0 [skip ci] (ff62d63)
release: 1.13.0 [skip ci] (04794d6)
release: 1.14.0 [skip ci] (a522885)
release: 1.5.0 [skip ci] (0b4636a)
release: 1.5.1 [skip ci] (44b838e)
release: 1.8.0 [skip ci] (d3371d0)
release: 1.9.0 [skip ci] (a15479c)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/open-socket/js-sdk/releases/tag/core-js-v1.0.0 :sunflower:


Nick list ghosting after server jump on AndChat

This seems to only apply to AndChat so far. Have now tested on PocketIRC (Windows Mobile 6.1), AndroIRC, and YaaIC too and none have reproduced this. I have a contact who uses IRC7 on Windows Phone 8 but he is too busy to test for me at the moment. I will now submit a bug report on the AndChat bug tracker site with a link to this bug page.
When channels are rejoined after reconnecting to the IRC server (jumping or reconnecting) the stale nicklist isn't cleared before the new one is added. This results in a double-length list, sometimes with users who are no longer in the channel (may have changed nick, parted/been kicked, or otherwise quit).
Please look into this as a lot of channels I'm in are invite-only, and there is no +I mode (invite-exception) on the NetGamers network.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1041889-nick-list-ghosting-after-server-jump-on-andchat?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).

I believe this is invalid as it's AndChat issue and AndChat is discontinued.


Add new tag

Hello,
Thank you very much for this tool - it's immensely useful.
I am using go install to install the tool to my $GOPATH/bin folder, and doing so installs the latest tagged version (v1.0.0). However, v1.0.0 contains a bug related to the -e flag which leads to the error error opening file: open : no such file or directory. I notice that this bug is fixed in a later commit, so I am just wondering if you could add a new tag so that go install will work without having to supply a commit hash to it? Thanks.

Thank you @georgekamel! It is great to hear this tool is helping developers. I will tag the latest commit.

Tag done: https://github.com/blmayer/awslambdarpc/releases/tag/v1.0.1


Support set step value for Horizontal and Vertical Axis (x/y axis)

Hi, after deeply searching in this lib, I see you do not support for setting these values yet.
For example, I have a bunch of data of temperature of few months, and I want to draw a chart with step in Y axis is 5 degree, and step in X axis is each 7 days, what I want is the gridline always point to that step value.
I see some others chart lib have this feature, but I love this library (the style, animation, setup). Could you please add this in next release ?
Thanks.

Hi Lecho,
Let me know how to use the above mentioned static methods.
My Requirement: I want show the X axis values dynamically.
For Example: If my Total distance is 50KM, then I need to show 0,10,20,30,40,50 points in x axis.
Let me know how can I achive it.
Example Code for X axis Value Generation:
public class graph1 {
public static void main(String[] args) {
	// TODO Auto-generated method stub

	int slicing=5;
	int toal_distance=50;

	int sliced=toal_distance/5;
	System.out.println("========The Following Points to be displayed===========");
	for(int i=0;i<=5;i++){
		int total_points=sliced*i;
		System.out.println("Total Points:"+total_points);

	}
}

}
Output:
========The Following Points to be displayed===========
Total Points:0
Total Points:10
Total Points:20
Total Points:30
Total Points:40
Total Points:50


Support for OAuth

I was trying to configure syncarr to my setup but unfortunately because all my services are behind OAuth I was unable to get configured/running.  Basically what appears to be happening is the redirect from initial to OAuth is hanging up the actual connection.  I was wondering if there is any easy implementation for supporting OAuth (Specifically Google OAuth).  To run more secure instead of leaving Radarr/Sonarr/Lidarr unsecure.

Whitelist /api from sonarr/radarr and you should be done. Or use a VPN to connect to the backend from sonarr/radarr

Whitelist /api from sonarr/radarr and you should be done. Or use a VPN to connect to the backend from sonarr/radarr
Pro tip: if you whitelist /api and add a header restriction for the api key, you end up with double auth verification. Better granularity and fault-tolerance.

Would you be able to share how to whitelist /api?  I thought the whole purpose of the API key was to allow something access to the service?  Or am I mixing things in my head.  Thanks in advance

It depends on your reverse-proxy configuration. I'm assuming you have one because neither Sonarr Radarr or Lidarr come with OAuth out of the box. In my case, I'm using Traefik 1.7 with https://github.com/thomseddon/traefik-forward-auth.
Basically the idea is simple: both Radarr and Sonarr have their own API key to protect their API from intruders. So you must whitelist the path http(s)://yoursonarrdomain/api. The whitelisting should let the request go through without Oauth validation. Once the request hits the /api, the api_key query param will be validated against Sonarr/Radarr. If it's invalid, it will return 401, and if it's valid it will let you in.
Keep in mind that whitelisting /api doesn't mean that the rest of the paths will be unprotected. If you try to access http(s)://yoursonarrdomain/ it should prompt you with oauth validation.

Ah ok I'm using

It depends on your reverse-proxy configuration. I'm assuming you have one because neither Sonarr Radarr or Lidarr come with OAuth out of the box. In my case I use Traefik 1.7 with https://github.com/thomseddon/traefik-forward-auth.
Basically the idea is simple: both Radarr and Sonarr have their own API key to protect their API from intruders. So you must whitelist the path http(s)://yoursonarrdomain/api. The whitelisting should let the request go through without Oauth validation. Once the request hits the /api, the api_key query param will be validated against Sonarr/Radarr. If it's invalid, it will return 401, and if it's valid it will let you in.
Keep in mind that whitelisting /api doesn't mean that the rest of the paths will be unprotected. If you try to access http(s)://yoursonarrdomain/ it should prompt you with oauth validation.

Ok I think I know where to go from there I am using Traefik 2.2 thanks for the tips!

was this fixed? I dont use OAuth so cant test.

was this fixed? I dont use OAuth so cant test.

I would say so, yes.


[IRGen] Fix getEnumTag witness function selection

When a type is not runtime instantiated and we are not able to compute a layout string for it, we can't assign it a layout string witness function.

@swift-ci smoke test

@swift-ci smoke test

@swift-ci smoke test windows


HTML canvas issues

There are some issues when making a canvas with the HTML function.

What are the issues?

If you do this, it doesn't work:
const canvas = HTML `<canvas></canvas>`
document.body.appendChild(canvas)

You have to do this instead:
document.create("canvas")
document.body.appendChild(canvas)

This is now fixed in the new version: https://github.com/TodePond/Habitat/commit/1950dc385a378d57b0cfbcdf3a5eb71f9706562d


Update readme & homepage

I finally got around to doing something about the documentation, and ended up with messageformat.github.io (source repo), which now has what used to be in README.md + the JSDoc output. I've removed here the pre-compiling sections and MarkDown guide from the README and updated the rest, referring to the site for more info.
With this, I think we could finally release 0.3.0. @SlexAxton, what do you think?

Just paged through the site. Looks great. Ship it all!
On Sat, Jan 30, 2016 at 2:52 PM Eemeli Aro<EMAIL_ADDRESS>wrote:

I finally got around to doing something about the documentation, and ended
up with messageformat.github.io (source repo
https://github.com/messageformat/messageformat.github.io), which now
has what used to be in README.md + the JSDoc output. I've removed here the
pre-compiling sections and MarkDown guide from the README and updated the
rest, referring to the site for more info.
With this, I think we could finally release 0.3.0. @SlexAxton
https://github.com/SlexAxton, what do you think?
You can view, comment on, or merge this pull request online at:
https://github.com/SlexAxton/messageformat.js/pull/130
Commit Summary

Update examples
Update README.md, linking to messageformat.github.io
Update homepage URL
Add make release target

File Changes

M Makefile
https://github.com/SlexAxton/messageformat.js/pull/130/files#diff-0
(22)
M README.md
https://github.com/SlexAxton/messageformat.js/pull/130/files#diff-1
(549)
M bower.json
https://github.com/SlexAxton/messageformat.js/pull/130/files#diff-2
(2)
M example/en/i18n.js
https://github.com/SlexAxton/messageformat.js/pull/130/files#diff-3
(8)
M example/en/sub/folder/plural.json
https://github.com/SlexAxton/messageformat.js/pull/130/files#diff-4
(2)
M example/fr/i18n.js
https://github.com/SlexAxton/messageformat.js/pull/130/files#diff-5
(8)
M example/fr/sub/folder/plural.json
https://github.com/SlexAxton/messageformat.js/pull/130/files#diff-6
(2)
M example/index.html
https://github.com/SlexAxton/messageformat.js/pull/130/files#diff-7
(5)
A jsdoc-fix-fonts.patch
https://github.com/SlexAxton/messageformat.js/pull/130/files#diff-8
(54)
M package.json
https://github.com/SlexAxton/messageformat.js/pull/130/files#diff-9
(2)

Patch Links:

https://github.com/SlexAxton/messageformat.js/pull/130.patch
https://github.com/SlexAxton/messageformat.js/pull/130.diff

—
Reply to this email directly or view it on GitHub
https://github.com/SlexAxton/messageformat.js/pull/130.

It's done; we're at 0.3.0 on npm and bower. @SlexAxton, could you add the new webpage URL https://messageformat.github.io/ in the GitHub header?

Done.


examples/stocks fails flutter test --preview-dart-2 after dart/engine roll

from https://travis-ci.org/flutter/flutter/jobs/352525306 that is running on dart/engine roll(not yet submitted https://github.com/flutter/flutter/pull/15444):
⏩ RUNNING: cd examples/stocks; ../../bin/flutter test --preview-dart-2
00:00 +0: /home/travis/build/flutter/flutter sdk/examples/stocks/test/icon_color_test.dart: - Icon colors
00:01 +1: loading /home/travis/build/flutter/flutter sdk/examples/stocks/test/locale_test.dart
00:02 +1: /home/travis/build/flutter/flutter sdk/examples/stocks/test/locale_test.dart: - Changing locale
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure object was thrown running a test:
  Expected: exactly one matching node in the widget tree
  Actual: ?:<zero widgets with text "MERCADO" (ignoring offstage widgets)>
   Which: means none were found but one was expected
When the exception was thrown, this was the stack:
#4      main.<anonymous closure> (file:///home/travis/build/flutter/flutter%20sdk/examples/stocks/test/locale_test.dart:30:5)
<asynchronous suspension>
#5      testWidgets.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:61:25)
#6      TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:484:19)
<asynchronous suspension>
#9      TestWidgetsFlutterBinding._runTest (package:flutter_test/src/binding.dart:471:14)
#10     AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:653:24)
#16     AutomatedTestWidgetsFlutterBinding.runTest (package:flutter_test/src/binding.dart:651:16)
#17     testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:60:24)
#18     Declarer.test.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test/src/backend/declarer.dart:161:27)
<asynchronous suspension>
#19     Invoker.waitForOutstandingCallbacks.<anonymous closure> (package:test/src/backend/invoker.dart:249:15)
<asynchronous suspension>
#23     Invoker.waitForOutstandingCallbacks (package:test/src/backend/invoker.dart:246:5)
#24     Declarer.test.<anonymous closure>.<anonymous closure> (package:test/src/backend/declarer.dart:159:33)
#28     Declarer.test.<anonymous closure> (package:test/src/backend/declarer.dart:158:13)
<asynchronous suspension>
#29     Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test/src/backend/invoker.dart:403:25)
<asynchronous suspension>
#43     _Timer._runTimers (dart:isolate/timer_impl.dart:382:19)
#44     _Timer._handleMessage (dart:isolate/timer_impl.dart:416:5)
#45     _RawReceivePortImpl._handleMessage (dart:isolate/isolate_patch.dart:165:12)
(elided 26 frames from class _FakeAsync, package dart:async, and package stack_trace)
This was caught by the test expectation on the following line:
  file:///home/travis/build/flutter/flutter%20sdk/examples/stocks/test/locale_test.dart line 30
The test description was:
Changing locale

cc @a-siva @mraleph

Running bisect on dart sdk points to https://dart-review.googlesource.com/45520
d17db1d5f395e153394aec407bf73b9bfa47e33f as the commit that introduced the failure.
@stereotype441 @kmillikin

This looks like an issue in the intl package code generation. See stock_messages_en.dart:
class MessageLookup extends MessageLookupByLibrary {
   get localeName => 'en';

   final messages = _notInlinedMessages(_notInlinedMessages);
   static _notInlinedMessages(_) => {
     "market" : MessageLookupByLibrary.simpleMessage("MARKET"),
     "portfolio" : MessageLookupByLibrary.simpleMessage("PORTFOLIO"),
     "title" : MessageLookupByLibrary.simpleMessage("Stocks")
   };
 }

Here messages are expected to be Map<String, Function> based on what super class declares.
At the same time _notInlinedMessages is producing Map<String, dynamic> because MessageLookupByLibrary.simpleMessage returns dynamic.
I am surprised this did not come with intl before. Maybe it rings a bell to you @leafpetersen @alanknight ?

Filed https://github.com/dart-lang/sdk/issues/32515 to track the missing DDC runtime error, thanks!

Expected: exactly one matching node in the widget tree
Actual: ?:<zero widgets with text "0" (ignoring offstage widgets)>
Which: means none were found but one was expected
Why occur this error?

@pu-tu The provided information doesn't allow to diagnose the problem.
The error message just says that a widget test contains an expectation that is not met.
It is likely that just the test code contains an error.
Please consider asking support questions in one of the other channels listed at http://flutter.io/support .

@pu-tu @zoechi  I have the same issue .
The following TestFailure object was thrown running a test:
  Expected: exactly one matching node in the widget tree
  Actual: ?:<zero widgets with text "0" (ignoring offstage widgets)>
   Which: means none were found but one was expected

how to resolve this error ?

i guess by rewriting the test logic. cause that error is because the test contains expectation that is not met.

The following TestFailure object was thrown running a test:

@pu-tu @zoechi I have the same issue .
The following TestFailure object was thrown running a test:
  Expected: exactly one matching node in the widget tree
  Actual: ?:<zero widgets with text "0" (ignoring offstage widgets)>
   Which: means none were found but one was expected

how to resolve this error ?

i guess by rewriting the test logic. cause that error is because the test contains expectation that is not met.


About data set conversion

Hey dear @lkeab
Thanks for this work. I want to use BCNet, but I only have about 1000 RGB images and their ground truth images. There is no problem with training with object detection such as Faster R-CNN, but when I try to do it with BCNet or mask-rcnn, I get an error "Cannot find field 'gt_masks' in the given Instances". How can I register dataset with ground truth without json segmentation file? In other words, ground truth is sufficient with RGB images to do instance segmentation, or how can I do it.
Thanks a lot in advance.

Hey @lkeab Thanks for quick reply,
First, I have medical images which have rgb images and corresponding ground truth and bounding boxes (xml files).
I want object segmentation (semantic segmentation). So my question is: How can I register data set with ground truth without json segmentation file?, because I dont have json segmentation file (polygon). Do you have any sugesstion to train BCNet.
Thanks in advance.


fix mov interface

Make mov interface that takes a pointer template to avoid ambiguity when
the 2nd argument is 0UL. Now, when the 2nd argument is 0 or 0UL the call
goes to the correct version of the mov method.

Thank you for the useful patch. I've merged it at https://github.com/herumi/xbyak/commit/18c9caaa0a3ed5706c39f5aa86cce0db6e65b174 .

Thank you!


Typo in github readme.md

Dutch spelling DNN github home.

Changed the title for clarity

thank you.

Done in #3334


Reverseal card enunciado1

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

33 of 33 (100.0%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 97.39%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
821

Relevant Lines:
843

💛  - Coveralls


Fix overlapping scrollbar issue

Please see https://github.com/processing/p5.js-website/issues/27.

👍


Use Android Volley for our network requests

https://developer.android.com/training/volley/index.html
I've been having issues where the first request times out, and wanting to automatically do a retry. Started googling, and it seems like the above "Volley" seems like the way to go to do get requests for this app.
Currently our network requests are done using the GetRequest class, but we should switch to the above.

Closed as per 7c78904


Fix accept using incorrect separator

Replaced   (space) with , (comma), as the valid attribute value is set of comma-separated token.
spec: https://html.spec.whatwg.org/multipage/input.html#attr-input-accept

Thanks!


Add testnet version bytes to extended keys, close #67

thanks! LGTM - kindly asking @mirceanis to also have a look as he was doing the original BIP32 PR

I can take a look tomorrow

That would be much appreciated!

Code looks ok, there is a breaking change for people who are directly instantiating ExtendedKey or using equality tests on preexisting ones and that should be mentioned in release notes when released.
Also, what is the use of this? It would be nice to see a description on the PR.
The reason that testnet values weren't added from the beginning is that the "testnet" is a bitcoin one and had no apparent relation to ethereum. It's also possible I missed it back then.
Is there a use-case now, @mahdi13 ?

Thanks for the review. I think it is good to also support bitcoin and respect the standard. Also think to extract the code to a new repo into Komputing like KBip32 to decouple from Ethereum

I think it is good to also support bitcoin and respect the standard.

right, my question is out of curiosity, not a critique of the PR.

Also think to extract the code to a new repo into Komputing like KBip32 to decouple from Ethereum

sounds like a very good idea. Based on past experience, this should also be correlated with a release in KEthereum where the bip32 module is removed, to avoid getting a "duplicated classes" error when compiling for android.

@mirceanis I agree with you, I don't see any relationship between bitocin's testnet and ethereum. I only suggested it because it was part of the official bip-0032 proposal.
Thanks for your great toolchain, I've been using this repository in many of my organization's project. Not only about ethereum, but I've also chosen this library for implementing bitcoin, ripple, and other cryptocurrencies tools. I see great potential on this code to be expanded to cover more cryptocurrencies.


no click get url，how?

I need: Direct display this url,  I don't want to click after get url，how?
thank you

what do you mean by "Direct display"?  do you want to navigate to the url?

re-defining the global copyPrompt might help (see below), but I'm not sure exactly what you want.
function copyPrompt() {
    window.location.href = (
        '' + location.origin + location.pathname + '?' +
        'lat' + '=' + LS.Send.lat + '&' +
        'lng' + '=' + LS.Send.lng + '&' +
        'M' + '=' +  LS.Send.Message
    );
};

I want to position of my markers with getLatLng.
But if i draggable a marker,
position no update
my code:
map.on('contextmenu',addPoint); function addPoint(e) { var marker = L.marker([e.latlng.lat, e.latlng.lng],{draggable:true}).addTo(map).bindPopup(e.latlng.toString()).openPopup(); }


Andromeda broke with beta 35+

Mod Name
Andromeda
Mod Homepage
https://github.com/melontini/andromeda
Minecraft version
1.20.1
Describe the bug
Crash due to Adapter patches not applying (?)
Steps to reproduce

Launch the game with items.infinite_totem or world.quick_fire enabled in Andromeda's config
Mixin can't locate injection targets.

Logs
items.infinite_totem: https://mclo.gs/RG6Xon1
Additional context
Confirmed with this build https://github.com/Sinytra/Connector/actions/runs/7716373181

Doesn't look like beta 36 fixed the issue.

Seems like 1.8.0 is broken on all Connector versions.

It's not "seems". Some time ago, connector stopped piping every class to the mixin transformer, and since Andromeda generates its mixin configs at runtime, no patches are applied. 😛

so thats why my modpack was crashing after updating connector... glad this is being checked

This should only affect modpacks with Andromeda (all 3 of them), but even then, Andromeda will disable the module if some mixin fails to apply. This also only affects world/quick_fire and items/infinite_totem.
If you're trying to run AM without those modules, then the issue is in something else.

You're right, I just piped everything through the mixin patch transformer and Andromeda worked again, lol.


getting account followers with pagination

How to get account followers with pagination? Like get followers 0-500. Separate request to get 500-1000 followers. Then separate request to get next 500 followers. How to implement this?
Lets say an account has 10k followers.
I want to get 500 followers, process them. Then the script will sleep for 2 hours.
Then i want to get next 500 followers, and process them, etc like that.
For a 10k account i could just get all followers, persist them, and then process batch by batch as needed. But for a 1m followers account this wont work.

Good idea


url_launcher throws missing plugin exception when published (android)

Steps to Reproduce
  _launchCall() async {
    try {
      if (await canLaunch("tel:${appSettings.phone}")) {
        var res = await launch("tel:${appSettings.phone}");
        Toast.show(res.toString(), context);
      } else {
        Toast.show("could not dial ${appSettings.phone}", context);
      }
    } catch (ex) {
      Toast.show("${ex.toString()}", context);
    }
  }

iOS works on debug and release runs and works on Testflight & Appstore
Android works on debug
Android works with command "flutter run --release"  (with signature)
Actually cant see the toast, immediately switchs to dial screen.
Android does not work when published (beta release or internal app sharing) "flutter build appbundle" or apks
Exception toast says:
MissingPluginException(No implementation found for method canLaunch on channel plugins.flutter.io/url_launcher)

pubspec.yaml
name: myapp
description: A new Flutter project.

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 2.1.53+2020110306

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.0
  flutter_launcher_icons: ^0.8.1 #flutter pub run flutter_launcher_icons:main -f pubspec.yaml
  dio: ^3.0.10
  get: ^3.12.1
  flutter_guid: ^0.1.0
  toast: ^0.1.5
  image_picker: ^0.6.7+11
  modal_progress_hud: ^0.1.3
  flutter_svg: ^0.19.0
  flutter_local_notifications: ^2.0.0
  rflutter_alert: ^1.1.0
  url_launcher: ^5.7.8
  flutter_datetime_picker: ^1.4.0
  rxdart: ^0.24.1
  shared_preferences: ^0.5.12

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter_icons:
  image_path_android: "assets/images/app_icon.png"
  image_path_ios: "assets/images/app_icon.png"
  android: true
  ios: true

flutter:
  uses-material-design: true
  assets:
    - assets/images/icon_call.svg
    - assets/images/icon_enroll.svg
    - assets/images/icon_link.svg
    - assets/images/icon_pressure_reminder.svg
    - assets/images/icon_profile.svg
    - assets/images/icon_query.svg

flutter doctor -v

io@ios-Mac-mini dunlop % flutter doctor -v
[✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.15.7 19H2, locale en-TR)
• Flutter version 1.22.3 at /Users/io/Library/Flutter
• Framework revision 8874f21e79 (5 days ago), 2020-10-29 14:14:35 -0700
• Engine revision a1440ca392
• Dart version 2.10.3
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/io/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.1, Build version 12A7403
• CocoaPods version 1.10.0
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin installed
• Dart plugin version 201.9002
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.50.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.16.0
[✓] Connected device (3 available)
• GT N7100 (mobile)            • 4df1f32b147e9f67                         • android-arm   • Android 5.1.1 (API 22)
• Redmi Note 8 Pro (mobile)    • onr4kz8x49kve6pj                         • android-arm64 • Android 10 (API 29)
• Company iPhone’u (mobile) • 3a2b7cd02008d86c4fafb29185a53f540a8f09cb • ios           • iOS 10.3.4
! Error: Company iPhone’u is busy: Making Company iPhone’u ready for development. Xcode will continue when Company iPhone’u is finished. (code -10)
• No issues found!

building
io@ios-Mac-mini myapp % flutter clean && flutter build appbundle
Cleaning Xcode workspace...                                         2.9s
Deleting build...                                                  260ms
Deleting .dart_tool...                                              19ms
Deleting Generated.xcconfig...                                       0ms
Deleting flutter_export_environment.sh...                            0ms
Deleting App.framework...                                            3ms
Deleting .flutter-plugins-dependencies...                            0ms
Deleting .flutter-plugins...                                         0ms
Running "flutter pub get" in dunlop...                              0.5s
Removed unused resources: Binary resource data reduced from 74KB to 71KB: Removed 3%
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done                        41.9s
✓ Built build/app/outputs/bundle/release/app-release.aab (21.1MB).

@ilkerokutman
I tried the official url_launcher plugin and built a release app of it using following commands and launched it on Android device 8.1.0, which worked fine. The app launched properly and I was able to use all the features of the example.
dhs@Dhss-MacBook-Pro example % flutter build appbundle
Running "flutter pub get" in example...                             0.6s
Removed unused resources: Binary resource data reduced from 35KB to 21KB: Removed 40%
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done                        58.8s
✓ Built build/app/outputs/bundle/release/app.aab (16.3MB).

dhs@Dhss-MacBook-Pro release % bundletool build-apks --bundle=./app.aab --output=./app.apks
INFO: The APKs will be signed with the debug keystore found at '/Users/dhs/.android/debug.keystore'.
dhs@Dhss-MacBook-Pro release % bundletool install-apks --apks=app.apks
The APKs have been extracted in the directory: /var/folders/w0/6j3m5z913hbd94smbfmz6y6h0000gn/T/5025672729198249020

69674.mp4.zip
Can you provide a minimal complete reproducible code sample that shows the issue ?
Thanks.

I copied my project, cleared irrelevant code and renamed branding strings and replaced images.
https://github.com/ilkerokutman/example_url_launcher
Also published to Google Play Open Testing..
I will update link when reviewing completed.

I am also seeing a similar issue. My app runs ok if I build the app as an apk release. But if I build it as an appbundle, it crashes with MissingPluginException.
My CI pushed the buggy appbundle on the Play Store and now I get constant MissingPluginExceptions. It varies which plugin is to blame so I think it'a actually not the fault of one particular plugin.
I have 2 apps in the wild with this behavior and I've spent hours figuring out that the cause is what I mentioned above. I couldn't find a fix so I had to revert to a previous working version.
I'm using the latest stable flutter version 1.22.3 and all the latest plugins.

Strangely the project I copied and published seemed to work!
Not sure but refactoring android package name may cause that.
This time:

Created new flutter app with new name in new folder ("flutter create ." did not solve it. )
Refactored android package name
copied old projects lib folder contents and pubspec.yaml to new one
published and it worked.

Before that I always did package name refactoring after copying and when published issue revealed.
Anyway I don't have the problem now. Thank you for your time.

Thanks @ilkerokutman for confirming and glad to know your issue is resolved.
Closing this based on your comment above.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


manage multiple ssh public keys while updating authorized_keys file

open problem is the removal of missing public keys from an existing authorized_keys file

manage multiple ssh public keys while updating authorized_keys file


Allow to pass custom component into

Same as for <Field/>
My use case is need to use custom Form from UI lib

Looks good! The only thing I'm worried about is that this can, in some cases, make onSubmit not behave as expected if the custom component doesn't implement onSubmit.
Then again, RRF isn't supposed to make assumptions :stuck_out_tongue_winking_eye:

Can you make patch release with it?

Sure, check back again in an hour

Should be available now in<EMAIL_ADDRESS>

Thank you very much!


New Bazel version

to simplify things - this would require switch to bazilesk in publicCI as well as in internal CI

/intelci: run

/intelci: run

/intelci: run

Updated: https://intel-ci.intel.com/edfad31c-8f9a-f142-bc12-a4bf010d0e2e


update WithGoVerion to run 'go mod init'

Currently, the "app-init.go" (or whatever the codegen file is called to create the app) needs to be in a directory that has "go mod init" already run in it.
If you run WithGoVersion and there is no "go.mod, " it does not update the Go version.
Update the "NewApp" to require the module name.  This will be used to run "go mod init" if go.mod does not already exist.
We must determine what to do if someone uses NewApp without specifying WithGoVersion.  If the generate issue (#4) has already been addressed, this may be a moot point.

During practical testing, it was determined that running the "app-init.go" file without a go.mod file is problematic. The module could be placed into the proper Go path; however, this feels like more of a hassle than running 'go mod init'. I am marking this as "Won't Do" until a better argument can be made to revisit this.


A node should query PoET services for proofs instead of relying on gossip

Description
Implement the go-spacemesh side of https://github.com/spacemeshos/pm/issues/173. See that ticket for implementation details. A node should request proofs from PoET services directly instead of relying on gossip.
Affected code

Node should query PoET services, that it submitted challenges to, for proofs.

Duplicate of #3814


Readme incorrectly mentions not mitigating zip-slip attacks

The README does specifically specify that this package doesn’t try to prevent zip-slip attacks due to various cross-platform issues and so on. However, looking at the current code and the various releases that have been made in the last couple of months, it looks to not be true any more. https://github.com/mholt/archiver/commit/8217ed3a206c0473b4ec1aff51375b398838073a

There's still an issue that we need to resolve. We need to defer symbolic links - like tar does. The existing mechanism can still be defeated.

Ah, I see. Thank you for your explanation. I guess that https://github.com/mholt/archiver/pull/269 solves that issue? If so, it would be great to see that implemented :)

Closing, as zip-slip isn't relevant in v4 (as it does not write to disk) -- that may change if/when the command is reimplemented around the v4 APIs, but we can deal with that then if that's the case.


Fix tests in FoundationTestResponseTest that can't fail

#25232 added a few tests that can't fail because they do something like the following:
try {
    $response->assertSeeTextInOrder(['baz', 'foobar']);

    $this->fail('Assertion was expected to fail.');
} catch (\PHPUnit\Framework\AssertionFailedError $e) {
    //
}

These tests will always pass because $this->fail() throws an exception which is caught by the surrounding catch.
The reason this happened is because the new tests in #25232 were copy and pasted from existing tests. But the existing tests only worked because they had their own tests: SeeInOrderTest
This PR fixes the tests that can't fail, and cleans up the existing tests so the SeeInOrderTest becomes unnecessary.

Much better!
Given that the PR is mainly to clean up where we expect exceptions to be thrown, I feel it reads nicer to use:
$this->expectException(\PHPUnit\Framework\AssertionFailedError::class);

Then there is no need for the try/catch, PHPUnit will handle it all. If there is no exception, PHPUnit will given an error saying that it expected to see an exception thrown.

Good idea @Juddling, i've changed the tests to use $this->assertException()


Reports of uptime service not getting a block in 3 min scheduled window

Preliminary Checks

[X] This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/MinaProtocol/mina/issues
[X] This issue is not a question, feature request, RFC, or anything other than a bug report. Please post those things in GitHub Discussions: https://github.com/MinaProtocol/mina/discussions

Description
Users of the new snark work uptime system are reporting the following error:

[Error] Uptime service did not get a produced block within 3.0 minutes after scheduled time

Some system specs where users see this issue:

It was on an 8 core (AMD Ryzen 7 3800) machine solely running Mina..

beefy Google Cloud compute instance with 16 compute optimized vCPUs. No issues with block production on this node.

Steps to Reproduce
n/a
Expected Result
no error
Actual Result
error
How frequently do you see this issue?
Frequently
What is the impact of this issue on your ability to run a node?
Medium
Status
n/a

Additional information
No response

Logs:
uptime-full.txt
uptime-block.txt

Recently got the same error on AMD Ryzen 7 3700X
2022-05-09 06:37:28 UTC [Error] Uptime service did not get a produced block within 3.0 minutes after scheduled time
Commit 529bf17eadca3d589d12ba6c9333b2edf13d308b on branch release/1.3.1

@georgeee  let's change this to a warning for the next Warn instead of Error

@shimkiv @georgeee There was another case of (actually 2 within 1h)
[Error] Uptime service did not get a produced block within 3.0 minutes after scheduled time
Can you elaborate on conditions that cause it?
It was 2 node setup. Probably not related: one node crashed after couple minutes of that message. It also happened that the second node didn't cover for the slot in Uptime Service and the BP running the nodes lost a point.


Register implementation

Implement a way for a client to register an account after launching the application in the terminal. Once the account is created on the backend, it should then back an appropriate socket event and login the user.

[x] Prompt: give user two choices: 1. Register 2. Login
[x] accept a username and password in the prompt
[x] base64.encode() the username:password
[x] emit a register event to the backend
[x] listen for a registered event from the backend
[x] use proper error handling

Issue resolved


Should allow for jagged arrays as inputs to TFTensor.

Just had a taste of how common they are.
Currently our implicit conversion:
unsafe public static implicit operator TFTensor (Array array)

Only handles multi-dimensional arrays, does not handle arrays of arrays.

Jagged arrays are more common than multidimensional ones mostly because they are (used to be?) quite slow in .NET. Also, FxCop used to (maybe it still does) recommend replacing all multidimensional arrays with jagged ones.
If it would be desirable to add support for jagged arrays, I guess the safest option would be to convert them to multidimensional arrays first, then pass them to the TFTensor(Array array) constructor (otherwise, I have no idea how to handle the "gaps" between the multiple inner vectors inside the jagged array - I guess TensorFlow needs contiguous memory areas to work on).
In this case, if anybody is interested, I had written a method to convert jagged arrays into multidimensional ones using the machinery already present in my own framework, Accord.NET. It's not the fastest implementation on earth, but it works.
If anyone would be willing to use that implementation as a base to incorporate in TensorFlowSharp, please fell free to do so.

Ah, I've just realized that there is a similar implementation already present in Tensor.cs#L1034.

This contribution has been merged.


cursorAt not working for the first time

Hi there,
I'm trying to set the cursorAt options in the start event and recognized that this option will be just ignored the first time I try to sort the element. But when I try it a second time the cursorAt option everything goes fine and the cursor will be set.
start: function(event, ui) {
    // Logic to change the size of the ui.item element dynamically

    // Change cursorAt to center the cursor
    $(this).sortable("option", "cursorAt", { left: ui.item.width() / 2, top: ui.item.height() / 2 });
}

My question is whether there is something missing in the initializing of ui-sortable and its element. I can see that ui.position and ui.offset is undefined for the first time. I tried to set them but with no luck.
Any ideas?
Thanks

Sorry about that. After investigating this issue I found that this is related to jquery-ui.
I created a bug ticket there.
https://bugs.jqueryui.com/ticket/14952#ticket

:+1:


PostPreview needs a way to filter content (based on semantic tagging)

The Timber\PostPreview class is too limited in functionality to be useful in real world scenarios. We need more powerful methods to instruct PostPreview what information to extract and what to discard.
Expected behavior
PostPreview should return a sensible excerpt of the content of a page. This should not include sidebars, navigation etc. which is often embedded in the content when page builders such as Elementor are used.
Even though it might be considered bad practice to embed navigation and sidebars in page content, I'm only using that as a simple example. More reasonable examples might include "widgets" included on pages (boxed images with captions, news feeds, calendars etc.) which should be excluded when a text-only excerpt is extracted.
The PostPreview class has a protected property called $destroy_tags which by default is set to:
protected $destroy_tags = array('script', 'style')
I get the desired behavior (for my particular use case) if this is changed to:
protected $destroy_tags = array('script', 'style', 'nav', 'aside')
This will strip any  and  containers completely, leaving only actual, context-meaningful content.
However, I can't seem to accomplish this without hacking the PostPreview class itself. There is no public method to manipulate the $destroy_tags property or otherwise specify what content to discard and what to keep.
Actual behavior
Using the Timber Starter Theme and Elementor page builder plugin for editing content I've marked up content-embedded navigation elements with  and sidebars with  while the actual, meaningful content is wrapped in
 tags.
The PostPreview object is used to present an excerpt of each hit on the search result page and the result is a massive mess of seemingly random text including words from navigational elements, widgets and sidebar content.
Assuming the following pseudo code

Sub navigation

Homepage

Products

Contact

Interesting article

The text that we want to display on search result pages etc.

Widget header

Widget content

Calling {{ post.preview() }} in a template will usually result in something like this:

Sub navigation Homepage Products Contact Interesting article The text that we want to display on search result pages etc. Widget header Widget content.

Proposal
I would appreciate being able to use like something like this to produce:
{{ post.preview().discard('nav aside') }}

Interesting article The text that we want to display on search result pages etc.

Or even better
{{ post.preview().keep('article').discard('h1') }}

The text that we want to display on search result pages etc.

Here we first discard everything outside of
 tags, keeping only content within. Then we discard
 tags within those containers as the headings are often redundant on the search result page.
Discussion
Of course, I'm open to a discussion on how this kind of functionality would best be implemented. My proposal is only a suggestion. It would certainly solve my use case, but perhaps not all.
What version of WordPress, PHP and Timber are you using?
WordPress: 4.9.1
Timber: 1.5.2
How did you install Timber?
WP.org

I think this is out of scope for Timber.
Let me know if you think otherwise.

Wow, I had completely forgotten this feature request from 5½ years ago. I'm actually rather impressed of how well formulated the request is, and how sensible it sounds. It's regreattable that you are discarding it as not planned, seing as I believe it would be rather easy to implement such a useful feature.
However, I can also see your need for cleaning up your issue tracker. Noone else seemed to care and I'm not using Timber anymore, so apparently it's not a big loss.


[Question]: Edit views title

What feature would you like to add?
Hello,
How could we edit views titles? if we use for example : listDay,listWeek,listMonth views, it will be displayed like this :

Notes
No response

Hi, override the getOptions method and return an array with your settings according to the buttonText option here:
public function getOptions () {
    return [
        'buttonText' => [
            // your settings here
        ]
    ];
}

Thanks :)

@lukas-frey
where Can I write that function?

Inside your calendar widget class.

@lukas-frey see

@lukas-frey thank you brother

Hi @lukas-frey
How can we make it dynamic ? I want to change it based on some conditions or dependencies

You can't. But you can override the Header where Calendar is written and render your own Filament Actions there that toggle the view by calling setOption('view', <new-view>) on the calendar.

Yes I got it ! thank you :))


Release 1.2.0+1

Codecov Report

Merging #2 (f2f62ec) into develop (8a6d92c) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop       #2      +/-   ##
===========================================
- Coverage    90.09%   90.04%   -0.06%
===========================================
  Files           74       64      -10
  Lines         1858     1667     -191
===========================================
- Hits          1674     1501     -173
+ Misses         184      166      -18

Flag
Coverage Δ

flat
?

flat_generator
90.04% <ø> (ø)

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

Impacted Files
Coverage Δ

flat_orm/lib/src/adapter/deletion_adapter.dart

flat_orm/lib/src/adapter/insertion_adapter.dart

flat_orm/lib/src/adapter/migration_adapter.dart

flat_orm/lib/src/adapter/query_adapter.dart

flat_orm/lib/src/adapter/update_adapter.dart

flat_orm/lib/src/callback.dart

...src/extension/on_conflict_strategy_extensions.dart

flat_orm/lib/src/migration.dart

flat_orm/lib/src/sqflite_database_factory.dart

flat_orm/lib/src/util/primary_key_helper.dart

Continue to review full report at Codecov.

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


YamlFrontMatter

Typemill really could use support for YamlFrontMatter.
https://github.com/kzykhys/YamlFrontMatter
Currently Typemill adds the title to the content making it a H1 header
thats a problem for YamlFrontMatter since that needs to go first.
Consider this a feature request.

Hi svanlaere, I have other plans for Typemill because the markdown files should state completely clean from metadata, so I decided against frontMatter. Instead I want to store meta-information in separate JSON-files. This is on the roadmap for version 1.3.X, but first I have to finish the visual editor with version 1.2.X. https://typemill.net/typemill/roadmap
Typemill parses the h1 in content page and makes the title from it. With JSON meta-information there will be other ways, of course. And it will probably easy to write an import/transformation for markdown with frontMatter.

Thanks for replying, I like your roadmap, consider adding it to Github too.
In the meanwhile I created a plugin that takes care of FrontMatter stuff.

Good idea, will add it to GitHub. A plugin for FrontMatter sounds exciting! I will proceed with Typemill mid of August probably...

As of version 1.3.0 Typemill supports meta-tabs. Basically it is the same as Frontmatter, but Typemill stores the meta-information in separate YAML files to keep the content files clean (pure Markdown).

Thank you for the update, just installed it freshly to see what is new.
It does seem one only has access to the tabs when the Visual Markdown Editor is enabled?
It would be nice to have access to the metadata when using Raw Markdown Editor too.
Is it possible for plugins to extend the meta-tabs with custom fields and/or add new tabs?

Right now the meta-tabs are only accessible via visual mode. I can try to add it to the raw mode later.
Yes, you can add your own fields to the tab and you can even create your own meta-tabs, but this is not ready yet (not all fieldtypes are supported and some functionalities are missing). Basically you can add field-definitions in your plugin yaml-files like this:
metatabs:
  meta:
    fields:
      yourfielddefinitionshere

This will add the fields to the existing tab "meta". A new meta-tab can be added with a simple vue-component, I will add that in the next releases.
It will take about two releases to make all these features smooth and easy...

Very promissing, I like it a lot.
I tested adding fields to the existing tab and that indeed worked as intended.
Do you also have plans for i18n support?
I translated some parts into Dutch by editing the Twig views
obviously that isn't the proper way to support multilangual backends.

With version 1.3.1 Meta-Tabs are fully implemented and added to the raw mode. Forms are now documented in a separate chapter: https://typemill.net/forms
i18n will probably be contributed by iusvar very soon and I am also very excited about that new feature: https://github.com/typemill/typemill/pull/57