Agora - Unable to view Ag-AKS-Staging resources in Azure portal.

Is your issue related to a Jumpstart scenario, ArcBox, HCIBox, or Agora?
Agora
Describe the issue or the bug
Unable to view Ag-AKS-Staging resources in Azure portal.
To Reproduce
deploy via azd up via VScode dev containers.
Expected behavior
I expect to be able to view Ag-AKS-Staging resources in Azure portal.
Environment summary
Have you looked at the Troubleshooting and Logs section?
Screenshots

Additional context

Hello @bpersino , thanks for reaching out. This is one of the security capabilites of Azure Kubernetes Service , you would need to grant yourself the right authorization to view the different AKS resources in the Azure portal following this guidance

Hello @bpersino , thanks for reaching out. This is one of the security capabilities of Azure Kubernetes Service , you would need to grant yourself the right authorization to view the different AKS resources in the Azure portal following this guidance

@sebassem  Understood. I had assumed the bicep deployment would automate this step. Now that I'm aware it doesn't, I've managed to get it working. You can close the case, and thank you for your support.

@sebassem Understood. I had assumed the bicep deployment would automate this step. Now that I'm aware it doesn't, I've managed to get it working. You can close the case, and thank you for your support.

Thank you for the confirmation, we will add a note in the readme for this


Need licenses

We need an appropriate license for this repo, as well as maybe a way to include licenses for re-distributing the libraries that are being built by this project?
@Ingvord if you could help with this, it would be greatly appreciated.

I'm not opposed to commercial use, though this software was initially created to support open science and open-source projects.  I would prefer to use a very open-source friendly license.
And yes, I am expecting to re-distribute these libraries through npm, in binary form (as .so files).  The licenses for the various libraries seemed to indicate that binary forms of the libraries should be accompanied by said licenses.
The authors of https://github.com/HDFGroup/hdf5_plugins (which gets pulled in as a source during the build of the plugins here) go to the effort of including the licenses in their source tree, for library sources they've copied.

AFAIK using npm install or basically creating any bundle in NodeJs world will contain licenses under node_modules folder. Unless otherwise specifically done to not to - we need just to build and check what is inside the resulting artifact.
So I would go with Apache 2. I will create the corresponding PR. Thanks


add windows client assistance request control menu item

@freerdp-bot test please

@freerdp-bot test

@garbb could you rebase the branch and squash all commits into one please?

well i think i finally figure out how to merge all the commits after i messed it up several times??

@freerdp-bot test

@freerdp-bot please test again!

@freerdp-bot test please

@freerdp-bot test


test: fix tests

Motivation
Tests are failing
Solution
Fix them

testFailFuzz did not fail as it should in some cases. This is because proptest just makes us generate a new tree on every test case, so effectively we're just throwing random numbers at the fuzz test. Since we run 256 times, there is a probability that we don't hit x = 5 exactly, so I just broadened the chance of failure (x > 128 fails the test)

Closes #2548

Proof of full suite pass: https://github.com/foundry-rs/foundry/actions/runs/2798044588


New trackfile removed after less than a minute and not recreated

Aug 29 00:24:05 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF created new trackfile aircraft=F-15C id=2564 name="Halo 1 | Zaid"
Aug 29 00:24:20 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF broadcasting PICTURE call
Aug 29 00:24:20 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF broadcasting PICTURE count=3 groups=3
Aug 29 00:24:20 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF extended next PICTURE broadcast time deadline=2024-08-29T00:26:20Z
Aug 29 00:24:20 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF composing brevity call params={"Count":3,"Groups":[{},{},{}]} type=brevity.PictureResponse
Aug 29 00:24:20 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF composed brevity call params={"Count":3,"Groups":[{},{},{}]} speech="Thunderhead, 3 groups. Group bullseye zero fohwer fohwer, 102, 9000, track west, hostile, 2 contacts, Fitter. Group bullseye zero seven zero, 140, 17000, track east, hostile, 2 contacts, Fishbed. Group bullseye one tree six, 82, 21000, track east, hostile, 2 contacts, Fulcrum." subtitle="Thunderhead, 3 groups. Group bullseye 044/102, 9000, track west, hostile, 2 contacts, Fitter. Group bullseye 070/140, 17000, track east, hostile, 2 contacts, Fishbed. Group bullseye 136/82, 21000, track east, hostile, 2 contacts, Fulcrum." type=brevity.PictureResponse
Aug 29 00:24:20 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF synthesizing speech text="Thunderhead, 3 groups. Group bullseye zero fohwer fohwer, 102, 9000, track west, hostile, 2 contacts, Fitter. Group bullseye zero seven zero, 140, 17000, track east, hostile, 2 contacts, Fishbed. Group bullseye one tree six, 82, 21000, track east, hostile, 2 contacts, Fulcrum."
Aug 29 00:24:21 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF created new trackfile aircraft=MiG-29A id=505090 name=M29Easy#001-01
Aug 29 00:24:21 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF created new trackfile aircraft=MiG-29A id=505346 name=M29Easy#001-02
Aug 29 00:24:22 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF synthesized audio clockTime=1.84596162s
Aug 29 00:24:22 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF transmitting audio
Aug 29 00:24:50 ubuntu-16gb-fsn1-1 skyeye[1504]: 12:24AM INF removed aged out trackfile age=9223372036854.775 aircraft=F-15C id=2564 name="Halo 1 | Zaid"

This was for a cold aircraft sitting in a hangar- perhaps we weren't receiving updates because tacview omits them in this case?

Also happened here:

Aug 29 01:18:58 ubuntu-16gb-fsn1-1 skyeye[2270]: 1:18AM INF created new trackfile aircraft=F-15ESE id=67843 name="Shogun 1-1 | Rhypher134"
Aug 29 01:19:44 ubuntu-16gb-fsn1-1 skyeye[2270]: 1:19AM INF removed aged out trackfile age=82000 aircraft=Su-17M4 id=647170 name=AShM#001-01
Aug 29 01:19:44 ubuntu-16gb-fsn1-1 skyeye[2270]: 1:19AM INF removed aged out trackfile age=9223372036854.775 aircraft=F-15ESE id=67843 name="Shogun 1-1 | Rhypher134"
Aug 29 01:19:44 ubuntu-16gb-fsn1-1 skyeye[2270]: 1:19AM INF removed aged out trackfile age=69000 aircraft=Su-17M4 id=647426 name=AShM#001-02

Seems to have been fixed?


Server not available

The http://assemblytics.com/ web throws the following error:
503 Service Unavailable
No server is available to handle this request.

Looks like the whole institute’s server is down. I’ll check in on it.

The machine is offline, but I just emailed IT to get it rebooted
Thanks
Mike
On Tue, Dec 14, 2021 at 8:21 PM Maria Nattestad @.***>
wrote:

Looks like the whole institute’s server is down. I’ll check in on it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MariaNattestad/Assemblytics/issues/43#issuecomment-994199674,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABP344I7YPH2G4DFPKJYULUQ7UTHANCNFSM5KBHOSSA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Config object for topbar buttons

Describe the problem/need and solution
Context
As pointed out by @choldgraf, top-bar buttons are at present hardcoded in the template file, with conditionals determining their presence. Each has its own separate config value. Would be ideal to assimilate them into an object, and implement a less hardcoded way to display/hide these buttons.
Solution
https://furo-topbar.readthedocs.io/en/latest/ can be used as an inspiration
Benefits
Can reduce the clutter of conditionals and duplication of html in the theme code, and make it easier for a user to read and configure as every top-bar button/action would be in one place(object).
Guide for implementation
No response
Tasks and updates
No response

Duplicate of https://github.com/executablebooks/sphinx-book-theme/issues/470


Wrong Colors

Hey guys, i am not sure if this is a software or a hardware problem but i use this software on an esp2866-01(1MB) installed with PlatformIO to controll some WS2812B (https://www.amazon.de/gp/product/B07KGB5FR6/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1).
And i am getting the wrong colors, the are pretty random and i cant see an order. I tried it with "#define USE_WS2812FX_UART1" and without it on LED_PIN 2, with two different esp modules. Now i am bit stuck here and would appreciate any kind of help.

Here is my test setup, the leds are getting 5v/20A from a powersupply and the esp is powerd by an usb adapter. I tried it with and without the 220Ω resistor it shows the same issue.

Hi @NicoEich,
if you're using the latest version, you can change the color scheme via HTTP call. Have a look here: https://github.com/toblum/McLighting/issues/367
Regards
Tobias

Hi, thanks for the fast reply. Is the default color scheme not GRB ?
Did some more research today and maybe my data ouput voltage could be to low. The WS2812b datasheet says that the input data voltage should be 70% of the VCC, so with 5V VCC it should be at least 3,5V data voltage. The esp-01 has just 3.3V so i have to test this out first.
Has anyone here used an Esp 2866-01 to control WS2812b and could show me his data connection ?

Do you have common ground?
Assuming #define USE_WS2812FX_UART1
Power      -> WS2812B
5V Power -> VIN
GND        -> GND
ESP8266   -> WS2812B
GPIO2   -> 220Ω resistor (optional) -> DATA
GND     -> GND
USB ADAPTER -> ESP8266
5V     ->  5V LDO
GND -> GND

Thanks, no they dont have a common ground. I thought the power ground would be enough.
So i have to connect the ESP GND with the WS2812B GND and the USB Ground, gonne do that tomorrow.

So i can finally say its working, i had to sacrifi one led as power shifter and connect the led ground with esp ground. The sacrificial led is explained here:
( https://hackaday.com/2017/01/20/cheating-at-5v-ws2812-control-to-use-a-3-3v-data-line/ )
Thank you for your help


Add functionality to collectable chip, add chips to levels

New and improved chip!

Better textures (now featuring bump maps, selective metallicness and prettier albedo texture)
Collectable chips placed around in both maps
Collectable chips can now in fact be collected

Seems like there's a brief moment where the player is actually stopped by the chip collider before it disappears 🤔

I like the new chip design. However i feel it does not look too nice on maps when the directional light is directly above, see below.

This is a problem with the directional light in that specific stage being set by multiple light sources (which is a bit jank)

Perhaps adding a wobble on the axis on the coin as it revolves would help. In addition adding a random initial rotation would prevent the coins from sharing identical rotations. Perhaps adding some sort of particle effect would also help the coins "pop" more out from their surrondings.

I don't agree with this due to wanting to emulate the movement of coins in 3D mario games.
I will override this request as these changes should be added asap in its current state due to: time constraints before spillexpo and potential scene merge conflicts.


Update QuickStart guides to use copy/paste links to lastest version

Describe in detail the problem you had and how this PR fixes it
No problem, just a feature update to follow up on comment submitted in PR 255.
It uses the api to find the latest release version, downloads it, and extracts it over the old version to update code server to the latest  version of code-server with no changes to the commands required by the user.
Is there an open issue you can link to?
No

to test the script you can use the following command as I set the link in the guides to point to codercom/code-server/master rather than to my forked repo:
 bash <(curl -s https://raw.githubusercontent.com/illiapoplawski/code-server/quickstart-copy-paste-links/scripts/update.sh)

If there's a better place to store the script feel free to store it elsewhere and then update the link to point to that more permanent location.

cc @nhooyr

In the future it would be nice for the script to be OS aware (darwin vs linux), but since this is only mentioned from the cloud guides we can work on that later.

I can easily update the script to automatically find the current running os darwin or linux then download and install the correct file.  The rest of the guide would need to be updated as well.  Should I do it in this PR or in a new one?

I've updated to be in-line with master and am not planning on adding anything else to this PR unless anyone else has anything to change.

See #94
We can remove almost all of these docs now.

Are you recommending closing because sshcode automatically downloads the latest version of code-server?

Yes.


s2u-18: Search questions by keywords in question pools

Put the commit ID and the PR title in capital letters,
S2U-18 instead of s2u-18


Distributed processing

Some time ago I was looking for alternatives to run.pl/queue.pl style of distributing work on a cluster, hoping for something that would both interface nicely with SGE and allow to stay 100% in Python at the same time. I discovered that dask is able to do that, and I was able to run some simple computations on CLSP cluster this way. I know it also supports slurm and some other grid engines, we could have a "local" backend too.
The minimal code to achieve that looks more or less like that:
from dask_jobqueue import SGECluster
from dask.distributed import Client

def run_jobs(
        fn,
        inputs,
        jobs=1,
        memory='1GB',
        timeout_s='600',
        queue='all.q',
        proc_per_worker=1,
        cores_per_proc=1,
        env_extra=None,
        **kwargs
):
    if env_extra is None:
        env_extra = []
    with SGECluster(
            queue=queue,
            walltime=timeout_s,
            processes=proc_per_worker,
            memory=memory,
            cores=cores_per_proc,
            env_extra=env_extra  # e.g. ['export ENV_VARIABLE="SOMETHING"', 'source myscript.sh']
    ) as cluster:
        with Client(cluster) as client:
            cluster.scale(jobs)
            futures = client.map(fn, inputs)
            results = client.gather(futures)
    return results

and can be used like:
def process_item(x):
    pass  # do processing

items = [ ... ]

results = run_jobs(process_item, items)

I'd like to know if you'd be interested in giving it a try and exploring this option. @danpovey @jtrmal

Hm, that's interesting.  Where do the logs go?
How about the case where we want the individual nodes to write the file output directly?
How about the case when you want to parallelize on the local machine?
Regardless, I don't want to integrate this too tightly with the other pieces; I'd like a separation of concerns as much as possible.  Maybe we could have the notion of splitting a manifest file to job n of k.

Hm, that's interesting.  Where do the logs go?
How about the case where we want the individual nodes to write the file output directly?
How about the case when you want to parallelize on the local machine?
Regardless, I don't want to integrate this too tightly with the other pieces; I'd like a separation of concerns as much as possible.  Maybe we could have the notion of splitting a manifest file to job n of k.

Hm, that's interesting. Where do the logs go?

I think I saw it create some queue-related logs somewhere in the home directory, maybe it's a configurable thing. Regarding task-related logs, that remains to be explored - I didn't try to interact with the logging module yet.

How about the case where we want the individual nodes to write the file output directly?

You would likely pass the output filename as one of the arguments.

How about the case when you want to parallelize on the local machine?

Create a different "backend" for this function which uses concurrent.futures.ProcessPoolExecutor (you'd need multiple backends anyway to support SGE, Slurm, etc.).

Regardless, I don't want to integrate this too tightly with the other pieces; I'd like a separation of concerns as much as possible. Maybe we could have the notion of splitting a manifest file to job n of k.

👍

This one is out of scope - maybe one day I'll explore it and make a separate repo ;)


Password Hashing update

Purpose
Update frontend to send base64 hashed password to backend
Changes

base64 encode password on frontend
update backend to decode incoming base64 back into plaintext & fix all backend test failures
add more tests for cryptographic_utils

Checklist

[x] Update CHANGELOG.md file

[x] Merge in main so the most recent CHANGELOG.md file is being appended to
[x] Add description within the Unreleased section in an appropriate category. Add a new category from the list at the top of the file if the needed one isn't already there.
[x] Add a link to this PR at the end of the description with the PR number as the text. example: #1

[ ] Applicable documentation updated (guides, quickstart, postman collections, tutorial, fidesdemo, database diagram.
If docs updated (select one):

[ ] documentation complete, or draft/outline provided (tag docs-team to complete/review on this branch)
[ ] documentation issue created (tag docs-team to complete issue separately)

[ ] Good unit test/integration test coverage
[ ] This PR contains a DB migration. If checked, the reviewer should confirm with the author that the down_revision correctly references the previous migration before merging
[ ] The Run Unsafe PR Checks label has been applied, and checks have passed, if this PR touches any external services

Ticket
Fixes #

Thanks for taking a look @pattisdr and good find. I'll work on updating those docs now


Fix releasemanagement

Releasemanagement should be fixed

release tags are missing
github releases seems to be missing
README.md contains releasenotes of  0.0.10 although npm provides a 0.0.12
package.json states a 0.0.20 while io-package.json hspecifies 0.0.15

@alcazone/release-script should be configured and used to avoid inconstiencies

I would maybe do this when I think it's ready for a real first use

is now included and will be used on first release

thanks


Provide virtual package psr/http-client-implementation

Hello,
since Http\Client\HttpClient extends Psr\Http\Client\ClientInterface, then any implementation of Http\Client\HttpClient also provides implementation of Psr\Http\Client\ClientInterface.
Therefore Http\Mock\Client provides these implementations and so it would be nice if psr/http-client-implementation was also added to composer provide section (like php-http/client-implementation and php-http/async-client-implementation).
I am requesting this change because of this issue: https://github.com/chartmogul/chartmogul-php/pull/76
where we need to change dependency from php-http/client-implementation to psr/http-client-implementation while we want to keep php-http/mock-client to be used for mocking.
I am willing to implement this change, but since it involves just 1 line addition, I think it would be better implemented by maintainers while avoiding the forking burden...

i find it weird to have a testing tool "provide" those, but we already do it for the php-http implementations so it is consistent to do it for psr.
however, according to composer.json we allow installation with httplug 1.0 which does not implement the psr client interface. options i see:

just add the provide and hope people don't end up with weird broken installations. tag as 1.4.2
drop httplug 1.0 in the mock client and only support 2.0 from now on. tag as 1.5
wait some more time before we do option 2

@Nyholm do you have an opinion? i tend towards 2.

i find it weird to have a testing tool "provide" those, but we already do it for the php-http implementations so it is consistent to do it for psr.

Normally you would only use this package as require-dev in your project anyway and so the question about whether a Mock is allowed to provide an HTTP implementation would be fine from my point of view.
I consider the main use of such a component to be in libraries that do not intend to specify a concrete dependency and need themselves a mock as a substitute for a concrete implementation.
But I also see a certain probability that first-level projects could also use such a Mock for their own test environment, which might weaken the usefulness of provide.
But to add a package in between that just opens php-http/mock-client by one provide, so you can use both options, feels wrong too.

any updates on this? imo 2 seems like a good choice

I have spent the last 4 hours trying to figure out why composer was throwing the Your requirements could not be resolved to an installable set of packages. error at me when I was following the php-http Library Developer documentation.
That documentation seems to think this library implements psr/http-client-implementation.
Composer/Packagist search also seems to think that this library implements psr/http-client-implementation

Either this package needs to implement psr/http-client-implementation or packagist and the php-http documentation need to be updated to reflect reality.

hm, indeed. i don't know why packagist finds it in the search, as the package only provides php-http/client-implementation, not the psr implementation...
but looking at this again, i think we should indeed simply have it provide the psr implementation as well. it does provide the php-http/client-implementation already and from the doc change, we intended to also provide the psr implementation.

see #57


New wrap: hedley

upstream url: https://github.com/nemequ/hedley
version: 9
Have put up a repo at: https://github.com/mattyclarkson/hedley

This name seems a little ambiguous, will nemequ-hedley work?

It would, but  what happens if it ever moves to a shared org? Similar to the catch/catch2 rename? I don't particularly mind but hedley seems pretty unique nothing else comes up in a Google search for c c++ hedley

Bump

Sorry for the delay in my response.
I don't have a good answer here. Unfortunately the policy is not strict enough to handle these cases well. If the name is ambiguous I would go for owner-name, if name is widely recognized I go for name. I think c++ hedley search is reasonable as the context is important. So I am creating https://github.com/mesonbuild/hedley.
I created branch 10 as it is the latest version available at the moment.


S26 doesn't answer on <IP_ADDRESS>

I'm successfully connected to ITEAD-xxxxxxx with laptop. Scan ports indicates open port 80 on S26 device.  But browser doesn't receive anything from that address.
I'm unable to find description of the similar situation.
Please advise.
Firmware version is 3.5.1

The same for me.
http://<IP_ADDRESS>/device
this is giving some device info

Oh, yes!
Really. It gave me some device info:
{"deviceid":"100354c1d3","apikey":"e973164f-940c-469e-a5bc-9437a3fafa41","accept":"post","chipid":"01859831"}
Any idea, what it could be used for?
PS. Data is intentionally corrupted by me, just in case.

nope, readed more and S26 isnt suported.
Just flashed it with cable

Just flashed it with cable

What do you mean?

Same here. You can use a POSt request to connect to wifi, see this: https://github.com/itead/Sonoff_Devices_DIY_Tools/issues/125


[Impeller] Text transforms are missing.

Steps to reproduce
The rendered output from Android and iOS are totally different.
Expected results
Android

Actual results
iOS

Code sample
Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text("Example"),
        ),
        body: SafeArea(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Center(
                child: Container(
                  padding: const EdgeInsets.all(10.0),
                  constraints: const BoxConstraints(maxWidth: 500),
                  child: const FittedBox(
                    fit: BoxFit.fill,
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.center,
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: <Widget>[
                        Row(
                          mainAxisAlignment: MainAxisAlignment.center,
                          children: [
                            SizedBox(
                              height: 170,
                              width: 200,
                              child: Center(
                                child: Stack(
                                  children: <Widget>[
                                    SizedBox(
                                      height: 104,
                                      width: 120,
                                    ),
                                    Positioned(
                                      top: -14.0,
                                      child: SizedBox(
                                        height: 100.0,
                                        width: 120.0,
                                        child: FittedBox(
                                          fit: BoxFit.fill,
                                          child: Text(
                                            'ACME',
                                            style: TextStyle(
                                              color: Color.fromRGBO(
                                                0,
                                                55,
                                                97,
                                                1,
                                              ),
                                              fontWeight: FontWeight.bold,
                                              fontSize: 100.0,
                                              height: 1,
                                            ),
                                          ),
                                        ),
                                      ),
                                    ),
                                    Positioned(
                                      top: 70.0,
                                      child: SizedBox(
                                        height: 40.0,
                                        width: 120.0,
                                        child: FittedBox(
                                          fit: BoxFit.fill,
                                          child: Text(
                                            'CORPORATION',
                                            textAlign: TextAlign.center,
                                            style: TextStyle(
                                              color: Color.fromRGBO(
                                                0,
                                                55,
                                                97,
                                                1,
                                              ),
                                              fontWeight: FontWeight.bold,
                                              fontSize: 40.0,
                                              height: 1,
                                            ),
                                          ),
                                        ),
                                      ),
                                    ),
                                  ],
                                ),
                              ),
                            ),
                          ],
                        ),
                      ],
                    ),
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.24.0, on macOS 14.6.1 23G93 darwin-arm64,
    locale en-AU)
    • Flutter version 3.24.0 on channel stable at
      /Users/incon/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (10 days ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version
    34.0.0)
    • Android SDK at /Users/incon/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/incon/Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Users/incon/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.2)
    • IntelliJ at /Users/incon/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.92.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.94.0

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile)     • emulator-5554
      • android-arm64  • Android 15 (API 35) (emulator)
    • iPhone 15 Pro Max (mobile)      • C822FB3E-996A-4F43-8277-B78E84A6BF2A
      • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-5
      (simulator)
    • macOS (desktop)                 • macos
      • darwin-arm64   • macOS 14.6.1 23G93 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad
      • darwin         • macOS 14.6.1 23G93 darwin-arm64
    • Chrome (web)                    • chrome
      • web-javascript • Google Chrome 127.0.6533.100
    ! Error: Browsing on the local area network for David Darrell's iPhone.
      Ensure the device is unlocked and attached with a cable or associated
      with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly.
      (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Reproducible using the code sample provided above.
This is a regression as this works as expected on 3.22.3 but not on 3.24.0 and beta. This, however, works as expected on the master channel. However, the rendering of the text is not as smooth as it is on skia (even on the master channel)

3.24.0 & beta
3.22.3 & master

flutter doctor -v
Flutter version 3.22.3 on channel [user-branch] at /Users/nexus/dev/sdks/flutter_rc/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at
      https://flutter.dev/docs/get-started/install.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision b0850beeb2 (3 weeks ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3
    • If those were intentional, you can disregard the above warnings; however it is recommended
      to use "git" directly to perform update checks and upgrades.

[!] Flutter (Channel stable, 3.24.0, on macOS 14.5 23F79 darwin-arm64, locale en-GB)
    • Flutter version 3.24.0 on channel stable at /Users/nexus/dev/sdks/flutter
    ! Warning: `flutter` on your path resolves to /Users/nexus/dev/sdks/flutter_rc/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutter. Consider adding /Users/nexus/dev/sdks/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/nexus/dev/sdks/flutter_rc/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutter. Consider adding /Users/nexus/dev/sdks/flutter/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (10 days ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Flutter (Channel beta, 3.24.0-0.2.pre, on macOS 14.5 23F79 darwin-arm64, locale en-GB)
    • Flutter version 3.24.0-0.2.pre on channel beta at /Users/nexus/dev/sdks/flutter_beta
    ! Warning: `flutter` on your path resolves to /Users/nexus/dev/sdks/flutter_rc/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutter_beta. Consider adding /Users/nexus/dev/sdks/flutter_beta/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/nexus/dev/sdks/flutter_rc/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutter_beta. Consider adding /Users/nexus/dev/sdks/flutter_beta/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7c6b7e9ca4 (10 days ago), 2024-07-30 14:26:44 +0700
    • Engine revision 6e4deceb38
    • Dart version 3.5.0 (build 3.5.0-323.2.beta)
    • DevTools version 2.37.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Flutter (Channel master, 3.24.0-1.0.pre.525, on macOS 14.5 23F79 darwin-arm64, locale en-GB)
    • Flutter version 3.24.0-1.0.pre.525 on channel master at /Users/nexus/dev/sdks/flutters
    ! Warning: `flutter` on your path resolves to /Users/nexus/dev/sdks/flutter_rc/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutters. Consider adding /Users/nexus/dev/sdks/flutters/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/nexus/dev/sdks/flutter_rc/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutters. Consider adding /Users/nexus/dev/sdks/flutters/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 76107bdf50 (10 hours ago), 2024-08-08 16:50:40 -0700
    • Engine revision<PHONE_NUMBER>
    • Dart version 3.6.0 (build 3.6.0-130.0.dev)
    • DevTools version 2.38.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

Flutter 3.24.1


Add contributor image in Readme file

pls assign me this issue

Thanks for the suggest, but let's leave it out.


[PiranhaJS] Fix dependabot alerts

Bump lodash from 4.17.19 to 4.17.21
Bumps glob-parent from 5.1.1 to 5.1.2.

Made changes to the package based on
https://github.com/uber/piranha/pull/138
https://github.com/uber/piranha/pull/130
This is likely due to the change in process with dependabot


icons for store page

Make top level svg icons for the store page to jump to sections.

Pupil (pupil w120_e120 as icon)
VR/AR (Oculus add-on as icon)
Additional Products (USB-C clip as icon)

In process. Waiting on USB-C geometry from @mkassner


Created Basic History and Night stats page

Since Mathieu's page wasn't merged yet, there are some files that are common to his pull request, so just check the files in folders tagged with sleep_history or night_stats:

mobile/lib/src/application/night_stats/night_stats_cubit.dart
mobile/lib/src/application/night_stats/night_stats_state.dart
mobile/lib/src/application/sleep_history/sleep_history_cubit.dart
mobile/lib/src/application/sleep_history/sleep_history_state.dart
mobile/lib/src/domain/sleep_history/i_sleep_history_repository.dart
mobile/lib/src/domain/sleep_history/night_stats.dart
mobile/lib/src/infrastructure/sleep_history/sleep_history_repository.dart
mobile/lib/src/presentation/pages/night_stats_page/metric_section.dart
mobile/lib/src/presentation/pages/night_stats_page/night_stats_page.dart
mobile/lib/src/presentation/pages/night_stats_page/sleep_stages_section.dart
mobile/lib/src/presentation/pages/sleep_history_page/sleep_history_page.dart

This will not be merged until Mathieu's pull request is done and his changes are merged into my branch.
Current look of the Stats page

je vais review https://github.com/PolyCortex/polydodo/pull/58/files/16bbe80ca75be24e07196503cfc7b0c14b0d2aa0..c79693004f01055c0fd69713b1bca0f923485b72


[develop] Allow login to the web socket with multiple tokens

Is your feature request related to a problem? Please describe.
I am building a service with that lets you make a Meower bot and then host it on my servers, at the moment, I would have to log in to the web socket once for each bot. This uses unnecessary server resources for both Meower and my server.
Describe the solution you'd like
Allow logging into the web socket with more than one token, so you can get the dm's for multiple accounts at the same time. This could be in the form of a parameter, but instead of just taking a string, it could take a list of tokens or a command could be sent to log in with an additional token. If the web socket part of the server is still in python, I would be happy to help with adding this.

I understand the frustration of needing multiple WebSocket connections. But we'd honestly prefer separate WebSocket connections, this way we can split up load between more servers making it easier to host Meower overall.

I understand the frustration of needing multiple WebSocket connections. But we'd honestly prefer separate WebSocket connections, this way we can split up load between more servers making it easier to host Meower overall.

ok, that is understandable, let me send you a dm and explain what I want to do so I can see if there is a way to do this that puts less load on meower.

I will close this pr for now @tnix100

Wrong status

wrong status


Support hex string values

Add hex uint(8,16,..256) strings.
Hello :)
This pr is a proposal for hex value because i just want to generate random hex value from gofakeit.
That is why I did not implement any additional code such as lookUpFunction, tests.
If u accept this addition, please leave a comment 😄  thx!

Looks good to me. I do require an example and benchmark for each function. I know it seems a bit redundant in your situation. If you can add the other tests I would be more than happy to merge this in for you.


evaluate IF tide trident

Its thrown entities never de-spawn, do we want this?

Concluded to remove this item from the game


Extension icon is not visible in dark themes

Thank you for raising this @arnrdy! 😀
Thanks to @krishnakireeti for the new logo which works both in dark and light versions of the browser.
Reference: https://github.com/chinnichaitanya/IncognitoThis/commit/5adf19cf9d1748d2cecdb067ded45cf90429bcff and https://github.com/chinnichaitanya/IncognitoThis/commit/7298109bea199d81e6895f477d5df42aee9e5984
Closing this issue. It will be reflected in the next release! 🎉


Feature suggestion: sort import alphabetically

Description of your problem
Hello, spyder rocks!
I have come with the habit of sorting import names alphabetically like:
from analyse_all_freq import analyse_all_freq
from analyse_all_freq import analyse_all_temp_sweep
from cam_lib import cam_snapshot
from cam_lib import has_camera
from datetime import datetime
from mail_lib import sendmail_text
from run_all_freq import create_context
etc.
Maybe it actually makes sense. The very same convention is suggested in : https://code.google.com/archive/p/soc/wikis/PythonStyleGuide.wiki
"Imports grouping, order and sorting: One per line, grouped and ordered by packages, sorted alphabetically"
How difficult would it be for spyder to check that alphabetical order is correct?
Thank you
Matt
Versions and main components
n/a
Dependencies
none

@andfoy is this something that should/could be supported with the LSP ?

There's a PR open in the PyLS that will tackle precisely this.

Was this removed for good?

IMHO, now that I understand better how things works, this feature is probably not in the scope of spyder. Thank you.

Hey @mvillion and @skjerns, although we have a lot of other things to do at the moment, we'd like to implement this at some point in the future.
Therefore, I'm going to reopen this issue.

Even if this feature requires support in the Python language server to work first, we need to add here an option to enable/disable it. So this issue as useful to remind us of that.


convert TopBar to tsx

Jira Ticket: https://broadworkbench.atlassian.net/browse/UIE-201
Summary of changes:
I was working on tsx conversions for the group page for WOR-1803, and got tired of ignoring type errors coming from the top bar. So I converted it to tsx.
All changes in this PR are non-functional, and the type signature of the component remains the same.
Testing strategy
Existing unit tests are minimal, so I manually verified the visual aspects and functionality of all the individual components.

[ ]

There is a stray comma showing up:

LGTM from an IA perspective


Update speech-container-faq.yml

Remove comment about acoustic model support.

@yshahin : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Note that publishing in this repository is suspended until Tuesday, November 2. Merging will resume Tuesday morning. Authors can still review and sign off on PRs in the interim. Thanks.


knowledgetree/example no longer working

/Users/despiegk1/code/github/freeflowuniverse/crystallib/knowledgetree/example

in the scandir example which has been made to work there are issues

duplicate pages are not found, it ignores it
a weird link is being made pointing to nothing with name of collection
many of the pages created were actually empty
fix links was not done on export when healing not looked for

couldn't work would error before checking if file exists

most of pages exported are empty
the include macro not implemented !!include collectionname:aname and aname needs to be supported
we reworked where we export book too, there is now default destination
if healing not on on collection level, then we still need to make sure that files get resized at destination, same for links
double check that we get links to work e.g. mylink should rewrite link (only at destination) if collection not specified then in collection it was defined

 couldn't work would error before checking if file exists
has been rewritten in other way

Why wouldn't it work. It does work, I have tests. It will not throw an error and it returns even if the file does not exist. Take a look at the code under pathlib.

most of pages exported are empty
the include macro not implemented !!include collectionname:aname and aname needs to be supported
we reworked where we export book too, there is now default destination
if healing not on on collection level, then we still need to make sure that files get resized at destination, same for links
double check that we get links to work e.g. mylink should rewrite link (only at destination) if collection not specified then in collection it was defined

I have some more questions:

Can you share with me the examples that resulted in empty pages? And are you sure there weren't any errors in the errors.md file?
Where can I find examples for the macro include
What do you mean with "we reworked where we export book too, there is now default destination"? What should I change?
I didn't change anything to the healing part so can you elaborate more on the fourth bullet point? Could you please document the healing part? What should it do?
What does the last bullet point mean? If there is a link without the name of the collection it should be rewritten to include the name of the collection where the link is defined in?


Use-Contractkit to point to WalletConnect run instance

We've experienced several instances where the cLabs run instance of WalletConnect server has gone down and we cannot connect to the Waku network.
Point the use-contractkit modal to the WalletConnect team instances of the WalletConnect servers.

Ensure that the @celo/wallet-walletconnect package in the monorepo is also updated.


Try to fix random all content grid

Fixes

Fixes #[issue number] by @[issue author]
Description

This PR moves randomizing of the all content results to the Vuex media store. It uses only the first item for random seed, because the last item changes when load more button is clicked.
Testing Instructions

Checklist

[ ] My pull request has a descriptive title (not a vague title like Update index.md).
[ ] My pull request targets the default branch of the repository (main) or a parent feature branch.
[ ] My commit messages follow best practices.
[ ] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[ ] I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

I can tell there's some major improvements in here to the structure of the data, but something is wrong with the logic and needs a little reworking, I'm only seeing one audio result, in the same position, per image page:

@obulat instead of working on this, it'd be better to look for bugs on the All Content grid on the main branch

Closing this PR as this functionality has already been implemented and merged.


fix upstream bugs up to v0.18.0

We need to port some fixes for upstream bugs in Standard Clojure Style JavaScript:

Standard Clojure Style JavaScript Issue #165
Standard Clojure Style JavaScript Issue #166

Fixed with PR-13


Fix subtle bug in BF16

This PR fixes two subtle bugs I noticed post my previous PR:

We currently can no longer get the mixed precision from the environment variable (oops)
If on a TPU and you select bf16 an error will be raised in the bf16 flag, this has the flag get ignored if a tpu is available in the check as all of the bf16 logic for TPU's lives in state

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Feature request: Create a function that handles errors for tf.train.SessionRunHook()

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Windows 10 Pro 64-bit (10.0, Build 16299)
TensorFlow installed from (source or binary):
Binary
TensorFlow version (use command below):
1.6.0
Python version:
3.6.4
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:
Exact command to reproduce:

You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the problem
I would like an operation for tf.train.SessionRunHook() that executes when an error is thrown from the sess.run() (it should be able to act upon a single error/multiple errors (in a list)/all errors. The reason I would like this, is because there exists use cases where a hook action should be performed only when an error is raised.
My current example of this use case is the switch between training and validation loops. I am, in a tf.train.MonitoredTrainingSession() trying to run a training loop and a validation loop that switches between each other. In order to achieve this, I'm using a tf.data.Dataset.iterator that runs in a while loop until a tf.errors.OutOfRangeError is thrown; breaking the while loop and moving on to the next. When this exception is thrown, I would like to perform hook actions, such as saving epoch summaries, print logging on the terminal, etc. My current way of doing this is to write these actions manually in the exception clause, as shown below. It would, however, be cleaner and easier if these actions could be performed in the hooks themselves when an error is thrown.
Source code / logs
Example code I am using currently:
import tensorflow as tf
from functools import partial

def create_reset_metric(metric, scope='reset_metrics', **metric_args):
    with tf.variable_scope(scope) as scope:
        metric_op, update_op = metric(**metric_args)
        vars = tf.contrib.framework.get_variables(
                scope, collection=tf.GraphKeys.LOCAL_VARIABLES
            )
        reset_op = tf.variables_initializer(vars)
    return metric_op, update_op, reset_op

dataset_train = tf.data.Dataset.range(100)
iterator_train = dataset_train.make_initializable_iterator()
next_elem_train = iterator_train.get_next()
mean_batch_train, mean_update_train, mean_reset_train = create_reset_metric(
                                                            metric=tf.metrics.mean,
                                                            scope='reset_metrics_train',
                                                            values=next_elem_train)
summary_train = tf.summary.scalar('train_summary', mean_update_train, collections=['train'])

dataset_test = tf.data.Dataset.range(50)
iterator_test = dataset_test.make_initializable_iterator()
next_elem_test = iterator_test.get_next()
mean_batch_test, mean_update_test, mean_reset_test = create_reset_metric(
                                                            metric=tf.metrics.mean,
                                                            scope='reset_metrics_test',
                                                            values=next_elem_test)
summary_test = tf.summary.scalar('test_summary', mean_update_test, collections=['test'])

merged_train_summary_op = tf.summary.merge_all('train')
merged_test_summary_op = tf.summary.merge_all('test')

def step_fn(fetches, feed_dict, step_context):
    return step_context.session.run(fetches=fetches, feed_dict=feed_dict)

with tf.summary.FileWriter('./tmp/train_test_switch') as writer:
    with tf.train.MonitoredTrainingSession() as sess:
        epoch_step = 0
        while not sess.should_stop():
            sess.run_step_fn(partial(step_fn, iterator_train.initializer, {}))
            while True:
                try:
                    summary_train_, _ = sess.run([merged_train_summary_op, next_elem_train])
                except tf.errors.OutOfRangeError:
                    writer.add_summary(summary_train_, epoch_step)
                    sess.run_step_fn(partial(step_fn, mean_reset_train, {}))
                    break

            sess.run_step_fn(partial(step_fn, iterator_test.initializer, {}))
            while True:
                try:
                    summary_test_, _ = sess.run([merged_test_summary_op, next_elem_test])
                except tf.errors.OutOfRangeError:
                    writer.add_summary(summary_test_, epoch_step)
                    sess.run_step_fn(partial(step_fn, mean_reset_test, {}))
                    break
            print("epoch_step:", epoch_step)
            epoch_step += 1

Example of how I want the tf.train.MonitoredTrainingSession() to look (the beginning is the same as before):
...

with tf.summary.FileWriter('./tmp/train_test_switch') as writer:
    error_catching_hook = ErrorCatchingHook(...)
    with tf.train.MonitoredTrainingSession(hooks=[error_catching_hook]) as sess:
        epoch_step = 0
        while not sess.should_stop():
            sess.run_step_fn(partial(step_fn, iterator_train.initializer, {}))
            error_catching_hook.is_training() # Set flag to call correct params when OutOfRangeError
            while True:
                try:
                    summary_train_, _ = sess.run([merged_train_summary_op, next_elem_train])
                except tf.errors.OutOfRangeError:
                    # error_catching_hook calls writer.add_summary(...)
                    # error_catching_hook calls mean_reset_train
                    break

            sess.run_step_fn(partial(step_fn, iterator_test.initializer, {}))
            error_catching_hook.is_testing() # Set flag to call correct params when OutOfRangeError
            while True:
                try:
                    summary_test_, _ = sess.run([merged_test_summary_op, next_elem_test])
                except tf.errors.OutOfRangeError:
                    # error_catching_hook calls writer.add_summary(...)
                    # error_catching_hook calls mean_reset_test
                    break
            print("epoch_step:", epoch_step)
            epoch_step += 1

I realize that this might not be the best example of a use case for this, but I hope you get my point, and I'm sure there are other use cases for this.
After having read my code above, I also hope that this could provide a solution for others trying to gather and summarize epoch-wise data. A common pattern of summarizing train/test data is, after all, to summarize an epoch average after each epoch. This feels like an unnecessarily painful implementation task today, and I hope that this request of mine can at least bring down the pain a little bit. Hopefully, this can lead to a tf.train.EndOfSetHook() or similar, that is only called when a dataset reaches its end!

Nagging Assignee @rohan100jain: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 16 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 16 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 93 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 108 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 124 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@ispirmustafa to comment on feature request feasibility.

handling errors with hooks may not have that straightforward/clear usage. Instead I would recommend using multiple sessions something like following:
You can run some ops at the end of training by using end function of SessionRunHook
with MonitoredTrainingSession(...) as mon_sess:
  while not mon_sess.should_stop():
    mon_sess.run(train_op)

with MonitoredTrainingSession(...) as mon_sess:
  while not mon_sess.should_stop():
    mon_sess.run(eval_op)

Please let us know this works or not

It has been 14 days with no activity and the awaiting response label was assigned. Is this still an issue?

handling errors with hooks may not have that straightforward/clear usage. Instead I would recommend using multiple sessions something like following:
You can run some ops at the end of training by using end function of SessionRunHook
with MonitoredTrainingSession(...) as mon_sess:
  while not mon_sess.should_stop():
    mon_sess.run(train_op)

with MonitoredTrainingSession(...) as mon_sess:
  while not mon_sess.should_stop():
    mon_sess.run(eval_op)

Please let us know this works or not

Hi,
I would like to use multiple session in order to evaluate on a validation dataset during training.
I created the evaluation monitored session as a nested session of the training monitored session:
timer = tf.train.SecondOrStepTimer(...)
with MonitoredTrainingSession(...) as train_session:

  train_session.run(train_op)

  if timer.should_trigger_for_step(..):

    with MonitoredTrainingSession(...) as eval_session:
      eval_session.run(eval_op)

The two graphs share weights, but because I want to produce different summaries for train and evaluation, each monitored-training-session has its own scaffold object. For the training session I have an init function, but for the evaluation session I don't want the weights to be initialised. If I don't declare an init_fn in the scaffold object, I get this error:
  File "/Users/adva/anaconda/lib/python3.5/site-packages/tensorflow/python/training/session_manager.py", line 287, in prepare_session
    init_fn(sess)
  File "/Users/adva/anaconda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 163, in <lambda>
    self._init_fn = lambda sess: init_fn(self, sess)
TypeError: callback() takes 1 positional argument but 2 were given

How can I use multiple sessions this way?
Thank you!
Adva

Hi @advaza ,
For your approach you don't need to have two session. You should be able to call eval_op on train_session. That will keep the weights same.

Thanks @ispirmustafa ! I figured it out eventually. The error I got was because I changed the code from slim supervisor to monitored training session, and I had to define the init_fn differently.
I ended up doing:
timer = tf.train.SecondOrStepTimer(...)
with MonitoredTrainingSession(...) as train_session:

  while not train_session.should_stop():

    _, global_step_value = train_session.run([train_op, global_step])

    if timer.should_trigger_for_step(step=global_step_value):

      timer.update_last_triggered_step(step=global_step_value)

      train_session.run(eval_iterator.initializer) # Initializable Iterator

      while True:
        try:
          train_session.run(eval_op)

        except tf.errors.OutOfRangeError:
          break


fix: TensorFlow dependency set to ~2.15

Context:
See issue https://github.com/XanaduAI/MrMustard/issues/381
Description of the Change:
Restrict TensorFlow dependency to >=2.15 and <2.16.

Hi @xvalcarce ,
Thanks for opening this issue up! :)
Personally, I am not convinced that TF should be restricted to version < x, because in the future we will certainly want to install y > x.
The solution to your issue may be using poetry rather than pip install. In your environment, do
pip install poetry
cd MrMustard
poetry install ...

optionally replace ... with options, like we do in our .github/workflows.
TF is locked to 2.15, so poetry should install 2.15

Hey @SamFerracin :)
I agree, this is not a long term viable solution, but a simple quick-fix! Instead the codebase should be updated to match TF 2.16, and set this new version as a minimum requirement. This mainly involves using  Adam from Keras 3 (as mentioned in the issue) as well as removing the need for tensorflow-macos as explained here. I can propose these changes in a future commit, if you are interested!
About the installation method, if an installation with cloning the repo and using poetry works fine thanks to the lock, I do believe that installing MrMustard with pip install mrmustard should provide a working module.

Fixed in #406. Thanks again @xvalcarce :)


Refresh token query with GET

Hi,
Is there any reason why the refresh token query is using GET method ?
  async refresh(): Promise<Token> {
    return request({
      url: `${this.plugin.settings.serverUrl}/oauth/v2/token?grant_type=refresh_token&refresh_token=${this.token.refreshToken}&client_id=${this.token.clientId}&client_secret=${this.token.clientSecret}`
    }).then((response) => {
      const parsed = JSON.parse(response);
      return {
        clientId: this.token.clientId,
        clientSecret: this.token.clientSecret,
        accessToken: parsed.access_token,
        refreshToken: parsed.refresh_token,
      };
    });
  }

The client_id and client_secret can be visible in the query, which is not best pratice, however it is not easily usable as the refresh_token is no longer valid.

Good point; there is no particular reason.
We should change it to POST sometime.


LocalScanner: Check for archived files if scan results are present

The LocalScanner supports both an archive and a storage. So far, if
results of a package are present in the storage, they are skipped,
independent of the presence of results in the archive. Add an additional
check that, in case of absence, downloads the source code and applies the
archiving process.

And please rebase onto latest master to fix CI checks.

You still need to add the new config to file-counter-expected-output-for-analyzer-result.yml to make tests pass.


[Question] What is the purpose of the addon?

I'm struggling to understand the purpose of this addon.
Is it supposed to polyfill ActiveModel Adapter and Serializer in ember-data 2.0?
I have a number of huge C++ API's (Rails style payloads) and moving them to JSON API style is currently out of scope so was hoping I could use the addon with ember 2.0 and carry on the old way.
If this is not the case is there any easy way or migration path to convert the Rails-style payload to JSON-API?

It's not really a polyfill, we just moved the code out of Ember Data itself into this addon. We'll release a 2.0 of this addon soon, although to my knowledge it shouldn't be too far behind Ember Data 2.0

@fivetanley I take your replay as 'wait for 2.0 and keep using rails-style paylods' please correct me if I'm wrong.
Is there any ETA for 2.0, anything I can help evolve or test?


core.GetProject api fails with error when trying to unmarshal response from azdo

We have been trying to use the GetProject api passing in project name and getting an error that looks like it can't parse the lastUpdatedTime value in the response.
function that has the bug:
https://github.com/microsoft/azure-devops-go-api/blob/a196ec51000ea283baf30ab5a3f10223e223de3f/azuredevops/core/client.go#L330
Error and struct returned:
parsing time ""0001-01-01T00:00:00"" as ""2006-01-02T15:04:05Z07:00"": cannot parse """ as "Z07:00"
&{  0xc0002bae40 a790779a-4096-43b6-929f-1f1e47917f18 0001-01-01 00:00:00 +0000 UTC 0xc0002bae30 0xc0003305a0 0xc0002bae60 0xc0002bae50 0xc0002baf80 map[collection:map[href:https://dev.azure.com/csedevops/_apis/projectCollections/85fb3d5a-9f21-420f-8de3-fc80bf29054b] self:map[href:https://dev.azure.com/csedevops/_apis/projects/a790779a-4096-43b6-929f-1f1e47917f18] web:map[href:https://dev.azure.com/csedevops/tf_test]] 0xc00008e0e0 0xc0001d8380}
Example code that reproduces the error:
func getProject(ctx context.Context, clients *AggregatedClient) {
	t := true
	f := false
	p := "tf_test"

	args := core.GetProjectArgs{
		ProjectId:           &p,
		IncludeCapabilities: &t,
		IncludeHistory:      &f,
	}

	fmt.Println(args)

	project, err := clients.CoreClient.GetProject(ctx, args)

	if err != nil {
		fmt.Println(err)
	}

	fmt.Println(project)
}

Looks similar to this issue https://github.com/golang/go/issues/9346

Thanks for reporting.  I will look into it.

Looking for feedback on this issue.  I am new to Go, so hoping there is a better way to fix this issue.
To fix the issue, I created a custom struct that has a time.Time property:
type Time struct {
	Time time.Time
}

This allows the creation of a custom converter that checks for the error (we can't change the server behavior, so we have to adapt):
func (t *Time) UnmarshalJSON(b []byte) error {
	t2 := time.Time{}
	err := json.Unmarshal(b, &t2)

	// ignore errors for 0001-01-01T00:00:00 dates. The Azure DevOps service
	// returns default dates in a format that is invalid for a time.Time. The
	// correct value would have a 'z' at the end to represent utc. We are going
	// to ignore this error, and set the value to the default time.Time value.
	// https://github.com/microsoft/azure-devops-go-api/issues/17
	if err != nil {
		if parseError, ok := err.(*time.ParseError); ok && parseError.Value == "\"0001-01-01T00:00:00\"" {
			err = nil
		}
	}

	t.Time = t2
	return err
}

The benefit is that this is an easy fix, and we can handle other nuances with the time.Time type.  The drawbacks is that it makes any code dealing with the time more verbose.  This is also a breaking change, and therefore it is not a good pattern for other cases for other types in the future, when we have a released version.
Other options considered were to:

Generate a custom converter for each struct that has a time.Time field, which handles each field in that struct individually.  This would bloat the code greatly, but would work as we want it to.
Generate a custom converter for each struct that has a time.Time field, but have that converter call a general func, that reflects into the struct to do the unmarshalling.  This is a lot more powerful as it can be adapted to handle all other future deserialization issues without having to make a breaking change, and it doesn't bloat the code.  The drawback is in its complexity.  At least it seamed complex in Go as I started to dig into it.
Check for the error after unmarshalling, and then set the error to nil, if it is this specific error.  This is not really an option as this would hide other errors that happen after the initial specific error.

@tedchamb can we push on the AzDO team to fix their API response in the default case?
Short of that, I think that your approach makes sense in the short term. The long term IMO is to fix the service as this will impact all the clients.

Thanks, @nmiodice.   I will definitely push for a fix on the server side, but the 5.1 api version is already released, and can't be changed.  We also need to handle talking to already released Azure DevOps Servers.

@tedchamb I am ok with current approach.  We can handle that in the work we are doing for now.

@nmiodice , @rguthriemsft , thanks for the feedback!   I have pushed the PR.

I looked into the code on our server side, and it turns out that this is the default deserialization format from newtonsoft for a default DateTime.  You can repo this behavior with a simple program:
using System;
using Newtonsoft.Json;

namespace ConsoleApp24
{
    class Program
    {
        static void Main(string[] args)
        {
            Test t = new Test();
            string serialized = JsonConvert.SerializeObject(t);
            Console.WriteLine(serialized);
        }
    }

    class Test
    {
        public DateTime LastUpdateTime { get; set; }
    }
}

The console output from this is as follows:
{"LastUpdateTime":"0001-01-01T00:00:00"}

This appears to be a bug in newtonsoft if I am reading the spec correctly.  The rfc3339 spec shows that the time-offset is required and time-offset = "Z" / time-numoffset.
After doing a quick search through newtonsoft code, it appears that min and max DateTime values are special cased intentionally.


Keywords in variable names get highlighted

return new vscode.Variable(property.name, displayValue, variablesReference);

angular.module('app')

This is since the VS Code February release.

Variables like variablesReference are fixed in March insiders, but when using ES6 map.delete(), delete still gets highlighted as keyword.


Dynamic Memory for display module

The eink module of Platinenmacher_HAL library uses a static memory for framebuffering. This should be a dynamic memory so we can utilize the RAM during non display operations.
Functions using lot of RAM:

Downloading tiles

HTTPS

WiFi connection

[ ] Remove static fb in acep_5in65_7.c

[ ] Add hooks for rendering system so we have a framebuffer when we try to render something

[ ] Free framebuffer after transmitting to the display

[ ] Add Testcases

For 8MB RAM version not necessary anymore.


limit=0 error

When using limit=0, the follow error occurs:
HTTP ERROR 500 com.mongodb.MongoCommandException: Command failed with error 15958 (Location15958): 'the limit must be positive' on server XXX.mongodb.net:27017. The full response is {"ok": 0.0, "errmsg": "the limit must be positive", "code": 15958, "codeName": "Location15958", "$clusterTime": {"clusterTime": {"$timestamp": {"t":<PHONE_NUMBER>, "i": 1}}, "signature": {"hash": {"$binary": {"base64": "8k/Luez+NoaqcvEqaH1IIExur3Q=", "subType": "00"}}, "keyId":<PHONE_NUMBER>227004930}}, "operationTime": {"$timestamp": {"t":<PHONE_NUMBER>, "i": 1}}}

Fix this by validating that limit > 0.

Until faceting is implemented, limit=0 can return an error (no point in doing a search and returning zero documents).  When faceting is implemented, limit=0 makes sense - though may still need to be set to 1 underneath for the aggregation pipeline to be happy?


Feature/webpack-resolvers

What this does
Adds local subpath aliases for component, hook, util, and context directories.
Why it does it
Because relative imports get messy!
Usage
Before:
import MyComponent from '../../../../components/my-component/my-component'

After:
import MyComponent from '@local/components/my-component/my-component'

Notes

There are a lot of changes in this PR, the important one is in /next.config.js (here's a link to that commit)
Using these aliases on a project is totally optional. A big motivation for this was the need for having deeply-nested component structures on external Corgi templates — relative paths would require some frustratingly imperative custom tooling to deal with, in those scenarios.

Forgot to mention, I'm open to other naming conventions for this. I chose @local/ since it matches how a certain client-who-shall-not-be-named does it in their code bases.

Looks good to me!


--pth-file and --python don't work together

I'm trying to use Flit to work on a Python 2.7 project and the flit install command is causing me some issues. I have Python 3.6 installed and I have Flit installed with pipsi to keep it isolated from my system Python.
When I run flit install --pth-file --python ~/example/virtualenv/path/python.exe a .pth file is created in my virtualenv but none of the dependencies are installed in the virtualenv, they're installed in the environment that Flit was run from.
Is this the intended behaviour?

flit install --pth-file --python ~/example/virtualenv/path/python.exe
flit install --python ~/example/virtualenv/path/python.exe

Seems to be a work around, but doing this still installs all the requirements to the environment Flit is installed to as well which doesn't seem ideal.


USD prices

Show current USD price for each calculated

https://github.com/Lmendev/rollercoin-calculator/pull/35


JavaExec.classpath additions don't work unless the Application Plugin is applied first

Current Behavior
JavaExec.classpath additions from a convention plugin don't work with the run task unless the Application Plugin is applied first.
Expected Behavior
The order the Application Plugin and a convention plugin (that appends to the JavaExec.classpath property) are applied to a project shouldn't matter.
Context (optional)
Forum thread: https://discuss.gradle.org/t/how-to-properly-append-to-the-javaexec-and-test-task-classpaths/48169.
Reproducer that seems to demonstrate that the order task registration and corresponding withType() configuration are declared doesn't generally seem to matter: https://github.com/ianbrandt/gradle-task-configuration-ordering.
Similar issue with the Test task: #28810.
Steps to Reproduce
Reproducer: https://github.com/ianbrandt/gradle-javaexec-classpath
Plugin application order: https://github.com/ianbrandt/gradle-javaexec-classpath/blob/kotlin-dsl/build.gradle.kts#L3
Classpath configuration: https://github.com/ianbrandt/gradle-javaexec-classpath/blob/kotlin-dsl/buildSrc/src/main/kotlin/extra-classpath-convention.gradle.kts#L8
Main class: https://github.com/ianbrandt/gradle-javaexec-classpath/blob/kotlin-dsl/src/main/kotlin/com/example/Main.kt#L5
When run is executed with the Application Plugin applied after the configuring convention plugin:
> Task :run FAILED
13 actionable tasks: 5 executed, 8 up-to-date
Exception in thread "main" java.io.FileNotFoundException: testing.txt not found
	at com.example.MainKt.main(Main.kt:9)
	at com.example.MainKt.main(Main.kt)

If the Application Plugin is applied first, the run task succeeds.
Gradle version
8.7
Build scan URL (optional)
https://scans.gradle.com/s/arapsaemj263y
Your Environment (optional)
No response

The issue can be worked around by configuring the classpath in afterEvaluate:
https://github.com/ianbrandt/gradle-javaexec-classpath/compare/kotlin-dsl...afterevaluate-workaround

Your issue appears to be a question about how to use Gradle. They should be asked in a different channel, so we will close it. Your question might be answered in Gradle documentation or on our community Slack or forums. Find links to these resources on help.gradle.org.
If you think our analysis is wrong, please provide us with more detailed information explaining why.

As @Vampire correctly identified in the forum thread, the root cause here is the withType call - it's an eager API. Please refer to the docs to address this.
Another issue is plugin co-dependence. Judging by the reproducer, you can find those issues to be useful

https://github.com/gradle/gradle/issues/25262
https://github.com/gradle/gradle/issues/25962

As @Vampire correctly identified in the forum thread, the root cause here is the withType call - it's an eager API. Please refer to the docs to address this.

If you think our analysis is wrong, please provide us with more detailed information explaining why.

Sorry, but I do believe the analysis is incorrect, or the referenced docs are. They say,

Eager APIs like DomainObjectCollection.all(org.gradle.api.Action) and DomainObjectCollection.withType(java.lang.Class, org.gradle.api.Action) will immediately create and configure any registered task. To defer task configuration, you must migrate to a configuration avoidance API equivalent. See the table below to identify the best alternative.

I'm not using DomainObjectCollection.withType(java.lang.Class, org.gradle.api.Action), I'm using TaskCollection.withType(Java.lang.Class)—which the linked "Lazy APIs to use" table lists as, "Ok to use"—chained to a DomainObjectCollection.configureEach(Action) from the same table:
https://github.com/ianbrandt/gradle-javaexec-classpath/blob/kotlin-dsl/buildSrc/src/main/kotlin/extra-classpath-convention.gradle.kts#L1.
This is what the corresponding "Eager APIs to avoid" table says to do instead of DomainObjectCollection.withType(java.lang.Class, org.gradle.api.Action): "Use withType().configureEach() instead."
Issue #25262 you referenced also says, "TaskCollection.withType.configureEach is lazy..."
My understanding of what @Vampire pointed out in the forum thread was that:

Configuration actions are run in the order they're added, as I now see pointed out in the DomainObjectCollection.configureEach(Action) API docs. This should be fine so long as no configuration action stomps on the classpath additions of another. I do not care what order my added elements appear on the classpath, simply that they're there.
Something must indeed be resetting or mutating the JavaExec.classpath FileCollection in a manner that wipes out my lazy (but not lazy enough, hence the afterEvaluate workaround) addition via JavaExec.classpath(Object...).

This is what I'm filing as a bug. If there is readily available API without any specific usage notes or runtime warnings that, "Adds elements to the classpath for executing the main class", it should be usable (from the lazy API) for appending classpath elements regardless of the task registration vs. lazy task configuration declaration order.
To add, I don't have this issue with the Spring Boot Gradle Plugin and its "bootRun" JavaExec task. I can use withType<JavaExec>().configureEach { ... } to append to its classpath successfully regardless of the order the plugin and my configuration convention are applied. This issue only reproduces for me with the Application Plugin's "run" task.
It occurs to me that my reproducer does include the Kotlin Gradle Plugin. I could rework it to use just the core Java and Application plugins, just in case it is the KGP that's somehow stomping on my classpath additions.

@ianbrandt Sorry, I was wrong; our analysis was too shallow.
You are correct, this is a Gradle issue. The root cause lies here.

The order of task configuration does depend on the plugin application order.
The application plugin has a configuration task itself, which ignores the previously set classpath.

We think this may be resolved after we migrate to Provider API and remove internal convention mapping.
I've added it to 9.0 to confirm when we get there.


Fix instructions which lead to Undefined variable: g:vim_ai_chat if config options are not initially set

Fix instructions which lead to Undefined variable: g:vim_ai_chat if config options are not initially set

Looks good, thank you for the contribution!


Why do we need process.nextTick() with this route?

Have a look at this example code
https://github.com/expressjs/express/blob/master/examples/error/index.js#L32
I was wondering why do we need process.nextTick() given that the application works as expected without it?

I answered you on gitter, but since you asked here to:
It is just an example of doing and async operation and passing an error. In real life this would be a db call or an http request.

@wesleytodd thank you for clarifying this for me.


Refactoring XSSFRow

Code clean-up, refactor into more of C# style code, use expression body style for properties and methods where applicable, use 'var' instead of explicit types where possible, add curly brackets for clarity in places where they were omitted, re-arrange members into regions.
Change javadoc to c# xml documentation.
No changes in code itself or logic, only refactoring.

I find your version much easier to read.
I had a doubt about the usage of => with older versions of the framework supported by NPOI ( .net framework / C# version 7.3 ).
This feature was added in C# 7.0 (source: https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/expression-bodied-members)
So there is no language compatibility issue.
I suppose the appveyor should have caught it anyways, but better safe than sorry.

@PBrunot I'm a bit conflicted on the use of expression body myself, it makes code a little less cluttered, but does it help readability or hurts it? I'm not sure, to me it seems like neither. But since it does reduce clutter - decided to roll with it.
The language support, of course, is a legitimate issue, but I test the code on multiple targets including .net framework 4.6.2, and no language compatibility issues were raised while testing. Anyway, not married to the idea, let's see what @tonyqus (and/or others) think and if need be, I'll switch it back to full method bodies.

To be honest, I'm not a fans of expression body and var. NPOI used to support very old .NET framework (such as 2.0 and 3.x). I have a habit to avoid using new C# syntax feature since it may break the compilation.
I'm fine with the following changes:

Convert javadoc documentation to csharp xml documentation in XSSFRow
Re-arrange the members of XSSFRow.

@tonyqus  I've addressed your comments in the recent commit. Thanks for the input!

LGTM


Hyper-Speed

and other powers that substitute abilities
also penalties for attackers - generic defense cability - or a check based on the speed column?

Same could apply to Flight


Add search functionality

This PR adds the missing search functionality to this great app.

This resolves #106 and resolves #49

Thank you very much for your contributions!


02 bubble

Fixes #
Implement bubble sort
Add Tests
Review of colleague's PR #132
Changes proposed in this PR:
-

Codecov Report

Merging #203 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #203   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           2      3    +1
  Lines          18     32   +14
=====================================
+ Hits           18     32   +14

Impacted Files
Coverage Δ

02_bubble/jonathanheaden/main.go
100% <100%> (ø)

Continue to review full report at Codecov.

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


 This means we can use Go types and replace *byte with string and uint32 / uint8 with bool, and it also means that CGO will do all the nasty work of converting between C and Go for us and if Miniaudio gets updated and a struct field or something changes, there will be a nice, compile time error instead of random undefined behavior when the wrong field is accessed. We do need to convert between the C and Go versions of structs, but better boring self-updating code than code that could break at any moment.
The AllocatedContext type is now Context, because the only place you could really allocate a context is in the C heap.
InitContext and InitDevice no longer take an extra struct argument containing callbacks, the callbacks can be set in the context / device config instead.
Updated the examples.
Added the pointerList type, which is just a slice of unsafe.Pointer with methods to allocate strings and bytes and free all the pointers. We use this for converting Go strings into C strings and easily freeing everything when the context / device is freed. It has an optimization that converts empty Go strings into null pointers (which is what Miniaudio expects anyway) and it doesn't add null pointers to the list. In short, C strings are only allocated if the go string is set to something other than an empty value.
Removed our logic that converts a Miniaudio error code to a string and use ma_result_description instead.
All miniaudio constants are now resolved by CGO. At least one of them was already invalid because their values were defined manually, then Miniaudio was updated and the update added a new error code somewhere higher up the enum.
Miniaudio now has an Error type. Errors returned by Miniaudio functions are now comparable with the Miniaudio error constants, except that MA_SUCCESS will be returned as a nil error. Even if we update Miniaudio and forget to add new error codes, users just won't have any constants to compare the error value to. Everything else will work, though.
All Miniaudio error code constants now have the Err prefix.
DeviceConfig now has the Opensl, CoreAudio and Aaudio fields which were apparently never added.
Added many many new error codes that weren't already defined.
FormatType is now Format. It doesn't make sense for some types to have a Type suffix but for other to not.
Optimized goDataCallback so that the buffer size is calculated in C and we avoid a C> go > C call. I don't think it helped (the source of my high-ish CPU usage must be somewhere else) but can't hurt.
When implementing methods on any type that's a uintptr such as Device, make sure the receiver isn't *self. This will cause problems if you try to convert self to an unsafe.Pointer, because of course it's not pointing where you think it's pointing.
Added Device.SetDataCallback and Device.SetStopCallback, which let us set the data and stop callbacks of a device, even while it's running. This works because we have a mutex and aren't changing the actual C callback, just the user-provided function on the Go side.
Implemented (Format).String, which returns a description of the format using ma_get_format_name.
Replaced Context.Devices with Context.PlaybackDevices, Context.CaptureDevices and context.AllDevices. More efficient and convenient for everyone!
Added (*DeviceInfo).Formats which returns a slice of the devices supported formats
DeviceConfig.PeriodSizeInMilliseconds is now PeriodSizeInDuration, which lets you set it using a time.Duration
Simplified the capture example. Are you trying to scare away contributors or something?
Added the FramesToDuration, DurationToFrames, BytesToFrames, FramesToBytes and BytesToDuration functions which let you convert between stuff.
Any uintptr types like Device and Context now check if the pointer is nil when calling cptr. This can cause a segfault otherwise. Go still prints a helpful stack trace somehow, but let's just avoide it entirely.
Added Backend.String method to the Backend type, and added the Backend method to the Context type which returns the current backend.
Modified the enumerate example to print the currently used backend, and weather loopback devices are supported.
Added the DataBuffer type which lets you easily convert the input and output pointers you get in a ma_device_callback_proc into either raw bytes or slices of any of the Miniaudio formats except for FormatF24. DataCallback now uses these types.
Fixes #28 even though it's noted in the commit.

Can you please send PRs one by one, with breaking changes left for the end? It is very hard to understand when everything is in the bunch, and not sure about the breaking changes. There are nice changes, from the sound of it, thanks!

Yeah. Now that I think of it, I should've at least separated
everything into at least kilobyte sized chunks using multiple commits.
This is probably going to result in like five or more pull requests
though.
On 9/8/21, Milan Nikolic @.***> wrote:

Can you please send PRs one by one, with breaking changes left for the end?
It is very hard to understand when everything is in the bunch, and not sure
about the breaking changes. There are nice changes, from the sound of it,
thanks!
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/gen2brain/malgo/pull/30#issuecomment-915383380

Okay, turns out it's kinda hard to split it. Most of it (at least 80)% are breaking changes and some of them require other changes to be made first. I'm starting  to think one reason I made only one huge pull request was so we could do just one compatibility break and make a lot of stuff better in the process. That said, I'll try splitting it up, but I can't really put breaking changes last because that's most of them and whatever is left either kind of hard to separate and merge back into the old version of Miniaudio, or is small enough that we might as well just do it later.


Add integration tests and validations

@MelSumner
Worked off some of @EndangeredMassa 's assertions. Replaced the use of init with computed properties.
Added yarn.

Woops! Didn't realize @EndangeredMassa just pushed changes. Feel free to review the tests separately from the validation stuff. I can rebase.

@ksin sorry! Happy to resolve however @MelSumner wants to.

Thank you for contributing @ksin - I'll integrate @EndangeredMassa changes first, if you could rebase then update your PR after that is merged, that would be perfect. TYSM!


[sw/dif] Move to unified error space

Similar to discussions on MaskROM,  consider creating an unified error space for the DIFs. As an intermediate step limit the error space to a global scope per DIF to make the interfaces more ergonomic.

I will take a first pass at sw/device/lib/dif/dif_aes.h as a POC.

This issue supersedes the discussion in lowrisc/opentitan#1911.

Should we keep existing DIFs as they are? Otherwise it potentially could be fair amount of work to switch them all to bools or ints.

Sounds like a good idea, that (or unix like error codes) was always my preference.

We are moving in this direction with the status_t implementation. Closing as obsolete.


1st time BCC successfully loaded, 2nd time BCC went missing... Please help! Thank you.

In order to explain the issues clearly, I would like to explain the whole process i went. (before Aug 1st, I stored btc in Mycelium and paper wallet)
1st time testing electroncash wallet: BCC successful

Mycelium sent btc to bittrex
Mycelium seed to restore in electrum (I thought electrum has bcc at the beginning.. then realize I was wrong)
Mycelium seeds to restore in electroncash, successfully saw same amount of the bcc as the btc

2nd time: BCC showed up then went missing...

Paperwallet via blockchain.info send all fund to Mycelium
Mycelium send btc to Ledger
Mycelium seed to restore in electroncash (HERE STARTED ISSUE)

firstly the BCC fund didn't showup in electroncash account immediately
I waited several hours (went sleep and get up) then I happily saw BCC showed up in electroncash but somehow showing "Not parenting" or "not patenting" in red. I thought it might be the network slow issue. So I went sleep again.
I waited one more day, log in again... the 2nd time try BCC disappeared... It only shows the 1st time testing history. The 2nd time "Not parenting"BCC history two lines are even disappeared.
I am scared now... Can any one help me with that? Thanks a lot!!!

every time this issue comes up it seems to be that the person isnt connected to the right server

Hi fyookball, if I am not connecting to the right server, what can I do? Can you please give me some advice?   Thank you!


ERROR LOADING PLUGIN, Cannot find package 'node-fetch'

ERROR LOADING PLUGIN homebridge-fujitsu-hvac:
Error: Cannot find package 'node-fetch' imported from /usr/local/lib/node modules/homebridge-fujitsu-hvac/dist/api/fglair.js

Sorry about that. v1.0.1 is uploaded to NPM and should fix this issue. Thanks for reporting.

The non-fetch dependency error is resolved. Thank you!

Shd


Remove unneeded null check after promotion

Remove unneeded null check after promotion

Question about list Mixin...
The ListMxin documentation states that all Mixin methods really only on  length,operator[] ,add, length= and operator[]=.
https://github.com/dart-lang/sdk/blob/df6ea6326fb51e1f1deb8b5e25fd53afa9f1d605/sdk/lib/collection/list.dart#L48-L54
My ((in)correct?) understand of this is... no public method defined on the mixin calls another (public method). This ensures later classes that  @override a mixin's method will be limited to just that method, not effecting any of the other functions defined on the mixin.
However in the following snippet, notice insert (public method) calls setRange (public method). As such @overrideing of setRange would effect insert.
https://github.com/dart-lang/sdk/blob/df6ea6326fb51e1f1deb8b5e25fd53afa9f1d605/sdk/lib/collection/list.dart#L283-L290
Also, some methods seem to be using the iterator to loop. Like the insert method (example below). While I prefer this syntax, is it in keeping with the description to read using only length and operator?
https://github.com/dart-lang/sdk/blob/df6ea6326fb51e1f1deb8b5e25fd53afa9f1d605/sdk/lib/collection/list.dart#L525-L534
I actually much prefer the looping using iterator, and prefer it if the methods were written using it's declarative style (as opposed to the imperative style required by limiting to using operator[] and length. But just want to make sure it's in keeping with the documentation.

Review expected in https://dart-review.googlesource.com/c/sdk/+/280075

@jarrodcolburn there are test failures, e.g. here.
Please update the expectation files in the PR.
Another way is to use Gerrit to popose changes as described here.

https://dart-review.googlesource.com/c/sdk/+/283682
which includes additional places than the ones in the PR, and updates the front_end expectations.


miner unpaid and hashrate calculation problem

The result of unpaid and hashrate calculation is too small

fix on 0.5.0


Setting up shared networking

My Cisco AnyConnect VPN does not allow nested VPNs. I am running Cisco VPN inside the OrbStack VM, and have another VPN running on my host machine. However the traffic from inside the VM still seems to go out the separate network device, not through the VPN on host machine. How to force VM to use host's VPN? Is there NAT/shared networking feature in OrbStack for this?

VPN-compatible NAT is already the default (and the only) networking method in OrbStack. It uses the same routes as regular apps, so if it's not using your host's VPN, then it's probably because your VPN is in split-tunnel mode and your Cisco VPN server isn't included in its routes.

Thanks, where was no split-tunnel mode but probably some other bug in my VPN app.

So it's working now?

I can't run both orbstack and Cisco AnyConnect, if i quit orbstack, anyconnect connection will be ok

So it's working now?

Yep, thanks!


Question: Does this library provide learning when evaluating?

I use b281b09 branch
Evaluate through the tasks below
arc_challenge
hellaswag
truthfulqa_mc
hendrycksTest-* (All hendrycksTest)
winogrande
gsm8k
(huggingface leaderboard metrics)
Do the above tasks learn before evaluating?
example) python main.py --model=hf-causal-experimental --model_args="pretrained=meta-llama/Llama-2-7b-hf,use_accelerate=True" --tasks=arc_challenge --num_fewshot=25 --batch_size=1 --output_path=/workspace/output/origin_arc.json
I'm curious about the meaning of --num_fewshot=25

Hi,

There is no finetuning involved in this library as of now. So no learning in that sense is done before evaluating.
--num_fewshot is basically how many examples a model is shown before being given the sample it needs to predict/answer. For example, the case of an arithmetic problem, an input with 2-shot example would be Q: 1 + 1 = ... A: 2\n\nQ: 3 + 8 = ... A: 11\n\nQ: 3 + 3 = ... A:

hope this helps.

Thank you.
But I still couldn't answer the question.
Is it correct to tell the model how to answer the question through the few-shot?
So how do you tell the model the answer to the question?
In my experience, the PreTrained model(not fine-tuned) doesn't know how to answer questions.

You can refer here as a starter for how language models can answer queries given few-shot examples
https://arxiv.org/abs/2005.14165

Thank you. I'll read it :)
Have a nice day


Times as Holidays?

Hi Craig, firstly thanks for this gem really loving it so far.
I do have a question relating to holidays though. Is it possible to have a Time or Period as a holiday instead of the whole Day/Date?
I'm trying to use the gem as time slots for individual members of staff. As an example, a staff member might be booked between 9:00am–9:30am and 2:00pm–2:15pm, I was thinking I could use the holidays functionality within the gem to to add those time slots as "holidays" so that I could find the next available working hour for that member of staff.
Hope this makes sense?
Thanks,
Chris

Welcome, @chrismahon. Glad you're enjoying the gem!
That's an interesting idea, and I think it could integrate into the period-generation logic relatively seamlessly. Let me dig into it a bit more and see what it would look like.

@chrismahon Just wanted to give you a heads up that this feature has been released in v1.6.0! See the README for details.


Add more Xamarin.Forms support for ElectronNET through ElectronNET.API

Add more Xamarin.Forms support for ElectronNET through ElectronNET.API.
Here the reference repo for C# API reference for Electron.NET:
https://github.com/Daddoon/electron.net-api-demos
This is actually a fork, as the master one is outdated from the current released Electron.NET version.

Done