iOS: music controls with TTS?

Hi,
Excellent plugin, thank you. I'm using it for an Android text-to-speech TTS project (read text from a page - and the user can play/stop the reading using the MusicControls) and it works perfectly.
On iOS it does not seem to load the music controls when the text to speech reading is active (audio can be heard). Here is some sample code to illustrate how I'm using it. My iOS device is an iPhone SE with iOS 13.4.1 (in case that's helpful). I have also tried with iPhone 8 XCode simulator running iOS 14.4.
** EDIT: the controls are launched, oddly enough (once i removed the following lines from the config.xml file), but it does not fire the following functions: onMusicControlsCreateSuccess() or onMusicControlsCreateFailure() **
        <config-file target="*-Info.plist" parent="UIBackgroundModes">
          <array>
            <string>audio</string>
          </array>
        </config-file>

Using the code below, neither the onMusicControlsCreateSuccess() nor the onMusicControlsCreateFailure() seem to fire.
I'm not sure if the issue is with TTS + Music Controls use or if I'm doing something wrong.
Note: have also installed your plugin from https://github.com/ghenry22/cordova-plugin-background-mode on iOS

and enabled Xcode's background mode for audio

Any advice is welcome.  Thanks.
...
// User has clicked a button on the app to read the screen content
//    reading begins successfully and can be heard on iOS  & android.
// Next we want to fire up the controls to let the user stop the playing from the home screen / notification area
//    this works on Android but not for iOS

let musicControlOptions = {
	track: voiceTrack,
	artist: voiceArtist,
	album: voiceAlbum,
	dismissable : true,
	hasPrev: true,
	hasNext: true,
	hasClose: true,
	isPlaying: false
};
if (vDevice === 'ios' || vDevice === 'android') { // the vDevice variables are set earlier
      if (vDevice === 'ios'){
           let isBGModeActive = cordova.plugins.backgroundMode.isActive();
           if (isBGModeActive === false) {
                 cordova.plugins.backgroundMode.enable();
             }
             console.log('bgmode: ', isBGModeActive); // this is logged properly, gives true if in background
       }

        MusicControls.create(musicControlOptions, onMusicControlsCreateSuccess, onMusicControlsCreateFailure);

// other code here
}

function onMusicControlsCreateFailure() {
        console.log('could not create controls'); // this is not logged, appears not to fire for iOS
}
function onMusicControlsCreateSuccess() {
        MusicControls.updateIsPlaying(true);
        console.log('success creating controls'); // this is not logged, appears not to fire for iOS
  // more code to handle player button events

        MusicControls.subscribe(events);
        MusicControls.listen();
}

```

You may want to try playing an "empty" music track in the background while you do TTS?

You may want to try playing an "empty" music track in the background while you do TTS?

I have not tried that. Would prefer not to add extra code (e.g., for a regular media player) and permissions, unless necessary.


net/frr: cleaned up redistribute options

Fixes #607
Added missing options, removed invalid and non-implemented ones (Babel, PIM, IS-IS).

@fabianfrz @mimugmail what's the status here?

@fichtner I do have a neutral position - it can get merged but on the other hand it does not really do a lot

@mimugmail do you agree? I'd rather merge than not... progress is progress

Let me review this evening :)

@fichtner this may also need a migration

Merged, thanks!
FYI c1bacde5485f35cdc733dc358f53fbcaa77bfbcb


Add the timestamp something was logged to the message struct

This way if it takes some time (even milliseconds) to actually send the message it will be logged at the correct ime.

This should also include a way to output the time in a certain format in a template.


Policy of management of branches and tags

For the management of the branches, I propose to have the "master" branch for tracking the most updated version of the library.
After each release for a new version with major modifications, I propose to create a branch associated with it in order to fix only critical bugs.
For the tags, I propose to tag each commit associate to a specific release.

I think that the standard naming ahs moved from "master" to "main"  a few years ago.
+1 for the post-release bugfix branch.
Less sure about commit naming: you want to have contributors, lower the burden on them.

I was not talking about the name of the commit, only the tag attach to it.

I was not aware of the change in the name of the principal branch 3 years ago.
You are right, the principal branch is now 'main'.
I think it should be important to rename the previous branch 'master' by another name to avoid confusion.


inventory level model

Are you a current Fivetran customer?

fivetran made PR
What change(s) does this PR introduce?

adds inventory level model and an intermediate model supporting it
removed duplicative/deprecated columns from order_lines (just to avoid failures for now, will come back to this model in earnest later)
enhances product model with new tables (I thought product and inventory_level would overlap more in the DAG, but this didn't really happen. consider this an early start on the "enhancing existing models" task)

Did you update the CHANGELOG?

[ ] Yes
[ ] nope!! will save it for the documentation task

Does this PR introduce a breaking change?

[ ] Yes (please provide breaking change details below.)
[x] No  (please provide an explanation as to how the change is non-breaking below.)

Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)

[ ] Yes

Is this PR in response to a previously created Bug or Feature Request

[ ] Yes, Issue/Feature [link bug/feature number here]
[X] No but inventory modeling has come up plenty with customers

How did you test the PR changes?

[x] Buildkite
[x] Local (please provide additional testing details below)

Select which warehouse(s) were used to test the PR

[ ] BigQuery
[ ] Redshift
[ ] Snowflake
[ ] Postgres
[ ] Databricks
[ ] Other (provide details below)

Provide an emoji that best describes your current mood

⚡
Feedback
We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your feedback on our existing dbt packages or what you'd like to see next.

@fivetran-joemarkiewicz yeah so re: daily inventory -- available inventory quantity is only stored as-of-today. a daily model would be possible by taking a snapshot of this model each day. i think it would be worth highlighting that pathway in the README or somewhere, in addition to a community/blog post

@fivetran-joemarkiewicz yeah so re: daily inventory -- available inventory quantity is only stored as-of-today. a daily model would be possible by taking a snapshot of this model each day. i think it would be worth highlighting that pathway in the README or somewhere, in addition to a community/blog post

Ahhh yes this conversation is coming back to me! Yeah let's do the community/blog post after the fact. Thanks for reminding me!


Use new paraviewweb

@jourdain I think this is done now.  I may have missed a few style things when I was refactoring.  Can you play with it and see if you can find anything that is broken/looks wrong?

I've added come inline comments...

I've pushed a new version that should address these.  Plus a few extra bugs I found when going through your feedback.  I probably don't need the global styles in LightViz.mcss anymore....  Do you see anything else?

I think that should be it. That looks great! What do you think?

Maybe pick the latest version of<EMAIL_ADDRESS>

Updated to latest and fixed one more bug I found.  I also removed the style file that contained the global styles like is-clickable since it was no longer needed.


⚠ Bofrost.fr has degraded performance

In ed2a1bf, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 921 ms

Resolved: Bofrost.fr performance has improved in 6cdea18.


Implement react,fastapi,zmq

This pull request creates a FastAPI backend (replaces Flask), decouple from the react frontend. The frontend has a separate docker image and is served as static files in /srv/frontend.
In order to stream the cameras to frontend, it uses zmq so that the processing is done only once and each client-serving thread just subscribes to the zmq. It is more efficient than the previous implementation but requires further optimization using shared memory or other streaming alternatives.
Also I have added minimal scripts for running, building and releasing docker images in tasks folder. It uses pyinvoke library and is intended to be used by neuralet dev team only. In order to run commands like invoke dockerhub.release, run pip install invoke.

Thanks @mhsekhavat
I am testing and reviewing this now. Is it WIP or ready to be merged into master?
I have difficulty running it on the coral TPU, not sure what is causing that, looks like an issue with my storage attached to the board. I will test more and let you know. Did you already test it on Coral Devboard?

@mhejrati I tested it on TPU before server upgrade. It used to work but now I am getting a devicemapper-related error on docker build.

It will be ready to merge tomorrow. I will notify you once I have pushed the final changes. It works with x86_openvino, but weirdly it doesn't work on x86.


[SR-15597] Incorrect implicit access control specifier

Previous ID
SR-15597

Radar
None

Original Reporter
Saurabh Pote (JIRA User)

Type
Bug

Attachment: Download

Environment
Playground - Xcode 13.1

Additional Detail from JIRA

Votes
0

Component/s
swift

Labels
Bug

Assignee
None

Priority
Medium

md5: 3ddc3cc79f130a6791d115057efa79a2

Issue Description:
The swift documentation states that for a private class, a method without an access control specifier will be implicitly a private method(Snapshot1_SwiftDoc) attached. However when the same is executed in a playground, the method is accessible from outside the class(Snapshot2_Playground attached). If we explicitly mark the method as private, then an error is thrown as per Snapshot3_Playground.

Thanks, @hborla — I've transferred it over to the TSPL repo.  You're correct that our current focus is on publishing the book using DocC, but we do also want to collect known issues with the content here as well, so we can continue to fix them.


Source and Destination checksums do not match

I got the following error while using Etcher to flash the .img.xz file onto my MicroSD card.
\.\PhysicalDrive1: Source and Destination checksums do not match: a36f58668eebd042!==44c89104a42cf590
Please help!
Thanks,
Chirag

@chiragbhagat have you extracted the *.img.xz using the command
unxz ./aiyprojects-20yy-mm-dd.img.xz
and then tried using dd to write the .img file to an sd card?
etchr works great 99.999% of the time, until it comes to debugging things like this.
if you need some help with dd, it works like this
bash #dd if=/path/to/image/file.img of=/dev/sdX
where X is the physical device name, found using the command
`bash
fdisk -l
` from a root shell.  Hope this helps!

I guess you can try to flash one more time if checksum check fails. If it's consistent then try to use different SD card.


[Data model] Contacts

Information that describes in a standardized way a set of information about means of communication and other contact information (address, telephones, websites, e-mails) that may belong to an organization, a separate division or an individual, or other business objects that may have a contact information. Can contain several contacts of the same type.
Is NOT a bussiness entity

Parent.Name
Name
Data Type
Mandatory
Comment

Contact information
address, type
Address #1542
TRUE
1..* can be several. Type - фактична/юридична Edited 12.08.2024

Contact information
phone number, type
json
TRUE
1..* can be several

Contact information
facebook
http
FALSE
0..* can be several Edited 12.08.2024

Contact information
instagram
http
FALSE
0..* can be several Edited 12.08.2024

Contact information
website, type
json
FALSE
0..* can be several

Contact information
email, type
json
FALSE
0..* can be several

Changed fields marked with Edited 12.08.2024


Incompatibility when using NesVoR with AntsDenoise

In #12, when using the pipeline defined by create_nesvor_subpipes(),
input command to reproduce:
python workflows/pipeline_fet.py -data /home/gmarti/DATA/ERANEU_BIDS_small/ -out /home/gmarti/DATA/ERANEU_BIDS_small/test -params workflows/params_segment_fet_nesvor.json -sub 011 -ses 01
output error:
 2023-07-28 16:33:36 [INFO] Data loading starts ... 2023-07-28 16:33:36 [INFO] loading stacks 2023-07-28 16:33:36 [ERROR] Unhandled exception: Traceback (most recent call last): 	File "/usr/local/bin/nesvor", line 33, in <module> 	  sys.exit(load_entry_point('nesvor', 'console_scripts', 'nesvor')()) 	File "/usr/local/NeSVoR/nesvor/cli/main.py", line 23, in main 	  run(args) 	File "/usr/local/NeSVoR/nesvor/cli/main.py", line 48, in run 	  getattr(commands, command_class)(args).main() 	File "/usr/local/NeSVoR/nesvor/cli/commands.py", line 75, in main 	  self.exec() 	File "/usr/local/NeSVoR/nesvor/cli/commands.py", line 228, in exec 	  input_dict, self.args = inputs(self.args) 	File "/usr/local/NeSVoR/nesvor/cli/io.py", line 24, in inputs 	  stack = load_stack( 	File "/usr/local/NeSVoR/nesvor/image/image.py", line 651, in load_stack 	  raise Exception( Exception: Error: the sizes/resolutions/affine transformations of the input stack and stack mask do not match!
Fairly sure is something related to qform/sform incompatibility, related: (https://github.com/ANTsX/ANTs/issues/1337). I am using the latest ANTS version. Note that when using create_nesvor_subpipes_fullrecon(), no errors appear.

Just to update this old issue, after reinstalling ANTs it worked. Probably was the old ANTs version our HPC was using. Closing!


Auto "Sign In" User without Token

In testing, every time I reload the App in Visual Studio I'm redirected back to the MSFT Sign In dialog. My account is already "Signed In" so all I'm doing is having to click my Account which redirects me back to the App.
I get that is due to not having a token in memory, however is there anyway to auto login so I don't have to "click through" ?

Hi @aherrick, sure, there's a way to solve this: You need to use a persistent storage for the token cache (for example a database). When you restart the server (clear the cache) the user needs to get a new token and by design this is done by making a request to AzureAD. Having a persistent storage for tokens will prevent this, as you will still have the token after restarting the server.
Let us know if you have more questions!

Hi Mark, Thanks! Makes sense. Additionally, how long does that token last for? Is there a good way to check?
Also, image the scenario where I'm doing AJAX calls to my server to retrieve Graph data. Say I can't find a token (or assuming the token is expired) I notice the code sample will force a challenge httpContext.ChallengeAsync Obviously this wouldn't provide desired results in an AJAX call.
How might you recommend handling this scenario? Appreciate the help!

Very good question! I have no official info about this, @jamescro can you please help us?
Meanwhile I did a small test:
If you add a breakpoint here, you will get your access token. You can test the token with this site (https://jwt.io/) and it will decode the token like this:

I have highlighted the "exp" value, which is the expiration date hardcoded into the token.
In my timezone this is Wednesday, November 22, 2017 12:08:04 AM GMT+01:00. (The token was created on Tuesday, November 21, 2017 11:03:04 PM GMT+01:00.) So the validity was 12 hours.
Concluding, yes, there should be a way to get out the expiration date from the token.
Answering your other question: In my opinion, requesting the token by the backend without being able to redirect isn't the best way. If you are writing a Single-Page App, I'd go with a client side implementation of the Graph SDK. Here you can find a very helpful tool on choosing the best SDK to get you started: https://developer.microsoft.com/en-us/graph/quick-start

The answer to this question -- how long does an access token last? -- doesn't have a simple answer. You can refer to this document for authoritative guidance on access token lifetimes.

Thanks for the answers!
So the solution to refreshing/requesting a new token via AJAX is to just use JS Graph SDK? Seems there has to be a better way. I'm not necessarily writing a Single Page app, I just need to have confidence when the AJAX request for data happens I have a valid token to hit the Graph.

It was just an idea. How do you get the access token for the first time? In theory if the token is missing or expired, you should start over the login pipeline to get a new token (easier if you have a refresh token).

The first time is no problem as page loads the Controller/Action through the ASP.NET Core pipeline and kicks them to MSFT Auth if no token. I guess in theory this is only a problem if the user were to leave their page/browser up for more than 13 hours (per your token life) and try to preform an AJAX data request.
Could it be possible to return the authentication URL in the JSON result, then kick them over via JS?
Appreciate the discussion!

This makes sense! Just simply have an Action that was responsible for doing the call to Challenge.
Thanks for the help!

I'm glad that we were able to help! Please don't hesitate to contact us if you have any other questions!


[doc] Hot reload imported files

[doc] Hot reload imported files
Issue #267
Description
Use esbuild to bundle the import javascript files which allows the UI to hot load all changed files.
Related Issue
https://github.com/adobe/helix-importer-ui/issues/267
Motivation and Context

How Has This Been Tested?
Instructions followed locally, and each change of the dependency caused a reload (i.e. the console had the entry [importer-ui] Loaded importer file: http://localhost:3001/tools/importer/import.js?cf=1724101118347 appear each time)
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have signed the Adobe Open Source CLA.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

@arumsey @kptdobe Any comments are welcome.

Thanks @atopper


drop mappable flag from DMA map

The flags field belongs to VFIO and it's not a good idea to reuse as new
VFIO flags can break things. Instead, we derive whether or not a region
is mappable if a file descriptor is passed.
Signed-off-by: Thanos Makatos<EMAIL_ADDRESS>

VFIO_USER_F_DMA_REGION_MAPPABLE is also mentioned in include/libvfio-user.h and also used in test/py/
Can you also fix them?

Sure.

@swapnili addressed your comments, please take another look.

Since this is a spec change I'll wait for @jlevon to double check.


Fix ParameterList::clone to handle deserialized defaults arguments.

It was checking the wrong predicate, and therefore failing to mark inherited default arguments as actually being inherited.
While here, explicitly clear out default arguments from non-inherited cloned parameter lists. I don't think this case can come up today, but it's better to be correct when we do hit it.
rdar://problem/30167924

@swift-ci Please test

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 2cfcde1820883e16d9b0f1c6cc429d0a69408660
Test requested by - @jrose-apple

Some generic cases are still broken. Glad Slava suggested looking at it!

Test cases added, dependent on apple/swift#7169. @slavapestov, does this look good to you?
apple/swift#7169
@swift-ci Please smoke test

@shahmishal, any idea why the above comment didn't result in https://ci.swift.org/job/swift-PR-osx-smoke-test/4784/ building with #7169?
Well, that PR's been merged by now, so trying again.
@swift-ci Please smoke test

LGTM
/me daydreams of one day having some kind of multi-file decl fuzzer...

Setting status of 3b4c9b9116e726a172d0c0d03d5332df1ccc23e7 to FAILURE with url https://ci.swift.org/job/swift-PR-osx-smoke-test/4784/ and message: ' '
Using context: Swift Test OS X Platform (smoke test)

Not sure, it has the right sha.

It built the correct SHA, and it identified the other PR as interesting. It just didn't merge it in for some reason. ...oh, because it's the same repo. I'll file a feature request for that.

Or maybe I'll just do it the normal way from now on: base one branch on the other.


message: RECORD_HEADER_SIZE is wrong

encode_message() writes message size, but this space is not
accounted in Message::size(), leading to wrong MessageSize::size()
=> smaller reserved size => panic on put_slice()
I'm not sure if MSG_SIZE should be added to RECORD_HEADER_SIZE or directly in Message::size() method. Looking at proto doc, they consider size not a message attribute.

My analysis seems wrong here, investigating further.


[Tests-only] Separate helper and test files for better project structure

This PR separates helper and test files by moving helper files to helper folder.
fixes https://github.com/owncloud/owncloud-sdk/issues/812
moved files :

webdavHelper.js
pactHelper.js

@SwikritiT please rebase and merge


KubeSail is no longer free

Kubesail no longer provides users with free clusters.

Thanks for letting us know!

KubeSail has been removed in https://github.com/learnk8s/free-kubernetes/commit/59ea03080dde0d37632b05087e72538cf4ea2102. Please close this issue


arch: arm: Remove dead code from ARCH_IRQ_CONNECT macros

Remove line in ARCH_IRQ_CONNECT and ARCH_IRQ_DIRECT_CONNECT macros
that just has the irq line number.  This doesn't really have any
functionality and can cause warnings under certain cases.
Signed-off-by: Kumar Gala<EMAIL_ADDRESS>

Closing this PR in favor of #24365


feat：update graphin-graphscope package version & readme file

What do these changes do?

Related issue number

Fixes

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.聚则 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Add *.so and bin/create_flat_field to .gitignore

.gitignore needs updating for new files

Oops, screwed up branches.  Let me try again.


Adding docstrings !

here's what i see on travis, you have to go to the bottom and expand the output from that npm run lint line


feat: Support mssql-server 2022 preview on RHEL 9

Enhancement: Support mssql-server 2022 preview on RHEL 9
Reason: Microsoft added SQL Server 2022 preview for RHEL 9 at https://packages.microsoft.com/rhel/9/mssql-server-preview/
Result: You can install SQL Server 2022 on RHEL 9
Issue Tracker Tickets (Jira or BZ if any): https://issues.redhat.com/browse/RHELBU-2407

[citest]

lgtm - should the rhel 9.4 tests be passing?

they must, there is some issue in cleanup. Also, Fedora tests are failing, due to /etc/yum.conf not present on Fedora, I'll fix support for Fedora in another PR to keep things clean.

[citest]

[citest]

Setting up mssql on RHEL 9.3 and 9.4 works for me locally.
CI uses 9.4.0-20231010.15 from 10-Oct-2023 and I use the latest compose RHEL-9.4.0-20231011.18 from 11-Oct-2023
I'll test with what CI uses

[citest bad]

[citest]

[citest]

[citest]

[citest]

[citest]

[citest]

Let's wait with merging until reviews and comments in email thread are resolved.

[citest]

[citest bad]

[citest bad]


[Bug]: react/prop-types error detected on linux but won't on windows

Is there an existing issue for this?

[X] I have searched the existing issues and my issue is unique
[X] My issue appears in the command-line and not only in the text editor

Description Overview

windows detect react/prop-types error for only client component, and linux detect error from server and client component

windows:

linux:

I am develop nextjs 13 app with server component & client component without defining propTypes for both, but npm run lint only the detect error for client component. I cloned same code base on Fedora 38 and unlike window npm run lint detect error for both client and server component

npm run lint
npx next build
Expected Behavior

It should be output same error both windows or linux, since many developers use windows as dev env and linux as production.

windows:

linux:

eslint-plugin-react version
v7.33.2
eslint version
v8
node version
v18.19.1

Can you confirm on the command line that this behavior occurs (vscode isn’t the source of truth), and that both envs have the same deps at the same versions installed on disk?

Can you confirm on the command line that this behavior occurs (vscode isn’t the source of truth), and that both envs have the same deps at the same versions installed on disk?

linux

windows

both files location on ./src/app/role-permission/ubah/[id]/page.jsx and you can see in windows it doesn't even throw an error from these file

The bug is in all Linux versions, mas ?

@fauzanashari what is [id]? is it literal square brackets (which might break many file system tools), or is it a placeholder for something else?

@fauzanashari what is [id]? is it literal square brackets (which might break many file system tools), or is it a placeholder for something else?

yes nextjs this is nextjs convention to create dynamic slug url https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes

interesting - i wonder if that's the issue. I'll try to create a test case to rule that out.


feat(wallet setting): add payment pointer setup

As title.

Let's try it. And how to test it? 😅

I'll install a Coil extension and test it 😆


add composite foreign key references test back in now that it's working

not totalllllly sure the snapshot is correct. but the tests are passing and i didn't run SNAPSHOT_UPDATE=1 npm test at all.


[docs] Add writing style guide

The Problem/Issue/Bug:
While there are tools in place for linting and spell-checking the documentation, there aren’t any higher-level guidelines that clarify how it should be written. Without a clear standard, the organization and flow of the documentation is limited to the efforts and perspectives of individual contributors.
How this PR Solves The Problem:
This PR renames the “Styleguide” page to “Brand Guide”—which should be a more specific and appropriate description of that content—and adds a “Writing Style Guide” to comprehensively detail objectives from #4200 with some additional considerations for the broader effort of #4188 and a reference to the related aims of the Code of Conduct.
It adds some initial examples that could probably be improved or grown to clearly illustrate various recommendations.
This writing guide is not meant to be overbearing required reading for contributors, but an evolving document that can capture whatever goals and conventions we aspire to, with the ultimate purpose of encouraging the docs toward consistency.
Manual Testing Instructions:
https://ddev.readthedocs.io/en/latest/developers/testing-docs/
Related Issue Link(s):

#4200
#4188

@rfay There’s some opinionated stuff in here, but the next step for #4188 and worth nailing down regardless of what needs discussion or revision! Eager to see what you think.

It could inhibit contribution if people discover it and think that they have to do everything in it.

I’m not sure how to get around that, unless it’s something to clarify more urgently at the top of the new page. I added as the last page in that section on purpose, and would not link to it from a PR template or anything that might suggest it’s required.
The alternative is not clarifying any shared standard, which leaves consistency and common form to chance or the most opinionated and diligent contributor(s).
If there’s a better way to strike the right balance, I’d love to know! If ddev.com changes shape, this could move there instead along with the brand guide and maybe a revamped FAQ—all with possibly more broad material that doesn’t need to live with the project source.

Maintenance could be a long-term commitment by the incredible author of this PR :)

Flattery aside, the aim of this document is precisely the opposite: for that author to expose his assumptions for scrutiny, so it’s the best of our consensus and not the work of some rogue pedant.
Helping to gracefully maintain that uniformity is a necessary task, especially while this effort is young, but IMO it should be guided by clear aims that are equally clear and accessible to everyone.

rogue pedant

:)
The reality is that without someone opinionated and tuned in, none of this will actually have any effect, so I stand by my statement.
And the value of this guide is that it states our aspirations, so on its own can have significant value.
I confess that one thing I love about writing golang code is that there are absolutely no discussions about tabs or spaces or anything else. There's one way to do it, and gofmt enforces that. It's so great! We won't be able to get that about English, but a statement of intent like this at least goes a ways toward it.

I confess that one thing I love about writing golang code is that there are absolutely no discussions about tabs or spaces or anything else. There's one way to do it, and gofmt enforces that. It's so great! We won't be able to get that about English, but a statement of intent like this at least goes a ways toward it.

Me too! Same with using a common Prettier setup with Vue or React—I spend more time thinking about my code than how it’s formatting.
English is a more subjective and sometimes horrible soup, but it sounds like we’re agreeing on the value of the document and I’m probably underestimating the effort required to adhere to it. As long as the statement itself isn’t turning people away, I’m happy to try and help encourage its adoption.

BTW, I don't think you need to do a screenshot, since the link to the readthedocs build is adequate, for example https://ddev--4271.org.readthedocs.build/en/4271/developers/writing-style-guide/

This looks good to me. Thanks @mattstein

It's strange. It said that it passed all checks and now it says it's failing 1.

It's strange. It said that it passed all checks and now it says it's failing 1.

Ah, the failure actually makes sense because I need to bypass checks for incorrect examples on this page. Will see if I can figure that out.

Just took a look, haven't found an inline way to disable spellcheck. But things inside codeblocks are ignored... There are at least 3 components at play here:

https://github.com/rojopolis/spellcheck-github-actions
https://facelessuser.github.io/pyspelling/
http://aspell.net/

Thanks! I’m messing with .spellcheck.yml trying to use a CSS selector in that html pipeline that’ll ignore the offending word:
addon

  - pyspelling.filters.html:
      comments: false
      ignores:
      - code
      - pre
      - span.spellcheck-ignore

It doesn’t have any effect when I run make pyspelling though, so I may need to spend more time to actually understand what’s going on.

The maintainer of pyspelling, facelessuser, is super helpful and responsive...

Turns out it was an instance of “addon” that needed fixing elsewhere. I didn’t realize the entire developer section was already excluded from spell-checking.

Current failure is just that plugins.jetbrains.com is down

I added the redirect for developers/styleguide -> developers/brand-guide


console.error() and exceptions are visualised in release builds

If an exception is thrown or if console.error() is called, on both platforms a toast is shown with the message of the error/exception, regardless whether a release or a debug version of the app is built.
Per default it is expected no console output to be visualised at all .

Errors are not shown anymore in release builds on Android.

Errors are not shown anymore in release builds on Android and iOS.


Connecting terminal... Error: unable to verify the first certificate with VS Code

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:1.64.2
OS Version: Windows 10 Enterprise

Steps to Reproduce:
1.New version installed for VS code and it starts giving issue "requesting a Cloud Shell...
Connecting terminal...
Error: unable to verify the first certificate"
2.

Sounds like an extension causing problems. Try running the command Help: Start Extension Bisect


Prevent distortion of image on product detail page.

Allow the image on the product page to maintain its proper aspect-ratio.

Thanks!


Retain SpanStore, delete Index, Storage

Per https://groups.google.com/d/msg/zipkin-dev/GY_jEI5pQY8/MAfOukbGBgAJ we will remove the com.twitter.zipkin.storage.Index/Storage types for SpanStore asap. The duplicate hierarchies cause confusion and maintenance burdens we can't afford.

The entrypoint for query is ThriftQueryService not QueryService

@adriancole was this fixed?

irrelevant now, mountains have moved since :)


Server side logic development process

I'm a little confused:
Usually all kits's development environments has watchers which are quickly reloading server if there are some changes. There is no such thing here out of the box, so i assume you, guys, use different approach? How do i make and apply server-side changes quickly without necessity to restart server manually. I'm talking about api development in particular.

Hi @anton-aleksandrov I i'm using nodemon in my projects, maybe we can add it here?

Yes it should work. Im curious, such a mandatory feature is not here already.

btw, sorry for duplicates - github was throwing errors while i was trying to submit this "issue"

Agree. I have been working on this actually. Have a solution with chokidar and nodemon that works but adds some additional constraints to folder structure and is also currently breaking the react client-server checksum with async routes at the moment. However, POC is done.
My local fork does the following:

Move to webpack 2
Webpack the server
Start a second express server in development for the frontend assets, serves on port 3001.
Use chokidar x nodemon to repack the server on code changes
Better errors with webpack-friendly-errors

Pros:

Server will reload automatically (including when adding/removing files/folders), thus no need to have a separate nodemon process for backend dev
Supporting scss/less/css-modules is easier to implement with a plugin or 2
Flags on the server
SourceMaps in production
Can get rid of current dx.js

Cons

Significant additional tooling complexity
Async routes will not work in dev if we move to react-hot-loader, vanilla HMR should work.

Todo

Browser-Sync might clean up some of the complexity relating to public paths created by running client webpack server on a different port.
Abstract out hard-coded paths into environment variables

Hey all, I am working on another project that will eventually take care of this. It's called backpack.


V3 script size increased in 1.30

@mgmeier :
So this snippet is now the scaffolding for our V3 benchmarking scripts (validtor, spending script) - we only need the redeemer
mkValidator :: BuiltinData -> BuiltinUnit
mkValidator arg =
  [...]
  where
    PlutusV3.ScriptContext _txInfo (PlutusV3.Redeemer redeemer) _scriptInfo
      = PlutusV3.unsafeFromBuiltinData arg

Now, when submitting transactions as opposed to before CIP-69, for the same script, the tx size increases from 968 bytes to 3401 bytes, which is a size increase by ~350%.

With CIP-69, is there a way to unwrap the redeemer that is more efficient wrt. to size of serialized code?
In general, is some sort of unwrapping code inside a script now a requirement?

Add: in our benchmarking setup, for the HashOntoG2AndAdd benchmark, this correlates with a tx fee increase by ~21%. (edited)
This task is to investigate such a size increase and conclude if this is expected and justified or if something fishy is going on.

This seems to be expected behavior, see this comment.

Here is the Spec which shows:

that V3 script size has increased after adopting CIP-117
a way to avoid size increase by decoding redeemer and datum in a lazy fashion.


There is no red border for the access policies id box if its name is too long

Storage Explorer Version: 1.10.0
Build: 20190828.6
Platform/OS: Linux Ubuntu 19.04/Windows 10/macOS High Sierra
Architecture: ia32/x64
Regression From: Not a Regression
Steps to reproduce:

Right click one blob container/file share/queue/table and click 'Manage Access Policies...'.
Add a new policies with a long id, such as more than 63 characters.
Check whether there is red border for this id box or not.

Expect Experience:
There is a red border for this id box and the Save button is disabled.
Actual Experience:
There is no red border for the access policies id box and the Save button is enabled.

More info:

An error dialog pops up if save this invalid access policies for File Shares/Queue/Table.

There is an error if save this invalid access policies for blob container.

Won't fix pending customer feedback.


Polyline,clampToGround=true,Error

I upgraded from cesium version 1.83 to version 1.90. The original version code uses material to modify the appearance of Polyline. When clampToGround=true, everything works fine under versions 1.83~1.89. However, after upgrading to 1.90, clampToGround=true will report the following error.


master: migtools-udistribution

Signed-off-by: Tiger Kaovilai<EMAIL_ADDRESS>

Merge https://github.com/migtools/udistribution/pull/75/ then update this perhaps.

/remove-lifecycle stale

/lgtm

/cherry-pick oadp-1.3
/unhold


Generic DBT_ACCESS_TOKEN in dbt Workflow does not have access to catalogs

Context

AWS Cloud
Enterprise Plan
We are using Unity Catalog
An authenticated user without a permission group has access to no catalogs
Only authenticated users with a permission group can access respective catalogs and databases
I am a consultant engaged with a client
This client has regulatory requirements that prevent the feasibility of dbt cloud

Triage Steps
Following the instructions outlined for running dbt-core as a dbt Task Workflow here:
https://github.com/databricks/dbt-databricks/blob/main/docs/databricks-workflows.md
✅  Local Dev + SQL Warehouses works
I can get this to work locally when I specify the http_path to be a SQL Warehouse endpoint and I use my PAT injected into the profiles.yml
This works because my PAT and the SQL Warehouses are assigned to the correct permissions groups in our workspace
😭  dbt Workflows does not work when...
This is because the cluster generates credentials generically for:

DBT_HOST,
DBT_ORG_ID,
DBT_CLUSTER_ID,
DBT_ACCESS_TOKEN

It seems that access token does not have the correct permission group associated and there is no way to add the association.
I tried hard coding a PAT that I know works but instead of using the /sql/1.0/endpoints/<endpoint_id> I tried it against the cluster endpoint "sql/protocolv1/o/{{ env_var('DBT_ORG_ID') }}/{{ env_var('DBT_CLUSTER_ID') }}".
This also did not work.
I could go back to having the workflow use the SQL Warehouse Endpoint and a PAT but that defeats the purpose of spinning up a spark cluster for a job only to send the work to another (more expensive) spark cluster right?
Triage Summary
Here is a summary table of test cases

token type
endpoint type
outcome

PAT
SQL Warehouse
✅

Generic Access Token
Cluster Endpoint
😭

PAT
Cluster Endpoint
😭

Definitions:

Generic Access Token --> DBT_ACCESS_TOKEN
SQL Warehouse --> /sql/1.0/endpoints/<endpoint_id>
Cluster Endpoint --> "sql/protocolv1/o/{{ env_var('DBT_ORG_ID') }}/{{ env_var('DBT_CLUSTER_ID') }}"

Further digging:
It seems the dbt-databricks team have left a TODO with a similar conundrum so we are all on the same page it seems.
https://github.com/databricks/dbt-databricks/blob/main/dbt/adapters/databricks/connections.py#L408-L420
                # TODO: what is the error when a user specifies a catalog they don't have access to
                conn: DatabricksSQLConnection = dbsql.connect(
                    server_hostname=creds.host,

Expected Behaviour

As a user I would expect documentation around how the generic DBT_ACCESS_TOKEN is generated.
As a user I would expect the dbt Workflow task to have some way to grant it permissions
As a user I would expect some documentation around the cluster SQL endpoints as well as a bread crumb trail of links from the related user guides and dbt task documentation

Extra
I do realise that my expectations lie with the Databricks team and not with this library package. However it also makes sense to track this issue in public so that others can follow along as it will undoubtedly link to some code changes too.
I have an active use case I am piloting with a client so very keen to act as a beta tester in our dev environment so there is low risk and we can provide real world feedback.

You've set the standard for bug reports. Thanks @neozenith !!

@neozenith This should work and I've verified it to work. A couple of questions to try to debug this:

What kind of cluster is it: Job cluster or Interactive cluster?
What kind of cluster access mode are you using? UC only works on certain modes: https://docs.databricks.com/data-governance/unity-catalog/index.html#cluster-security-mode
What DBR version is this cluster running? It needs to be at least 11.1
Who is the owner of the job / run As?

All this complexity is why we default to running against a SQL warehouse together with a small SingleNode cluster.

Hi @KoningJasper
As per the dot points you have mentioned I tried the following without success:
Configuration
Cluster type: Job
Cluster config: Single Node, m5d.large, 0 workers
Access Mode: Single User (can't use Shared on a Single Node cluster so did not test)
DBR: 11.2
Owner / Run As<EMAIL_ADDRESS>(Replace domain with the corporate client I am engaged with)
profile.yml
dbt_poc:
  target: poc
  outputs:
    poc:
      type: databricks
      catalog: hive_metastore
      schema: experiments
      connect_retries: 5
      connect_timeout: 180
      host: "{{ env_var('DBT_HOST') }}"
      http_path: "sql/protocolv1/o/{{ env_var('DBT_ORG_ID') }}/{{ env_var('DBT_CLUSTER_ID') }}"
      token: "{{ env_var('DBT_ACCESS_TOKEN') }}"
      threads: 8

Output
+ dbt debug
22:51:28  Running with dbt=1.2.1
dbt version: 1.2.1
python version: 3.9.5
python path: /local_disk0/.ephemeral_nfs/cluster_libraries/python/bin/python
os info: Linux-5.4.0-1084-aws-x86_64-with-glibc2.31
Using profiles.yml file at /tmp/tmp-dbt-run-768464/<REDACTED-REPO-PATH>/profiles/poc/profiles.yml
Using dbt_project.yml file at /tmp/tmp-dbt-run-768464/<REDACTED-REPO-PATH>/dbt_project.yml

Configuration:
  profiles.yml file [OK found and valid]
  dbt_project.yml file [OK found and valid]

Required dependencies:
 - git [OK found]

Connection:
  host: ubank-poc.cloud.databricks.com
  http_path: sql/protocolv1/o/<REDACTED-ORD-ID>/<REDACTED-CLUSTER-ID>
  catalog: hive_metastore
  schema: experiments
  Connection test: [ERROR]

1 check failed:
dbt was unable to connect to the specified database.
The database returned the following error:

  >Runtime Error
  Database Error
    failed to connect

Check your database credentials and try again. For more information, visit:
https://docs.getdbt.com/docs/configure-your-profile

Miscellaneous Triage
As mentioned earlier, my user is assigned to a data engineer group that has associated permissions where this same dbt project works successfully against Unity Catalog using SQL Warehouses.
So my user has correct permissions.
Just trying to chain them through a job cluster using the Cluster Endpoint (as documented) instead of SQL Warehouses.
I believe you that you managed to get it to work on your end. I guess now to narrow down the difference between my configuration and your configuration.

@neozenith Ah, that explains it. You cannot run dbt (or any other BI workload) against job clusters, thrift isn't available on them. Could you try with an interactive cluster instead?
We should reject this with a more clear message though. I'll follow-up on that.

I had the same result with an interactive all-purpose cluster too.
I actually was using that first and the WebTerminal to debug missing profile.yml and dbt_project.yml until we enabled Files in Repo feature.
I have raised a separate issue with our Partners contact that we can't enable the Files in Repo feature on Standard or Premium plans. It is only because the client is on a enterprise plan that the feature toggle appeared. I digress though
I will double check my cluster specs for the all-purpose interactive cluster later tonight but I think it had the same specs.
So the interactive cluster is trying to use the thrift connections... I'll look deeper at those docs too to see if I have missed a configuration.

@neozenith Hmmm that is interesting. I got it to run with this dummy project: https://github.com/KoningJasper/dbt-something. I use the following cluster and job spec:
{
        "name": "dbt-uc",
        "email_notifications": {
            "no_alert_for_skipped_runs": false
        },
        "webhook_notifications": {},
        "timeout_seconds": 0,
        "max_concurrent_runs": 1,
        "tasks": [
            {
                "task_key": "dbt-uc",
                "dbt_task": {
                    "project_directory": "",
                    "commands": [
                        "dbt deps",
                        "dbt run"
                    ]
                },
                "existing_cluster_id": "0927-120709-po31157w",
                "libraries": [
                    {
                        "pypi": {
                            "package": "dbt-databricks>=1.0.0,<2.0.0"
                        }
                    }
                ],
                "timeout_seconds": 0,
                "email_notifications": {}
            }
        ],
        "git_source": {
            "git_url": "https://github.com/KoningJasper/dbt-something.git",
            "git_provider": "gitHub",
            "git_branch": "main"
        },
        "format": "MULTI_TASK"
    }

{
    "num_workers": 0,
    "cluster_name"<EMAIL_ADDRESS>Cluster",
    "spark_version": "11.1.x-scala2.12",
    "spark_conf": {
        "spark.databricks.cluster.profile": "singleNode",
        "spark.master": "local[*, 4]"
    },
    "aws_attributes": {
        "first_on_demand": 1,
        "availability": "SPOT_WITH_FALLBACK",
        "zone_id": "auto",
        "spot_bid_price_percent": 100,
        "ebs_volume_count": 0
    },
    "node_type_id": "i3.xlarge",
    "driver_node_type_id": "i3.xlarge",
    "ssh_public_keys": [],
    "custom_tags": {
        "ResourceClass": "SingleNode"
    },
    "spark_env_vars": {},
    "autotermination_minutes": 120,
    "enable_elastic_disk": true,
    "cluster_source": "UI",
    "init_scripts": [],
    "single_user_name"<EMAIL_ADDRESS>    "data_security_mode": "SINGLE_USER",
    "runtime_engine": "PHOTON",
    "cluster_id": "0927-120709-po31157w"
}

@neozenith wait... Why is your catalog hive_metastore?

I will number these for ease of following up:

Just finished dinner so going to have another crack at the all purpose cluster.
I'll give that sample project a go.
I noticed you used DBR 11.1 where as I was using DBR 11.2... so that might be an issue?
We are using hive_metastore since we had existing databases/schemas and that is where they got migrated to when converting to Unity Catalog. This should not be an issue since it worked totally fine with SQL Warehouses but not with the dbt Job
In your sample project and job, what is the output you get from dbt debug instead of running dbt deps dbt run?

Thanks for the reproducible project and job spec 👍
The project I am using is just the example from dbt init so far.

@neozenith
It should default to the metastore, could you try it when removing that setting. I get this output:
+ dbt debug
11:31:58  Running with dbt=1.2.1
dbt version: 1.2.1
python version: 3.9.5
python path: /local_disk0/.ephemeral_nfs/cluster_libraries/python/bin/python
os info: Linux-5.4.0-1084-aws-x86_64-with-glibc2.31
Using profiles.yml file at /tmp/tmp-dbt-run-140543184104505/profiles.yml
Using dbt_project.yml file at /tmp/tmp-dbt-run-140543184104505/dbt_project.yml

Configuration:
  profiles.yml file [OK found and valid]
  dbt_project.yml file [OK found and valid]

Required dependencies:
 - git [OK found]

Connection:
  host: e2-dogfood.staging.cloud.databricks.com
  http_path: sql/protocolv1/o/6051921418418893/0927-120709-po31157w
  catalog: lineage
  schema: jasper
  Connection test: [OK connection ok]

All checks passed!

Ok so tried again with an all purpose cluster using DBR 11.1 with no luck.
Turns out hive_metastore is not yet upgraded to a Unity Catalog database. 😞 So that is likely part of my issue.
Experiment 1
So I tried another database in the default created catalog main:

catalog: main
database: experiments
Still nothing, possibly because my user does not have CREATE permissions to create databases.

Experiment 2
So I tried a database that does exist:

catalog: main
database: default
Also no luck...

Which is super weird because this works fine on our SQL Warehouses... which leads me to think our SQL Warehouses may have more privileges than they should be allowed.
Triage Summary

I have the same profiles.yml that you do
We aren't even up to running models, simply connecting fails
I have the same DBR
I am using an interactive cluster
I have the access mode as Single
Previewing the Cluster JSON it definitely has my user as the correct user assigned for Single Access
I am also the Owner and the Run As for the job

My next step is to get a notebook attached to this cluster with my user and triage what permissions it has against the catalogs and databases.
It comes down to how my user and the catalog permissions are configured. I will post those triage steps once I figure them out and I'll have to talk to our workspace admin in the morning as they may be able to shed some light.
Looking like the outcome for this issue might be me opening a PR against this guide and adding my troubleshooting steps.

@neozenith I just tried it on another workspace where I'm not admin and it works. 😕  The tmp database already exists and I have CREATE and USAGE permissions to it.
+ dbt debug
12:52:42  Running with dbt=1.2.1
dbt version: 1.2.1
python version: 3.9.5
python path: /local_disk0/.ephemeral_nfs/cluster_libraries/python/bin/python
os info: Linux-5.4.0-1090-azure-x86_64-with-glibc2.31
Using profiles.yml file at /tmp/tmp-dbt-run-734958738/profiles.yml
Using dbt_project.yml file at /tmp/tmp-dbt-run-734958738/dbt_project.yml

Configuration:
  profiles.yml file [OK found and valid]
  dbt_project.yml file [OK found and valid]

Required dependencies:
 - git [OK found]

Connection:
  host: <think>.azuredatabricks.net
  http_path: sql/protocolv1/o/<org-id>/<c-id>
  catalog: main
  schema: tmp
  Connection test: [OK connection ok]

All checks passed!

Hi @neozenith did you have any chance to debug this further and maybe learns some more things. I'm very interesting in finding out the root-cause of this.

No further progress sorry. The workspace admins have milestones they needed to get out this week so I am going to spend some time with them next week to continue triage.

Managed to triage this a bit further and thank you for your patience.
Triage
This is the critical triage step:
SHOW GRANTS<EMAIL_ADDRESS>ON SCHEMA hive_metastore.experiments

I ran this on a standard cluster that was failing and also on our SQL Warehouses that were working.
On the SQL Warehouse I could see I was associated with a GROUP that had the USAGE and CREATE permissions.
On the standard cluster I got the following error message:
Error in SQL statement: SparkException: Trying to perform permission action on Hive Metastore /CATALOG/`hive_metastore` but Table Access Control is not enabled on this cluster.

Next Steps
Enable Table Access Controls for our clusters.
https://docs.databricks.com/security/access-control/table-acls/table-acl.html
Pretty sure this is the missing step that the user is not actually linked to it's permission group in the cluster, but we have the linkage setup correctly in a SQL Warehouse Endpoint.


Nitrous.io Quickstart button

Added Nitrous Quickstart files so anyone can quickly spin up a free, cloud dev environment to start using this repo. Clicking the Quickstart button will automatically clone this repo and will install and configure any required packages

Cool, thanks!


Py_Initialize: can't import _frozen_importlib

After updating Home assistant to version 0.69.0, I get the following error when trying to run and checking Home Assistant:
Fatal Python error: Py_Initialize: can't import _frozen_importlib Traceback (most recent call last):   File "<frozen importlib._bootstrap>", line 48, in <module> TypeError: descriptor '' requires a 'type' object but received a 'str'
I am running Hassio. hassio ha info:
{
    "result": "ok",
    "data": {
        "version": "0.69.0",
        "last_version": "0.69.0",
        "machine": "raspberrypi3",
        "image": "homeassistant/raspberrypi3-homeassistant",
        "custom": false,
        "boot": true,
        "port": 8123,
        "ssl": true,
        "watchdog": true,
        "wait_boot": 600
    }
}

Thanks. I reinstalled Hassio, and it's no longer an issue.

🎉


[Proposal] Pass description to ZodError constructor.

After minification / bundling it's not always feasible to access a source map for tracing errors, making it hard to diagnose specific ZodError causes in an app with many Zod schemas.
It would be handy for the ZodError context to include the description property (or possibly a new name property) of the schema that triggered it by passing this info to the constructor.
Example
ZodError
https://github.com/colinhacks/zod/blob/12dcdf5169c809e1d3804ed3c2f2fcbf72ee6e54/src/ZodError.ts#L140

export class ZodError<T = any> extends Error {
  // ...
  constructor(description: string, issues: ZodIssue[]) {  // Add description to constructor here...
    super();
    // ...
    this.name = "ZodError";
    this.description = description;
    this.issues = issues;
  }
}

handleResult()
https://github.com/colinhacks/zod/blob/12dcdf5169c809e1d3804ed3c2f2fcbf72ee6e54/src/types.ts#L89
  if (isValid(result)) {
    return { success: true, data: result.value };
  } else {
    if (!ctx.issues.length) {
      throw new Error(`Validation failed on ${ ctx.description } but no issues detected.`); // Add description to generic error here...
    }
    const error = new ZodError(ctx.description, ctx.issues); // Add description to constructor here...
    return { success: false, error };
  }

If the schema provided it's description to the ZodError constructor, it would make it a lot easier to trace issues in these cases where a source map is not available, or even more gracefully in logging with something like:
import { EOL } from "node:os"
const logZodError = ({ name, description, issues }: ZodError) => {
  const message: string = [
    `Encountered a ${ name } error while parsing ${ description }`,
     issues.map(
          ({ message, path }: ZodIssue): string =>
            `[${ path.join(` › `) }]:  ${ message }`
        ).join(EOL)
  ].join(EOL)
  console.error(message)

}

Good idea. Could pair nicely with this.

I second this proposition, but maybe it'd be better to add the description at the issue level?
Getting back the name of the structure that generated an issue in the logs would be extremely helpful to understand what's going on.
As an example, I'm parsing data in a discriminated union of complex objects with multiple sub levels.
The backend returning the data is still in flux, so I'm often getting errors in one of the sub level parser.
Previously, using union, I was getting the real error somewhere drowned in all the unionErrors.
With the latest version, I'm getting just the complex object parsing error - but I don't know which one.


Is there any Flag to check data successfully written to channel?

Hi,
we are using this lib to do long polling for our REST API, but we facing issue when sending data to our API, it seems the channel not blocked and not waits till data written to a variable, so we don't know when it's finished or not, please check following code for details:
	for {
		datach, err := c.pollChannel.Get(poll.PollTime) // this line will get data from longpoll
		if err != nil {
			break
		}
		rows := <-datach // get data from channel
		logrus.Debugf("from poll channel: %d", rows) // this debug will print data from channel (data exists)
		if (rows != nil){
                    // processing the data and pass it to API
                }
      }

// return data empty to API
// in our case, we always got empty data even though debug prints the data to console.

our question: Is there any Flag to check the go routine / channel are done? so, we can tells API to waits and response if data ready.

I am sorry I do not understand "we always got empty data even though debug prints the data to console": it is not clear in which line of this code sample you get no data which is earlier printed by the debug. Fact is, if the debug prints data correctly, then the library functions as designed as the library is about waiting for data and getting it out, not about what happens to it afterwards.
I also do not quite understand what sort of flag you want. Long polling works like this: you wait for data on a channel, if data arrives then the polling channel immediately returns with that data in a go channel. If the data does not arrive, the polling channel also returns, but after the timeout and with an empty go channel. There is no flag to indicate one of the other. Furthermore, you always get something in the Go channel after the polling period completes (with or without data), just what you get is different. If I recall right, you either get and empty slice or a slice with data, but please check tests as I did not touch the lib for a long time now.

Hi,
Thank you for the answer.

if data arrives then the polling channel immediately returns with that data in a go channel. If the data does not arrive, the polling channel also returns, but after the timeout and with an empty go channel

it's clear now for me, thanks.


Improve Expr memoization in Dag and fix a regression

until we change a Dag, we should cache the mapping from Expr to N rather than repeatedly compute it. Even evaluating one Expr is O(N), so we go from N^2 to N for the case of a rule that will not apply if you cache all evaluations.

we introduced a regression in equals in #19

👍

Codecov Report

Merging #20 into master will decrease coverage by 1.32%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
- Coverage   90.59%   89.27%   -1.33%
==========================================
  Files          12       12
  Lines         234      233       -1
  Branches       12       13       +1
==========================================
- Hits          212      208       -4
- Misses         22       25       +3

Impacted Files
Coverage Δ

core/src/main/scala/com/stripe/dagon/Dag.scala
94.3% <100%> (-0.05%)
:arrow_down:

core/src/main/scala/com/stripe/dagon/Literal.scala
100% <100%> (ø)
:arrow_up:

core/src/main/scala/com/stripe/dagon/Expr.scala
70% <0%> (-30%)
:arrow_down:

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 d33a1c4...384a151. Read the comment docs.


Audio Saver as WAV file

Dear UXF users,
I am troubling with saving an audioclip as WAV file. I am following the lines you posted in the "Programming ideas" section. I write below my code: I want that the method RecordAudio starts when the trial begin, and StopAudio starts when the trial ends. My issue is that
fileIOManager.ManageInWorker
Does not exists. I am new in programming with Unity and in using UXF so I am sorry if my issue is silly! But please can you help me to understand how to fix it?
Best,
Federica
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UXF;
public class AudioRecording : MonoBehaviour
{
private AudioClip audioClip;
public int recordTime = 10; // no. of seconds can be set in Unity Editor inspector
private const int sampleRate = 16000; // sample rate for recording speech
public string mic;
public void RecordAudio()
{
    if (Microphone.devices.Length == 0)
    {
        Debug.LogWarning("No microphone found to record audio clip sample with.");
        return;
    }
    mic = Microphone.devices[0];
    audioClip = Microphone.Start(mic, false, recordTime, sampleRate);

}

public void StopAudio()
{
    Microphone.End(mic);

    // method that converts audioclip to wav bytes
    byte[] data = WavUtility.FromAudioClip(audioClip);
    string fname = string.Format("mic_T{0:000}.wav", Session.instance.currentTrialNum);
    string path = Application.dataPath;

    string outputLocation = Path.Combine(path, fname); //

    //store in results, easier to access later
    Session.instance.CurrentTrial.result["mic_filename"] = fname;

    fileIOManager.ManageInWorker(() => **//that's where I got an error**
     {
         File.WriteAllBytes(outputLocation, data);
     });
}

}

Hi, the code snippet is out of date (refers to an old version of UXF that uses a system called FileIOManager), I have now corrected it.
Instead, we should use the trial.SaveBytes(...) method (documentation).
This code should work better:
public class AudioRecording : MonoBehaviour
{
    private AudioClip audioClip;
    public int recordTime = 10; // no. of seconds can be set in Unity Editor inspector
    private const int sampleRate = 16000; // sample rate for recording speech
    public string mic;

    public void RecordAudio()
    {
        if (Microphone.devices.Length == 0)
        {
            Debug.LogWarning("No microphone found to record audio clip sample with.");
            return;
        }
        mic = Microphone.devices[0];
        audioClip = Microphone.Start(mic, false, recordTime, sampleRate);

    }

    public void StopAudio()
    {
        Microphone.End(mic);

        // method that converts audioclip to wav bytes
        byte[] data = WavUtility.FromAudioClip(audioClip);
        string fname = string.Format("mic_T{0:000}.wav", Session.instance.currentTrialNum);

        // save data, automatically puts it in the session folder.
        // it will also store the name in the trial_results file for easier referencing during analysis.
        Session.instance.currentTrial.SaveBytes(data, fname);
    }
}

Thank you so much! And thanks also for the great job you did in implementing UXF, it is a very useful tool.
Best,
Federica


Ask for confirmation when unloading

As suggested by Glare on Discord, it's a good idea to confirm whether a user really wants to leave the page if they have text entered, just to make sure they don't lose their progress.
Fixes #64.

Note that it's apparently "recommended for performance" to only register the beforeunload event when it is required, but I don't think performance is a problem here


Dynamic liblustreapi.so loading

Load liblustreapi dynamically so rust-iml-agent doesn't have hard dependency on liblustreapi.so
Issue #977

Codecov Report

Merging #1069 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1069   +/-   ##
=======================================
  Coverage   95.42%   95.42%
=======================================
  Files           2        2
  Lines         153      153
=======================================
  Hits          146      146
  Misses          7        7

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 9b12ada...15f9001. Read the comment docs.


Quick revision of README.md

Ref.: #13

As per the "What you need to know" section on ttps://hacktoberfest.digitalocean.com/ you should submit your PR in October to be eligible to win a T-shirt! If you are concerned about it, please close this one and submit a new one tomorrow! :)

Heh, don't worry about it, I'm glad to contribute even in September ;-)
On Sep 30, 2016 18:42, "Máté Kocsis"<EMAIL_ADDRESS>wrote:

As per the "What you need to know" section on ttps://hacktoberfest.
digitalocean.com/ you should submit your PR in October to be eligible to
win a T-shirt! If you are concerned about it, please close this one and
submit a new one tomorrow! :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/woohoolabs/harmony/pull/15#issuecomment-250806997,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACBi9RC2vm0-pX5nXGHur8-jv_8hdYiks5qvUnugaJpZM4KK9XK
.


set ErrAuthenticationFailed http code to 401

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
173

Relevant Lines:
1513

💛  - Coveralls


[DOCS] Link to mental model in README is broken

How can the documentation be improved?
There is a link in the readme to Qwik's "mental model", but the link is broken. It points to https://github.com/BuilderIO/qwik/blob/main/packages/docs/src/pages/docs/think-qwik.mdx but that file (and the pages/ subdirectory) are gone.

Links still don't work


modified run and setup batch files for tts pipeline

Modified TTS pipeline steps in run.bat and setup.bat files to be similar to the other groups

[ ] The production is still missing the matplotlib dependency

D:\Dev\SoundHacking\project_common>rg_production\venv\Scripts\python rg_production\main.py
[INFO   ] [Logger      ] Record log in C:\Users\User\.kivy\logs\kivy_21-08-11_0.txt
[INFO   ] [deps        ] Successfully imported "kivy_deps.angle" 0.3.0
[INFO   ] [deps        ] Successfully imported "kivy_deps.glew" 0.3.0
[INFO   ] [deps        ] Successfully imported "kivy_deps.sdl2" 0.3.1
[INFO   ] [Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "D:\Dev\SoundHacking\project_common\rg_production\venv\lib\site-packages\kivy\__init__.py"
[INFO   ] [Python      ] v3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
[INFO   ] [Python      ] Interpreter at "D:\Dev\SoundHacking\project_common\rg_production\venv\Scripts\python.exe"
[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2 (img_pil, img_ffpyplayer ignored)
 Traceback (most recent call last):
   File "rg_production\main.py", line 13, in <module>
     from common.state.StateManager import StateManager, StateEnum
   File "D:\Dev\SoundHacking\project_common\rg_production\common\state\StateManager.py", line 5, in <module>
     from common.state.statecb import *
   File "D:\Dev\SoundHacking\project_common\rg_production\common\state\statecb.py", line 6, in <module>
     from common.taudio.PreprocessingSample import preprocess
   File "D:\Dev\SoundHacking\project_common\rg_production\common\taudio\PreprocessingSample.py", line 10, in <module>
     import matplotlib.pyplot as plt
 ModuleNotFoundError: No module named 'matplotlib'

[ ] regression in speech to text as it was running before missing pyaudio

D:\Dev\SoundHacking\project_common\rg_speech_to_text>venv\Scripts\python TheSoundOfAIOSR\stt\interface\server_app.py
Traceback (most recent call last):
  File "TheSoundOfAIOSR\stt\interface\server_app.py", line 9, in <module>
    from TheSoundOfAIOSR.stt.interface.wsserver import SimpleServerInterface
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\stt\interface\wsserver.py", line 4, in <module>
    from TheSoundOfAIOSR.stt.control.stt_sm import SpeechToTextSM
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\stt\control\stt_sm.py", line 6, in <module>
    from TheSoundOfAIOSR.stt.control.speech_to_text import SpeechToText
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\stt\control\speech_to_text.py", line 7, in <module>
    from TheSoundOfAIOSR.audiointerface.capture import MicrophoneCaptureFailed
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\audiointerface\capture.py", line 3, in <module>
    import pyaudio
ModuleNotFoundError: No module named 'pyaudio'

[ ] rg_text_to_sound not starting

D:\Dev\SoundHacking\project_common\rg_text_to_sound>venv/Scripts/python -m tts_websocketserver/src/tts_websocketserver/tts_server
'venv' is not recognized as an internal or external command,
operable program or batch file.

I updated the slashes but still another error, this does not seem to be tested with windows
D:\Dev\SoundHacking\project_common\rg_text_to_sound>venv\Scripts\python -m tts_websocketserver/src/tts_websocketserver/tts_server
D:\Dev\SoundHacking\project_common\rg_text_to_sound\venv\Scripts\python.exe: No module named tts_websocketserver/src/tts_websocketserver/tts_server

[ ] check TODOs from #13

@rubysubash , @MKDYasserH this PR is a good step forward yet it still require some stability improvements, it needs some effort indeed that maybe you could split across the Team.
Please make sure the following are applied to make sure everyone has the same environment :

[ ] test PR with a new freshly cloned project_common repo
[ ] follow steps identical to what is described in the readme, if any step is needed to be different then the readme can also be updated

[ ]  regression in speech to text as it was running before missing pyaudio

D:\Dev\SoundHacking\project_common\rg_speech_to_text>venv\Scripts\python TheSoundOfAIOSR\stt\interface\server_app.py
Traceback (most recent call last):
  File "TheSoundOfAIOSR\stt\interface\server_app.py", line 9, in <module>
    from TheSoundOfAIOSR.stt.interface.wsserver import SimpleServerInterface
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\stt\interface\wsserver.py", line 4, in <module>
    from TheSoundOfAIOSR.stt.control.stt_sm import SpeechToTextSM
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\stt\control\stt_sm.py", line 6, in <module>
    from TheSoundOfAIOSR.stt.control.speech_to_text import SpeechToText
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\stt\control\speech_to_text.py", line 7, in <module>
    from TheSoundOfAIOSR.audiointerface.capture import MicrophoneCaptureFailed
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\audiointerface\capture.py", line 3, in <module>
    import pyaudio
ModuleNotFoundError: No module named 'pyaudio'

I fixed this error by adding pipwin refresh to the setup and setup.3.8 batch files

[ ] windows anti-slash error

D:\Dev\SoundHacking\project_common>venv/Scripts/python -m tts_websocketserver/src/tts_websocketserver/tts_server
'venv' is not recognized as an internal or external command,
operable program or batch file.


fix isCentered prop for Modal compoent

Add items-center when isCentered

This issue was handled on #208


[Sign in] fix google authentication

Description:
The Google authentication feature is currently not functioning as expected. Users are unable to authenticate via Google
Expected Behavior:
Successful authentication via Google.
Actual Behavior:
Authentication via Google is not successful.

[x]  The Google authentication fixed
[x]  .env files edited. please upload changes!


feat: problem 30

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

114 of 118 (96.61%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.8%) to 87.89%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/problem_30/mod.rs
114
118
96.61%

Totals

Change from base Build<PHONE_NUMBER>:
0.8%

Covered Lines:
1183

Relevant Lines:
1346

💛  - Coveralls


Allow large thresholds

Motivation: float32 audio may have extreme loudness (values outside [-1, 1]) in the middle of an audio data augmentation pipeline

Fair enough :)

BTW if you're planning to contribute more stuff, LMK, so I'll wait a bit with releasing to PyPI

Especially the cylimiter Windows support would be great to have in place before I release a new audiomentations version

Cool, I'll make a release then. I remember testing it with numpy inputs, I'm not sure if I did it with torch -- I expect it to work out of the box, but if you run into sth, just let me know.


How to make a strum play an animation.

Describe your problem here.
Lord forgive me for the LUA jank I'm trying to preform, but is there a way to make a strum play an animation on command, or something like that, because I'm doing weird things with strum image replacing while hit, but that resets it to the base state and it looks bad then, please help.
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

copy code from rings of despair

wht


Add first class support for Azure EventGrid

Add first class support for Azure EventGrid so that BizTalk Server can act as both a publisher & handler

+1 but these request should be on User voice! Not sure how they track this but this is definitely it an "issue".. :-)

You can also tag it with a label feature or something like that. And it could be an adapter that the community is building. So it's not necessary on the uservoice. As the community can work on it. Correct?


missing publication information in pdf render API

After publishing, information under "Publication information" is still missing in the PDF rendered by API call to "https://viewer.ted.europa.eu/api/v2/notices/render", the heading itself is present.
In the PDF downloaded via direct links on ted.europa.eu ("https://ted.europa.eu/en/notice/[publication-id]/pdf") publication information is present:

POST-data for curl is as following (PHP Curl):
[
'file' => base64_encode($xml),
'language' => 'de',
'format' => 'PDF',
'textToHighlight' => 'string',
'summary' => false,
];

Dear @OliverStingl , I cannot replicate the error you see. I have called the live render API https://viewer.ted.europa.eu/api/v2/notices/render with the notice XML, and the returned PDF includes the publication information, see attached PDF.
2024-OJS077-00230964-live.pdf

We are sending the notice-xml to the render api and we still receive the PDF without any publication information. Is the notice XML altered on the TED-portal after publication? We're sending the exact XML we're sending for publishing.


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>chore(scripts): cover@#overwrite c8 --temp-directory build/tmp ava && c8 report -r lcov -o build/coverage --temp-directory build/tmp
chore(package): set $.ava.require='esm' as in template
chore(package): set $.ava.files='tests/*-test.mjs' as in template
chore(package): set $.ava.extensions='mjs' as in template

Coverage remained the same at 99.231% when pulling 302ba74d4ef010f6280e36082f2deb3b6ddd462e on npm-template-sync-1 into ea1fb85bda6c0d60b188ca43ec2a778104348352 on master.

:tada: This PR is included in version 2.1.6 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Use the HL7 diff tool when testing that two HL7 outputs are the same

User Story
As a report stream developer, I would like the utility that confirms two HL7 outputs are equivalent to use the HL7 diff tool
Description/Use Case
This tool was written to assist in onboarding new senders and confirming the data is losslessly converted.  It can also be integrated into the test harness in order to provide more useful output when analyzing a test failure, highlighting specifically how the HL7 is different.
Risks/Impacts/Considerations

Small risk that the HL7 diff tool is missing cases, but there are tests written for it.

Dev Notes
An example of the tool integrated into the CLI can be found here
Acceptance Criteria

[ ] Tests that assert against two HL7 outputs being the same runs the comparison via the HL7 Diff tool

Hey team! Please add your planning poker estimate with Zenhub @adegolier @arnejduranovic @brick-green @jack-h-wang @jalbinson @JFisk42 @mkalish

Please add your planning poker estimate with Zenhub @thetaurean


gawk: 5.1.1 -> 5.2.1

changelogs:

5.2.1: https://lists.gnu.org/archive/html/info-gnu/2022-11/msg00008.html
5.2.0: https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00003.html

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] 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/)
23.05 Release Notes (or backporting 22.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

[x] Fits CONTRIBUTING.md.

@ofborg eval

Built system successfully. Should be safe for staging.

Might fail on clang or macos:
checking for clang options needed to detect all undeclared functions... cannot detect
configure: error: in `/private/tmp/nix-build-gawk-5.2.1.drv-0/gawk-5.2.1':
configure: error: cannot make clang report undeclared builtins

Will have a look.

x86_64-darwin was fine though. Might be something aarch64-specific.

The failure seems to be related to this change in gawk: https://git.savannah.gnu.org/cgit/gawk.git/tree/README_d/README.macosx?h=gawk-5.2.1#n1
Conditionally adding --disable-pma made the build complete for me on aarch64-darwin.

Great observation! I'll look a bit more into the option if it makes sense to disable it for just this targets for universally and amend the PR.

Pulled yet unreleased upstreamed https://git.savannah.gnu.org/cgit/gawk.git/patch/?id=e0b7737930f8a677d3c509f8ce72b9130965ec0a patch. It disables pma for non-x86_64 darwins. Should help as well.

This has also broken the x86_64-unknown-linux-musl stdenv:
/nix/store/s22ypd6p0wm9ywhd94fxirvq4bs93d7a-binutils-2.39/bin/ld: /nix/store/llc6m8bn9vw8y3a4smq70ni6iq752qk4-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-musl/11.3.0/crtbegin.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a PIE object
/nix/store/s22ypd6p0wm9ywhd94fxirvq4bs93d7a-binutils-2.39/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:687: gawk] Error 1
make[2]: Leaving directory '/build/gawk-5.2.1'
make[1]: *** [Makefile:808: all-recursive] Error 1
make[1]: Leaving directory '/build/gawk-5.2.1'
make: *** [Makefile:588: all] Error 2

/nix/store/s22ypd6p0wm9ywhd94fxirvq4bs93d7a-binutils-2.39/bin/ld: /nix/store/llc6m8bn9vw8y3a4smq70ni6iq752qk4-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-musl/11.3.0/crtbegin.o: relocation R_X86_64_32 against hidden symbol `TMC_END' can not be used when making a PIE object

That's a PIE/no-PIE mix. if nixpkgs's toolchain default to -fPIE that would explain why -no-pie leads to these. Will send a PR in a minute.

Proposed the fix as https://github.com/NixOS/nixpkgs/pull/210124


expand function and row height

[initial sate]

[only one row in datatable and expanded it]

[row height is too high, when collapsed it]

could you build a sandbox that reproduces the issue?

could you build a sandbox that reproduces the issue?

@boussadjra yes, here is sandbox: https://codesandbox.io/s/vueye-table-forked-hf96q
note that even if rows length is not 1 (employeetest.json), there is still height bugs exist.
for example, try to expand and close '>'  in page '2'
//import employees from "./assets/employees.json";    // rows length  > 1
import employees from "./assets/test.json";                  // rows length == 1

@sailfish009 thanks for raising this issue I'll work to debug it and fix it

@sailfish009 I can't see that issue, which browser are you using?

@boussadjra firefox nightly. chrome is ok.


Update test docs for OTel Demo

Hi folks!
On this PR, I'm updating the OTel Demo testing docs to show the recent changes that we did there.

Preview: https://deploy-preview-3173--opentelemetry.netlify.app/docs/demo/tests/

@chalin it makes sense, thanks!


consolodate how we use the IIIF manifest of a work

Who is this for?
Devs & perf-people
What is it doing for them?
Consolidating how we use IIIF manifest.
Caching responses so we need not call out each time. Another way to do this would be to cache it on the server side JSON props response, but then we would couple the fetching of the manifest to our application (if wl fails, we fail), which is no good.

Nice. Just wondering if useIIIFManifest should be called something like useParsedIIIFManifest?

Good point, used useIIIFManifestData as that's what we call the type.

Nice. Just wondering if useIIIFManifest should be called something like useParsedIIIFManifest?

Good point, used useIIIFManifestData as that's what we call the type.


Mixture: Simplify mixtures

precompute mixtures based on real values and use it as cache
remove Mixtures itself

Rejected.


🐛 | RFID Reader Neuftech not working

Bug
What I did
Used the one-line install script to install Phoeniebox.
The USB Reader from Neuftech does not work in the web-app and the Service is not activate in the web-app.
Everytime i swap a new chip over the reader, no new id is recognized.
See the following picture.

Moreiver, i also avticated the GPIO Service in the installation script, but this is also not activated? Side-issue!
What happened
During installation script, the following error occurs.
./RegisterDevice.py
Choose the reader from list
0 HXGCoLtd HIDKeys Keyboard
Device Number: 0
Exception ignored in: <function InputDevice.del at 0x76167fa8>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/evdev/device.py", line 160, in del
File "/usr/local/lib/python3.7/dist-packages/evdev/device.py", line 305, in close
File "/usr/local/lib/python3.7/dist-packages/evdev/eventio_async.py", line 55, in close
File "/usr/lib/python3.7/asyncio/events.py", line 640, in get_event_loop
File "/usr/lib/python3.7/asyncio/events.py", line 660, in new_event_loop
File "/usr/lib/python3.7/asyncio/unix_events.py", line 51, in init
File "/usr/lib/python3.7/asyncio/selector_events.py", line 49, in init
File "/usr/lib/python3.7/asyncio/base_events.py", line 373, in init
File "/usr/lib/python3.7/asyncio/coroutines.py", line 28, in _is_debug_mode
AttributeError: 'NoneType' object has no attribute 'dev_mode'
Exception ignored in: <function BaseEventLoop.del at 0x761a8618>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/base_events.py", line 622, in del
File "/usr/lib/python3.7/asyncio/base_events.py", line 390, in repr
File "/usr/lib/python3.7/asyncio/base_events.py", line 1794, in get_debug
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_debug'
I expected this to happen
Clear recognition of the USB Reader.
The USB reader is working, i checked it at another PC, and it clearly finds the chip id in a e.g. notepad.
Further information that might help
uname -a
Linux raspberrypi-lulu 5.10.60-v7+ #1449 SMP Wed Aug 25 15:00:01 BST 2021 armv7l GNU/Linux
Software
Base image and version
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Branch / Release
cd /home/pi/RPi-Jukebox-RFID/ && git status | head -2
Refresh index: 100% (427/427), done.
On branch master
Your branch is up to date with 'origin/master'.
Hardware
RaspberryPi version
sudo cat /sys/firmware/devicetree/base/model
Raspberry Pi 3 Model B Rev 1.2
RFID Reader
idVendor           0x16c0 Van Ooijen Technische Informatica
idProduct          0x27db Keyboard
bcdDevice            0.01
iManufacturer           1 HXGCoLtd
iProduct                2 HIDKeys
Soundcard

Other notable hardware

issue can be closed.
After a newly set-up of the rpi with an sudo apt-get update afterwards, everything went well....

All, I have the same issue with a fresh installation of RPI and Jukebox. Any help or ideas?


Homepage Fixes

fix grid sizing issues
fix offset text (add responsive font sizes, margin = font size)

Redesigned page format


Add insurance command - add InsurancePlan classes

Add InsurancePlan abstract class with BasicPlan and TravelPlan subclasses

for issue #47


cjxl fails encoding exr file

Describe the bug
the file from an old issue from gitlab https://gitlab.com/wg1/jpeg-xl/-/issues/215 seems to be still failing to encode
compressing https://mega.nz/file/gExDAQRI#O52UgV1bpfNLIol09egKKtZ1tvhKo7ch1V0v3UGJJcM results in no visible error but it fails and exits with error code 1
To Reproduce
Steps to reproduce the behavior:
download the file & run cjxl -v 20210424_201012.exr 20210424_201012.jxl
Expected behavior
it either converts properly or fails with some error message
Screenshots
% cjxl -v 20210424_201012.exr 20210424_201012.jxl
JPEG XL encoder v0.8.0 f7c10956 [AVX2]
Getting pixel data.
% echo $?
1
% stat 20210424_201012.jxl
stat: cannot statx '20210424_201012.jxl': No such file or directory

Environment

OS: archlinux
Compiler version: idk
CPU type: x86_64
cjxl/djxl version string: v0.8.0 f7c10956 [AVX2]

Additional context
none

When not compiling "release" but "opt", one gets in addition:
./tools/cjxl_main.cc:583: JXL_FAILURE: Codecs failed to decode input.

I haven't looked into what is actually causing this failure for this particular exr file.


Delayed exchange initialization

If an exchange is configured, but is in a blackout period when Arbitrader starts up, schedule initialization of the exchange when the blackout period is over. Dynamically add it to the rotation when it is up and running.
I think that if the exchange is not in a blackout but throws errors, stopping the bot is still the correct action to take. That indicates that the errors were unexpected and might need to be fixed by the operator: configuration problems, low account balance, wrong API keys, etc. The blackout period is something that has to be specifically configured (I generally set one up when the exchange emails me to warn about planned maintenance) and so we can reasonably assume that the broken exchange is known to be broken and should be ignored until the end of the blackout window.

Maybe stopping the bot is correct but in my case bitstamp was the first exchange and order was already placed and executed. Then bot crashes on second exchange because of exchange not working or maintenance mode. I think we should notify somehow that bot crashed and order was executed on the first exchange.


Add identity_map_codec support

Because https://github.com//logstash-plugins/logstash-codec-netflow/issues/9

@jorritfolmer Thanks for the PR, it is possible to add tests for the new feature, I just want to make sure we don't break it a future patch.

@ph yes I can add tests to see that the issues we're having with the Netflow codec are in fact resolved (and remain resolved). Like https://github.com/jorritfolmer/logstash-input-netflow/blob/master/spec/inputs/netflow_spec.rb#L1367-L1387.
The tests will include the Netflow codec and its output, so they'll be more integration tests than unit-tests if that's ok.

@jorritfolmer Thats OK to me! lets create a new directory named spec/integration/ and put the new spec there.

I think someone is working on a netflow input to replace the netflow codec,
btw. Does this impact how we treat this PR?
On Thursday, August 18, 2016, Jorrit Folmer<EMAIL_ADDRESS>wrote:

Because /logstash-plugins/logstash-codec-netflow/issues/9
You can view, comment on, or merge this pull request online at:
https://github.com/logstash-plugins/logstash-input-udp/pull/25
Commit Summary

Add identity_map_codec support

File Changes

M lib/logstash/inputs/udp.rb
https://github.com/logstash-plugins/logstash-input-udp/pull/25/files#diff-0
(8)

Patch Links:

https://github.com/logstash-plugins/logstash-input-udp/pull/25.patch
https://github.com/logstash-plugins/logstash-input-udp/pull/25.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/logstash-plugins/logstash-input-udp/pull/25, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAIC6u-m5nFMNEfzCmKhN7uUi6MU6Airks5qhTFigaJpZM4JoIyO
.

Yes netflow input would be me, too. You choose :)


Does not work on Windows

PS C:\Users\naray\GitHub\kPMML\src\kPMML\bin\Release> .\kPMML.exe .\referenceexample3.txt 320
name=laughter
artist=kinkinkijkin
10hz
/env
e1 AHD 50 500 5000
e2 AHD 200 2000 40000
e3 AHD 50 8000 80000
/wav
sin SINE 550 0
/fm
fm1 FM2O e2 1 0 0 0
/mu
gatherer ( FN1 GS1 o+1 CN1 o-1 )8
hunter ( CN1 DS1 FN1 )8
c1 ( sin e1 ( o=3 gatherer hunter )4 )2
c2 ( fm1 e2 ( o=2 gatherer hunter )4 )2
END

Unhandled Exception: System.IO.IOException: The pipe has been ended.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
   at kPMML.kPMML.Main(String[] args) in C:\Users\naray\GitHub\kPMML\src\kPMML\Program.cs:line 351

Is it my install of ffmpeg or do I need to change something to make this work?

I should note that the release binaries outright didn't work. I had to compile this myself on Windows (which passes without any errors) to get an executable that would tell me the issue.

ffmpeg has to be in your PATH environment variable.
if it's already in PATH, this is a really confusing issue, as it has worked for others on windows with ffmpeg in PATH.

It's not working for me, even in previous binaries. I've added ffmpeg to path and all, but it's still not working for me. I have a feeling it might be my PC anyway and will test this on another PC tomorrow.

The only version of kPMML that works on any windows PC for me is the b01 release.


M3 sparse embedding finetune

hi team,
M3 is awesome and I need some help. No issue or doc for M3 Sparse Embedding fine tuning is found. It would be great if someone could point me to the doc. Thanks

closed as found in https://github.com/FlagOpen/FlagEmbedding/tree/master/FlagEmbedding/BGE_M3#news


Feature Request: Front-end editing

Ideally you should be able to do almost everything on the front end that you can do on the back.
Being able to edit the main content of a page on the front end is the most important front end feature to start with.
Having a quick way to switch between the front and back ends would also be an improvement.

+1
I agree on "inline editing" for frontend.
Probably the backend can be tailored for clients by roles and permissions.

While I was thinking about front-end editing in the last days, I read an interesting article about it yesterday. It shows up how front-end editing actually undermines the established concept of separating front- and back-end or in other terms content from design. Also, front-end editing would not add substantial extra value (actually new functionality) like other goals on the roadmap. While I do not have experience implementing specifically such a feature, I think the effort to maintain the necessary code is (in my eyes) not worth the gain. Just my two cents.

+1

-1
Agree with @alomvar useless spent of efforts.

Agreeing with @alomvar -1

Front-End editing is for Designers who doesn't want to code or contract a coder, Period!
It's a tool hard to maintain and not useful to the client who needs to focus on the content of their website and not on page design that was already built to them. Always when I offered too many options to customize the page for my clients, they built something very problematic to their users. They don't understand about design and can't understand all the little things that makes a webpage great to end users. At the end, is my fault their website is running bad.
Only very few situations this could be useful, like Medium.com does on the article editor, but notice that the tool is focused on writing the article and not designing a full page, there are pre-built types of content with a specific design to choose, you can't change the structure, just choose one to use.

@edirpedro You just don't know what this issue is about. Not that kind of frontend editing.

+1
Use this: http://getcontenttools.com/

What might be nice is new user types E.g. "Site Owner" and "Site Designer"
The "Site Designer" user could have access to a few more features, like templates and CSS.
Whereas the "site owner" has admin access, but can not access design features (keeping it for the user).

What might be nice is new user types E.g. "Site Owner" and "Site Designer"
The "Site Designer" user could have access to a few more features, like templates and CSS.
Whereas the "site owner" has admin access, but can not access design features (keeping it for the user).

This is already possible: Create own roles and assign them specific rights. Also this is a little bit offtopic.
Regarding the topic: A simple editor to edit the code like in the backend might be ok in my opinion. The backend preview does not take theme specific styling into account so for me it looks different in the background preview and the real site. so an editor where I can easily switch between real preview and edit without the need of having multiple tabs open would be nice. Additionally it is then possible to make small changes without being required to login to the backend and find the page there ...
But I yould not include a theme designer here. Only the backend editor for sites (and maybe widgets).

+1

Editor.js would be a nice addition to the frontend editor.
https://editorjs.io/
It's easy to add new plugins.


fix: add bin to container image

weird, GH suggested me to crate another PR, but there already was one, and merged.


writing/rereading error

I am using a data acquisition software to export some data to UFF58b. When re-reading the same data out of 63 dataset two are showing an error due to inconsistent number of bytes.
The software, with some more difficult approach, allowas also a different type of export. My test was then to export the data for the faulty datasets differently, load them in matlab and recreate the missing measData and x that do not get filled up due to the error. I then re-write the dataset out using writeuff.
The resulting file is still generating the same error when re-reading it.
test.zip
I am attaching the file that was written with a single problematic dataset after recreating it with a good content.

the culprit seems to be here:
    %% Determine end index of Blocklines     if fromIdx(end) < dataLen         % Dataset does not end with a newline '\r\n'         toIdx = [fromIdx(2:end)-lengthLF-1; dataLen];     else         % Dataset does end with a newline '\r\n'         toIdx = fromIdx(2:end)-lengthLF-1;         fromIdx(end) = [];     end
MY dataset is unix and ends with lineFeed followed by an additional values. The method in the code above fails to recognize that the dataset is NOT ending with a '\r\n' and therefore ignores the extra value available.
replacing it with:
   if ~strcmp(blockData(end),newline)         % Dataset does not end with a newline '\r\n'         toIdx = [fromIdx(2:end)-lengthLF-1; dataLen];     else         % Dataset does end with a newline '\r\n'         toIdx = fromIdx(2:end)-lengthLF-1;         fromIdx(end) = [];     end
seems, so far, to be solving the issue.


Remove or mark all references to k8s.gcr.io

Problem:
We've replaced k8s.gcr.io with a new container registry, registry.k8s.io
Proposed Solution:

For English docs, find any mentions of k8s.gcr.io (other then explanations that this is the old thing) and replace them with registry.k8s.io
for each downstream localization, find any mentions of k8s.gcr.io  update to be level with the English version of pages
for old blog articles, either add a comment after mentions of k8s.gcr.io, or update to registry.k8s.io if the context makes the update appropriate

/priority backlog
because we've already done most of this work, and only a few pages remain.

/assign
/language en

/remove-language en
/retitle [Umbrella docs issue] Remove or mark all references to k8s.gcr.io

/triage accepted
This issue covers multiple packages of work

I try to work some files for it. please review #39832

I did a final run through this issue and created #40585, #40586, #40588, and #40589.
Additionally, the following autogenerated documents are using k8s.gcr.io:

https://github.com/kubernetes/website/blob/76baffc20228bab98766fe9cd4ea9f644e5ef8a1/static/docs/reference/generated/kubernetes-api/v1.19/index.html
https://github.com/kubernetes/website/blob/76baffc20228bab98766fe9cd4ea9f644e5ef8a1/static/docs/reference/generated/kubernetes-api/v1.20/index.html
https://github.com/kubernetes/website/blob/76baffc20228bab98766fe9cd4ea9f644e5ef8a1/static/docs/reference/generated/kubernetes-api/v1.21/index.html
https://github.com/kubernetes/website/blob/76baffc20228bab98766fe9cd4ea9f644e5ef8a1/static/docs/reference/generated/kubernetes-api/v1.22/index.html
https://github.com/kubernetes/website/blob/76baffc20228bab98766fe9cd4ea9f644e5ef8a1/static/docs/reference/generated/kubernetes-api/v1.23/index.html
https://github.com/kubernetes/website/blob/76baffc20228bab98766fe9cd4ea9f644e5ef8a1/static/docs/reference/generated/kubernetes-api/v1.24/index.html

I'm not sure if we need to take any action for those or not.

I thinks this is done.
/close