TCPSocket support for Firefox 67+

It seems the TCPSocket tests are failing on the current Firefox Developer Edition (67) and Nightly (68). The same tests can be run fine on Firefox 65.
Testing with tape-ext (on nightly) I get see the following failure:
ok 22 should be equal 8090 8090
ok 23 should be equal false false
ok 24 should be equal 0 0
ok 25 should be truthy true
ok 26 should be truthy true
ok 27 socket.write is function true
ok 28 socket.read is function true
ok 29 socket.suspend is a function true
ok 30 socket.resume is a function true
JavaScript error: resource://gre/modules/ExtensionUtils.jsm, line 0: Error: NetworkError: Network
ok 31 socket.close is a function true
JavaScript error: resource://gre/modules/ExtensionUtils.jsm, line 48: Error: Socket is not open
ok 32 socket.closeImmediately is a function true
not ok 33 server received message  Hello TCP

Would appreciate some guidance on how to further debug this.

I did some digging. It appears that sending a message from socket causes and error & it's closure. I also found out that using higher level APIs: TCPSocket & TCPServerSocket seems to work fine:
server = new TCPServerSocket(7770, {binaryType:"arraybuffer"})
server.connections = []

server.onconnect = connection => {
  server.connections.push(connection)
}

client = new TCPSocket('<IP_ADDRESS>', 7770, {binaryType: "arraybuffer"})

client.data = []
client.ondata = event => {
  client.data.push(event.data)
}

// wait

connection = server.connections.shift().socket
connection.data = []
connection.ondata = (event) => {
  connection.data.push(event.data)
}

// wait
encoder = new TextEncoder()
client.send(encoder.encode('ping').buffer)

// wait

connection.send(encoder.encode('pong').buffer)

// wait

decoder = new TextDecoder()
decoder.decode(new Uint8Array(connection.data.shift()))
decoder.decode(new Uint8Array(client.data.shift()))

client.close()
server.close()

Which makes me suspect that issues is somewhere with-in our XPCOM implementation of TCPServerSocketAdapter that was mostly in place to workaround bug 1474150 which as far as I can tell has being fixed (as I get an error when trying to start multiple servers on the same port).
While I'm curious in figure what is broken, it might be more effective to just rip out XPCOM workarounds and start using TCPServerSocket instead, which I would expect would resolve the problem.

Fixed by #96

👍🏼👍🏼👍🏼


OS X Sierra SITL instructions

brew uninstall gazebo7
brew untap osrf/simulation
brew tap px4/simulation
brew install gazebo7

Upstream PR: https://github.com/osrf/homebrew-simulation/pull/198

Its all compatible now.


Netherlands VAT wrongly reported as invalid

VAT number: NL002198178B09
result: invalid
expected: valid

{value: "NL002198178B09", isValid: true, isValidFormat: true, isSupportedCountry: true, country: {…}}
No it works. There is something wrong with your code


Solved why esp8266 (NodeMCU board) kept disconnecting from server with ADC pin read

Hi all,
Thanks Nick and all contributors for this library first of all.
I would like to mention a simple solution to a simple problem and then raise an issue.
My NodeMCU board (esp8266) kept disconnecting and I spent a considerable amount of time trying to work out through debugging and searching the issues thread, why it was disconnecting from the mqtt (mosquitto) server.
After trying so many different things (usually from solutions to other similar issues), eventually I worked out that I was reading the ADC pin much too frequently (every loop() function) which was causing the wifi to dropout (and thereby disconnecting the esp8266 from the mqtt server).
The below link explains the issue much better than me.
https://github.com/krzychb/EspScopeA0/tree/master/Bravo
I am suggesting this as a reason to update the front page (or add it to the wiki page) for pointing out obvious common issues and their solutions.  It does seem to me that the issues thread could possibly be clogged up with issues that have been solved before and it might just lower the number of issues being raised going forward.

Great, it worked for me too!!! Thanks so much! Now reading it every 3 secs solved the problem I was reading it without any delay...every loop!

THANK YOU SO MUCH!
By the way, I got by with the delay being 100ms, seems to be enough to capture a button switch

THANKS!


action: changes to go.mod and go.sum files do not inflict problems to…

… the build
Signed-off-by: Alon Firestein<EMAIL_ADDRESS>

 fix driver to point into 1.3.0-operator RC + test go.sum updates


Bump version to 0.13.1

It would be nice to get a new release

the CI failure is due to new assertions in the standard library with Rust 1.78


rename CLI to ta

As decided in #157.  Fixes #222.

One question above but aside from that looks good to me!

Is that question still in an un-saved buffer somewhere?

Is that question still in an un-saved buffer somewhere?

Woops, yes - I just realized the line comments start a "Review" thing which requires a subsequent button to be clicked!

Fixed and rebased.  I'll merge if it's green.


Error message for missing control_barcodes in 1.process-spots

In 1.process-spots at this point:
    # Number of non-targetting controls
    num_nt = passed_gene_df.query(
        f"{gene_cols[0]} in @control_barcodes"
    ).Cell_Count_Per_Gene.values[0]

it will error if there are no non-targeting controls at a site. This can happen because 1) biologically, the site actually doesn't contain control_barcodes, or 2) the barcodes you have listed in your config file don't match what is used in the experiment for control_barcodes.
Add in an error message to explain this, ideally parsing between the conditions.

Amazing find! Thanks for documenting this. One thing that would amp the value of this issue up is to also include the error message you received that led you to discover the bug. (no need to do now, I just fixed this)

btw, the solution in bc6dbae2a12b34522e45e3c475b1f042a5714642 also solves the problem of counting NT barcodes when there are more than one kind


Suggested issues from the goodpractice package

I ran goodpractice::gp() to identify likely sources of errors and style issues. I paste the output below as a png (only way I could easily share with you). I suggest downloading the goodpractice package and running it yourself to address these issues:

Attempts were made to address some of the issues raised by goodpractice::gp() in the commits above. Closing for now because I want another green badge on the README.


[HOW-TO] Facing the error - "Cannot read properties of undefined" when running in the headless mode

Question
What is your question?
My script is setting entity fields on the product form. When this field (e.g. contract length) is set, there is a JSscript calling async operation(code from backend) to perform some calculations on the fly within the form. Setting this field works perfectly when I use selenium and easyrepro in non-headless mode. But with using headless options I am getting this error
dialog with the message "Cannot read properties of undefined(reading 'ResultJson')" is shown for me.

Versions:
<?xml version="1.0" encoding="utf-8"?> <packages>   <package id="DotNetSeleniumExtras.WaitHelpers" version="3.11.0" targetFramework="net452" />   <package id="Dynamics365.UIAutomation.Api" version="9.2.22023.129-RW2-Preview" targetFramework="net472" />   <package id="Kentico.Internal.Dynamics.Types" version="2.0.6" targetFramework="net472" />   <package id="log4net" version="2.0.14" targetFramework="net472" />   <package id="Microsoft.CrmSdk.CoreAssemblies" version="<IP_ADDRESS>" targetFramework="net472" />   <package id="Newtonsoft.Json" version="13.0.1" targetFramework="net472" />   <package id="NUnit" version="3.13.3" targetFramework="net472" />   <package id="NUnit3TestAdapter" version="4.2.1" targetFramework="net472" />   <package id="Otp.NET" version="1.2.2" targetFramework="net472" />   <package id="Selenium.Firefox.WebDriver" version="0.27.0" targetFramework="net452" />   <package id="Selenium.Support" version="4.1.1" targetFramework="net472" />   <package id="Selenium.WebDriver" version="4.1.1" targetFramework="net472" />   <package id="Selenium.WebDriver.ChromeDriver" version="101.0.4951.4100" targetFramework="net472" />   <package id="Selenium.WebDriver.MSEdgeDriver" version="96.0.1054.26" targetFramework="net472" /> </packages>
2022 release wave 1 enabled
App name: Kentico CRM App
Organization name: Kentico Sandbox 20212909
Server version: 9.2.22041.00157
Client version: 1.4.4116-2204.1
Session ID: 8c96276f-fecc-4e22-9621-4e1fe1f3afb3
Time: 5/4/2022 3:47:31 PM GMT+0200 (Central European Summer Time)
Code sample:
        // And that order has a new yearly subscription product with quantiy 1 and contract length 12
        var product = order.AddProduct();
        product.ClearExistingProductContainer("*source");
        product.ExistingProduct = "Business - 1 Website Auto-Scalable Subscription with Source Code (Yearly)";

        XrmApp.ThinkTime(2000);

        product.ContractLength = "24";

        //SeleniumHelper.SetElementValue(product.ContractLengthElement, "36.00");
        Logger.Info("CL field set.");
        XrmApp.ThinkTime(4000);

        order = product.Command<OrderPage>("Save & Close");

My Implementation of getter(setter):
    [Description("Contract Length")]
    public string ContractLength
    {
        get
        {
            return XrmApp.Entity.GetValue(SalesOrderDetail.Fields.ken_contractlength);
        }
        set
        {
            XrmApp.Entity.SetValue(SalesOrderDetail.Fields.ken_contractlength, value);
        }
    }

Implementation of command method
    internal T Command<T>(string command) where T : new()
    {

        Logger.Info($"Clicking {command} button --> {new T().GetType()}");
        try
        {
            XrmApp.CommandBar.ClickCommand(command);
        }
        catch (Exception ex)
        {
            SeleniumHelper.TakeScreenShot();
            Logger.Error(ex.Message);
            Logger.Error(ex.StackTrace);
            throw;
        }

        Logger.Info($"Command {command} performed successfully.");
        return new T();
    }

Is anyone here who has faced this kind of issues? This situation is very frustrating.

Have you tried setting the viewport in for headless mode?
using System.Drawing;
var client = new WebClient(TestSettings.Options);
if (TestSettings.Options.Headless)
client.Browser.Driver.Manage().Window.Size = new Size(1920, 1080);


lspinfo: avoid overeager highlighting

This avoids the matchadd() shotgun highlighting.
Before:

After:

I also changed the highlight group for the filetype from Title to Identifier, but that's totally up to debate. It just felt right to use two different groups for different things.

Thanks for cleaning up my mess 😆


The scroll back to top button shows up even if we are at the top of the Landing Page

Description
When we visit the landing Page for the first time the scroll back to top button works perfectly (i.e. it's not visible if we are at the top of the page), when we scroll down and click on that button it works perfect but ideally the button should not be visible if we are already at the top of the Page.
Screenshots

Additional information
No response
🥦 Browser
Google Chrome
👀 Have you checked if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

[X] I have read the Contributing Guidelines

Are you willing to work on this issue ?
Yes I am willing to submit a PR!

Hey just wanted to let you know that it has something to do with the once:true part
I tried to do this too but couldn't do it without resetting the animation for all other elements Hope this helps you and you find the solution Good luck :)

Thanks for the help was able to do this while maintaining the Animation as well. @IAmTamal I had corrected this behavior although I'm not assigned yet, so should I make a PR or do it once someone assigns me??

@belphegor-s

Sorry totally forgot about  assigning the issue
Yes do make a PR we can review it !


Comics

<EMAIL_ADDRESS>is missing

As is<EMAIL_ADDRESS>

<EMAIL_ADDRESS>also needs adding - I think this is fairly newly created.

While the posts are mostly comics it's a franchise and other content is allowed. Maybe we should organise a "franchise" category and then make use of that "you may also be interested in" category that we discussed in the past?

Hmm, maybe it can go under "themes" for now?

If we're talking about a temporary short-term solution then I'd rather simply put it in the comics and move it later.

<EMAIL_ADDRESS>

This one has just popped up:
<EMAIL_ADDRESS>

Added them all to my local directory.


Do not return results from health check

It also removed old dependencies and takes disabled file path in ctor.

What do you think @juanignaciosl?

I understand result change, but if the rest is fine for you is fine for me :sparkles:

:ship: ing it!


GraphQL field instrumentation does not work for union return types

What version of OpenTelemetry are you using?
@opentelemetry/api v 1.4.1
What version of Node are you using?
18.16.0
What did you do?
Create a GraphQL API (I'm using Apollo but I don't believe it matters) with a query, mutation, or a field on an individual type whose response type is a union, eg:
type Foo {
  field: String
}

type Bar {
  anotherField: String
}

union MyUnion = Foo | Bar

type Query {
  fooOrBar: MyUnion!
}

Then execute a GraphQL query, eg:
{
  fooOrBar {
    ...on Foo {
      myField
    }
    ...on Bar {
      anotherField
    }
  }
}

What did you expect to see?
Resolve spans for each resolver that ran (eg. if a Foo is returned, a span for fooOrBar and myField)
What did you see instead?
A single resolve span for the query field only (fooOrBar). This is the case no matter how deeply the query nests.
Additional context
I'm using the node SDK to instrument automatically. I also made sure to set ignoreTrivialResponseSpans to false and depth to -1 (I know they are defaulted, but I wanted to be sure it wasn't related) like so:
const sdk = new opentelemetry.NodeSDK({
  // other settings...
  instrumentations: [getNodeAutoInstrumentations({
    '@opentelemetry/instrumentation-graphql': {
      ignoreTrivialResolveSpans: false,
      depth: -1,
    },
  })],
});

No updates. I marked it up for grabs in case someone has time to work on this.
Actually, a bug label should have the same effect as never-stale I'll look into what's wrong with our stalebot setup.


Units of Measurement

What units of measurement does this library output? Is the acceleration in Gs or m/s^2? Is the gyro data in rad/s?

The Acceleration is in Gs, the rotation is in deg/s


Current 0.10.0 cjxl produces unreadable files w/ lossless jpeg transcoding

Describe the bug
I'm using the bleeding edge win binaries for a long time. Recent versions (0.10.0 about-ish, I cannot say which exact commit) produce jxl files that are unreadable in XnViewMP and Chrome (Thorium), I didn't check others.
Since the bitstream format is fixed, I'm reporting this to be safe - of course the problem might be the compile.
To Reproduce
Current 0.10.0 produces unreadable jxl files: downloaded from https://artifacts.lucaversari.it/libjxl/libjxl/latest/jxl-x64-windows-static.zip
An older 0.9.0 binary works just fine: http://jeremylee.sh/bins/jpegxl.7z
Expected behavior
The jxl produced by 0.10.0 should be as readable as from 0.9.0
Screenshots
Attached source jpeg, jxl from 0.9.0 and current 0.10.0
Environment

OS: Windoes
CPU type: x86_64
cjxl/djxl version string: JPEG XL encoder v0.10.0 9b82fa1 [SSE4,SSSE3,SSE2]

Additional context
Trancoding the jxl to original jpeg continues to work fine w/ current 0.10.0

The v010 file contains a box with an "extended" size, which wasn't correctly handled by the decoder until #1478 was fixed recently.
But the fact that the encoder is using extended box sizes when it isn't necessary seems like a bug.  That's going to cause a problem for all current decoders...

The v010 file contains a box with an "extended" size, which wasn't correctly handled by the decoder until #1478 was fixed recently.
But the fact that the encoder is using extended box sizes when it isn't necessary seems like a bug. That's going to cause a problem for all current decoders...

Right, so let's hope app devs will regularly update their decoder libs. That doesn't seem to happen though because the fix in in https://github.com/libjxl/libjxl/issues/1478 is 1.5 years old.
I've added a bug ticket as a reminder for XnViewMP: https://forum.xnview.com/viewtopic.php?f=62&t=46505&sid=bbcad5a65550cef12da89c1080dc114f
For the time being, I'll keep the 0.9.0 encoder close to my heart :-)

That doesn't seem to happen though because the fix in in https://github.com/libjxl/libjxl/issues/1478 is 1.5 years old.

It's worse than that :).  Although it's not obvious from that bug, it wasn't fully fixed until last week: #2958, so it really is only the bleeding edge decoder that can deal with those files.

#3001 should fix this, please re-open if issues remain.


interesting xor solution added

fixes #3051

Make README changes and add a new line at the EOF

done sir

Closing this due to inactivity since last 21 days. Thank you for your valuable time.😊


fix navbar #446

Pull Request Template

Please provide all of the details below. Pull requests missing any of the information below will be closed!
Providing the issue number/url helps us identify the problem being solved and keep the issues tab clean and tidy

What issue does this fix?
While visiting the website i saw a left space in the navbar and it was caused by the contact css that is using pure html tags to customize and it's broking some components like the navbar. I saw that there is a new header, but until that task is done this could fix the problem with the navbar

What issue is it attached to?
Fixes #446
Checklist
(Add an x between the brackets to check the items)

[x] I have summarize what this PR fixes above
[x] I have provided the issue ID/URL above
[x] I have not added Bootstrap or jQuery and used correct styling guide.
[x] This PR fixes only the issue mentioned above (create separate PRs for separate issues)
[x] I was the first one to claim the issue or I created the issue

looks good to me


batch execution

batch execution will help on parallel multiple input states, which can give acceleration for things like MPS circuits. But this requires PastaQ to support a continous memory layout on batch dimension.
cc: @mtfishman

What do you mean by continuous memory layout? Do you mean that in the case of an array (for full state simulation), the multiple states are combined into one array with an extra dimension?
This is not so simple with MPS, since combining multiple MPS into a single MPS with an extra index can in general increase the MPS bond dimension a lot (in general, roughly adding up the bond dimensions of the MPS being combined).

This is not so simple with MPS, since combining multiple MPS into a single MPS with an extra index can in general increase the MPS bond dimension a lot (in general, roughly adding up the bond dimensions of the MPS being combined).

It's not adding bond dimension, it's adding an extra batch dimension, here is a piece of example came from a private MPS implement of mine (unfortunately I can't open source it at the moment)
struct MPS{B, PN, L, T, VT <: AbstractArray{T, 3}}
    tensors::NTuple{L, NTuple{PN, VT}}

    function MPS(tensors::NTuple{L, NTuple{PN, VT}}) where {T, L, PN, VT <: AbstractArray{T, 3}}
        B = size(first(first(tensors)), 3)
        for (i, each_tensor) in enumerate(tensors), (k, tx) in enumerate(each_tensor)
            B == size(tx, 3) || error("batch size mismatch for the $i-th tensor's $k-th physical leg's matrix, expect $B, got $(size(tx, 3))")
        end

        new{B, PN, L, T, VT}(tensors)
    end
end

you don't want to add multiple MPS into the bond dimension, that still destroys the memory layout. But again, it's not a huge deal, just a suggestion, we could also just make a simple loop outside apply and enable multithreading when there are batches.

I'm not quite sure what all of the type parameters are. Is L the system size? If so are there PN tensors on each site? Is the idea that there is a batch index on every tensor of the MPS, so it is basically an MPO?

so it is basically an MPO?

The memory layout is like MPO, but it is not MPO.

By MPO I mean in the general sense that there are 4 indices per tensor, where 2 indices are shared between neighbors. Is this the form of the "batched" MPS you are imagining, where one of the indices of each tensor is the "batched" index?

By MPO I mean in the general sense that there are 4 indices per tensor, where 2 indices are shared between neighbors. Is this the form of the "batched" MPS you are imagining, where one of the indices of each tensor is the "batched" index?

Yes, but since this is still a MPS, you will be able to use the batch intrinsic I wrote before to accelerate the speed. You won't be able to do it for MPO.


[skip ci] tag being ignored

Describe the bug
It seems that [skip ci] is being ignored by Travis.
@diego3g @aldroydzito If you guys could take a look at it. <3
To Reproduce
Steps to reproduce the behavior:

Create a pull request using the [skip ci] tag in the title;
Watch as the build process still goes on.

Expected behavior
While using the [skip ci] tag in title of a pull request no build process should be triggered.

[skip ci] is specific to Travis, right? Would superb if it could stop the coverage process too. ❤

@pellizzetti Travis builds are related to commits, not to pull requests itself, so, one pull request can have two commits, one running Travis, other not.
Coverall is dispatched from Travis, so if the CI didn't run, Coverall will also don't.

Makes sense, closing this! 😄


Modifying src/routes/*.svelte at dev mode cause non reactive variables to change

Describe the bug
Create following page in routes

{p_slug}

<a href={`${p_slug}_x`}>Click me - {p_slug}

In production build or in dev build without code edits
p_slug is constant since I visit any page like http://localhost:3000/test
Even if I click on link "Click me - test", p_slug will not change.
This is good expected behaviour.
Now the issue.
In dev mode visit http://localhost:3000/test then click on "Click me - test" link.  (url will be changed to /test_x)
Edit src/routes/[slug].svelte like add something to h1.
Visit page again at http://localhost:3000/test
Click on link and see that "Click me - test" become "Click me - test_x" so  p_slug is equal to test_x what is different behaviour from prod or non edited dev build.
(Its because click now cause full render from scratch and not updating)
Reproduction
https://github.com/realadvisor/sveltekit-dev-reactivity-issue
Logs
No response
System Info
System:
    OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (8) x64 AMD EPYC Processor
    Memory: 4.33 GB / 15.27 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.10.0 - ~/.volta/tools/image/node/16.10.0/bin/node
    Yarn: 1.22.10 - ~/.volta/tools/image/yarn/1.22.10/bin/yarn
    npm: 7.24.0 - ~/.volta/tools/image/node/16.10.0/bin/npm
  Browsers:
    Chrome: 94.0.4606.61
  npmPackages:
    @sveltejs/kit: next => 1.0.0-next.196
    svelte: ^3.42.6 => 3.44.1

Severity
annoyance
Additional Information
This is not about $page params, and affects any non reactive vars (because link click cause page render from scratch after modifying). What sometimes cause hard to find bugs during development or unexpected behaviour. Had it multiple times now just reduced to minimal reproducible example

@istarkov I don't think this is an issue, you can solve it using

{p_slug}
Click me - {p_slug}

The issue that some code works differently at dev and prod mode. This is the issue. There is no need to show how to fix minimal reproducible example of the bug ;-)

@istarkov I can't reproduce the problem you mentioned. (dev and production are work the same)

Just do steps described carefully

In dev mode visit http://localhost:3000/test then click on "Click me - test" link. (url will be changed to /test_x)

Edit src/routes/[slug].svelte like add something to h1.

Visit page again at http://localhost:3000/test

Click on link and see that "Click me - test" become "Click me - test_x" so p_slug is equal to test_x what is different behaviour from prod or non edited dev build.

Fixed


Does not find my batteries

Great, thank you for all your work!
Wantet to try it, but unfortunately i cannot get it to find my batteries.
There is also no log which i can find. no ./aggregatebatteries.log file.
I do have 2 jk bms connected. Checking the values with mqtt i see this:
N/1234/system/0/ServiceMapping/com_victronenergy_battery_1=com.victronenergy.battery.ttyUSB1
N/1234/system/0/ServiceMapping/com_victronenergy_battery_2=com.victronenergy.battery.ttyUSB0
to you have any ideas?

Try to reload the ./service directory in your SCP tool to let the log file to appear. I use WinSCP and have to do it. If no log file appears, try to start the aggregatebatteries.py in Pyton in a console to show the error message.

ok.
First error was this:
I only have 2 batteries connected, and a smartShunt. Don't know what it found.
INFO:root:2022-12-28 23:33:18.776249: Connected to dbus, and switching over to GLib.MainLoop() (= event based)
INFO:root:2022-12-28 23:33:19.777730: Scan of batteries: Trial Nr. 1
INFO:root:2022-12-28 23:33:19.779728: 3 batteries found.
INFO:root:2022-12-28 23:33:20.779381: Scan of batteries: Trial Nr. 2
INFO:root:2022-12-28 23:33:20.781371: 3 batteries found.

Test #2:
Tried to set No. of batteries to 3:
INFO:root:registered ourselves on D-Bus as com.victronenergy.battery.aggregate
INFO:root:2022-12-28 23:34:39.534136: Connected to dbus, and switching over to GLib.MainLoop() (= event based)
INFO:root:2022-12-28 23:34:40.534288: Scan of batteries: Trial Nr. 1
INFO:root:2022-12-28 23:34:40.544409: 3 batteries found.
ERROR:root:2022-12-28 23:34:41.570426: ERROR: DBus Value Error. Read trial nr. 1
ERROR:root:2022-12-28 23:34:42.567903: ERROR: DBus Value Error. Read trial nr. 2
ERROR:root:2022-12-28 23:34:43.569075: ERROR: DBus Value Error. Read trial nr. 3
ERROR:root:2022-12-28 23:34:44.569981: ERROR: DBus Value Error. Read trial nr. 4

Test #2 - if the 3rd battery, whatever it is, is not responsive, you get this error.
I have no experience with mqqt, try dbus-spy in the console and look what could be the 3-rd battery. Perhaps some dead service?

ok, did not know this!
It is the SmartShunt from Victron! It is actually no battery. It just measures the total ampers going to all batteries!
Services
com.victronenergy.battery.ttyUSB0             SerialBattery(Jkbms)
com.victronenergy.battery.ttyUSB1             SerialBattery(Jkbms)
com.victronenergy.battery.ttyUSB4             SmartShunt 500A/50mV

No Problem, I made a new commit of aggregatebatteries.py

Still same error, it  still finds 3 batteries regarding the logs.

I know, my mistake. I'm trying to fix it now.

Now it should work:
for service in self._dbusConn.list_names():
if SERVICE_KEY_WORD in service:
if PRODUCT_NAME_KEY_WORD in (VeDbusItemImport(self._dbusConn, service, '/ProductName').get_value()):
self._batteries.append(service)
batteriesCount += 1
Update the aggregatebatteries.py and settings.py
And I go to bed, it is 1:30 AM in Germany :-)

thank you for the update! it works!!!
I will test this the next days!


Go mod init should be automatically called.

Upon creating the project , user has to manually do go mod init of the respective project. This can be automated.

This feature has been implemented. This will be available in v0.1.4 . Only Linux support at this point of time.


chore: update onboarding mobile

Summary
Update onboarding for mobile.
TODO
- polish css
- fix router issues
- general features test

Changelog

Relevant Issues
Closes #3216
Closes #3217
Closes #3218
Type of Change
Please select any type below that is applicable to your changes, and delete those that are not.

[ ] Breaking - any change that would cause existing functionality to not work as expected
[ ] Chore - refactoring, build scripts or anything else that isn't user-facing
[ ] Docs - changes to the documentation
[ ] Fix - a change which fixes an issue
[ ] New - a change which implements a new feature
[ ] Update - a change which updates existing functionality

Testing
Platforms
Please select any platforms where your changes have been tested.

Desktop

[ ] MacOS
[ ] Linux
[ ] Windows

Mobile

[x] iOS
[x] Android

Instructions
Please describe the specific instructions, configurations, and/or test cases necessary to test and verify that your changes work as intended.
Checklist
Please tick all of the following boxes that are relevant to your changes, and delete those that are not.

[ ] I have followed the contribution guidelines for this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or modified tests that prove my changes work as intended
[ ] I have verified that new and existing unit tests pass locally with my changes
[ ] I have verified that my latest changes pass CI workflows for testing and linting
[ ] I have made corresponding changes to the documentation

I made a new branch cherry picking only needed changes


credentials_file_path is deprecated for OIDC auth to GCP

Description

credentials_file_path is deprecated - We should update the sync scripts.

This is for the setup-gcloud action, not for auth.
https://github.com/google-github-actions/auth#other-inputs
I'm confused, maybe it used to be an option for setup-gcloud?

I assume so - The AI might just be to wait until auth has a different solution

I think the solution here is to use the auth job followed by setup-gcloud, without creating a credentials_file_path.
like this example https://github.com/google-github-actions/setup-gcloud#workload-identity-federation-preferred

Note that this option was not deprecated for auth: it was only deprecated for setup-gcloud, which we don't use!

I guess we do use it in sync, but without that option. But either way, I'll put out a PR to cleanup our auth.

@haydentherapper I think this is closed. I was looking at fixing this just now, but we don't use credentials_file_path for setup-gloud. We only use it for auth, where it is default true and is required for authenticated with gcloud.
https://github.com/google-github-actions/auth#other-inputs


WRF-CHEM not reading X extents correctly

To reproduce:

Import the WRF-CHEM file at /glade/p/cisl/vast/vapor/Bugs/3301
Note the X extents range from -180 to -180

Note that ncdump -v XLONG produces reasonable values for the X coordinate.

Sorry about that.  Directory updated.

The reason that invalid coordinates are being generated is because the STAND_LON global attribute in the WRF file appears to be initialized to a nonsense value: 1.e+20f. The STAND_LON attribute is use to set the lon_0 parameter for the PROJ format string for the Mercator projection. See here. The value is intended to specify the longitude of the projection center in degrees. Typically this value is inside of the range of values for XLON. See Katrina as an example.
As an aside, supporting map projections in VAPOR is inherently problematic and may not off much or any value to the user. They are a legacy from on geographic coordinates were first introduced in VAPOR in order to support WRF data sets,  which include map projection information. However, very few other geoscience models that I'm aware of include map projections in their outputs. In the general case VAPOR fabricates a projection transform using the Cylindrical Equidistant projection, which is really just a scaling of lat and lon by a constant value to go from degrees to meters.
Long story, short: at some point it might be worth considering making the map projection for horizontal coordinates optional. I.e. use degrees as the unit for horizontal coordinates. Ditto for always trying to transform the vertical coordinates from whatever the native coordinate system in the model uses to 'meters above the ground'. Both of these transforms (for vertical and horizontal) were done in an attempt to get everything in meters so that flow advection calculations make sense.

As John mentioned, this is due to malformed metadata. Potential solution would be to provide an option to disable dataset projections.

Potentially related to better issuance of warnings, IE #3405


Update nanopb dependency version for PrivacyManifest support

This request pertains to updating the version constraint of the nanopb dependency utilized within the ARCore project. ARCore includes a dependency on nanopb, which is listed in Apple's PrivacyManifest third-party SDK list.
To incorporate the version of nanopb that supports PrivacyInfo.xcprivacy, it is necessary to use versions later than 2.30910.0.
Could you please update the ARCore.podspec.json and Package.swift files accordingly? The suggested changes are as follows:
For ARCore.podspec.json, update the nanopb version range to:
"nanopb": [
  ">= 2.30908.0",
  "< 2.30911.0"  // Adjusted to include versions later than 2.30910.0
]

For Package.swift, modify the nanopb package version range to:
.package(url: "https://github.com/firebase/nanopb.git", "2.30909.0"..<"2.30911.0") // Adjusted to include versions later than 2.30910.0

These adjustments would enable the use of nanopb versions that support PrivacyInfo.xcprivacy, aligning with the requirements listed in Apple's third-party SDK guidelines.
Thank you for considering this request. Your assistance in maintaining compatibility with the latest standards is greatly appreciated.

This will be updated in the next ARCore release

This is fixed in ARCore 1.44.


Upgrade tornado to 5.1.1

fixes #44

https://www.tornadoweb.org/en/stable/releases/v5.0.0.html

io_loop arguments to many Tornado functions have been removed.
Use IOLoop.current() instead of passing IOLoop objects explicitly.


[FEATURE] Support network policies for micro-segmentation of workloads

Is your feature request related to a problem? Please describe.
Use case: Need to enforce traffic policies for VM-VM and VM-External communication within a VLAN network.
Implementation details
Should leverage the native Kubernetes network policies subsystem.

connect to:
https://github.com/harvester/harvester/issues/2236

@janeczku The use case is Kubernetes guest cluster or just VMs on the VXLAN? Since if it's Kubernetes then the guest Kubernetes can enforce the network policy.

The use case is VMs on the VXLAN and VLAN.


WD-16708 Contact us and Error templates

Done

Added templates for contact-us page and error pages
Since the contact page is static we have added a dedicated thank-you page.
Made footer sticky
Added Djlint

QA

Try filling up contact-us form and see if information is being recorded and the form is being submitted properly.
Try accessing pages that don't exist or create errors that would spin up required templates to see if they work properly.

Fixes
Jira Issue - WD-16708

Form Page

Thank you page

Confirmation page itself is fine, but the text for that page is not correct. Checking where you got it from so I can ask to update?

Suggested text for confirmation: Thank you! A member of our team will be in touch shortly.


[DEVOPS-1211] bump applicationVersion

Description

Linked issue

Type of change

[ ] 🐞 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)
[ ] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
[ ] 🔨 New or improved tests for existing code
[ ] ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

[ ] I have read the style guide document, and my code follows the code style of this project.
[ ] If my code deals with exceptions, it follows the guidelines.
[ ] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.
[ ] CHANGELOG entry has been added and is linked to the correct PR on GitHub.

Testing checklist

[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

QA Steps

Screenshots (if available)

How to merge
Send the message bors r+ to merge this PR. For more information, see
docs/how-to/bors.md.

Ensure this is inline with https://github.com/input-output-hk/internal-documentation/wiki/Daedalus-installer-history

bors r+


why are errors prepended with ????

Doctests for errors look like:
% >> 2 + (1 + !))
% ??? parse error:

But why do we have this ????  It doesn't seem to be there in either Matlab or Octave.  I traced it back to [1], the original handling of exceptions.  And we've kept it that way ever since.
This could be changed before 1.0.0 (with some pain for projects using doctest).
[1] https://bitbucket.org/tgs/doctest-for-matlab/commits/4a322d4b85f773f303c0678ef0593e9483571e42

There are about half-dozen uses of this in Symbolic, here's a few:
     If conversion fails, you get an error:
          syms x
          double (x)
            ⊣ ??? ... can't convert expression ...

     If the matrix is singular, an error is raised:
          A = sym([1 2; 1 2]);
          inv(A)
            ⊣ ??? ... Matrix det == 0; not invertible...

Those are not great.  I don't think the ??? tells user much.  This would be better
     If the matrix is singular, an error is raised:
          A = sym([1 2; 1 2]);
          inv(A)
            ⊣ error: ... Matrix det == 0; not invertible...

For comparison, the actual error looks like:
>> inv(A)
error: Python exception: NonInvertibleMatrixError: Matrix det == 0; not invertible.
    occurred at line 3 of the Python code block:
    return x.inv(),
error: called from
    pycall_sympy__ at line 178 column 7
    inv at line 59 column 5

I feel we should consider dropping the ??? (or deprecating it).

I'm fine with replacing??? by error:  (or dropping it in case it is already part of the exc.message).

Worth mentioning that Texinfo has a @error command for this purpose, although we don't use that in Octave doc strings (yet). So for Texinfo syntax, this could be written as
@example
syms x
double (x)
@error{} ... can't convert expression ...
@end example

I see a few Octave doc blocks that use @result{} error: ..., I'm going to mail the maintainers list to ask for opinions on that vs @print vs @error.

I'm going to mail the maintainers list to ask for opinions on that vs @print vs @error.

https://lists.gnu.org/archive/html/octave-maintainers/2019-10/msg00005.html

I agree with dropping the ???, or deprecating and making it optional.

There are differences about formatting to be accounted for.

Octave usually, but not always, prepends error:  to error messages.  Octave hg tip:

>> 1 + (2 + !))
parse error:

  syntax error

>>> 1 + (2 + !))
              ^

>> nosuchfcn(42)
error: 'nosuchfcn' undefined near line 1 column 1
>> error('weee')
error: weee
>>

Matlab 2018b (2014b was similar) does not:

>> 1 + (2 + !))
 1 + (2 + !))
          |
Error: Invalid use of operator.

>> nosuchfcn(42)
Undefined function or variable 'nosuchfcn'.

>> error('weee')
weee

>>

exception object has a .message (see doctest_format_exception) which generally omits error: .

Octave
So I think we should prepend ex.message with error : except in the case when it already starts with parse error.
Maybe there are other special cases?
Matlab
Unsure, will do Octave change first...


Update Set-LabelPolicy.md

OutlookDefaultLabel & DisableMandatoryInOutlook advanced settings now supported for built-in labeling

Docs Build status updates of commit 119677e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Set-LabelPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

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 the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 0f6f385:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Set-LabelPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

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 the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Next.js doesn't work properly in Safari

When I try to run my next app on Safari, I get this error in the console and it makes the app not function properly.
SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.

System information

OS: macOS
Browser: Safari Version 9.1.2 (11601.7.7)
Version of Next.js: 6.1.0

Additional context
I've searched online and found the same issue with no solution, the only reasonable solution was to use babel.js - browser targets, however that breaks the app badly and it doesn't even build.

Most important part of the issue template is the reproduction which is missing here. How can I reproduce this? Do you have more info besides the error, like a stack trace?

@timneutkens I'm sorry. Apologies. However I don't know how to replicate the same bug because I have been working with chrome and I've never witnessed it. I only got the error when I tried testing with safari. The app is live, you can see it on heroku here https://zyombo-app.herokuapp.com

@paschaldev where should I see it? Works fine in safari for me 🤔

@timneutkens In the console.

Doesn't happen for me.

@timneutkens  Check the screenshot here? https://snag.gy/ug8SdQ.jpg
The verrsion of Safari is Safari 9

@timneutkens I noticed something... I have two apps built with next.js, same version. The admin part of the app works flawlessly on Safari and I don't get this error, however only this one shows the error. I'm trying to dig deeper so I can identify the source of the error.

@paschaldev that error looks like you imported a module from npm which is using const and not transpiling it, since Next.js doesn't transpile node_modules with Babel it will go to the browser using const and throw in Safari.
That could explain why you only got it in that part (the module is only there).

Looks like it's coming from https://github.com/reactivestack/cookies/tree/master/packages/universal-cookie
I simply opened all .js files and searched for const  (with spacebar) and found specific vars related to that module.

Thanks for helping @timneutkens @saginadir I'll look for a way to transpile that with webpack config.

Or use next-cookies npmjs.com/next-cookies

Just leaving this here for anybody who stumbles upon this same issue. I added this to my next.config.js file and everything works fine on Safari, it no longer includes the const keyword.
webpack(config, options) {
	...
	config.module.rules.push(
		{
			test: /\.js$/,
			include: [
				/node_modules/
			],
			loader: 'babel-loader'
		}
	)
}

What this does is transpile every js file imported in our app with our babel configuration. Looks like a very lazy fix but solves the problem for me.


Performance: Make .env Dir.glob much less greedy

I noticed that even the most basic fastlane command was hanging for a long time between the version check and the start of running a lane, so I started poking around with ruby-prof. The majority of the time was being taken up in Dir.glob inside LaneManager.load_dot_env.
The glob in question was searching recursively for files matching *.env* in all subdirectories, but then only loading .env files from either the root or the Fastlane folder (if defined).
The project directory where I ran across this contains an obscene number of files (~690,000), so I was seeing a good 20 second lag while it chewed through them all.
This PR changes the glob in that guard statement to only search the directories where .env files will be loaded from, instead of recursing through the entire directory structure.

Thanks for contributing to fastlane! Before you submit your pull request, please make sure to check the following boxes:

[x] Run bundle exec rspec from the root directory.
[x] Run bundle exec rubocop -a to ensure the code style is valid
[x] Read the Contribution Guidelines
[x] We currently don't accept new actions, please publish a plugin instead, more information in Plugins.md

Before submitting a pull request, we appreciate if you create an issue first to discuss the change :+1:

Oh wow, nice catch, thanks for analysing this 👍

This looks good to me, thanks for the PR. The only thing is that people might have their .env files in the root of the project or in the ./fastlane dir, so we should keep supporting both 👍
Also I'd like @joshdholtz to do the final review before we go ahead  🚀

This looks good to me, thanks for the PR. The only thing is that people might have their .env files in the root of the project or in the ./fastlane dir, so we should keep supporting both 👍

Did this get addressed? It's very important to not break any existing setups @joshdholtz @reidab

@KrauseFx I tested with 2.8.0 and I think it didn't. I submitted #7872

I'd meant to check that case, but missed it before the merge went in. 😢 The approach in #7872 looks reasonable to me. 👍


Group feed keeps loading if both tweed filters are selected

On 2.6.2 I still have the problem of the indefinitely loading group feed. It keeps loading if both of the filters are checked (see picture). Unchecking either one helps and the group feed finally loads. Possibly this still has something to do with #95 ?

I think it got resolved now. Try the latest version. 2.7

Yeah got new F-Droid 2.7.1 version and it works like a charm. Thanks for the fix & hard work.


Stdout doesn't return with bbr cli

As I understood from docs https://docs.cloudfoundry.org/bbr/bbr-devguide.html#logs, we can get stderr and stdout only in case of script failure.
The stdout and stderr streams are captured and sent to the operator who invokes the backup and restore.
Note: BBR prints any output from the scripts in case of failure.
Here is simple example of backup script that I trigger with bbr cli
cat backup
#!/bin/bash
echo "Stdout"
echo "Stderror" >&2
exit 1
When I run it with bbr cli
bbr deployment   --target $BOSH_ENVIRONMENT   --username $BOSH_CLIENT   --password $BOSH_CLIENT_SECRET   --deployment 688be997ccbfafc76822  backup
[bbr] 2020/04/08 13:20:51 INFO .....
[bbr] 2020/04/08 13:21:26 ERROR - Error backing up broker on job/bffdc9a6-342b-41d0-96ea-bf0dd02acfb5.
.....
1 error occurred:
error 1:
1 error occurred:
error 1:
Error attempting to run backup for job broker on job/bffdc9a6-342b-41d0-96ea-bf0dd02acfb5: Stderror - exit code 1
I get only "Stderror" from stderr, but where is stdout? (edited)
I can add --debug but it will output much more info then I need. (all calls).
Also how can I get some logs when backup finished successfully?

Hi Sergey,
We've heard this feedback from a couple of places now, and it's definitely on our radar. We're focussing on other features right now, but we'll circle back around and update this issue when we're able to properly update our bbr UX.
Thanks!

Closing for now, the team does not have bandwidth to action this issue.


BUG: Linger doesn't wait for receiver to finish reading

What pyzmq version?
25.1.0
What libzmq version?
4.3.3
Python version (and how it was installed)
3.11.5
OS
Ubuntu 22.04
What happened?
Setting linger option for the sender doesn't block when the socket/context are closed. It exits immediately, but receiver doesn't end up reading all messages, so something is amiss.
It only seems to manifest if I set HWM, which I'm guessing is because without the limit libzmq is able to buffer everything in the client almost immediately.
Code to reproduce bug
import zmq, threading, time

def server():
	linger = 1000*60
	ctx = zmq.Context()
	sock = ctx.socket(zmq.PAIR)
	sock.setsockopt(zmq.LINGER, linger)
	sock.bind("ipc:///tmp/lingertest")

	print("server ready")
	for i in range(10):
		sock.send_json(i)
		print("server send", i)

	sock.close(linger)
	ctx.destroy(linger)
	print("server exiting")

def client():
	ctx = zmq.Context()
	sock = ctx.socket(zmq.PAIR)
	sock.setsockopt(zmq.RCVHWM, 1)
	sock.connect("ipc:///tmp/lingertest")

	print("client ready")
	while True:
		time.sleep(.5)
		i = sock.recv_json()
		print("client recv", i)
		if i == 9:
			break

	sock.close()
	ctx.destroy()
	print("client exiting")

threading.Thread(target=server).start()
threading.Thread(target=client).start()

Traceback, if applicable
n/a

More info
In this case I'm using a pair socket, so easy enough to have the server/client communicate when each are done instead of relying on linger.

This sounds like a bug that should be reported to libzmq, since it's not related to pyzmq. I guess ipc messages can drop when sockets close, apparently ignoring LINGER. You don't need to specify LINGER, either, since even with the default of waiting forever, messages are dropped. I don't know at what stage that's happening, but since adding sleep before sender.close results in delivered messages, it does sound like LINGER is just not implemented correctly for ipc senders. Setting SNDHWM to 1 also further accentuates the issue.


Documentation required for using ionic with browserify

Firstly, thank you all for the great job and great lib provided to the community !
As browserify usage is growing, it would be great to have some official documentation on how using ionic with browserify. Some blogs are explaining different approach but a common and clean approach would be so better.
Thanks

Greetings @bennekrouf!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!


Initial work to support HTTP based subscriptions

This PR depends on https://github.com/influxdata/influxdb/pull/6655
TODO:

[ ] CHANGELOG
[ ] Do not hardcode port 9092

Looking forward to this feature!


Paginator End and Start slots are not in the corners

the following image is from https://tailwind.primevue.org/datatable/#paginator_template

https://primevue.org/datatable/#paginator_template

I personnaly use mr-auto and ml-auto on each to fix that on my pt as a workaround in case it is helpful

I personnaly use mr-auto and ml-auto on each to fix that on my pt as a workaround in case it is helpful

after your comment I realized was adding margin auto to the button and not the PT, so definitely helped me!
still issue should probably be fixed on their side


ci(docker): upgrade and rework docker ci

Background

Checklist

[X] The Pull Request has been fully tested
[ ] There's an entry in the CHANGELOGS
[ ] There is a user-facing docs PR against https://github.com/daeuniverse/daed

Full Changelogs

ci(docker): docker build once and push to multiple repos
ci(docker): docker build and push with tags
ci(docker): come back arm64 platform support (Experimental)
ci(docker): publish dockerhub image
ci(docker): action version upgrade
ci(docker): multiple action trigger
ci(docker): build with tag on dashboard

Issue Reference

https://github.com/daeuniverse/daed/issues/280
https://github.com/daeuniverse/daed/pull/267
Test Result

Action page
Dockerhub page
Download log archive
View raw logs

@hero-intelligent Understood. No problem.

Same here, no worries


docs(prettier-config, eslint-config): update installation instructions

Y'all hard depend on those packages anyways

Can you do the same for ts-config?

sure


Generate and consume links to specific moves in a PGN

Right now there are links to games, analysis, study, specific chapters and even the moves from the mainline at a specific index. One needs to be able to copy a link to a specific move in any variation.

After some thought, the only way to determine a move with some (but not complete) certainty is an encoding of the FEN and the index of the move if there are transpositions to the same FEN. So basically FEN with something replacing slashes and spaces and, if transpositions, a number deciding which of the transpositions to choose. Unfortunately, if the PGN changes, so can the identifier.
The only certain way to have a unique id for a move is the entire path to the move, which can be 100+ moves at 12 bits each, 1200+ bits, 150+ characters. I feel that's too long.

This isn't complicated to achieve, but I feel it would be cumbersome to use and no one would actually use it. Closing it.

Implemented in the Bookmarks feature


feat(router): add route to invalidate cache entry

Type of Change

[ ] Bugfix
[x] New feature
[ ] Enhancement
[ ] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description
A new route to invalidate the in-memory cache and redis
Additional Changes

[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

Motivation and Context
Currently we don't have any way to manually invalidate cache that's stored in redis and in-memory,
Closes #995.
How did you test it?
A unit test is added to test the in-memory cache and postman script used for redis cache.
Checklist

[x] I formatted the code cargo +nightly fmt --all
[ ] I addressed lints thrown by cargo clippy
[ ] I reviewed submitted code
[x] I added unit tests for my changes where possible
[ ] I added a CHANGELOG entry if applicable

Can you add invalidate for ACCOUNTS_CACHE as well since this change.

@Narayanbhat166 @jarnura @ashokkjag  The changes are ready for review. Please can you have a look at the PR, when you get a chance.


Write selectively to a range in spreadsheet not working with null values

When I try write selectively value like in this example
https://developers.google.com/sheets/samples/writing#write_selectively_to_a_range
I get Google_Service_Exception code 400 message Invalid JSON payload received
But when I use not_null type instead null, everything is ok :)
$this->serviceSheet = new Google_Service_Sheets($this->googleClient);
$this->valueRange = new Google_Service_Sheets_ValueRange();
$this->valueRange->setValues($data['columns']);
$this->valueRange->setMajorDimension('ROWS');
$response = $this->serviceSheet->spreadsheets_values->update($this->fileID, $data['range'], $this->valueRange, array("valueInputOption" => $this->valueInputOption));

where $data['columns'] is like in example:
[[null,"$1","$2", ""], [], [null,"4/1/2016", "4/15/2016", ""]]

$this->serviceSheet = new Google_Service_Sheets($this->googleClient);
$this->valueRange   = new Google_Service_Sheets_ValueRange();
$this->valueRange->setValues($data['columns']);
$this->valueRange->setMajorDimension('ROWS');
$response = $this->serviceSheet->spreadsheets_values->update($this->fileID, $data['range'], $this->valueRange, array("valueInputOption" => $this->valueInputOption));

where $data['columns'] is like in example:
'
[
[null,"$1","$2", ""],
[],
[null,"4/1/2016", "4/15/2016", ""]
]
'

Have you tried using an empty string instead of null values?

Yes, I tried, and it worked, but empty string like this '' delete value, but I wanted to skip value.

@madebyrogal can you inspect what your JSON payload looks like and add it here?

@madebyrogal have you tried using Google_Model::NULL_VALUE?

@madebyrogal have you tried using Google_Model::NULL_VALUE?

works, thank you!

Not working

   $client = new Google_Client();
    $client->setApplicationName("Client_Library_Examples");
    $client->setClientId($client_id);
    $client->setClientSecret($client_secret);
    $client->setRedirectUri($redirect_uri);
    $client->setAccessType('offline');   // Gets us our refreshtoken
   $client->setScopes(Google_Service_Sheets::SPREADSHEETS);
   Google_Model::NULL_VALUE;
   $service = new Google_Service_Sheets($client);

         $spreadsheetId = 'spredsheetid';
         //$sheetInfo = $service->spreadsheets->get($spreadsheetId)->getProperties();
         $options = array('valueInputOption' => 'RAW');
        $values = [["1",null,null,null,null,null,null,null,null,null,null,null,null,null]];
       $body   = new Google_Service_Sheets_ValueRange(['values' => $values]);
      $result = $service->spreadsheets_values->update($spreadsheetId, "test- update todo!durationupdate", $body, $options);

Was just about to open an issue but luckily found this answer. Maybe it should be made more obvious that Google_Model::NULL_VALUE should be supplied in the dataset instead of actual php null values?
I traced the underlying issue down to the getSimpleValue function when processing an array and it encounters a php null value it skips adding it to the output array. This can lead to the output array becoming sparse / associative which when json encoded becomes a json object instead of an array. The resulting json is then rejected by the api:
{"valueInputOption":"RAW","data":[{"majorDimension":"ROWS","range":"Sheet1!Y13:AJ13","values":[{"0":"","1":"","2":"","4":"","5":"","6":"","8":"14\/05\/2019","9":"07:00:00"}]}]}
expected output:
{"valueInputOption":"RAW","data":[{"majorDimension":"ROWS","range":"Sheet1!Y13:AJ13","values":[["","","",null,"","","",null,"14\/05\/2019","07:00:00"]]}]}

I'm have this same issue on the java-client, is there any resolution for java to this issue?

@madebyrogal have you tried using Google_Model::NULL_VALUE?

This is unbelievable that it is nowhere to be found in google documentation. So much wasted time.
It is clear that google does not care about API documentation.
Thank you, sir.


Update to websites using Tailwind

Added a new website - DigitalDam

@joshmanders I have moved it. Thank you!

Thanks @bomshteyn!


Update cudarc requirement from 0.11.0 to 0.11.1

Upgrading cudarc dependency from v0.11.0 to v0.11.1 due to new version having resolved a compile-time bug.
The 0.11.0 release of cudarc (v0.11.0) contains an issue (https://github.com/coreylowman/cudarc/issues/226) that causes an error during compile time.
The cudarc project has resolved this via a recent commit (https://github.com/coreylowman/cudarc/commit/76430d1d6164309af0b9ba27d30711fd709a69b2) and just made a new release v0.11.1 that contains the fix (https://github.com/coreylowman/cudarc/releases/tag/v0.11.1).
See: https://github.com/huggingface/candle/issues/2173

Thanks for the PR, could you confirm that you ran all the tests with the cuda feature enabled and everything was ok?

@LaurentMazare This should solve #1882  too
I will be able to confirm this shortly

Great, thanks!

Hi, sorry to bother you guys, I am currently using the candle to build the bert models, while my cuda version is 12.4, is the newest cuda version will still get supportted? Here is my compiling error:
error: failed to run custom build command for `cudarc v0.11.2`

Caused by:
  process didn't exit successfully: `/mnt/c/Users/23174/Desktop/GitHub Project/candle/target/release/build/cudarc-36646a1769962255/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-env-changed=CUDA_ROOT
  cargo:rerun-if-env-changed=CUDA_PATH
  cargo:rerun-if-env-changed=CUDA_TOOLKIT_ROOT_DIR

  --- stderr
  thread 'main' panicked at /home/dingli/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cudarc-0.11.2/build.rs:56:14:
  Unsupported cuda toolkit version: `11050`. Please raise a github issue.
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Version 12.4 and even 12.5 should be supported at the latest github version. Are you sure it's using 12.4? The 11050 makes me think it might be using 11.5 so maybe you have multiple versions installed?

Sorry about the confusion, I am using a wsl now. The fact is that, the cuda version for the windows host and the wsl is bit confusion. My nvidia-smi tells me that the cuda version is 12.4, which is actually 11.8 when I check the actualy dlls.
Anyway, I have solved this by setting the cuda directory to the actual windows host path. I think this could be NV's fault, I think.


Reconcile reading DAT and TDMS data

DAT requires this construction:

[key-value] where value = variant = [DBL]
TDMS:

[key-value] where value = variant = dict = key-value2 where value2 = variant = data (always [DBL]?)

Fix looks like this:


Lazy load menu, chops 30k from the main bundle.

Do not merge this PR, it's failing in the production build.

I can't really understand why this is happening only in the prod build. I need help from some webpack expert!


fix issue for bfv deploy on zvm not support multipath ipl

@haolp can you help add UT for this ?

@haolp can you help add UT for this ?

sure, thanks for your reminder.


Update test on tutorials

This should be done once this PR https://github.com/deepset-ai/haystack/pull/5028 is merged and we have base images with every release.

Add metadata to each tutorial to set on which image it should be tested
Run nightly test on these versions
Run nightly tests on main as well to be cautious about upcoming changes
Release images should be used when a tutorial is created or updated (on PRs)

Any other ideas @silvanocerza?

Our decision after our sync

PRs: latest version & pinned versions (not main)
Nightly: latest version & pinned versions + main

[ ] Add API Keys to Github
[ ] Mark some tutorials with needs_gpu

Reopening as we still need to run tutorials on PRs.

Current TODOs for this issue:
### Tasks
- [ ] Test running on PRs with **latest 2.0 version** & **latest 1.x version** & **pinned versions** (for deprecated tutorials)
- [ ] Nightly tests with **latest 2.0 version**


chore: Deprecate MQQTConfig in favor of MQTTConfig

Calling MQQTConfig warns a DepreactionWarning.
I believe MQTTConfig was misspelled MQQTConfig. Closes #16.

@jthetzel  Thank you, this should solve #16. but can you apply changes from my master and fix the conflict locally?

@jthetzel  Thank you, this should solve #16. but can you apply changes from my master and fix the conflict locally?

Thanks for the quick reply, @sabuhish . Upstream/master is merged.

Thanks for the quick reply, @sabuhish . Upstream/master is merged.

I have released 0.1.1, new futures are available now Thanks appreciate your help!

I have released 0.1.1, new futures are available now Thanks appreciate your help!


Minify ansi_up.js file

Currently the ansi_up.js file in the root of this project is about 23KB. Providing a minified version of this file would be nice so that you don't have to vendor and minify the file yourself.
In my testing I was able to get the file size down to 9.2KB using esbuild:
$ esbuild --minify --loader=ts < ansi_up.ts > ansi_up.min.js

$ ls -alh ansi_up.min.js
-rw-r--r-- 1 loot loot 9.2K Apr 21 16:18 ansi_up.min.js

This is an improvement, but looking at the file you'll find that there is a lot of whitespace due to the rgx and rgxG templates:
"use strict";var PacketKind=(r=>(r[r.EOS=0]="EOS",r[r.Text=1]="Text", /* SNIPPING */ rgx`
                        ^                           # beginning of line
                                                    #
                                                    # First attempt
                        (?:                         # legal sequence
                          \x1b\[                      # CSI
                          ([\x3c-\x3f]?)              # private-mode char
                          ([\d;]*)                    # any digits or semicolons
                          ([\x20-\x2f]?               # an intermediate modifier
                          [\x40-\x7e])                # the command
                        )
                        |                           # alternate (second attempt)
                        (?:                         # illegal sequence
                          \x1b\[                      # CSI
                          [\x20-\x7e]*                # anything legal
                          ([\x00-\x1f:])              # anything illegal
                        )
`)
/* SNIPPING */

By manually removing the comments and whitespace from the templates I was able to get the file size down to 6.5KB:
$ ls -alh ansi_up.min.js
-rw-r--r--   1 loot loot 6.5K Apr 21 16:23 ansi_up.min.js

Manually minifying the templates for each release would be a pain though, so perhaps changing how the rgx functions are called would be a better option (perhaps by using string concatenation or de-indenting the whitespace).
I have no issue manually minifying the file for my own project, but having a minified version that others could use would be nice. I don't know what the release process looks like for this library, but I would be more than happy to write a build script that automates this minification process.
Thanks!

Hi,
Sry to be late to this.
How big is your minified version vs. un-minified when the web server sends it as a compressed payload?

Imho, minification is best left to be done by the consumer via their bundler (vite, webpack, etc).
If you are really nice, you could publish a minified file in the npm package, but it needs additional tooling.

@silverwind The issue is that esbuild cannot minify the rgx template functions since they use string literals, which are stored as-is. A compiler cannot safely minify this, but since I know that the rgx function uses a regex to remove whitespace and comments, I know I can minify it safely (by hand, that is).
And @drudru here are the stats you where looking for:

File
Size
Size gzipped
Notes

ansi_up.js
15422
3285
Transpiled .js file

ansi_up.min.js
9530
2501
Minified .js file

ansi_up.min.min.js
6757
2163
Minified, optimized rgx and rgx0 strings

I used the following Python code to get these results:
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from fastapi.middleware.gzip import GZipMiddleware

import uvicorn

app = FastAPI()
app.mount("/", StaticFiles(directory="files"), "static")

app.add_middleware(GZipMiddleware, minimum_size=512)

uvicorn.run(app, host="<IP_ADDRESS>", port=8000)

And used curl -i --compressed localhost:8000/filename_here | grep content-length to get the gzipped size.

Okay, I think at least these rgx strings should be put in minified variant into the source here, the rest can be done with a minifier on the user side.

Wow @dosisod - excellent work.
I'm kind of shocked that the compressors are not able to easily handle the whitespace.
The next major release will be about moving to the module format, API enhancements, and other tiny features.
Once that is out, work will be done on this a minor number release.

Thanks for opening these issues.
After some thought, I see minification as out of the scope of my project.
It would require me to keep up to date on the various minification tech.
This is something I will leave to the library user. I don't want to include it in this project.


Too much cpu memory consumption

Hi，I loaded bge-reranker-v2-m3 model and this consumed about 1.5G gpu memory. However, the cpu memory consumption is 11G. Why is it so large?

This is the machine stats checked by TOP

It depends on the size of the tokenizer. By default, we spawn one tokenizer per cpu core. If this tokenizer is big (because it's converted from sentencepiece for example), TEI can end up using a lot of RAM.


Master to Live

Docs Build status updates of commit 225714c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-MigrationBatch.md
:white_check_mark:Succeeded
View (exchange-ps)

teams/teams-ps/teams/Get-CsTeamsShiftsConnectionConnector.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Get-CsTeamsShiftsConnectionInstance.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Get-CsTeamsShiftsConnectionSyncResult.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Get-CsTeamsShiftsConnectionTeamMap.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Get-CsTeamsShiftsConnectionUser.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Get-CsTeamsShiftsConnectionWfmTeam.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/New-CsTeamsShiftsConnectionInstance.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/New-CsTeamsShiftsConnectionTeamMap.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Remove-CsTeamsShiftsConnectionInstance.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Remove-CsTeamsShiftsConnectionTeamMap.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Set-CsTeamsShiftsConnectionInstance.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Test-CsTeamsShiftsConnectionValidate.md
:white_check_mark:Succeeded
View (teams-ps)

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 the docs.microsoft.com contributor guidesPost your question in the Docs support channel


[V3] Git dependency fails to install/restore

I have this weird issue with a git dependency. I appeared out of nowhere and I managed to get rid of it somehow once.
Whenever I try to restore or install, where paket.dependencies has a git dependency I get this
Paket failed with:
        Checkout to E:\Piskorz\Projekty\Wikibus\Argolis\paket-files\gist.github.com\5d9c6983004c1c9ec91f failed.
Message: Could not run "git clone file:///e:\Piskorz\.paket\git\db\5d9c6983004c1c9ec91f".
Error:
fatal: destination path '\Piskorz\.paket\git\db\5d9c6983004c1c9ec91f' already exists and is not an empty directory.

I tried deleting both directories, removing from paket.lock as if I installed for the first time and this just won't go away. Interestingly, the repository is actually successfully downloaded into paket-files, but paket doesn't continue with other packages

do you have a repro sample for me?

Not really. I've been struggling with this myself. On my work computer works fine every time
March 9 2016 10:01 AM, "Steffen Forkmann"  wrote:
�
do you have a repro sample for me?

—

Reply to this email directly or view it on GitHub (https://github.com/fsprojects/Paket/issues/1502#issuecomment-194191637).  �
�

Please close this. I've not seen this in months :)


Table in [Return Value] section isn't formatted correctly

The table in the [Return Value] section isn't correctly formatted.  See the "Content Source" link to see Github's rendering of the Markdown for that table, which is not correctly rendered and also matches how it is rendered on docs.microsoft.com.
(thank you for spending so much time and effort making these docs as excellent and precise as they are!)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a37359e8-8ea8-7240-7302-e3a1a6225060
Version Independent ID: 0822ae8c-973d-5051-ea91-e98bc4a0ee12
Content: IoGetDeviceDirectory function (wdm.h) - Windows drivers
Content Source: wdk-ddi-src/content/wdm/nf-wdm-iogetdevicedirectory.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @tedhudek
Microsoft Alias: tedhudek

Thanks @kyanha for the sharp eye.  Assigning over to Bill for the fix

@kyanha thank you for finding this, and for your kind comments. This is resolved.


Refactor startup logic to wait until server is fully startup

Wait until server is fully startup
Detect server startup failure
Remove apollo-assembly scripts

Coverage decreased (-0.03%) to 43.671% when pulling 38b88cfb7d5e550e165509204a094ad3b8cfb3eb on nobodyiam:startup-script-merge into 8c57944b4df6a04c9a3b2129b37428b2b7faa634 on ctripcorp:master.


/block cannot get response for height 106991

I cannot seem to get block 106991
curl --location --request POST 'http://<IP_ADDRESS>:8080/block' \
--header 'Content-Type: application/json' \
--data-raw '{
    "network_identifier": {
        "blockchain": "Filecoin",
        "network": "mainnet"
    },
    "block_identifier": {
        "index": 106991
    }
}'

Found the bug, fix will be available soon.


go learn page missing

The command:
curl cheat.sh/go/:learn
returns
Unknown topic

@LazzariPaolo Thank you for reporting! The problem is fixed, but please keep in mind that the other go pages come not from :learn, but from another repository. This page is not being split, because there are no chapters/parts in the original document that could be automatically recognized (compare it to :learn of Perl or Python for example).


No longer works in Python 3.12

I just updated my system Python to 3.12 and I have two issues:

pynvim cannot be installed outside of a venv
Inside a venv I can install it but I get an error when I run UpdateRemotePlugins

PEP 688 introduces the concept of externally managed environments. The idea is to prevent users from messing up their system by installing packages which might conflict with system packages, even when using the --user option. The only way to use pip is either as pipx (which is not applicable for pynvim) or in a venv.
Here is the error message I get:
$ pip install --user pynvim
error: externally-managed-environment

× This environment is externally managed
╰─>
    This system-wide Python installation is managed by the Void Linux package
    manager, XBPS. Installation of Python packages from other sources is not
    normally allowed.

    To install a Python package not offered by Void Linux, consider using a virtual
    environment, e.g.:

    python3 -m venv /path/to/venv
    /path/to/venv/pip install <package>

    Appending the flag --system-site-packages to the first command will give the
    virtual environment access to any Python package installed via XBPS.

    Invoking python, pip, and executables installed by pip in /path/to/venv/bin
    should automatically use the virtual environment. Alternatively, source its
    activation script to add the environment to the command search path for a shell:

    . /path/to/venv/activate

    After activation, running

    deactivate

    will remove the environment from the search path without destroying it.

    The XBPS package python3-pipx provides pipx, a convenient tool to automatically
    manage virtual environments for individual Python applications.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Next I tried creating a venv and running pip install pynvim in it. This worked fine, but when I executed :UpdateRemotePlugins I got the following error:
function remote#host#UpdateRemotePlugins[6]..<SNR>92_RegistrationCommands[15]..remote#host#Require[10]..provider#pythonx#Require[1
2]..provider#Poll, line 7
Vim(if):Error invoking 'poll' on channel 3:^@Invalid channel: 3
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/hiphish/Desktop/derp/.venv/lib/python3.12/site-packages/neovim/__init__.py", line 5, in <module>
    import pynvim
  File "/home/hiphish/Desktop/derp/.venv/lib/python3.12/site-packages/pynvim/__init__.py", line 9, in <module>
    from pynvim.api import Nvim, NvimError
  File "/home/hiphish/Desktop/derp/.venv/lib/python3.12/site-packages/pynvim/api/__init__.py", line 7, in <module>
    from pynvim.api.buffer import Buffer
  File "/home/hiphish/Desktop/derp/.venv/lib/python3.12/site-packages/pynvim/api/buffer.py", line 2, in <module>
    from pynvim.api.common import Remote
  File "/home/hiphish/Desktop/derp/.venv/lib/python3.12/site-packages/pynvim/api/common.py", line 6, in <module>
    from pynvim.compat import unicode_errors_default
  File "/home/hiphish/Desktop/derp/.venv/lib/python3.12/site-packages/pynvim/compat.py", line 5, in <module>
    from imp import find_module as original_find_module
ModuleNotFoundError: No module named 'imp'
function remote#host#UpdateRemotePlugins[6]..<SNR>92_RegistrationCommands[15]..remote#host#Require[10]..provider#pythonx#Require[12]..provider#Poll, line 17
Failed to load python3 host. You can try to see what happened by starting nvim with $NVIM_PYTHON_LOG_FILE set and opening the generated log file. Also, the host stderr is available in messages.
Vim(if):Error invoking 'Poll' on channel 4:^@Invalid channel: 4
function remote#host#UpdateRemotePlugins[6]..SNR>92_RegistrationCommands[15]..remote#host#Require[10]..lisp#RequireLispHost, line 26
remote/host: generated rplugin manifest: /home/hiphish/.local/share/nvim/rplugin.vim

The first problem is unfortunate because it means any Python-based plugin is now broken unless I am working on a Python project. Remote plugins have fallen somewhat out of favor since we have Lua, but they still have value if I really want to use a Python library. The second problem however breaks Python remote plugins entirely.

Did you try the unreleased version? https://github.com/neovim/pynvim/issues/538 mentions an issue with imp

Yes, the master branch fixes the second issue. Should I close this one?

Yes this has already been fixed by #534. Until released, you can install the master version:
pip install 'pynvim @ git+https://github.com/neovim/pynvim'

I can override the installation issue by passing the --break-system-packages flag to pip. So the full command is
pip install --break-system-packages --user 'pynvim @ git+https://github.com/neovim/pynvim'

The name --break-system-packages sounds scary but it won't break the system as long as --user is used to install packages to the user's home directory instead of globally. It might break the user's personal configuration, but that can be solved by throwing away the Python files:
# Remove files manually, may leave residue files in ~/.local/bin
rm -rf ~/.local/include/python3.* ~/.local/lib/python3.*

This is good enough for me.


fix #121 fix #56

/cc @araq this seems to:

fix #121 (as well as my original problem from which this was a reduced case)
also works with reordering eg: velements = velements[2..^1] => velements = @[velements[2], velements[4], velements[3]]
fix #56 (in particular https://github.com/pragmagic/karax/issues/56#issuecomment-531099826 which more obviously exhibits the bug)

But it does improve the situation, so merging.


Retry Test-Module manifest calls to avoid sporadic failures due to concurrency/thread safety issue in  PowerShell itself

PR Summary
Fixes #901
Fixes #902
Retry Test-ModuleManifest that can sometimes throw due to a thread safety issue in PowerShell itself (I can repro in versions 5-7 and maybe later I want to look into fixing it in PS itself).
This makes PSSA more stable by retrying the operation and resolves the issue as I manually tested. I am keeping the existing method that it calls public to not break the public API although I don't think anyone is using it.
I tried to write a test for it but although I can reproduce locally, it is hard to write test that reproduces this race condition.
I also opened a PR in PowerShell itself to get it fixed in v7: https://github.com/PowerShell/PowerShell/pull/9860
UPDATE: I opened PR #1258 which might be a better alternative by locking the calls of Test-ModuleManifest
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .cs, .ps1 and .psm1 files have the correct copyright header
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

UPDATE: I opened PR #1258 which might be a better alternative by having a lock around the calls of Test-ModuleManifest


update api sha

update api sha to latest api sha in 1.0 branch

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: rkpagadala
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: linsun
Assign the PR to them by writing /assign @linsun in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Feature request: Add ACMG info

Clinical centers are recommended to check ACMG's incidental finding list (http://www.ncbi.nlm.nih.gov/clinvar/docs/acmg/). It would be useful if Gemini facilitated this kind of query by either building a "Built-in analysis tool" for this or by adding a column to variants table indicating whether a gene was in the list (though only 56 currently have this designation).
I'm having some trouble figuring out what people are actually doing to parse their variants for this purpose, but I think doing the following query makes sense to filter for the genetic counselor.
Pseudo command:
SELECT * FROM variants WHERE gene=one_of_HGMD
AND clinvar_sig LIKE '%pathogenic%'
OR impact_severity='HIGH'
AND maf_aaf_all < 0.05

Here's an actual functioning command which is trio-based, since that's how most of our exomes are setup:
family_id='the_family_id'
gemini query --header -q "SELECT chrom, start, gene, clinvar_sig, impact, impact_severity, max_aaf_all, (gts).(family_id=='$family_id') FROM variants WHERE \
	( \
		gene='ACTA2' \
		OR gene='ACTC1'\
		OR gene='APC'\
		OR gene='APOB'\
		OR gene='BRCA1'\
		OR gene='BRCA2'\
		OR gene='CACNA1S'\
		OR gene='COL3A1'\
		OR gene='DSC2'\
		OR gene='DSG2'\
		OR gene='DSP'\
		OR gene='FBN1'\
		OR gene='GLA'\
		OR gene='KCNH2'\
		OR gene='KCNQ1'\
		OR gene='LDLR'\
		OR gene='LMNA'\
		OR gene='MEN1'\
		OR gene='MLH1'\
		OR gene='MSH2'\
		OR gene='MSH6'\
		OR gene='MUTYH'\
		OR gene='MYBPC3'\
		OR gene='MYH11'\
		OR gene='MYH7'\
		OR gene='MYL2'\
		OR gene='MYL3'\
		OR gene='MYLK'\
		OR gene='NF2'\
		OR gene='PCSK9'\
		OR gene='PKP2'\
		OR gene='PMS2'\
		OR gene='PRKAG2'\
		OR gene='PTEN'\
		OR gene='RB1'\
		OR gene='RET'\
		OR gene='RYR1'\
		OR gene='RYR2'\
		OR gene='SCN5A'\
		OR gene='SDHAF2'\
		OR gene='SDHB'\
		OR gene='SDHC'\
		OR gene='SDHD'\
		OR gene='SMAD3'\
		OR gene='STK11'\
		OR gene='TGFBR1'\
		OR gene='TGFBR2'\
		OR gene='TMEM43'\
		OR gene='TNNI3'\
		OR gene='TNNT2'\
		OR gene='TP53'\
		OR gene='TPM1'\
		OR gene='TSC1'\
		OR gene='TSC2'\
		OR gene='VHL'\
		OR gene='WT1'\
	) \
	AND \
	(clinvar_sig LIKE '%pathogenic%' OR impact_severity='HIGH') \
	AND \
	max_aaf_all < 0.005" \
	--gt-filter "(gt_types).(family_id=='$family_id').(!=HOM_REF).(count>=1)" \
	gemini.db | | less -S

(In my database, I did do quick check with sort and uniq and my database (0.18) does recognize all the 56 genes.)
If you just want the ACMG list (parsed from http://www.ncbi.nlm.nih.gov/clinvar/docs/acmg/), here it is:
ACTA2
ACTC1
APC
APOB
BRCA1
BRCA2
CACNA1S
COL3A1
DSC2
DSG2
DSP
FBN1
GLA
KCNH2
KCNQ1
LDLR
LMNA
MEN1
MLH1
MSH2
MSH6
MUTYH
MYBPC3
MYH11
MYH7
MYL2
MYL3
MYLK
NF2
PCSK9
PKP2
PMS2
PRKAG2
PTEN
RB1
RET
RYR1
RYR2
SCN5A
SDHAF2
SDHB
SDHC
SDHD
SMAD3
STK11
TGFBR1
TGFBR2
TMEM43
TNNI3
TNNT2
TP53
TPM1
TSC1
TSC2
VHL
WT1

ok. I'll have a look. You can always use sql:
AND gene in ($genes)

where $genes can be created in python with ",".join("'%s'" % g for g in genes)

Ah, that's cleaner
acmg_genes=\'ACTA2\',\'ACTC1\',\'APC\',\'APOB\',\'BRCA1\',\'BRCA2\',\'CACNA1S\',\'COL3A1\',\'DSC2\',\'DSG2\',\'DSP\',\'FBN1\',\'GLA\',\'KCNH2\',\'KCNQ1\',\'LDLR\',\'LMNA\',\'MEN1\',\'MLH1\',\'MSH2\',\'MSH6\',\'MUTYH\',\'MYBPC3\',\'MYH11\',\'MYH7\',\'MYL2\',\'MYL3\',\'MYLK\',\'NF2\',\'PCSK9\',\'PKP2\',\'PMS2\',\'PRKAG2\',\'PTEN\',\'RB1\',\'RET\',\'RYR1\',\'RYR2\',\'SCN5A\',\'SDHAF2\',\'SDHB\',\'SDHC\',\'SDHD\',\'SMAD3\',\'STK11\',\'TGFBR1\',\'TGFBR2\',\'TMEM43\',\'TNNI3\',\'TNNT2\',\'TP53\',\'TPM1\',\'TSC1\',\'TSC2\',\'VHL\',\'WT1\'
family_id='your_fam_id'
gemini query --header -q "SELECT chrom, start, gene, clinvar_sig, impact, impact_severity, max_aaf_all, (gts).(family_id=='$family_id') FROM variants WHERE \
	(gene IN ($acmg_genes) ) \
	AND \
	(clinvar_sig LIKE '%pathogenic%' OR impact_severity='HIGH') \
	AND \
	max_aaf_all < 0.005" \
	--gt-filter "(gt_types).(family_id=='$family_id').(!=HOM_REF).(count>=1)" \
	gemini.db |  less -S


refactor: remove google font dependency, add local font

Google Dependency is kind of risky in EU if you do not request explicit user consent with some shitty cookie banners. Therefor I downloaded the font, added it to the static folder and hardcoded it in the baseof.html. It works fine for https://ayeks.de/ source

A workaround for people who are waiting for this:

Overwrite the baseof.html of the theme: Copy the version of theme to layouts/_default/baseof.html. (Note: Consider copying the license as well.)

Use tools such as https://github.com/majodev/google-webfonts-helper to download the font. You want to download the regular/400 and 700, see https://github.com/zerostaticthemes/hugo-winston-theme/blob/8f29177df250a863ccfbd0191bf20661a32e6a83/layouts/_default/baseof.html#L33 for reference. Save the downloaded fonts in the static folder. (Note: Consider attributing it, see https://fonts.google.com/attribution for reference)

Replace in the baseof.html the Google font loading with the <style> shown in the download tool. For getting the URL correct see https://github.com/zerostaticthemes/hugo-winston-theme/blob/8f29177df250a863ccfbd0191bf20661a32e6a83/layouts/_default/baseof.html#L9 as an example.

Whatever the solution is, it should be more customizable. Some users want Google fonts and it is easier to change the font. Some users will have a lot of difficulty changing local fonts.
We recently merged a change where custom fonts can be set in the config.
Can we make this work with both google and local fonts?
Maybe we can add @Xennis instructions to the README.md as well?

Hi @JugglerX, I'm not the author of the PR. Still, my suggestion would be:

It would be great if the theme gives users the possibility to include custom code into the <head> (e.g. a conditional "if file exists" block).
It would be nice if the theme has a parameter to disable Google fonts (e.g. it's enabled by default but can be disabled by some gdpr option).
Not merging the PR here. It's rather specific. If users want to include their own fonts there are different ways. Instead, just enable users by 1 and 2 (for having the option). Just one example what I mean with rather specific: The PR here uses the following:

    @font-face {
      font-family: 'Poppins';
      src: url('/Poppins-Bold.ttf')  format('truetype')
    }

If you use the tool mentioned you end up with something like:
/* poppins-regular - latin */
@font-face {
 font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
 font-family: 'Poppins';
 font-style: normal;
 font-weight: 400;
 src: url('../fonts/poppins-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

for the "moderns browsers" options. For the "legacy support" it would like like:
/* poppins-regular - latin */
@font-face {
 font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
 font-family: 'Poppins';
 font-style: normal;
 font-weight: 400;
 src: url('../fonts/poppins-v20-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url('../fonts/poppins-v20-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

From my side (as a user of the theme; I'm not a maintainer etc. here):

It would be great if the theme gives users the possibility to include custom code into the  (e.g. a conditional "if file exists" block).

Here are two examples from other themes: https://github.com/matcornic/hugo-theme-learn/blob/e817f53d690d35f181c896e0e320cb40f797e88c/layouts/partials/header.html#LL41C5-L42C1 and https://github.com/cloudera/hue/blob/07fdafb4d3052de7b5fa77a5d28085bfc9d27e11/docs/docs-site/themes/hugo-theme-learn/layouts/partials/header.html#L36 They are having a partial in the header which allows to easily put custom code (e.g. loading a local font) into the <head>.
This could be a separate PR.

It would be nice if the theme has a parameter to disable Google fonts (e.g. it's enabled by default but can be disabled by some gdpr option).

For example:
  {{ if not .Site.Params.disableGoogleFonts }}
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap" rel="stylesheet">
  {{ end }}

So you can turn off via a parameter the loading of Google fonts.

The latest release allows you to
https://github.com/zerostaticthemes/hugo-winston-theme/blob/master/exampleSite/config.toml#L34

specify your fonts in config.toml and specify the google fonts url to get the assets.
disable google fonts
had a custom css, head and footer partial which could be used to handle local fonts.

The only case we have not covered via configuration is when a user wants to use locally hosted custom fonts. This involves generating @font-face files and setting the correct paths in the CSS. I'm not sure this can be a simple config option in the config.toml. I worry non technical users will struggle to download fonts, place them in correct folder and set correct paths and that will generate issues.

Thanks, @JugglerX. I just updated to the latest version.
For all people interested here the updated instructions:
A workaround for people who are waiting for this:

Use tools such as https://github.com/majodev/google-webfonts-helper to download the font. You want to download the regular/400 and 700, see https://github.com/zerostaticthemes/hugo-winston-theme/blob/8f29177df250a863ccfbd0191bf20661a32e6a83/layouts/_default/baseof.html#L33 for reference. Save the downloaded fonts in the static folder. (Note: Consider attributing it, see https://fonts.google.com/attribution for reference)
In your config.toml set in params section enableGoogleFonts = false
Copy the file extend-head.html to layouts/partials/extend-head.html. Paste here the  <style> shown in the download tool. For getting the URL correct see https://github.com/zerostaticthemes/hugo-winston-theme/blob/8f29177df250a863ccfbd0191bf20661a32e6a83/layouts/_default/baseof.html#L9 as an example.


rename types

Need to review this: https://github.com/Azure/azure-sdk-for-cpp/pull/2592 first.

Need to review this: #2592 first.

Any reason to do it in two separate PRs, or can we just review and merge this one only?

Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/2582

@vhvb1989 let me know what you are planning for this PR. We want it :)

/azp run cpp - keyvault

/azp run cpp - keyvault


Fix strictMode

Added the static initializer for strictMode before kieker.monitoring.core.controller.MonitoringController.getInstance()
Added example test project  project_2_extends with a class that extends Application class
Updated tests

Thanks for the PR! Looks good.


Request: tutorial for Socket.IO via python-socketio integration

Summary
I am trying to use Socket.IO via python-socketio to stream logs from my back end to my Streamlit front end.
There are a few Streamlit discussions on working with Socket.IO, but none are "complete":

https://discuss.streamlit.io/t/using-session-state-within-socketio-client-events/45774
https://discuss.streamlit.io/t/callback-hook-on-a-state-change/29529
https://discuss.streamlit.io/t/is-there-a-way-to-create-a-streamlit-app-thats-the-same-for-everyone-more-in-description/40180

The request is to make a comprehensive demo of Streamlit working with python-socketio. It would be cool if the demo involved my somewhat simple use case, which is streaming logs from the back end to the front end.
Why?
Socket.IO (basically abstraction for WebSockets) is a way of enabling real-time bidirectional communication between back end and front end. I think it's a common tool.
How?
Perhaps an Advanced features article
Additional Context
No response

Transferred to docs. Thanks for the suggestion!

Is there a tutorial on this after all? I was looking for the same thing just now.

Inspired by st_route.py, I made the following to enable Socket.IO (server) in streamlit.
st_socketio.py

Thank you @sefgit , I will try it!


Use theme colors to build highlight groups for statusline

Hard coded colors on the status line do not work well with different color schemes. By linking to base colors we can keep the current look and have better theme compatibility.

initial support in #7 will look into a more reliable way for generating the highlights because not all colorschemes define highlight groups for 'Red', 'Orange', 'Yellow', 'Green', 'Aqua', 'Blue', 'Purple' and 'Normal'