Docs need updating for Lock v11

Just a note-to-self to make sure the docs are accurate before release.
In particular, the "Data object on the session" section is no longer accurate since Lock v11 exclusively uses OIDC-compliant tokens.
Would probably be a good idea to add some instructions on how to make custom claims work (see #95), since that's liable to be a stumbling block for folks. Some general migration-guide stuff is a given for sure.

Hey @XaserAcheron do you need some help on the docs?  Anything we can do to help get a new release out?

That would be grand! I've been on a busy streak as of late and haven't been able to buckle down on this yet.
In addition to the autoClose stuff mentioned above, sections like Data object on the session will probably need some refreshing since the tokens look different in OIDC-conformant-land.
The Passwordless stuff is pending an overhaul (Lock v11 supports it now! woohoo!), so that's on me to give that a go-over when that gets done.

👋What's the ETA on the next release?

Unsure at present -- I've unfortunately been busy on all fronts.
For the sake of getting some early adoption & testing in, would y'all be willing to try out a beta release if I were to cut one from develop as-is? I can't guarantee a smooth transition from v3.x but it may be better than waiting on me to figure it all out.

That would be great!

+1

Do we have the beta release? I'm getting a lot of deprecation warnings from Auth0 because of lock.js 10. April 1st is getting closer and lock 10 apparently doesn't work after that.

4.0.0-beta.0 has been published. Sorry for the wait.
Still some things to do -- in addition to docs, now's probably the best time to strip out the old passwordless stuff since that's been integrated into Lock v11, so expect that to be in v4.0.0 proper.
On a completely unrelated note, npm publish turns my terminal purple:

Windows development is strange sometimes.

so what are the chances someone can take stab at how to use the new
library?  I started on some docs and am more confused than ever...  :-(
On Tue, Mar 13, 2018 at 7:53 AM, Xaser Acheron<EMAIL_ADDRESS>wrote:

4.0.0-beta.0 has been published. Sorry for the wait.
Still some things to do -- in addition to docs, now's probably the best
time to strip out the old passwordless stuff since that's been integrated
into Lock v11, so expect that to be in v4.0.0 proper.
On a completely unrelated note, npm publish turns my terminal purple:
[image: cmdpurple]
https://user-images.githubusercontent.com/4601589/37349418-610f40ae-26a4-11e8-8a1a-4d4a239df320.png
Windows development is strange sometimes.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/auth0-community/ember-simple-auth-auth0/issues/99#issuecomment-372693542,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ3uuxPqJsiOKsds0bKr2_d6E6-eUEGks5td91_gaJpZM4RWv3M
.

Auth0 has a migration guide for Lock v10 to v11. Are you running into any issues not covered there?

@XaserAcheron I tried installing the beta v4 but I got this bunch of good news:
multi main
Module not found: Error: Cannot resolve module 'auth0-js/src/index.js' in /Users/piotr/lv/saas/dashboard/tmp/webpack_writer-input_base_path-jncBSCgQ.tmp/0
resolve module auth0-js/src/index.js in /Users/piotr/lv/saas/dashboard/tmp/webpack_writer-input_base_path-jncBSCgQ.tmp/0
  looking for modules in /Users/piotr/lv/saas/dashboard/node_modules
    /Users/piotr/lv/saas/dashboard/node_modules/auth0-js doesn't exist (module as directory)
[/Users/piotr/lv/saas/dashboard/node_modules/auth0-js]
 @ multi main 0 [ 'multi main\nModule not found: Error: Cannot resolve module \'auth0-js/src/index.js\' in /Users/piotr/lv/saas/dashboard/tmp/webpack_writer-input_base_path-jncBSCgQ.tmp/0\nresolve module auth0-js/src/index.js in /Users/piotr/lv/saas/dashboard/tmp/webpack_writer-input_base_path-jncBSCgQ.tmp/0\n  looking for modules in /Users/piotr/lv/saas/dashboard/node_modules\n    /Users/piotr/lv/saas/dashboard/node_modules/auth0-js doesn\'t exist (module as directory)\n[/Users/piotr/lv/saas/dashboard/node_modules/auth0-js]\n @ multi main' ]
Cannot read property 'message' of null

any idea how to get around that?

Looks like it's not pulling in the Auth0.js dependency for some reason. Would you mind double-checking that the node_modules/auth0-js directory exists (and npm/yarn has been run recently)?
Additionally, which version of the addon were you on previously? That may help diagnose it.

That directory does not exist. I was previously on 3.1.0. I picked the beta as we really need to get on Lock 11 before April, when Lock 10 and Auth0.js 8 are hosed due to API changes

@XaserAcheron shouldn't the code be looking in node_modules/ember-simple-auth-auth0/node_modules/auth0-js ? that's where the dependencies for this module are

@psteininger : I think, all node modules are stored in a flat structure with latest npm so I think, there wil be no node_modules folder inside ember-simple-auth-auth0. I am also using the beta version but have not got any issue so far

I'm not sure why 3.1.0 would work but 4.0.0-beta.0 wouldn't. 3.1.0 was the release that switched the auth0-js dependency from bower to npm, so if there were any dependency resolution shenanigans, they ought to have showed up then.

Noodling this a bit more, I've got an intuition on why 4.0.0-beta.0 introduced the trouble: the auth0-lock-passwordless dependency hasn't been ousted yet (working on that presently in a branch), and it likely wants a different version of auth0-js. This means there's two auth0-js's in the dependency tree, resulting in one of them not getting flattened.
Good news though is if that's the case, I'm shooting for getting 4.0.0-beta.1 tomorrow that kicks out the old auth0-lock-passwordless component in favor of Lock 11's passwordless support. That should implicitly fix the issue.
The real mystery is why it works for me. Yarn magic, I guess. :P

@XaserAcheron I really appreciate you investing your time in this (an the whole project). I'm looking forward to beta.1

Glad to help! Apologies for cutting it so close on the timing.
Just committed some doc changes (thus technically handling this issue ;) to the feature/nix-passwordless branch. I'll get it merged and a new beta pushed once Travis does its thing.

Just published v4.0.0-beta.1, w/doc updates. Lemme know how it goes!

Hope y'all don't mind if I close this issue, since docs are done and everything seems stable-ish now. If you run into any other troubles, feel free to open a new one and I'll do my best to help get it sorted out.


Release for Scala Native 0.5

Can you please release a new version compatible with Scala Native 0.5?

OK, I tried but I need to fix my deployment workflow...


Merge Tree: Differentiate removed segments, and not yet visible segments

This change fixes a long standing but rare issue in the merge tree. The issue was caused by an inability in the insertion logic to disambiguate between removed segments, and no yet visible segments. Specifically in both cased node length would return a value of 0, and all 0 length segments were eligible for conflict resolution if targeting the same position. Also not all clients necessarily have the same removed segments as removal of removed segments is asynchronous process (Zamboni). These facts could lead to one client breaking a tie on some removed segment, whereas other clients would not, and this would lead to incorrect ordering of conflicting segments.
The fix is to report removed segments that will never be visible as undefined length, and to ignore those segments on insert, and only considers segments that will be visible in the future (0 length segments) for conflict resolution.
This change should go in after #6381  as it includes validation for this change.
Fixes #1214

@jack-williams - FYI.


⚠ Bofrost.at has degraded performance

In c327d4d, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2185 ms

Resolved: Bofrost.at performance has improved in 05bb667.


Update Ui.png

Codecov Report

Merging #232 (fd19540) into master (b6c5ce4) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #232   +/-   ##
=========================================
  Coverage     68.58%   68.58%
  Complexity      607      607
=========================================
  Files           101      101
  Lines          1875     1875
  Branches        193      193
=========================================
  Hits           1286     1286
  Misses          526      526
  Partials         63       63

Impacted Files
Coverage Δ

.../java/seedu/address/logic/commands/TagCommand.java
80.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Add a pre and post initialization among CONFIG_APPLICATION_INIT_PRIORITY

Is your enhancement proposal related to a problem? Please describe.
when application module initialized, some modules depend on the CONFIG_APPLICATION_INIT_PRIORITY finished(eg add custom lvgl input, when using CONFIG_APPLICATION_INIT_PRIORITY, can not make sure the initial sequence is correct and result failure)
Describe the solution you'd like
add a post application and pre applicaion PRIORITY
Describe alternatives you've considered
None
Additional context
None

You can use POST_KERNEL as "pre-application".


Load the HomePage when default route is taken

I think this is what you meant, otherwise the App container gets rendered twice on the homepage

Coverage remained the same at 98.318% when pulling e9697a06ef291653a1ac3017e50f8db14df0b7c4 on TheElf:patch-1 into ea399370d667e49c42ace255f19d951bc2c80336 on mxstbr:v3.0.0.

Didn't #298 fix this?

Yeah, #298 fixed this, still thanks so much for taking the time to submit this PR, much appreciated!


RDP sessions registering multiple keypresses

Microsoft PowerToys version
0.74.0
Installation method
PowerToys auto-update
Running as admin
No
Area(s) with issue?
General
Steps to reproduce
Establish RDP session to remote computer and attempt to log in. Closing the PowerToys application (right-click tray icon, Exit) resolves issue.
Interestingly, once the workaround is employed above, the issue no longer repeats on subsequent attempts with the application running.
Not tested on Remote Desktop Connection Manager.
No issues apparent with browser-based session (Windows Admin Center)
Remote endpoint is Win 10 22H2 running virtually.
✔ Expected Behavior
Typing as normal
❌ Actual Behavior
Occasionally registers one keypress as two. Not the same keys, and no consistency - simply happens frequently enough to be an annoyance.
Other Software
Remote Desktop Connection application, as deployed with Win10 22H2.

/bugreport


Clean up registry copy logic to not interleave reading and writing.

We previously changed the dir copying code to avoid a potential infinite recursion when copying a folder directly inside itself, however the fix did not handle a case when a folder is copied into a subfolder of itself. This change fixes these sorts of problems by first loading the entire directory contents, including all subdirectories, and then writing the whole thing to the new location in one shot. This is more memory intensive on the server, but for typical copies that we do it should be fine.

Tested this and it works. Fixes bug #124 The scala is still greek to me...
@DanielSank feel like applying your newly learned scala-fu to this PR?

Hold the phone... async and await exist in Scala?!

@DanielSank, yes, these come from the scala-async project (https://github.com/scala/async). They are macros that do the necessary code rewrites, but there are a couple of caveats that rather severely limit their usefulness: error handling is kind of crappy, because if a Future that you're awaiting fails, that exception does not get raised by the await for your code to try to handle, rather the whole async block fails immediately (contrast with typescript where you can use try/catch like normal to handle async errors); second, because scala for-loops are implemented with calls to foreach, map and flatMap methods, you can't await inside a loop, which is really annoying. I still think async/await is useful, but not nearly as useful as it could be.


Lab E1 Step 3 - not enabled for all Tenants

Declarative Agents are not enabled yet for all M365 Tenants. Is there a way we can test it on non-enabled M365 Tenants?
Here is how my Copilot looks:

This is gradually rolling out and is not yet in all tenants. No promises but I think everyone should have it in the next week or so...


No mails received after K9-Mail has been updated until App is manually opened

Describe the bug
When Google Play Store updated K9 Mail App you won't get notified about new E-Mails until you manually open K9-Mail again.
To Reproduce
Steps to reproduce the behavior:

Let Google Play Store do an automatic update of K9-Mail
Send an E-Mail to your account used by K9-Mail
No notification of new Mail will be displayed
Hours later open K9 Mail your mail from step 2 will be received (probably a lot of others, too).

Expected behavior
K9-Mail is restarted in background automatically if it has received an update.
Environment:

K-9 Mail version: various, after each Update
Android version: 11
Device:  Samsung Galaxy S10 Lite
Account type: IMAP

Did you configure K-9 Mail to use Push or periodic polling?

Its configured to push only. Polling is set to never.

I update via f-droid, and after an install, there is an 'Open' button.   If not, the app is not started, and of course it was stopped during upgrade.    So it is unsurprising to me that notifications are not received.    This could be a bug in an app store client or android itself that the BOOT intent isn't sent to apps post update if it is registered to get it on boot, or however this is supposd to work.

Same here, last update from Google Play was today. It has happened twice so far, the "Waiting for new emails" notification disappears after the app gets updated. I have my Google Play set to not update apps automatically, only notify me when updates are available. So I can say for sure this is related to the update process.

I think this is an Android issue, I have the same behaviour with a number of other apps for example MacroDroid

Using the version from F-Droid, I never get any notifications.
This is simply not tolerable. I dont really need them, but I have them enabled and still dont get any! This is crazy.
Meanwhile "Feeder" from f-Droid can send my altert Feeds within a few minutes, without even disabling Battery optimisation or having a permanent notification.
 I would not prefer that.
But please, integrate something like this, its crazy.

On initial load of the latest Android on Pixel 6 pro, k9mail notifications work fine (battery optimization is disabled etc.) , but something happens at some point and push notifications stop working and i need to refresh to get new mail. A reboot resolves the issue.   This has been an issue for a very long time and I'm just now getting annoyed enough by it

Since updating to the newest version and enabling the persistent notification (ie, not hiding the icon), I have not had an issue yet, I will report back if it happens again.  The k9 app states that Android allows you to hide the notification, but it seems like I had problems doing that.  At least so far it seems like that.  Thanks for a great app btw.

This issue is about the app not being restarted after an app update. Not about generic sync problems. For that please create a new issue. Make sure to include a debug log, so we have a chance to find out what's going on.


Add vertical prop to readme

Small question, when should we expect a release?
oh, I've noticed there's the same PR here: #175

Release of what?

@ptomasroos release of 2.2.1 or 2.3.0:
https://github.com/ptomasroos/react-native-multi-slider/releases

I can fix it tomorrow!


Support for macos

Is is just a case of supporting the .dylib extension in path handling? or more?

macos is in the GH actions build matrix


require-adobe-auth annotation for web actions in manifest.yaml

Description
The require-adobe-auth allows web actions to be secured using Adobe IMS
This is a temporary implementation that rewrites the target web action to a sequence that first executes the /adobeio/shared-validators/ims validator.
As an example, the following manifest:
packages:
  helloworld:
     actions:
       hello:
         function: path/to/hello.js
         web: 'yes'
         require-adobe-auth: true

will be deployed as:
 packages:
   helloworld:
     actions:
       __secured_hello:
         function: path/to/hello.js
         web: 'yes'
         annotations:
           require-whisk-auth: true #makes sure action cannot be called by itself anymore
     sequences:
       hello:
        actions: '/adobeio/shared-validators/ims,helloworld/__secured_hello'

The annotation will be eventually natively supported by Adobe I/O Runtime, at which point
this PR can be safely reverted.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] 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.
[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Ready for review

@moritzraho shouldn't require-adobe-auth be an annotation rather than a new flag on the action itself?
packages:
  helloworld:
     actions:
       hello:
         function: path/to/hello.js
         web: 'yes'
         annotations:
           require-adobe-auth: true

@alexkli that's what it is the PR doc was misleading, just edited to reflect the annotation

Also @alexkli more changes to come https://github.com/adobe/aio-cli-plugin-runtime/pull/139

Ok 👍


Transition to gRPC Pure JavaScript Client

Issue
The C++ Node add-on gRPC library has problems with webpack: https://github.com/grpc/grpc/issues/11435
In April 2021 it will be deprecated<EMAIL_ADDRESS>Generate static code
$ grpc_tools_node_protoc --version
libprotoc 3.14.0

mirgration guide
https://github.com/grpc/grpc-node/tree/master/packages/grpc-js#migrating-from-grpc should use generate_package_definition option in grpc-tools, but It doesn't have grpc.loadPackageDefinition example.
ref: https://github.com/grpc/grpc-node/issues/931#issuecomment-655542456
document: https://github.com/agreatfool/grpc_tools_node_protoc_ts/blob/master/doc/grpcjs_support.md
deadline:
https://grpc.io/blog/deadlines/
https://www.xspdf.com/resolution/51613875.html
OOM Test(wait on gRPC server)

test: https://github.com/pinpoint-apm/pinpoint-node-agent/issues/5#issue-729407117

gRPC
gRPC js logging : https://github.com/grpc/grpc-node/blob/1427ebd6a09c4a1c01aaf7347c645f9781b40d81/packages/grpc-js/src/logging.ts#L23

gRPC Node library Logging enable

            "env": {
                "GRPC_NODE_VERBOSITY": "DEBUG",
                "GRPC_TRACE": "all"
            }

client: https://github.com/agreatfool/grpc_tools_node_protoc_ts/blob/v5.0.0/examples/src/grpcjs/client.ts
server: https://github.com/agreatfool/grpc_tools_node_protoc_ts/blob/v5.0.0/examples/src/grpcjs/server.ts
https://github.com/agreatfool/grpc_tools_node_protoc_ts/blob/v5.0.0/examples/proto/book.proto
long time running stream cancellation: https://docs.microsoft.com/en-us/aspnet/core/grpc/deadlines-cancellation?view=aspnetcore-5.0

gRPC write retry
Node streams are different from streams when the error event is received by the client. When on('error'), reconnecting the stream is unnecessary. The way to know whether the stream is closed or canceled can be known through the event, but the stream at the time is not the cause of the problem. As an exception at the time of Stream.write, the response to the error is completed by executing retry only once.

PR: #46


Dynamic Docstring: Numpydoc

Motivation
We have many docstrings over the repo that repeat themselves multiple times. Each time we type it fresh in a new function, we run the risk of adding typos and other differences. Each time we copy/paste it we run the risk of propagating tiny differences that existed from the copy source. If we ever need to adjust some small part of the docstring, we have to remember to propagate that change everywhere.
This becomes an annoyance. I'm proposing two PRs using two different approaches to dealing with this.
This PR uses numpydoc.docscrape together with the assumption that all functions in our repo adhere to Numpy doc styles (thanks to #260) to automatically parse the docstring from one common source and inject it into other docstrings.
This does require us to designate one class/function to serve as the docstring source. The docstring we want to replicate will only be written once in that location and then 'read' and copied programmatically by all other docstrings for all other functions that is the common argument.
Checklist

[X] Have you thoroughly read our Developer Guide?
[X] Have you ensured the PR description clearly describes the problem and solutions?
[X] Have you checked to ensure that there aren't other open or previously closed Pull Requests for the same change?
[X] If this PR fixes an issue, is the first line of the PR description fix #XXX where XXX is the issue number?
[X] Did you update the CHANGLOG.md file on your branch to describe your changes?

One complain that I read about this type of solutions is that it makes it harder for someone to read the docstrings as they navigate the code (using a code editor I mean). What do you think of this?

@h-mayorquin that's a good point..

Another option is to just add a test to our testing suite that iterates through all the docstrings and throws an error if not all the arguments matches (that is, if an argument as a different docstring in two different functions).

I'd worry that we'd constrain ourselves too much with this approach. We might want to alter the docstring for two args that have the same name.

Isn't this a use case for a decorator?

You know my feelings on decorators 🤣 especially after some recent errors from the NWB Inspector caused by 'too much decorator magic' I do try to avoid them as much as possible since they do a very good job at hiding what they actually do, which can make it very hard and time consuming to fix them if they cause a problem.
However, I'd be willing to do it here since it's only altering docstrings and not actual code behavior of the function (beyond calls to things like help)

One complain that I read about this type of solutions is that it makes it harder for someone to read the docstrings as they navigate the code (using a code editor I mean). What do you think of this?
@h-mayorquin that's a good point..

Yeah, it's my one reservation about this as well, which is why I prefer the import structure from #274 more since you can, from either an editor/IDE or the web interface, just navigate the import structure back to where its commonly defined (or from web interface, just click the 'reference' tab and should lead you straight to it).
Results in a little more work if you're visually scanning raw code, but it pays off via interactive mode. Note these are the docstrings rendered in the API docs as well, so it really is only when you're reading code at the raw level that it becomes an issue

Using the automatic propagation methodology from a single source that you are proposing here I have the following remark. I don't see why we need to place the ground truth for an argument docstring in an specific function. I think it is better to just write the docstrings directly somewhere else like you do in #273 with the docstrings.py file. That way, you avoid having to do the extra computation of parsing at run time while keeping the docstring still accesible by click through navigation. Is there any downside to this that I am not seeing?

We might want to alter the docstring for two args that have the same name.

Examples of this include file_path, which has a different description in every data interface, and metadata, which has a different description to inform the usage depending on the tool/interface.
Cases like that would not make sense to standardize like this.
But can we think of a case for extremely common arguments like nwbfile, nwbfile_path, *_options where we might want to alter them specific to a particular function? Their use is uniform across all our cases in all the tools/interfaces, so that's the case I'm focusing on here

@CodyCBakerPhD

You know my feelings on decorators  especially after some recent errors from the NWB Inspector caused by 'too much decorator magic' I do try to avoid them as much as possible since they do a very good job at hiding what they actually do, which can make it very hard and time consuming to fix them if they cause a problem.

Yeah, I share those fellings, this is a recluctant recommendation on my side which is maybe a good argument in favor (don't use them unless YOU REALLY need them).

Yeah, it's my one reservation about this as well, which is why I prefer the import structure from https://github.com/catalystneuro/neuroconv/pull/273 more since you can, from either an editor/IDE or the web interface, just navigate the import structure back to where its commonly defined (or from web interface, just click the 'reference' tab and should lead you straight to it).

Great we seem to agree on this.

Examples of this include file_path, which has a different description in every data interface, and metadata, which has a different description to inform the usage depending on the tool/interface.

Right, I am assuming that we will only test for some of them to be unique. I am also expecting some exceptions even with that restriction but I have not think this through.

Using the automatic propagation methodology from a single source that you are proposing here I have the following remark. I don't see why we need to place the ground truth for an argument docstring in an specific function.

It's also ambiguous and relatively arbitrary what you choose that function to be. Here in #274 I chose that to be the BaseRecordingExtractor but it also applies to ophys interfaces and tools.roiextractors, which makes for an awkward function import if pulling from a NumpyDoc.
This is all specific to the conversation about standardizing common docstrings like for *_options, another trajectory we're discussing in the broader issue #278 is for interface-specific arguments to 'inherit' parts of their docstring from upstream so that if SI ever changes those docstrings, we don't have to think about it and propagate it ourselves here on NeuroConv.

Let's discuss in #278 then reopen when we settle on an approach (and if we even want to do this)


Fix renderTree losing the id from RadialGradient nodes

The serializeTreeNode implementation for RadientGradient nodes was based on
genericSerializeNode when it should have been based on genericSerializeWithDrawAttr

The force push was to handle also LinearGradient nodes, which suffered from the same typo. No other node type is affected, so this concludes the fix.


Correct link to former react.rocks website

react.rocks has moved to js.coach and the packages at react.rocks aren't up to date anymore.

You're right. react.parts redirects to /native as well

Cool, and welcome to the React Native project :smile:. Just two more steps if you don't mind, and we'll get this committed:

Sign the Facebook CLA
Squash your two commits into a single one.

And for anyone wondering if this move is legit, here's the current header from react.parts:

Cool, feel free to merge :)

Thanks @webwelten and @corbt!


AudioGraph API FrameOutputNode

Hey there!
I was missing something in the examples for the Audio Graph API that is really important for me and I can't figure out how to do this.
When I connect an AudioFileInputNode with an AudioFrameOutputNode, I am able to the read frame data with this code:
AudioBuffer buffer = frame.LockBuffer(AudioBufferAccessMode.Read);
IMemoryBufferReference reference = buffer.CreateReference();
((IMemoryBufferByteAccess)reference).GetBuffer(out byte* dataInBytes, out uint capacityInBytes);
float* dataInFloats = (float*)dataInBytes;

As I learned from this stackoverflow answer, the bytes that read into the buffer have to be considered as bytes of floats. But how do I get the actual byte data of a file that I opened with the graph from these floats?
For example, I read a WAV with PCM 16000Hz, 16 bit mono and the raw bytes of that wav are shorts:
0 0 | 255 255 | 254 255 | 255 255 | 255 255 | 254 255 | 253 255 | 252 255 ...

But the buffer of AudioFrameOutputNode reads the following bytes:
0 0 0 0 | 0 0 0 184 | 0 0 128 184 | 0 0 0 184 ...

which I assume are floats.
But the question is how do I get the actual raw shorts from these floats?
Is there some type of conversion I can use?
As you can see in the example, the sample 255 255 in shorts seems to map to sample 0 0 0 184 in float. What's the magic behind that?

Have you tried using the DataReader? It's designed to convert buffers of bytes (and also streams) and read the values as floats, ints, and so on. Note that you should set the "endian" property to the needed value (network default is big endian, but some formats use little endian. And some, weirdly, use both)

@erksch are you doing this in the context of a IBasicAudioEffect? If so, what happens if you change your SupportedEncodingProperties from MediaEncodingSubtypes.Float (as in the example) to MediaEncodingSubtypes.PCM instead? I've only ever used floating-point samples in my audio effects but perhaps specifying PCM or another of the subtypes might work. Not sure.

@Zofware Nope, I am not using any effects. But I set the graph's and output node's encoding properties properly to PCM 16000Hz 16 Bit Mono like this:
var encoding = MediaEncodingProfile.CreateWav(AudioEncodingQuality.Auto);
encoding.Audio = AudioEncodingProperties.CreatePcm(16000, 1, 16);
var settings = new AudioGraphSettings(AudioRenderCategory.Speech);
settings.EncodingProperties = encoding.Audio;

var result = await AudioGraph.CreateAsync(settings);
var graph = result.Graph;

var localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
StorageFile file = await localFolder.GetFileAsync("my-16kHz-16bit-mono-audio.wav");
var fileInputNodeResult = await graph.CreateFileInputNodeAsync(file);
var fileInputNode = fileInputNodeResult.FileInputNode;

fileInputNode.FileCompleted += async (AudioFileInputNode sender, object args) => { graph.Stop(); };

frameOutputNode = graph.CreateFrameOutputNode(encoding.Audio);
fileInputNode.AddOutgoingConnection(frameOutputNode);
graph.QuantumStarted += AudioGraph_QuantumStarted;

graph.Start();

@PeterSmithRedmond I don't quite understand, how should I use the DataReader insight of the Quantum callback to convert floats to shorts? I know that I can easily read the shorts from the file itself  with a BinaryReader like this:
FileStream f = new FileStream(file, FileMode.Open);
BinaryReader br = new BinaryReader(f);
br.ReadBytes(44); // Skip bytes until the actual data starts
var shorts = new shorts[length];
for (int i = 0; i < length; i++) {
    shorts[i] = br.ReadInt16();
}

But I specificly want to use the Audio Graph API for loading my file and providing me the bytes.

@PeterSmithRedmond But how would I use the DataReader class to read from the buffer? I see there is a method DataReader.FromBuffer(IBuffer), but how do I convert an Windows.Media.AudioBuffer to an Windows.Storage.Streams.IBuffer. Can you provide example code?

Buffer.CreateCopyFromMemoryBuffer will convert an IMemoryBuffer (which AudioBuffer implements) to a Buffer (which is an IBuffer). Not the most efficient way since it makes a copy. Why are you averse to using BitConverter.ToSingle?

I want to convert the floats to shorts, not the other way around.
The Audio Graph API reads samples as floats although they are actually shorts in the audio.

The page you linked says "the data range for each sample is from -1 to 1", so presumably -1.0f corresponds to 0 and +1.0f corresponds to 65535.

Ah now I get it! It's just a scale conversion. Thank you so much.
But I have to say this is not really clear from the docs or the samples.

The sample does show that it's an array of floats. If the original format wasn't an array of floats, then there is naturally a format conversion. The nature of the format conversion depends on the format. In your specific example, the conversion was linear. Other formats can be more complicated (such as u-law). It's really out of the scope of the documentation to show how to convert every possible format. You need to apply your understanding of the format. I guess the documentation could say "The buffer is in the form of an array of samples. Each sample is a series of IEEE single-precision floating point values in a linear range from -1.0 to +1.0, one value per channel." It's then up to you to understand how your format converts to that format.

I have a question that is quite closely related to this one. I have connected an input node to a FrameOutputNode. Reading the data from the outputnode, I get values >1.0 / -1.0 . Is this to be expected when connecting a microphone to a FrameOutputNode, or is there an error in my code?
`            using (Windows.Media.AudioBuffer buffer = frame.LockBuffer(Windows.Media.AudioBufferAccessMode.Write))
using (IMemoryBufferReference reference = buffer.CreateReference())
{
byte* dataInBytes;
uint capacityInBytes;
float* dataInFloat;
            // Get the buffer from the AudioFrame
            ((IMemoryBufferByteAccess)reference).GetBuffer(out dataInBytes, out capacityInBytes);
            int numBytes = (int)capacityInBytes;
            int numFloats = numBytes / sizeof(float);
            dataInFloat = (float*)dataInBytes;
            short[] pcm = new short[numFloats];
            for (int i = 0; i < numFloats; i ++)
            {
                float sample = dataInFloat[i];
                short convertedSample = Convert.ToInt16((65535 * sample - 1) / 2);
                pcm[i] = convertedSample;
            }
        }
    }`

If you're receiving float samples known to be in the range [-1.0f, 1.0f] inclusive, your conversion to Int16 should probably be something like Convert.ToInt16(sample * 32767.0f). That would give you signed integer sample values in the range [-32767, 32767] inclusive. If you're concerned about out-of-bounds input samples then you might need to add a clamp to limit the input range to +/-1.0f inclusive.

Thank you very much for your reply. Is there any guaranteed range of the floats coming out of the FrameOutputNode? If I configure Graph to use 16 bit samples like so:
        private void CreateFrameOutputNode()         {               frameOutputNode = audioGraph.CreateFrameOutputNode(Windows.Media.MediaProperties.AudioEncodingProperties.CreatePcm(8000, 1, 16));           //   frameOutputNode = audioGraph.CreateFrameOutputNode();             audioGraph.QuantumStarted += AudioGraph_QuantumStarted;         }, that would mean that in general, a short should suffice to represent the sample, or am I missing something?

In other words: how do I know what range I get from my FrameOutputNode? I'm kinda lost on this one. Thank you very much in advance.

I have limited experience here, but every audio graph I've ever set up seems to pass float samples around regardless of how I configure the encoding properties. Sorry I can't be of more help here!


Python <=3.6 Maybe incompatible.

Some errors appeared in a project using python 3.6... Confirm that it is an error because of the version and

Increase the version requirement to 3.7.
Open a new issue to try to solve the version problem.

The problem appears not to be the version, see #43

The problem appears not to be the version, see #43


underhentai.net now has cloudflare protection

Maybe delete underhentai.net and use another side for hentai video download instead?

removed underhentai for now


Add Online Documentation for Built-In Blocks to repo

The advantage to tracking the documentation in the same repo as the code itself is that changes to docco can be tightly coupled to the code changes it describes.
blocks.html has been changed to index.html. Images are also added to the repository with related links updated. All other links in the html are now external links appinventor.mit.edu/explore
The links from appinventor.mit.edu/explore will need to be dealt with.
Closes #1355

@SusanRatiLane You should update the HELPURLs in the message files as well so that they will point to this copy of the documentation. Note that you can use relative URLs beginning with '/' for portability between servers.

HELPURLs are now updated.

From my search, the references to a2/support in Spanish and Chinese are already commented out. I left comments untouched, but changing the links does make sense.
Or do we just want to remove the comments? Would these blocks ever appear in the language again without a major rewrite anyway?


Only require createScript if window is not undefined so static sites …

…can render without build fails
Fixes https://github.com/prismicio/prismic-reactjs/issues/29

Hey @bschulz87, thanks for the PR, it's really appreciated ✌
Do you happen to know which part of the code is offending the Gatsby build?
I thought that checking for window would be enough or that document would actually be responsible for the build to break. Anyway, I'll merge and publish today


[BUG] Publish-Tweet - Cannot index into a null array

this pic describes it all

Can we get an alias for Send-Tweet to Publish-Tweet 😅

Hello @potatoqualitee
Get the same issue... and coming from Oauth (1 or 2) is not enable on my account (needed for write/publish tweet)

@potatoqualitee I assume this is still an issue. Can you provide the full list of parameters that will reproduce the error? Thanks.

I assume too 😅  in this case, it's just
Publish-Tweet -TweetText "New release! Check out the release notes"

with the api key and all that set with env vars

@potatoqualitee So, this is what I get.

@alagoutte Could you provide a way to replicate this?
If I can't replicate, I may just close this issue. We can always open a new one if it crops up again.

Coming from new account… don’t supportv1 API (only v2), need to upgrade account to get v1 (verify account API if remember)
easy to replicate ! Create a new account and enable API !

ohhh now i get it, thank you, @alagoutte !

Hopefully by handling the underlying issues correctly, the user will have some direction on how to mitigate this issue.
In the upcoming release, BluebirdPS will provide better exception handling. Here are some examples.
Publish-Tweet is a v2 endpoint.

The access level will also be addressed.
Add-TwitterSavedSearch is a v1.1 endpoint.

Essential access does allow access to v2 endpoints, but OAuth 1.0a must be used.
I tested this using a new account with Essential only access.

Possibly fixed via the above documentation or change from v1.1 to v2 Publish-Tweet.

ayyy ty


Striped table should ignore rows with .hide class

When working with filtering tables, if I hide a row in a striped table I break the even odd coloring and naturally end up with two rows of the same color. However, this persist even if I remove striped class from table and the re-apply the striped class. To me it would make more sense if rows with .hide was ignored.

This, while reasonable, may require something a little more than what Materalize does. It seems you may have to do something using javascript because you need to be able to totally remove an element (to allow the element flow to continue). The styling rule works like this:
table.striped tbody tr:nth-child(odd) {give grey background colour}
If you perform a simple display:none on the fourth row for example, the CSS still considers it as the second even row because the element still actually exists. Either that, or having custom CSS classes and re-applying those using javascript every time you fire whatever filtering functionality you're using.
Do you have a demo that we could apply some real-world scenarios to?

Yes, this can't really be done with just CSS. You will have to handle this yourself.


HTML img tag to next/Image to fix issue #136

I've changed the img tag to next/Image Components in CreatorSection.js and DiscordHome.js
Fix the issue #136

Can you give a screenshot? how it looks after changing it from img tag to next/Image tag. @ramdhanihendrie

Can you give a screenshot? how it looks after changing it from img tag to next/Image tag. @ramdhanihendrie

the load time of images was decreased

Nice good job. Just resolve the conflicts and the PR is good to go! @ramdhanihendrie

Is there a problem with the PR? because the PR has not been merged


How can I configure the SVGR built-in?

Question
How can I configure the SVGR built-in?
My current loader looks like this:
test: /\.svg$/,
use: {
  loader: '@svgr/webpack',
  options: {
    icon: true,
    replaceAttrValues: {
      '#1a171b': 'currentColor'
    }
  }
}

You can use the modifyBundlerConfig
// doczrc.js
export default {
  modifyBundlerConfig: (config) => {
    /* custom loaders */
    config.module.rules.push({
        test: /\.svg$/,
        use: '@svgr/webpack',
    });
    return config
  }
}

@lasimonne In your example you add the @svgr/webpack loader, but it is already integrated in the new version of docz. Let me know if I misunderstood something.

@danielbayerlein I might have misunderstood you, are you talking about .svgrrc configuration?

@lasimonne Thanks, I did not know the configuration file! But it looks like the configuration file is ignored. 😕

https://github.com/smooth-code/svgr#configurations

Hi @danielbayerlein, that's is something that we need to put on doczrc. I'll do that and put for the last release 🙏

oh, really? and this work actually with docz too @danielbayerlein ?

@pedronauck Yes, the configuration file .svgrrc works fine.

Cool! So, I'll let just this config instead of put a new property on doczrc, thanks to the tip dude 🙏


On applicant dashboard remove the Fund allocation column

This information is not collected anymore inside Hypha.

This information is not collected anymore inside Hypha.

Does it adds any value to the other's dashboard(like staff or finance) or should we just remove it from everyone's dashboard?

@sandeepsajan0  Good point. Remove it from all dashboards.

Great, already removed it from all dashboards in PR #3214.
Now, it only shows up on the projects listing page but I think we should just remove it from there as well.

Yes, I agree. Remove it from everywhere.

Looks great! 💥


Duplicate error message on package resolved

motivation: fix a bug where in some cases a duplicate error message is printed
changes: only try to load the graph if the previous operation succeeded

@swift-ci please test

@swift-ci please test linux

looks like testBrokenRefresh is still flaky, need to look into that again

This seems like a safe fix for release/5.4, though as noted in the main PR, it seems that we might still be susceptible to double warnings here. It might be worth reworking the code in main, though it's hardly the most important issue unless we're seeing double warnings today.

agreed, I think we can put this into 5.4 and discuss what better ways we have in #3257

@swift-ci please test linux


After upgrade to V3 no mails are sent

Describe the bug
TypeError: no implicit conversion of Array into String
To Reproduce
Follow official upgrade path from latest 2 to 3.
Expected behaviour
A working postal v3.
Screenshots

Environment details

OS: ubuntu
Browser safari, chrome
Version latest
Type desktop

Additional information/context
Add any other context about the problem here. It is particularily useful to include log extracts (after removing private information).

Are you able to find the full stack trace from within the logs? Probably somewhere in the postal logs worker output.

@willpower232 Will have to redo that. Since i was forced to restore a backup.

Can you confirm the exact version you’re running?

@adamcooke
CONTAINER ID   IMAGE                               COMMAND                  CREATED       STATUS        PORTS                                                                      NAMES
a34297612656   ghcr.io/postalserver/postal:2.2.2   "/docker-entrypoint.…"   5 weeks ago   Up 28 hours                                                                              postal-smtp-1
6ec9940805e8   ghcr.io/postalserver/postal:2.2.2   "/docker-entrypoint.…"   5 weeks ago   Up 28 hours                                                                              postal-worker-1
a4b242436d9c   ghcr.io/postalserver/postal:2.2.2   "/docker-entrypoint.…"   5 weeks ago   Up 28 hours                                                                              postal-cron-1
e699c9930eac   ghcr.io/postalserver/postal:2.2.2   "/docker-entrypoint.…"   5 weeks ago   Up 28 hours                                                                              postal-web-1
2ec30e60fbfc   ghcr.io/postalserver/postal:2.2.2   "/docker-entrypoint.…"   5 weeks ago   Up 28 hours                                                                              postal-requeuer-1
ac18cbbb80ab   rabbitmq:3.8                        "docker-entrypoint.s…"   2 years ago   Up 28 hours   4369/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, <IP_ADDRESS>:5672->5672/tcp   postal-rabbitmq
dd8d1f2d5478   mariadb                             "docker-entrypoint.s…"   2 years ago   Up 28 hours   <IP_ADDRESS>:3306->3306/tcp                                                   postal-mariadb
e3b3c5365e01   439af64db489                        "caddy run --config …"   2 years ago   Up 28 hours

this is aftter the restore, before was latest 2.2.x release before the major v3.

I have the same issue,
I can send emails using the SMTP connector with an API key, but when I try to reply to an email that try to use a route and an address endpoint
TypeError: no implicit conversion of Array into String

So, its related to ClamAV,
I turned off rspamd and retried, still not working.
i turned off clamav and retried and it was now working!
I enabled rspamd and it still is working.
turned back on clamav in postal.yml, and I now get this error again.
so its a good news overall, other than I wont be able to scan viruses.

@willpower232 any news on this matter? Other what community discussed?

I was waiting for @adamcooke to continue now he has your answer about which version, I just removed the stale tag to keep it open until he is able to reply

Tried upgrading again. Got same: TypeError: no implicit conversion of Array into String

@adamcooke hi, any updates on this matter?

Hi All, maybe not applicable, but I had the same issue just now after updating v2 to v3 (latest) and the same issues started coming up.
I debugged the logs and this drew my attention:
...
worker_1  | 2024-08-19 22:15:05 +0000 ERROR  Error talking to spamd: Errno::ECONNREFUSED (Connection refused - connect(2) for "<IP_ADDRESS>" port 783) component=worker thread=work0 original_queued_message=22521 queued_message=22521
worker_1  | 2024-08-19 22:15:05 +0000 INFO   internal error: TypeError: no implicit conversion of Array into String component=worker thread=work0 original_queued_message=22521 queued_message=22521
...

Seemed unlikely, but still weird that the one error before this was issue where Postal could not connect to SpamAssassin.
So I checked SpamAssassin service status and indeed, it was inactive:

As soon as I started it and re-tried delivering the failed emails... Boom, all worked fine.
Just leaving here in case it could help anyone.

@grrinch did you hit the same errors as me above in postal UI?

The exact same, also on Ubuntu.

@grrinch Thanks, will retry the upgrade. Have done this already twice always failed same way. And decided to wait for a fix. Yet that did not arrived yet. So will check your solution when at pc.


No option to select installation platform to show instructions

I'm trying to install rustc on a headless Ubuntu 14.04 box, and I browsed to https://www.rust-lang.org/en-US/install.html to look for instructions. But the instructions are all for Windows, the platform my browser was running under.
The instructions for Linux aren't visible without viewing the source code of the web page.

If you click on "Other installation methods" at the bottom of the page, it shows all platforms on one page.

If you click on "Other installation methods" at the bottom of the page, it shows all platforms on one page.

Indeed. It wasn't clear whether that was going to lead to an unorthodox installation technique.
What's not clear is how to install to somewhere other than my home directory - I don't want to have to install multiple copies for different users, and my home directory is encrypted, it's not even mounted depending on how I log in. But it's a separate issue.

Indeed. It wasn't clear whether that was going to lead to an unorthodox installation technique.
What's not clear is how to install to somewhere other than my home directory - I don't want to have to install multiple copies for different users, and my home directory is encrypted, it's not even mounted depending on how I log in. But it's a separate issue.


add Busuu, Mine. update Sololearn

Add Busuu as easy
Add Mine as easy
Update Sololearn to easy

Fixed.

Thanks for your contribution!


bpf: add libbpf 8.0 support

[x] Baseline support for libxdp 1.2.5 and libbpf 0.8.0
[x] Update readme to show how to build and install libxdp 1.2.5 and libbpf 0.8.0
[x] Update implementation to use USE_LIBXDP and USE_LIBBPF_8 directly

Hey folks
I'm not sure why the smoke test fails... when trying to use the USE_* flags directly for the XDP build
I've tried to replicate the failure on fresh ubuntu 22.04 container and haven't been able to. The build seems to pass.
Would appreciate any insight you may have as to why we see the error below if we don't use the flags from cne_common.h
FAILED: lib/core/xskdev/4934eeb<EMAIL_ADDRESS>cc -Ilib/core/xskdev/4934eeb@@cne_xskdev@sha -Ilib/core/xskdev -I../lib/core/xskdev -Ilib/include -I../lib/include -Ilib/core/osal -I../lib/core/osal -Ilib/core/log -I../lib/core/log -I. -I../ -Ilib/core/cne -I../lib/core/cne -Ilib/common/uds -I../lib/common/uds -Ilib/core/mmap -I../lib/core/mmap -Ilib/core/mempool -I../lib/core/mempool -Ilib/core/pktmbuf -I../lib/core/pktmbuf -I/usr/include/libnl3 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -O3 -g -Wno-pedantic -Wcast-qual -Wdeprecated -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -include cne_build_config.h -march=native -DCC_AVX2_SUPPORT -fPIC -MD -MQ 'lib/core/xskdev/4934eeb<EMAIL_ADDRESS>-MF 'lib/core/xskdev/4934eeb<EMAIL_ADDRESS>-o 'lib/core/xskdev/4934eeb<EMAIL_ADDRESS>-c ../lib/core/xskdev/xskdev.c
In file included from ../lib/core/xskdev/xskdev.c:28:
../lib/core/xskdev/xskdev.h:21:10: fatal error: xdp/xsk.h: No such file or directory
   21 | #include <xdp/xsk.h>
      |          ^~~~~~~~~~~
compilation terminated.

Is it because we have not installed libxdp on the test VMs or machines?

Is it because we have not installed libxdp on the test VMs or machines?

I don't think so... unless my logic in the meson file is not correct... it sets the USE_XDP flag to false then tries to find a suitable version of libxdp... if it's not found then that flag should remain false? I mean we even look for the header xdp/xsk.h :(
let me dig into it a little more

Is it because we have not installed libxdp on the test VMs or machines?

I don't think so... unless my logic in the meson file is not correct... it sets the USE_XDP flag to false then tries to find a suitable version of libxdp... if it's not found then that flag should remain false? I mean we even look for the header xdp/xsk.h :(
let me dig into it a little more

I managed to reproduce it... it looks like cne_conf.set10() wasn't being picked up properly? using cne_conf.set() seems to have fixed the issue

@KeithWiles I do have a stupid question... should I not need to define a xdp_dep in the dependency sets in the examples?
everything seems to compile and run as expected - but I'm just a little surprised as I didn't include xdp_dep in the dependency list for cndpfwd for example

The -lxdp should be enough as it is added to all link lines. The depend for libbpf and xdp_dep should not we used other then to find the libs. If we have it other places then it is not doing any harm I believe.


Wrong data type for MQTT

The type of the datapoint evcc/loadpoints/1/mode/set is generated as "number" instead of "string".
Setting this datapoint to "off", "no" or "pv" leads into an error in EVCC. After changing the type to string it is working but everytime the MQTT connection is being restarted the data type is back to "number"

type of the datapoint evcc/loadpoints/1/mode/set is generated as "number" instead of "string".

Mqtt is untyped. What do you mean?

After changing the type to string

What do you mean by that?

I don't know where the bug is really coming from. I have an MQTT client running on my ioBroker. As soon as the connection to EVCC is established I get all the datapoints in my ioBroker. But the datapoint for setting the mode is always of the wrong datatype. I changed the datatype in ioBroker to String and everything was fine. But afer reestablishing the connection the old datatype was back.

It's not clear that this has todo with evcc, closing.


[LLVMGPU] Make FP8 VMFMA intrinsic discoverable by KernelConfig

VMFMA_F32_16x16x32_F8E4M3FNUZ is only currently settable from tuning scripts. Previous commit has missed out on adding it in getVirtualIntrinsic which means we won't be able to find it if we use heuristic based search. This patches the issue above.

@qedawkins Currently, we can't really test the getVirtualIntrinsics functionality just yet, because our KernelConfig is not selecting any of these virtual intrinsics by default (yet), and we didn't want it to show in IR.
The actual decomposition and e2e test of this intrinsic is done in the previous PR here https://github.com/iree-org/iree/pull/19020

wait so doesn't that mean we don't want to do this then? i.e. we only pick this intrinsic in conjunction with the other one added before for attention?

wait so doesn't that mean we don't want to do this then? i.e. we only pick this intrinsic in conjunction with the other one added before for attention?

So right now we are not using it, since we are specifying the intrinsics through tuning script. But we are planning for @nithinsubbiah to add some heuristics in the tuner S.T it can choose these intrinsics when appropriate. But if we do not make it visible by adding it to getVirtualIntrinsics then we won't be able to find this virtual MFMA.

Any time! Will also update the PR description to make it clearer! :)


Help

Hey i love what you did with this code, i wanted to understand how to insert new variables to be converted.
At the moment im only getting the following variables

I wanted to get GPS speed, LongAcc and LatAcc etc.
At the moment im not getting any GPS channels
Another thing, I wanted to compare data from Mychron/ Alfano and Unipro which are 3 different dashes.
Do you know how i can use your code to do that for different dashes.

I don't have much time right now but I can tell you that GPS data is
converted even tho its not showing in the channel list.
On Sat, Sep 9, 2023, 20:29 brojob48 @.***> wrote:

Hey i love what you did with this code, i wanted to understand how to
insert new variables to be converted.
At the moment im only getting the following variables
[image: image]
https://user-images.githubusercontent.com/144521654/266797095-324cece7-91b3-45a9-87e4-98e01e323af7.png
[image: image]
https://user-images.githubusercontent.com/144521654/266797084-32ec0b67-beeb-43c0-9efc-5102c279113d.png
I wanted to get GPS speed, LongAcc and LatAcc etc.
At the moment im not getting any GPS channels
Another thing, I wanted to compare data from Mychron/ Alfano and Unipro
which are 3 different dashes.
Do you know how i can use your code to do that for different dashes.
—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOJLFXUXOXMOMYDSPK3I5GLXZSYO3ANCNFSM6AAAAAA4RTLXYM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Ah sorry to take your time !
Nice, im gonna take a look, im sure the GPS_Speed channel was listed as a math channel in Motec and i couldnt see any values on it... Is there anywhere in the code i can change the name?
I know aim changes some of their channels depending on the Mychron version, that might be the reason.

I don't know much about dashes sorry. To compare data use the converted
file and open it in Motec.
On Sat, Sep 9, 2023, 20:29 brojob48 @.***> wrote:

Hey i love what you did with this code, i wanted to understand how to
insert new variables to be converted.
At the moment im only getting the following variables
[image: image]
https://user-images.githubusercontent.com/144521654/266797095-324cece7-91b3-45a9-87e4-98e01e323af7.png
[image: image]
https://user-images.githubusercontent.com/144521654/266797084-32ec0b67-beeb-43c0-9efc-5102c279113d.png
I wanted to get GPS speed, LongAcc and LatAcc etc.
At the moment im not getting any GPS channels
Another thing, I wanted to compare data from Mychron/ Alfano and Unipro
which are 3 different dashes.
Do you know how i can use your code to do that for different dashes.
—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOJLFXUXOXMOMYDSPK3I5GLXZSYO3ANCNFSM6AAAAAA4RTLXYM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Yes theres a file that you can add entries for names to be converted but it
would need the application to be compiled again.
On Sat, Sep 9, 2023, 20:35 brojob48 @.***> wrote:

Ah sorry to take your time !
Nice, im gonna take a look, im sure the GPS_Speed channel was listed as a
math channel in Motec and i couldnt see any values on it... Is there
anywhere in the code i can change the name?
I know aim changes some of their channels depending on the Mychron
version, that might be the reason.
—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1#issuecomment-1712573938,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOJLFXRJZQ256C542QS5BCTXZSZIZANCNFSM6AAAAAA4RTLXYM
.
You are receiving this because you commented.Message ID:
@.***>

Ive changed code so that theres .txt file that contains the names to be converted. No need for recompile

Ah sorry to take your time !
Nice, im gonna take a look, im sure the GPS_Speed channel was listed as a math channel in Motec and i couldnt see any values on it... Is there anywhere in the code i can change the name?
I know aim changes some of their channels depending on the Mychron version, that might be the reason.

channel alias and channel mappings are the way to unify channel names across multiple log files in i2

I started to do that yesterday but they don’t show up on the app as being
renamed right?
I also saw that some channels are not showing up or being converted. But
I’m going to try what you said
On Tue, Sep 12, 2023 at 03:20 Mitch @.***> wrote:

Ah sorry to take your time !
Nice, im gonna take a look, im sure the GPS_Speed channel was listed as a
math channel in Motec and i couldnt see any values on it... Is there
anywhere in the code i can change the name?
I know aim changes some of their channels depending on the Mychron
version, that might be the reason.
channel alias and channel mappings are the way to unify channel names
across multiple log files in i2
—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1#issuecomment-1714825271,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCOTTNSPG2KTQO4HG5SPKOTXZ62F5ANCNFSM6AAAAAA4RTLXYM
.
You are receiving this because you authored the thread.Message ID:
@.***>

Ah sorry to take your time !

Nice, im gonna take a look, im sure the GPS_Speed channel was listed as a math channel in Motec and i couldnt see any values on it... Is there anywhere in the code i can change the name?

I know aim changes some of their channels depending on the Mychron version, that might be the reason.

channel alias and channel mappings are the way to unify channel names across multiple log files in i2

Where exactly is that? I'm not really a programmer, I'm a engineer that is trying to get something done hahahahah

Yeah thats exactly why I changed it so that theres no code changes to make. Theres an .txt containing the name conversion next to the .exe app. Hope it helps

look in the help file, it describes channel mappings and aliases completely
On Tue, Sep 12, 2023, 5:51 AM brojob48 @.***> wrote:

Ah sorry to take your time !
Nice, im gonna take a look, im sure the GPS_Speed channel was listed as a
math channel in Motec and i couldnt see any values on it... Is there
anywhere in the code i can change the name?
I know aim changes some of their channels depending on the Mychron
version, that might be the reason.
channel alias and channel mappings are the way to unify channel names
across multiple log files in i2
Where exactly is that? I'm not really a programmer, I'm a engineer that is
trying to get something done hahahahah
—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1#issuecomment-1715495158,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI62NLSRR6QOJXA25TCOQUTX2A5EXANCNFSM6AAAAAA4RTLXYM
.
You are receiving this because you commented.Message ID:
@.***>

I was now able to convert all my channels to Motec, it was very good! Thank You!
But when i plot all the data i still cant used the GPS data basically... Do you think it is possible to get the distance X axis with a time compare from the converted data instead of only the time based graph?

I can't tell you what it really is; I can only tell you what it feels like.
I dont know if that's possible, wether if it's in i2 or in the conversion

you'll need to set calculated speed and distance up correctly.
On Thu, Sep 14, 2023, 6:00 AM brojob48 @.***> wrote:

I was now able to convert all my channels to Motec, it was very good!
Thank You!
But when i plot all the data i still cant used the GPS data basically...
Do you think it is possible to get the distance X axis with a time compare
from the converted data instead of only the time based graph?
—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1#issuecomment-1719234313,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI62NLWORZBOE7MDQKD5VYLX2LPWTANCNFSM6AAAAAA4RTLXYM
.
You are receiving this because you commented.Message ID:
@.***>

This tool is amazing! I am having one issue where when I generate a track map in i2 from the data, I cannot generate sections. The map generates correctly using either GPS data or speed/accel but the "generate sections" button is greyed out. I'm guessing there is some data missing to enable this due to channel mappings, but haven't been able to figure it out. Any ideas? Thanks!!

This tool is amazing! I am having one issue where when I generate a track map in i2 from the data, I cannot generate sections. The map generates correctly using either GPS data or speed/accel but the "generate sections" button is greyed out. I'm guessing there is some data missing to enable this due to channel mappings, but haven't been able to figure it out. Any ideas? Thanks!!

I was able to solve it! For anyone else - using the "channel mappings" to get the default motec channel names is the key. I had been using math channels to convert, but need to be "channel mapping"

Thanks so much! Man solved his issue in 20 mins thats impressive! 😂
Because I have no experience in both software, I don't know much of the
features. I was tasked to make the data conversion, so I can't help much
with channel mapping.
Glad to hear that you found a solution!
On Sat, Mar 2, 2024, 08:18 claykos @.***> wrote:

This tool is amazing! I am having one issue where when I generate a track
map in i2 from the data, I cannot generate sections. The map generates
correctly using either GPS data or speed/accel but the "generate sections"
button is greyed out. I'm guessing there is some data missing to enable
this due to channel mappings, but haven't been able to figure it out. Any
ideas? Thanks!!
I was able to solve it! For anyone else - using the "channel mappings" to
get the default motec channel names is the key. I had been using math
channels to convert, but need to be "channel mapping"
—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1#issuecomment-1974620404,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOJLFXWSC5EXYRQUKUCFPHLYWF4OBAVCNFSM6AAAAAA4RTLXYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUGYZDANBQGQ
.
You are receiving this because you commented.Message ID:
@.***>

lol wtf, you don't even use it?!?
On Sat, Mar 2, 2024, 3:58 AM Ludovic Bouchard @.***>
wrote:

Thanks so much! Man solved his issue in 20 mins thats impressive! 😂
Because I have no experience in both software, I don't know much of the
features. I was tasked to make the data conversion, so I can't help much
with channel mapping.
Glad to hear that you found a solution!
On Sat, Mar 2, 2024, 08:18 claykos @.***> wrote:

This tool is amazing! I am having one issue where when I generate a
track
map in i2 from the data, I cannot generate sections. The map generates
correctly using either GPS data or speed/accel but the "generate
sections"
button is greyed out. I'm guessing there is some data missing to enable
this due to channel mappings, but haven't been able to figure it out.
Any
ideas? Thanks!!
I was able to solve it! For anyone else - using the "channel mappings"
to
get the default motec channel names is the key. I had been using math
channels to convert, but need to be "channel mapping"
—
Reply to this email directly, view it on GitHub
<
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1#issuecomment-1974620404>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AOJLFXWSC5EXYRQUKUCFPHLYWF4OBAVCNFSM6AAAAAA4RTLXYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUGYZDANBQGQ>

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1#issuecomment-1974750978,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI62NLUREK6U76WIXA4YBDDYWGPD3AVCNFSM6AAAAAA4RTLXYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUG42TAOJXHA
.
You are receiving this because you commented.Message ID:
@.***>

Nope, I am not part of any team or anything. Just a young programmer who got tasked to make a converter app !

Thanks so much! Man solved his issue in 20 mins thats impressive! 😂 Because I have no experience in both software, I don't know much of the features. I was tasked to make the data conversion, so I can't help much with channel mapping. Glad to hear that you found a solution!
…
On Sat, Mar 2, 2024, 08:18 claykos @.> wrote: This tool is amazing! I am having one issue where when I generate a track map in i2 from the data, I cannot generate sections. The map generates correctly using either GPS data or speed/accel but the "generate sections" button is greyed out. I'm guessing there is some data missing to enable this due to channel mappings, but haven't been able to figure it out. Any ideas? Thanks!! I was able to solve it! For anyone else - using the "channel mappings" to get the default motec channel names is the key. I had been using math channels to convert, but need to be "channel mapping" — Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJLFXWSC5EXYRQUKUCFPHLYWF4OBAVCNFSM6AAAAAA4RTLXYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUGYZDANBQGQ . You are receiving this because you commented.Message ID: @.>

Lol - I was messing with it for at least 3 hours before posting here. Just needed that last 20 mins after I asked! The issue was because the channel units of measure (eg mph, G, G, ...) do not seem to come across in the translation. Without that Metadata i2 doesn't seem to "understand." Using the channel mappings in i2 I can define a new name and add default units. That resolved it.

okay, lol.
channel mappings will allow you to edit channel names AND their respective
units.
channel alias is solely for names, and allows a list of aliases to a single
channel.
when generating track maps and lap times,
generate lap times before you generate a track map, and pick the fastest
lap to generate the track map from.
everything else gets rather particular
On Sat, Mar 2, 2024, 9:06 AM Ludovic Bouchard @.***>
wrote:

Nope, I am not part of any team or anything. Just a young programmer who
got tasked to make a converter app !
—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1#issuecomment-1974824519,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI62NLSHRZHP3CR7VT4OKXDYWHTH3AVCNFSM6AAAAAA4RTLXYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUHAZDINJRHE
.
You are receiving this because you commented.Message ID:
@.***>

nice

Yes! Pretty familiar with i2 but never had to deal with channel mappings as the data was coming off motec devices so units/names were as expected. At first was creating math channels to resolve the missing units and that mostly worked, and got me to a track map and plots that worked but something in the background wasn't quite right....

Had the same issue and was able to fix the channels through channel mapping.
But I am now facing an issue when putting GPS speed onto a rainbow track, it just disappears. That also goes for every other channel. The channel outings for GPS Speed work properly though.

Love this convertor. I'm wondering if it's possible to convert to Standard log files (rather than Pro log files). I see a comment or two in the source code, but I'm wondering if more information is available?
eg:
// ProLogging related ?
writer.Write((uint)0xD20822); //0x824404

all pro log files work in i2 standard,
idk why you'd use i2std when you have the option for i2pro,.
On Fri, Jun 14, 2024, 1:13 PM unrivaledrides @.***>
wrote:

Love this convertor. I'm wondering if it's possible to convert to Standard
log files (rather than Pro log files). I see a comment or two in the source
code, but I'm wondering if more information is available?
eg:
// ProLogging related ?
writer.Write((uint)0xD20822); //0x824404
—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1#issuecomment-2168529935,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI62NLQ2M4JDEWUCBLN3DZDZHMXD5AVCNFSM6AAAAABJKZMG5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGUZDSOJTGU
.
You are receiving this because you commented.Message ID:
@.***>

What I'd really like to understand is the difference between Std and Pro files so that I could convert std files to pro.

4 bytes are checked against details and an algorithm is made to validate
pro was enabled..
Ill leave it at that. I'm not trying to get in a legal situation with
Bosch.
it can be done
On Fri, Jun 14, 2024, 1:19 PM unrivaledrides @.***>
wrote:

What I'd really like to understand is the difference between Std and Pro
files so that I could convert std files to pro.
—
Reply to this email directly, view it on GitHub
https://github.com/ludovicb1239/Aim_2_MoTeC/issues/1#issuecomment-2168540513,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI62NLX62YTUYJ4A3XNCR6TZHMX33AVCNFSM6AAAAABJKZMG5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGU2DANJRGM
.
You are receiving this because you commented.Message ID:
@.***>

Understand. Many thanks.

Yea play around with this line, i think putting anything will make the file strd but I aint so sure.

Sure does, but adding it to a std file doesn't make it pro. I'm licensed to view std files in i2pro, but the notion caught my curiosity.

If I remember correctly, there's a few things that need to be right for a file to be pro

One other comment: I need to change the logging device type from ADL to M1 to be able to use a lot of my workbooks. There are some differences there. Perhaps a menu option would be useful, though if I remember right, Circuit workbooks are the most flexible so ADL is usually better.


Configurable Generic Decorators for Swift

Resolves #86.
Default type constraints can now be specified for Swift within the config, and type constraints can be appended to with #[typeshare(swift(generic_decorators = "A & B & C"))].

@kevinbhayes I've been trying to fix this - it looks like parenthesized parameters like swift(...) were being ignored by the Swift codegen code, and this issue runs deeper than I expected.

@kevinbhayes I've been trying to fix this - it looks like parenthesized parameters like swift(...) were being ignored by the Swift codegen code, and this issue runs deeper than I expected.

If you want to break that part off into a separate issue, that's ok with me. I think we'll be using the toml definitions anyway.

@kevinbhayes Okay, I'll split this PR.


Feature: Add paper links to research body and research intro page

Let's have direct links to article content (files) on the introductory page site and the on the link article themselves.

Sounds good!

As I post things now, I fill in the titles just to create the slugs, assuming the titles will now be displayed. How are slugs created without titles? Shall we keep them and just not display them?
Where do I upload Pdfs?

I now have three articles saved. Let us see how the setup works. Before I create more, I would like to check with you:

Does it make sense as I do now to use a blue pallet in different shades? I am just using a powerpoint default now and it is not pretty.
How do my articles get published? Now I can see no results from publishing?
Where to put my pdf uploads.
THANK YOU!!

Closed this because the links are now internal to each page + auto populate within the /research, /articles, and /blog endpoints.


Keras output shape is different for versions 0.3.2 -> 1.0.1

I found some of my personal tests failing after upgrading from 0.3.2 to 1.0.1 (0.3.3 als didn't work, but I did not investigate that).
The problem is that when I train a model with inputs of shape (100, N0), (100, N1), ... etc I would expect an output of (100, Nout), yet I get an output of shape (Nout). This is illustrated by this minimal working example (using version 1.0.1):
import keras
from keras.models import Graph
from keras.layers import Dense
import numpy

N_continuous = 10
N_categorical = 5
N_output = 2

categorical = (numpy.random.randn(100,N_categorical) > 0).astype(numpy.float32)
continuous  = numpy.random.randn(100,N_continuous)
output      = numpy.random.randn(100, N_output)

graph = Graph()

graph.add_input(name='continuous', input_shape=(N_continuous, ))
graph.add_node(Dense(N_output, activation='linear'), name='linear_models', input='continuous')

graph.add_output(name='regression_output', input='linear_models')

graph.compile(optimizer='rmsprop', loss={'regression_output': 'mse'})

graph.fit(data={'continuous': continuous, 'categorical': categorical, 'regression_output': output}, nb_epoch=1)
print( graph.predict({
    'continuous': continuous,
    'categorical': categorical,
    'regression_output': output
})['regression_output'].shape )

print(keras.__version__)

The output is (2, ) for the shape and 1.0.1 for the __version__.
In version 0.3.2 the output shape is (100, 2), which I would expect. Why are the shapes different for different versions? Which one is/ones are correct? Is my NN-architecture 'defective'?
Theano has version 0.9.0dev0.dev-5e5e5cc5581a88ab425b9bd73b7719efbd10f6d3
Thank you in advance!

It's a problem with the legacy API and only happens with single output graphs. Temporary fix: remove lines 905-906 in engine/training.py
@fchollet: legacy Graph.predict expects a list of results, but Model._predict_loop returns the bare result when there's only one output...

Thank you @NasenSpray. For my comfort: this is a Keras or lower (theano, tensorflow, ...) issue, and not something in my code?

For my comfort: this is a Keras or lower (theano, tensorflow, ...) issue, and not something in my code?

It's a Keras issue. But you shouldn't use the graph API anymore, it was deprecated in favor of the functional API.

Moreover, most neural networks will have one output-node with multiple output-values, so wouldn't this affect most users?

idk, maybe? (note: I'm just another user)

@NasenSpray  any update on Theano/Theano/#4289 , still using your fork to avoid this problem =)

But you shouldn't use the graph API anymore, it was deprecated in favor of the functional API.

Clear!  It's unrelated to this thread.


Make sure that the JWT comes from the cookies

This will make sure that the token isn't stored in the browser's localStorage and thus be exposed to the outside world. By having the cookie be httponly, we will also restrict the JS code from accessing it.
We could/should replace our semi-custom JWT implementation by https://indominusbyte.github.io/fastapi-jwt-auth/usage/jwt-in-cookies/
This will also make sure that the client can authenticate transparently, as the backend will answer with a set-cookie HTTP Response header.

Also https://website.simplx.fr/blog/2016/09/27/authentification-api-via-jwt-et-cookies/ is a good explanation as to why storing JWT in http-only cookies is a secure option.


Fixing broken torque-categories for string columns with more than 10 results

Looks like with the last changes over the styles rendering and how we manage the occurrences with ramps and so on, we broke the case with torque-categories for string columns, always having more than 10 results (others case).
Also fixed the problem with others for any other type of column, the ELSE of the query wrapper should always point to the Others value number, in this case 11.
CR: @javierarce
Fixes #10433

Ping :)


Update Copyright

Update copyright from 2019 -> 2021

Merged in https://github.com/markdirish/node-odbc/pull/155


Ts example "typo"?

shouldn't that be tsconfig.tsbuildinfo and not "just" .tsbuildinfo?
at least that is what the file is called that gets created by my ts version (4.8.4)
also that file lives in the lib folder?
or am I looking at the wrong file? 🤔
{
  "scripts": {
    "ts": "wireit"
  },
  "wireit": {
    "ts": {
      "command": "tsc --build --pretty",
      "clean": "if-file-deleted",
      "files": ["src/**/*.ts", "tsconfig.json"],
-      "output": ["lib/**", ".tsbuildinfo"]
+      "output": ["lib/**", "lib/tsconfig.tsbuildinfo"]
    }
  }
}

I could've sworn I've seen .tsbuildinfo being generated as a default which put me through a rabbit hole. It seems it depends on a lot of other configurations. https://github.com/microsoft/TypeScript-Website/issues/2393
I'm sure people reading the example will easily figure out where and what their own .tsbuildinfo is named as, but I do think your example look more sensible with outDir is set to lib.


add environment documentation (#2785)

Docs Build status updates of commit b92ffeb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

TerminalDocs/customize-settings/profile-general.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Hey @cinnamon-msft -- Has this been implemented yet?

@mattwojo no the pr https://github.com/microsoft/terminal/pull/9287 still needs a review.

Closing - this issue has been open for over a year and half in the Terminal product repo: https://github.com/microsoft/terminal/pull/9287
We can reopen or open a new PR on the docs once the feature has been added in the product. Thanks for filing this!


Improve design of responsive navbar

Current mobile navbar looks like this:

Please assign me this issue so that I can improve the design under GSSOC-23

Please assign me this issue under GSSOC 23

I would like to enhance the look of the navbar, kindly assign me this issue under GSSOC'23

Kindly assign me this issue under GSSOC'23.
The navigation bar component will encompass the following key features:
Menu Items: The navigation bar will support multiple menu items, allowing users to navigate to different sections or pages of the web application or website.
Dropdown Menus: It will provide the ability to include dropdown menus, enabling hierarchical navigation and organizing related links.
Responsive Design: The navigation bar will be responsive, adapting to different screen sizes and devices for optimal user experience.
Customizability: The component will be highly customizable, allowing users to modify the appearance, colors, and styles to match their project's branding and design requirements.
Accessibility: Accessibility features, such as keyboard navigation, ARIA attributes, and proper semantic structure, will be implemented to ensure an inclusive user experience.
The tech stack will be HTML, Tailwindcss, and Javascript for responsiveness.
and I can Implement Neumorphism and Glassmorphism UI Designs.

This issue will be open to all . Open a PR and we will merge the best one!!
Go ahead 🤩 @Avinash905 @MohnishK7 @imrish4 @smritimangal26

Hye assign me this issue under GSSOC'23

@akshathar-navada Hye assign me this issue under GSSOC'23

Hey @shraddha761 , this issue is resolved, if there is any other issue u want to work on, pls go ahead and open a PR. We would be happy to merge it:)


Error:  "Cannot read properties of null (reading 'rules')"

When running the latest svglint on ubuntu, it's failing to do any linting; I assume the problem stems from some recent update to svglint or one of its dependencies.
Here's what I get when trying it:
(x) Failed to lint file /home/lpsmith/biomodels-qc/tests/fixtures/BIOMD0000000692/BIOMD0000000692.svg
 TypeError: Cannot read properties of null (reading 'rules')
    at normalizeConfig (file:///usr/local/lib/node_modules/svglint/src/svglint.js:103:70)
    at lint (file:///usr/local/lib/node_modules/svglint/src/svglint.js:124:24)
    at Object.lintFile (file:///usr/local/lib/node_modules/svglint/src/svglint.js:152:16)

This happens regardless of the file I point it at, whether an actual SVG file or otherwise.

When running the latest svglint on ubuntu, it's failing to do any linting; [...]

Just to double check, latest being v2.3.0 (you can double check this by running npm ls svglint in your project)?

[...] I assume the problem stems from some recent update to svglint or one of its dependencies.

Does that imply it did work for you at some point in the past? If so, what version of svglint did work for you?

Here's what I get when trying it:
(x) Failed to lint file /home/lpsmith/biomodels-qc/tests/fixtures/BIOMD0000000692/BIOMD0000000692.svg
 TypeError: Cannot read properties of null (reading 'rules')
    at normalizeConfig (file:///usr/local/lib/node_modules/svglint/src/svglint.js:103:70)
    at lint (file:///usr/local/lib/node_modules/svglint/src/svglint.js:124:24)
    at Object.lintFile (file:///usr/local/lib/node_modules/svglint/src/svglint.js:152:16)

This happens regardless of the file I point it at, whether an actual SVG file or otherwise.

It seems something's going wrong with your configuration file. Could you share the configuration file (or a representative sample) or the whole project you're working with if it's publicly available?

There's no configuration file at all.  This is being run as part of a github action, where svglint is installed from npm, and then immediately used.  I'm not sure which version it was when it worked, but I know it used to work, and now fails--this could be due to any number of things, unfortunately, up to and including ubuntu itself being updated.
Here's the 'live' result of svglint failing:
https://github.com/biosimulations/biomodels-qc/actions/runs/4516731122/jobs/7955350793
The test is just 'run svglint on a png file'.  From when it used to work:
https://github.com/biosimulations/biomodels-qc/actions/runs/2150934692/jobs/3143682354
The workflow file is:
https://github.com/biosimulations/biomodels-qc/blob/dev/.github/workflows/ci.yml
The python code that calls the function is just:
def validate_svg_file(filename):
    """ Determine if a SVG file is valid

    Args:
        filename (:obj:`str`): path to SVG file

    Returns:
        :obj:`tuple`:

            * nested :obj:`list` of :obj:`str`: nested list of errors
            * nested :obj:`list` of :obj:`str`: nested list of warnings
    """
    result = subprocess.run(['svglint', filename], check=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    if result.returncode == 0:
        return [], []
    else:
        return [[result.stderr.decode()]], []

Investigating, I ran the same commands on my VirtualBox Ubuntu machine, and got the 'failed to lint file' error above.
Results from 'npm ls svglint':
lpsmith@lpsmith-VirtualBox:~/biomodels-qc$ npm ls svglint

/home/lpsmith/biomodels-qc

└── (empty)

lpsmith@lpsmith-VirtualBox:~/biomodels-qc$ svglint --version

2.3.0

https://github.com/birjj/svglint/pull/79 shows a fix that works for me (with no config file), though it fails the automatic tests here.
Thanks for looking into this!

There's no configuration file at all. This is being run as part of a github action, where svglint is installed from npm, and then immediately used. I'm not sure which version it was when it worked, but I know it used to work, and now fails--this could be due to any number of things, unfortunately, up to and including ubuntu itself being updated. [...]

Thanks for elaborating. Based on the "no-configuration-file-at-all" I was able to reproduce the issue. I was also able to determine that the issue first appeared in v2.2.0.
If you need a quick solution for your CI, you can change this line as follows:
-         run: npm install -g svglint
+         run: npm install -g<EMAIL_ADDRESS>

Results from 'npm ls svglint': [...]

Thanks for the details. the npm ls command only works if you have a npm manifest so it makes sense it came back empty. Thanks for sharing the svglint --version output, probably should've just asked for that :sweat_smile:

#79 shows a fix that works for me (with no config file), though it fails the automatic tests here.

I saw, thanks for jumping in with a fix! Just wanted to understand the problem better before looking at that - will try to look at this as soon as possible.

Thanks so much!  An immediate workaround and the promise of a fix is great.

Works for me!  Thanks again.


Add optional espresso-dev-node to cartesi run

This pull request introduces several new features and updates, primarily focusing on adding support for an Espresso development node and updating PostgreSQL versions in various Docker Compose files. The most important changes include adding a new feature flag for Espresso, updating Docker Compose configurations, and documenting new API endpoints.
New Features:

apps/cli/src/commands/run.ts: Added a new feature flag enable-espresso to enable the Espresso development node. [1] [2]

Docker Compose Updates:

apps/cli/src/node/docker-compose-database.yaml: Updated PostgreSQL image to version 16-alpine and exposed port 5432.
apps/cli/src/node/docker-compose-espresso.yaml: Added a new Docker Compose configuration for the Espresso development node, including services for espresso_database_creator, espresso, prompt, and traefik-config-generator.
apps/cli/src/node/docker-compose-explorer.yaml: Updated PostgreSQL image to version 16-alpine for the database_creator service.

Documentation:

espresso-notes.md: Added documentation for the Sequencer API, including Status API and Node API endpoints.

Changeset:

.changeset/odd-phones-grab.md: Documented the addition of the Espresso development node feature.This PR will add an optional espresso-dev-node  that could be enabled with --enable-espresso.

The espresso-dev-node will connect to the shared anvil and PostgreSQL of cartesi run.

It's possible to start testing with:
cartesi-dev --disable-bundler --disable-explorer --enable-espresso --verbose


[Bug]: Compilation errors occur when using @vanilla-extract/css with @vanilla-extract/sprinkles

Version
System:
    OS: macOS 15.0
    CPU: (8) arm64 Apple M1 Pro
    Memory: 133.89 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 129.0.6668.59
    Safari: 18.0
  npmPackages:
    @rsbuild/core: 1.0.5 => 1.0.5
    @rsbuild/plugin-react: 1.0.2 => 1.0.2

Details
working fine without @vanilla-extract/sprinkles. after integrating with @vanilla-extract/sprinkles getting below compile error
`

<EMAIL_ADDRESS>dev /Users/ramki/Work/poc/vanilla-extract
rsbuild dev --open

Rsbuild v1.0.7

Local:    http://localhost:3000/
Network:  http://<IP_ADDRESS>:3000/
Network:  http://<IP_ADDRESS>:3000/

start   Compiling...
/Users/ramki/Work/poc/vanilla-extract/src/App.css.ts:45
$ReactRefreshRuntime$.refresh(module.id, module.hot);
^
ReferenceError: $ReactRefreshRuntime$ is not defined
at /Users/ramki/Work/poc/vanilla-extract/src/App.css.ts:45:3
Node.js v20.10.0
 ELIFECYCLE  Command failed with exit code 1.
`
Reproduce link
https://github.com/raamkey/vanilla-extract
Reproduce Steps

execute pnpm install and pnpm dev
find the error message in the console

It looks like @vanilla-extract/sprinkles generates some modules in node_modules that conflict with react-refresh . Excluding these modules avoids the exception.
export default defineConfig({
  plugins: [
    pluginReact({
      reactRefreshOptions: {
        exclude: [
          /\.css\.ts$/,
+         /node_modules\/@vanilla-extract/,
        ],
      },
    }),
  ],
  tools: {
    rspack: {
      plugins: [new VanillaExtractPlugin()],
    },
  },
});