Feat: Do not re-infer the same audio multiple times

When the inference model generates multiple segments, and these segments are followed by subsequent ones, any segment with a follow-up is then published. The timestamp that marks the start for the next inference is set to the end of the last published segment. This approach ensures that the model doesn't needlessly re-infer the same audio content multiple times. It appears that this method yields high accuracy, especially when the model correctly identifies that a segment has been completed.
The transcribed segments are then forwarded to the SaturdayClient.
Thank you for your work :)

Thank you so much for this PR! I am currently working through reviewing it and will be posting some question and comments here as I have them!

Going to merge this as is and will address my comments myself :) Thanks again for this PR as this was something I was going to try and tackle today anyways :D

I tested this myself to day and came to the conclusion that whisper.cpp is probably to slow for my needs. I tested faster-whisper and implemented it into this project via an api.
I uploaded my results into my fork https://github.com/TryAndErr0r/S.A.T.U.R.D.A.Y
you can start it with docker-compose up

I tested this myself to day and came to the conclusion that whisper.cpp is probably to slow for my needs. I tested faster-whisper and implemented it into this project via an api.
I uploaded my results into my fork https://github.com/TryAndErr0r/S.A.T.U.R.D.A.Y
you can start it with docker-compose up
This still does not realy work the way i want it but i am happy that all services work via docker-compose and the transcription is fast enough.

This is awesome! Right now Im crunching against a deadline so Ill probably stick with whisper.cpp but would be interested in potentially revisiting that decision. I plan on doing docker compose and probably a kubernetes manifest in the future but right now just focused on features!


Bump version 0.1.7

Bump plugin to version 0.1.7

@cpanato ready to cut the tag as soon as this is merged


Browser Extension Content Security Policy

Hey folks,
Love to see more web and JavaScript support coming from y'all. If this isn't an appropriate place for feature requests or change requests, no worries. But I figured I'd take a stab.
We use RevenueCat for our IAP on a React Native application. We're doing more and more on the web these days. In particular, we're building browser extension tools that integrate with our mobile ecosystem (since our app is already a companion, an extension makes a lot of sense as a foray into the web).
Chrome extensions have extremely restrictive CSPs, and there is no way to relax them.
So when using the purchases-js library, I get a few CSP errors in my console:
Refused to load the script 'https://js.stripe.com/v3' because it violates the following Content Security Policy directive: "script-src 'self'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

And
Refused to load the script 'https://js.stripe.com/v3' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules' http://localhost:* http://<IP_ADDRESS>:*". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

It's not a major problem for us at the moment. Mostly I'm using this package to check a license status, and I intend to send users to our Stripe payment portal through a link.
But as an early adopter of this library, and a huge RevenueCat fan, I'd love to make a request for some way to remove the Stripe JS, or vendor it easily, or something else. There are two primary problems I'd like to address with this request:

Simply cleaning up the error logs. It's always a pain when a third party library drops errors in the console that I can't fix from my end. Again, not a huge deal, but just a quality of life improvement I'd love.
More interestingly, it would be great to eventually use the full RevenueCat power from within our browser extension. To do that, I assume we'd have to figure out a way to get the Stripe scripts working.

Anyway, I know it's early days on this library. I hope this feedback comes off as helpful and interesting, rather than frustrating on your end. Really excited to see where it all goes!

Hi @coolsoftwaretyler ,
Thanks for trying out purchases-js and for reporting this issue!
We are currently looking into the problem and setting up a chrome-extension to test it out in the next few days.
From an initial investigation this seems to be a problem related to how stripe-js loads its JS files rather than purchases-js itself.
The @stripe/stripe-js library is actually a loader that downloads at runtime the actual https://js.stripe.com/v3 file. That runtime download is causing the issue with the Content Security Policy in the extension.
This happens inside the @stripe/stripe-js package so it's difficult for us to prevent that error from being logged to the console since we don't control the code that generates it.
However the problem/use case you highlight is interesting for us and we want to look into possible solutions.
One of those might be creating a version of the sdk that doesn't load the stripe extension out of the box, allowing your use case to generate a link to your customer portal as example.
This is a bigger topic and might take a bit of time for us to investigate/implement.
For now the only suggestion I can give is to try and make @stripe/stripe-js to play nicely with the CSP in the Chrome extension modifying the Manifest.
I have seen some potential solutions for the issue in this StackOverflow answer but to be honest there are not so many resources out there on this topic.
This closed issue from Stripe itself suggests to contact support to fix it: https://github.com/stripe/stripe-js/issues/281
We'll try on our side to setup a chrome extension in the next days but it might take some time until we figure out a solution.
Please let me know if we can help further, if not we'll make sure to follow up with this issue as soon as we'll be able to test the chrome-extension ourselves.

Thanks @nicfix! I really appreciate your detailed answer. Makes a lot of sense to me.
I'll see if I can patch a workaround on my end. But definitely excited about a future where this new system works with browser extensions out of the box. I'll follow along.
Have a great weekend!


A syntax error in example

Sorry to report with an image, I can't find the template source code of this snippet.

cc @beurkinger but I think this has been fixed internally and will soon be updated right ?

This issue has been fixed.


Bump implementation to Go 1.18

This PR bumps the implementation to use Go 1.18:

Bumps the version in go.mod files.
Bumps the version in Docker files
Bumps the version of the alpine image
Uses generics for the event queues in order to remove code duplication

I can take a look this week.
If you don't want to wait feel free to merge it.


Missing currency: Moldovan Leu

OpenBazaar version: 0.1.0
Hardware: PC
Reproducible: Always
Steps to reproduce:

Install OpenBazaar
On step 4 there is no Moldovan Leu

Additional info (links, images, etc go here):
This currency actually exists :) https://www.google.com/#q=moldovan+leu

OpenBazaar-Client is getting the currencies and exchange rates from a couple of places: blockchain.info, coinkite, bitcoinaverage, bitcoincharts. None of these list the rate for MDL.
My first thought was to add LocalBitcoins as a source, but looks like there is not enough volume for MDL there either: https://localbitcoins.com/bitcoincharts/MDL/trades.json
So I assume that's why they don't list it in their API at https://localbitcoins.com/bitcoinaverage/ticker-all-currencies/
So the next question is, where do you exchange MDL for BTC so we could get the price from there?

blockchain.info, coinkite, bitcoinaverage, bitcoincharts. None of these list the rate for MDL

there is not enough volume for MDL

Ok, Thanks.


Login with encrypted private key fails

When I try to connect to my ssh server with an encrypted private key, it fails to connect with the following error:
Unbehandelte Ausnahme: Renci.SshNet.Common.SshPassPhraseNullOrEmptyException: Private key is encrypted but passphrase is empty.
   bei Renci.SshNet.PrivateKeyFile.Open(Stream privateKey, String passPhrase)
   bei Renci.SshNet.PrivateKeyFile..ctor(String fileName, String passPhrase)
   bei SSHFS.CLI.Program.<>c.<PrivateKeyConnectionInfo>b__2_0(String k) in C:\projects\win-sshfs\Sshfs\SSHFS.CLI\Program.cs:Zeile 99.
   bei System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   bei System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   bei System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   bei SSHFS.CLI.Program.PrivateKeyConnectionInfo(Options options) in C:\projects\win-sshfs\Sshfs\SSHFS.CLI\Program.cs:Zeile 97.
   bei SSHFS.CLI.Program.GetAuthMechanisms(Options options) in C:\projects\win-sshfs\Sshfs\SSHFS.CLI\Program.cs:Zeile 79.
   bei SSHFS.CLI.Program.Main(String[] args) in C:\projects\win-sshfs\Sshfs\SSHFS.CLI\Program.cs:Zeile 61.

After that I get this classical error:

From the error message, it seems like I don't supply the required "-x/--password" parameter but that is not the case either.

@GuyXY The -x password parameter is for password/keyboard-interactive login, it isn't used for decrypting private keys.
I could just add another parameter to accept the private key passphrase, but having a password in a CLI param is a security risk. For my use case, the machines I'm ssh-ing into are ephemeral and just have p@ssw0rd as the password, so I'm not losing anything if that password gets pwned.
However in general, if people start putting important information like their private key passphrase in the command line invocation, they need to be aware that said passphrase is accessible to any process on the box that does the Windows equivalent of ps .
I think I am going to remove the -x command line argument and change things so that a passphrase/password is sent through stdin if needed. If people are starting to use the tool with sensitive info I also need to handle the password more carefully. At the very least I need to add a strong disclaimer in the README about the lax state of security at the moment.

I had the same problem. For a quick workaround, I always read the key's passphrase: https://github.com/Schroedi/win-sshfs/tree/priv_key_pw
A way to check if a passphrase is required would be good.

I looked at the code again, and this is actually already supported in the command line options. It's undocumented, but the -k option doesn't just take a path to a private key file; you can add two spaces after the key file path and enter the passphrase, i.e. -k <path to private key>  <passphrase>.
I'm not really 100% sure what I was smoking when I wrote that stuff, but there you go. You can use that in the interim until I change this stuff to use an input stream (probably by the end of the week).


Upstream Bug: cloudflare-ddns no longer working

The Cloudflare DDNS image joshava/cloudflare-ddns has not been updated in over a year - I'm unsure if it is abandonware or not. Cloudflare have depreciated global API calls, instead you now issue an API key for individual domains and actions. You can no longer issue the global API key the docker image needs. This leaves the docker image no longer working for new installs and if it still works for existing installs, it won't do for much longer.
As a sidenote, we are also not using cloudflare effectivelyas we simply issue a wildcard subdomain pointing to our install. On free plans this means we cannot proxy the subdomains without either manual setup or paying cloudflare silly monry to upgrade the plan.

Any suggestions of what we can replace it with? The container is
essentially a wrapper around a batch script, so shouldn't be difficult to
fix if there are.no alternatives...
On Sat, 7 Mar 2020, 15:02 animeai<EMAIL_ADDRESS>wrote:

The Cloudflare DDNS image joshava/cloudflare-ddns has not been updated in
over a year - I'm unsure if it is abandonware or not. Cloudflare have
depreciated global API calls, instead you now issue an API key for
individual domains and actions. You can no longer issue the global API key
the docker image needs. This leaves the docker image no longer working for
new installs and if it still works for existing installs, it won't do for
much longer.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/davestephens/ansible-nas/issues/243?email_source=notifications&email_token=AAFDGMBRJSE3X3WPE5LIK6LRGJOWVA5CNFSM4LDQKRT2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ITJTSMQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFDGMC35DRNRJILR2AMF5DRGJOWVANCNFSM4LDQKRTQ
.

I did have a look but found no drop in replacement yet. There are a lot of containers modified within the past few weeks surrounding the cloudflare api but I've not had a chance to test them yet.

short-term fix, what
what about a container with ddclient? this ddclient.conf works for me with the Global API key. am running it alongside ansible-nas on the host.
`# Configuration file for ddclient

Global Config

daemon=300
ssl=yes

sub.domain.tld - Cloudflare ## Update Me

protocol=cloudflare
use=web
<EMAIL_ADDRESS>password=redacted_global_api_key
zone=somedomain.org
*.somedomain.org
`
re prev comment: i created a new account and received a global API key... so not sure.
also, have not looked into using ddclient with the new API mechanism. will probably wait until this breaks for good. ;)

looks like a dead end for now, ddclient support for the new API token mechanism has been open for lose to a year https://github.com/ddclient/ddclient/issues/73

have moved ddclient over to a container in portainer and its running nicely.
placed my custom ddclient.conf in /mnt/Volume2/docker/ddclient (create dir first manually)
not sure if this is right.
i believe this is the docker command used (change the TZ below)
docker create \
  --name=ddclient \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=America/New_York \
  -v /mnt/Volume2/docker/ddclient:/config \
  --restart unless-stopped \
  linuxserver/ddclient

not sure how to contribute this as a pull to the project if its a good fix.

Just visiting, and thought I might add that there's https://github.com/ddclient/ddclient/pull/102

https://hub.docker.com/r/qmcgaw/ddns-updater
I've been communicating with the developer of ddns-updater to support my requirements. He's very friendly, willing, and active.
Specifically picked his project because I like the chart report it creates:

I've had it installed and setup in Ansible-Nas for awhile. I just need to get back to testing if it works with dyndns or not.  https://github.com/qdm12/ddns-updater/issues/55
My vote is for this and I plan to submit it once it is working for me. :)

Hey all, I just posted a PR that should fix this issue without anyone needing to change their existing configs. You can also easily change from the global API key to access token. The underlying container was updated last month, and these changes take advantage of that.


Week 17 on the syllabus has incorrect dates

5/20 is the Wednesday of week 17. So Day 1 should be 5/18 and Day 2 should be 5/20.

Do you mean week 12?

Is this using a Zero-based or normal (starting at 1) based weeks?

Nope, the week of finals, it's labeled as 17 on the syllabus.

I believe that 5/20 is the day of our final (which should be on a Wednesday and not follow our traditional schedule). @amm4108, you can check in SIS to confirm this. If that's the case, we can probably close this.

So with further inquiry it looks like 5/20 is the day of our final which is why the schedule seems off. Unless anyone has any other comments, I'll be closing this.


separatorColor

Hi,
I'm new with this library and try to understand how to change separatorColor from a table ?
This don't work:
self.table.separatorColor.dk_borderColorPicker = DKColorPickerWithKey(BG);

Thanks

I reply to myself:
self.table.dk_separatorColorPicker


Include the ‘doc’ in search results, if it exists in the DocumentStore.

Hi @weixsong,
This pull request includes the doc in search results, if it exists in the DocumentStore. This is often useful if one wants to be able to see the original document used for indexing.
[{
    "ref": 1,
    "score": 0.5376053707962494,
    "doc": {title: "The Moon is a Harsh Mistress", id: 1}
},
{
    "ref": 2,
    "score": 0.5237481076838757,
    "doc": {title: "The Wealth of Nations", id: 2}
}]

Otherwise one has to keep reference to the docs and pull them back up via the ref value in the search results.
This PR is useful to myself, and hopefully others, as I modify my objects into indexable docs prior to index. Then want to get the docs back with the search results without having to create a separate lookup hash of indexed docs.
Many thanks for the great library! Cheers.

Hi, @roark , thanks very much for your contribution, I was quite busy these days, sorry for the late merge.

Hi @weixsong, no worries, know how it goes. Thanks for merging in the changes. Cheers!

It's not in the package on npm yet right? Any ideas on when it will be pushed to it?

hey @weixsong would you please release an npm package with these changes :blush:


MultiScreenInfo.surfaceDuoInfoModel.isSpanned = false while SurfaceDuoPlatformHandler.getIsSpanned() = true

Hello,
I made this simple example. When I debugged this application everything worked fine. As soon as I wanted to deploy it in release mode an error ("java.lang.AbstractMethodError: abstract method "void androidx.window.sidecar.SidecarInterface$SidecarCallback.onDeviceStateChanged(androidx.window.sidecar.SidecarDeviceState)"") came which I resolved by adding
dependencies {     implementation "androidx.window:window:1.0.0-beta04" }
to the build.gradle file. Now the app runs but it seems to not think the device is not Spanned when it is spanned so I always just see the first child from TwoPageLayout.
MultiScreenInfo(builder: (info) {
        print(info.surfaceDuoInfoModel.isSpanned);
}); **returns false;**

SurfaceDuoPlatformHandler.getIsSpanned().then((value) => print(value)); **returns true**

Code: https://www.toptal.com/developers/hastebin/isukovusaj.java
or
`import 'dart:async';

import 'package:flutter/material.dart';
import 'package:multi_screen_layout/multi_screen_layout.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Spikeball Counter',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MultiScreenInfo(builder: (info) {
        print(info.surfaceDuoInfoModel.isSpanned);
        SurfaceDuoPlatformHandler.getIsSpanned().then((value) => print(value));
        return TwoPageLayout(child: const MyHomePage(color: Colors.blue), secondChild: MyHomePage(color: Colors.red.shade400));}),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.color}) : super(key: key);
  final Color color;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;
  bool _winner = false;
  Color bg = Colors.white;

  @override
  void initState() {
    super.initState();
    bg = widget.color;
  }

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: GestureDetector(
          onTap: () {
            if(_winner) return;
            _incrementCounter();
            if(_counter == 25) {
              _winner = true;
              Timer.periodic(const Duration(milliseconds: 500), (Timer timer) {
                  if (_counter != 25) {
                    setState(() {
                      _winner = false;
                      timer.cancel();
                      bg = widget.color;
                    });
                  } else {
                    setState(() {
                      bg = (bg == widget.color ? Colors.white : widget.color);
                    });
                  }
                },
              );
            }
          },
          child: Container(color: bg, child: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'Team ' + (widget.color == Colors.red.shade400 ? 'Rot' : 'Blau'), style: TextStyle(fontSize: 20, color: (widget.color == Colors.red.shade400 ? Colors.red[900] : Colors.blue[900])),
            ),
            Text(
              '$_counter',
              style: TextStyle(fontSize: 280, color: (widget.color == Colors.red.shade400 ? Colors.red[900] : Colors.blue[900])),
            ),
          ],
        )),
      )),
      floatingActionButton: Row(mainAxisAlignment: MainAxisAlignment.end, children: [
        IconButton(onPressed: () {setState(() {
          if(_counter == 0) return;
        _winner = false;
        _counter -= 1;
      });}, icon: Icon(Icons.exposure_minus_1_rounded)),
        IconButton(onPressed: () {setState(() {
        _winner = false;
        _counter = 0;
      });}, icon: Icon(Icons.refresh_rounded))],),
    );
  }
}

Hello! Which version of the library are you using?

The latest (3.0.0)

Hello, is there any Update on this? :o

Hey! I plan to look into this soon. Probably early next week.

I'm able to run your code no problem and it displays TwoPageLayout correctly. I'm running it on a Surface Duo 2, are you using a Surface Duo 1 or the emulator?

Ah I was able to reproduce it with adding the specific version of the window manager lib.
Can you replace:
dependencies {
    implementation "androidx.window:window:1.0.0-beta04"
}

with
dependencies {
    implementation "androidx.window:window:1.0.0-alpha06"
}

And test again?

Unfortunately the error "java.lang.AbstractMethodError: abstract method "void androidx.window.sidecar.SidecarInterface$SidecarCallback.onDeviceStateChanged(androidx.window.sidecar.SidecarDeviceState)" is thrown again after replacing this

I also tried it with the latest Version https://developer.android.com/jetpack/androidx/releases/window but It had the same result as using beta4 where
MultiScreenInfo.surfaceDuoInfoModel.isSpanned returns false while SurfaceDuoPlatformHandler.getIsSpanned() returns true

I just published version 3.1 which update the Window Manager lib to newest, it required some code changes.
These are the deps that would need to be added after upgrading to 3.1.
dependencies {
    implementation "androidx.window:window:1.0.0-rc01"
    implementation 'androidx.window:window-java:1.0.0-rc01'
}

It's working!! Thank you. ☺


What you are using tools drawing？

Hi, I want to know what you are using tools drawing the SDWebImageClassDiagram.png and  SDWebImageSequenceDiagram.png.
Thank you very much!

I also want to know.

Guess it's StarUML, since there's a SDWebImage.mdj file in Docs directory (mdj = metadata-json).

Hello, You're right. This is the StarUML. Thank you very much.
littlesome<EMAIL_ADDRESS>周二12:53写道：

Guess it's StarUML, since there's a SDWebImage.mdj file in Docs directory
(mdj = metadata-json).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rs/SDWebImage/issues/1761#issuecomment-274709496, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGh8Q_baypPXPSmDzGs7P1FSluqR8X0Pks5rVYPDgaJpZM4LXbuO
.


Add ProcessStarter API

This PR migrates our existing codebase for handling OS processes. It comes with a set of unit tests and a couple of changes which were required for the linter.
The commits show the migration steps taken to make the code compatible.

Currently closed because it may be a better option to use something from symfony: https://symfony.com/doc/current/components/process.html#setting-environment-variables-for-processes


Don't Merge! PR real time test for target branch full build

OPS Build status updates of commit 83510f4:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details
Dependent Files

:x:Error

Details

Line 208: [Error] Error happened to execute the task _dependentPackages/CommonPlugins/tools/JoinTOC.ps1
Line 386: [Error] Error happened in build.entrypoint.ps1. Please build your target branch first and then reopen this pull request to do another round of verification. If the issue still happens, open a ticket in http://SiteHelp and include the following error message for our team to troubleshoot: Cannot process argument transformation on parameter 'exitCode'. Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Int32".

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add bartekjaszczak/distinct-nvim

Repo URL:
https://github.com/...
Checklist:

[ ] The plugin is specifically built for Neovim, or if it's a colorscheme, it supports treesitter syntax.
[ ] The lines end with a .. This is to conform to awesome-list linting and requirements.
[ ] The title of the pull request is Add/Update/Remove `username/repo`  (notice the backticks around `username/repo`) when adding a new plugin.
[ ] The description doesn't mention that it's a Neovim plugin, it's obvious from the rest of the document. No mentions of the word plugin unless it's related to something else.
[ ] The description doesn't contain emojis.
[ ] Neovim is spelled as Neovim (not nvim, NeoVim or neovim), Vim is spelled as Vim (capitalized), Lua is spelled as Lua (capitalized), Tree-sitter is spelled as Tree-sitter.
[ ] Acronyms should be fully capitalized, for example LSP, TS, YAML, etc.

Thanks for the PR!

Committed your suggestions. I completely missed the checklist, sorry!

Thanks for the PR!


JSUI-3107 Prevent chrome from detecting cookie use

When we remove the action history in the constructor, Chrome still warns users that the JSUI site is using a __coveo.analytics.history. This warning appears even when analytics is disabled, when we are initializing History with NullStorage.
This PR removes the Cookie clearing step.

Codecov Report

Merging #216 into master will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #216      +/-   ##
==========================================
+ Coverage   89.55%   89.63%   +0.08%
==========================================
  Files          25       25
  Lines         852      849       -3
  Branches      115      114       -1
==========================================
- Hits          763      761       -2
  Misses         58       58
+ Partials       31       30       -1

Impacted Files
Coverage Δ

src/history.ts
86.79% <100.00%> (+1.07%)
:arrow_up:

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 7f2b6fa...81cba6f. Read the comment docs.


backported additional AQL query metrics to 3.6

Scope & Purpose
Added new metrics for tracking AQL queries and slow queries:

arangodb_aql_query_time: histogram with AQL query times distribution.
arangodb_aql_slow_query_time: histogram with AQL slow query times distribution.

These metrics already existed in devel for a while. This PR just backports them.

[ ] :hankey: Bugfix (requires CHANGELOG entry)
[x] :pizza: New feature (requires CHANGELOG entry, feature documentation and release notes)
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification
[x] :book: CHANGELOG entry made

Backports:

[x] No backports required

Testing & Verification

[x] This change is a trivial rework / code cleanup without any test coverage.
[x] The behavior in this PR was manually tested

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/12852/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/12861/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/12879/

3.6 docs don't have a list of all metrics, so no change needed on that front (unless we want to add a full list for 3.6?)

Tests blue

@Simran-B : probably we should copy over the list of metrics page from 3.7 or 3.8 to 3.6, and then just remove the ones which are not present in 3.6. WDYT?


[angle] Class WebSwapCGLLayer is implemented in both WebKit.framework and angle on macOS

Describe the bug
When I use angle on macOS, it prints
objc[70246]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffb469e5ec8) and /Users/xiaozhuai/work/glpp/cmake-build-x64-debug/tests/01_hello_triangle (0x104901dc8). One of the two will be used. Which one is undefined.

Environment

OS: macOS
Compiler: clang-14<IP_ADDRESS>

To Reproduce
vcpkg install angle:x64-osx

And then build and run this project
https://github.com/xiaozhuai/vcpkg_demo/tree/master/src/opengles_angle
Expected behavior
It should print nothing

In up-to-date versions of ANGLE, there's a ANGLE_OUTSIDE_WEBKIT define that changes the class name at compile time: https://github.com/google/angle/blob/eaae3b4b01d9a04d7c8013c6e9da805e2a08ec2f/src/libANGLE/renderer/gl/cgl/WindowSurfaceCGL.mm#L23C8-L27
That change happened here, in case that's easier to pull as a patch: https://github.com/google/angle/commit/8875ba4e4cd28a8a08d51f60ea8bc967cb26659d

Just let it stay broken.


zero padded filemode in your git history

Trying to clone dotfiles with modern (well, fine bleeding edge) git fails:
✔ ~
00:39 $ git clone https://github.com/holman/dotfiles.git
Cloning into 'dotfiles'...
remote: Counting objects: 2026, done.
error: object 3aadee53f1ea498f2e496d63ac24cf28b358b9b7: zeroPaddedFilemode: contains zero-padded file modes
fatal: Error in object
fatal: index-pack failed

This seems to be due to a bug from 2005 + closing a security hole https://www.perforce.com/blog/150109/git-out-vulnerability-out-fire.
git config fetch.fsckObjects false

Will allow the repo to be cloned, but presumably there is a reason the default has been changed to true.
If you follow the directions (git fast-export --all | (cd ../myFixedRepo; git fast-import)) the issue seems to start very early in the history.
I have pushed the cleaned version here

ad0452a260e13e06945384d5ddbf1a6761e40810 Is the last 'good' commit in the current history.

What version are you running, though? I just tried on 2.7.3 on Mac (the latest release) and had no problems cloning.
Would really hope to avoid changing the SHAs on the whole repo with a force push. :\

Ah, right. Forgot about your whole comment.
› git fsck
Checking object directories: 100% (256/256), done.
warning in tree 3aadee53f1ea498f2e496d63ac24cf28b358b9b7: zeroPaddedFilemode: contains zero-padded file modes
Checking objects: 100% (2026/2026), done.

I'm guessing this would mean most people wouldn't run into this? Will need to think things over a bit to consider what the best approach is.
Open to some thoughts by those in the peanut gallery!

Sorry, I confused my self, the issue was not a new version of git, it was me having
[transfer]
        fsckobjects = true
[fetch]
        fsckobjects = true
[receive]
        fsckObjects = true

in my .gitconfig on one of my machines and first tried to clone this repo just after updating git on that machine, so placed the blame in the wrong place.
So, it is a problem, but less so than I initially made it out to be.

According to this release of git 2.6, you should be able to ignore certain fsck errors with
git config --global fsck.<msg-id> ignore, where msg-id would be zeroPaddedFilemode in this case.
I've tried this after a user notified me of the error (https://github.com/robbyrussell/oh-my-zsh/issues/4963) but the error still appears when cloning, but not when doing a git fsck. So I think there must be some kind of bug with at least git 2.8.0.rc3 which is the version I have.
Anyhow, you can try the above solution and see if it works.

http://thread.gmane.org/gmane.comp.version-control.git/288336

Thanks! That's exactly it, it seems the setting is not implemented on fetch.fsck.*. Direct link: http://thread.gmane.org/gmane.comp.version-control.git/288336


Fix rpc always final

some fixes in the docs with respect to blocks from cometbft rpc always being final and comments. made changes match the removal of gossipnet straight away.

I rebased #383 on top of main which messed up this PR's history. I cherry-picked the relevant commit without changes into 383s history. Closing this PR in favour of the cherry pick.


chore: remove pluginSDKStruct

a byproduct of a review.
pluginSDKStruct is copying the keys of the given config object to a new object-instance (so it's basically copying that object). also we seem to only instantiate it once which makes me even more confident that we don't break anything with this change.

@pierrebeitz could it be that we mutate the data somewhere and now we will potentially have side effects?

@nLight 	i thought the same and came to the conclusion that the side effects on an instance would be the same as on a POJO.

:tada: This PR is included in version 2.123.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


No header part?

I've modified example/src/client.ts to talk to my own custom LSP implementation which I've prototyped by having it talk to Visual Studio Code. It works fine in Visual Studio Code.
However, my LSP implementation isn't able to communicate with the example client because it doesn't add headers to the messages sent to the server. Also, it doesn't understand the replies from my LSP implementation as they contain headers.
For example, the example client sends this message:
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"clientInfo":{"name":"vscode"},"rootPath":null,"rootUri":null,"capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true}}},"trace":"off","workspaceFolders":null}}

But I would have expected it to send this message:
Content-Length: 2732

{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"clientInfo":{"name":"vscode"},"rootPath":null,"rootUri":null,"capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true}}},"trace":"off","workspaceFolders":null}}

Conversely, if I send a message including a header to the example client, this error occurs:
VM594:1 Uncaught SyntaxError: Unexpected token C in JSON at position 0
    at JSON.parse (<anonymous>)
    at WebSocketMessageReader.readMessage (reader.ts:56)
    at reader.ts:18
    at WebSocket.webSocket.onmessage (connection.ts:26)

The message I'm sending looks like this:
Content-Length: 193

{
  "id": 0,
  "result": {
    "capabilities": {
      "completionProvider": {
        "triggerCharacters": ["."]
      },
      "hoverProvider": true,
      "textDocumentSync": 1.0
    }
  }
}

The header is only required when transmitting over a socket or stdin/stdout
When using websocket, the message are already "splitted" so no need to add this overhead, we even prefer having a valid json in each message

I'm not able to anything in the specification that mentions that the header is optional. I think it would be great if the header was optional. I agree the headers aren't necessary when using a web socket, but neither are the first { and the last } of the JSON-RPC content part. Yet, one follows the specification to increase interoperability between various tools.


LINK-1530 | Improve phone number validation

Description
Improve phone number validation to allow e.g. +358 44 1234 567 which is used as placeholder text
Closes
LINK-1530

Codecov Report

Merging #65 (e4bfb3a) into develop (24d1815) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop      #65   +/-   ##
========================================
  Coverage    99.65%   99.65%
========================================
  Files          128      128
  Lines         2299     2299
  Branches       364      364
========================================
  Hits          2291     2291
  Misses           8        8

Files Changed
Coverage Δ

src/utils/validationUtils.ts
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Warning: Assigning unhandled ui-box props to 'style': WebkitFontSmoothing, WebkitAppearance, MozAppearance

Hello, evergreen community and maintainers! I hope you're doing well. Thanks for all your hard work and dedication. Appreciate it a lot!
After updating to 7.0.1 we start getting red error messages in the console:
warning.js:4 Warning: Assigning unhandled ui-box props to 'style':
{
    "WebkitFontSmoothing": "antialiased",
    "WebkitAppearance": "none",
    "MozAppearance": "none"
}

coming from node_modules/evergreen-ui/esm/buttons/src/IconButton.js

Code:
import { Button } from "evergreen-ui";

export default function App() {
  return (
    <Button>button</Button>
  );
}

Reproduce link: https://codesandbox.io/s/charming-swanson-o5rrg7?file=/src/App.js
Could you please take a look?

Hey @vadimcoder -
This logging message was added during the refactor to remove glamor to help spot other css props that were unhandled by ui-box and falling back to glamor. We probably don't need it anymore since most of the css props we're using are supported (and the properties that are unhandled now are not widely supported in browsers anyway), but it should only appear in development and not really harm anything.

Hi @brandongregoryscott,
Firstly, thanks for your hard work, it is really important.
Regarding these warnings, I just wanted to share our story that these red warnings are mixed up with application warnings and draw additional attention to the library. And raises questions to me as an initiator of the update to v7. This is kind of stressful since I cannot do much about it. But I totally understand the motivation. Is it possible maybe to hide the warnings if unhandled pros are coming to ui-box from evergreen ui specifically?

I'll open up a PR to remove it. It was primarily for internal debugging since external consumers won't be able to pass unhandled ui-box props except through the style prop anyway.

Oh that would be really awesome! Thank you!

Should be resolved in v7.1.0!

Hi @brandongregoryscott!
That was incredibly fast. I didn't expect that! )) Thank you so much.


classes compiled with Java12, can't use as library with Java8

When using Synthea as a library, execution fails with:
/Users/testuser/projects/synthea-test/src/main/java/TestSynthea.java:1: error: cannot access Generator
import org.mitre.synthea.engine.Generator;
                               ^
  bad class file: /Users/testuser/.gradle/caches/modules-2/files-2.1/org.mitre.synthea/synthea/2.5.0/74637dbf5e258231a75cb80ebf45090b0bda5565/synthea-2.5.0.jar(org/mitre/synthea/engine/Generator.class)
    class file has wrong version 56.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

Example code I used to get this output:
// file:///Users/testuser/projects/synthea-test/src/main/java/TestSynthea.java
import org.mitre.synthea.engine.Generator;

public class TestSynthea {
    public static void main(String[] args) {
        Generator.GeneratorOptions options = new Generator.GeneratorOptions();
        options.population = 10;
        Generator generator = new Generator(options);
        generator.run();
    }
}

And here is my build.gradle
plugins {
    id 'java'
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.mitre.synthea:synthea:2.5.0'
}

Additionally, here is my java compiler info, gradle info, and OS
>>> system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.14.6 (18G95)
      Kernel Version: Darwin 18.7.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      [...]

>>> java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.232-b09, mixed mode)

>>> gradle --version

------------------------------------------------------------
Gradle 6.1
------------------------------------------------------------

Build time:   2020-01-15 23:56:46 UTC
Revision:     539d277fdba571ebcc9617a34329c83d7d2b259e

Kotlin:       1.3.61
Groovy:       2.5.8
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          1.8.0_232 (AdoptOpenJDK 25.232-b09)
OS:           Mac OS X 10.14.6 x86_64

We could alter the gradle build file to specifically target JDK 8.
See https://docs.gradle.org/current/userguide/building_java_projects.html and the sourceCompatibility and targetCompatibility options.
In the meantime, do not compile with a newer version of the JDK than what you want to execute with.

When compiling the project locally using Java8, the project has no issue.
This happens with the jar coming from Mavencentral, when trying to use Synthea as an "SDK" so to speak. No compilation is being done at that point on my end.

+1 this is an embedding issue, the sample code fails to compile with the provided pom.xml and code with JDK 1.8.

Hi everyone, are there any plans to make Synthea compatible with current version of JDK?

This issue was closed with a fix. Are you seeing an error?

Hi @hadleynet , thanks for quick note. I don't see an error. I am not reporting an issue. I just had a questions, and I was not sure where I should ask, so I put it here. Sorry about confusion.
I am just wondering if there are any plans to make Synthea compatible with the current version (v. 16) of JDK.
Thanks

Our CI tests run on both Java 8 and Java 16 so everything should be good with the latest JDK. Let us know if you run into issues.


Source maps missing

There is no source map files for non-minified versions. Next files are missing:

maps/swiper.jquery.js.map
maps/swiper.jquery.umd.js.map
maps/swiper.js.map

You don't need source maps for unminified code do you?

If so - sourceMappingURL comments should be removed from those files.
//# sourceMappingURL=maps/swiper.jquery.umd.js.map

Let's remove this, guys?)

I'm also experiencing 404 messages when including Swiper using Webpack:
‼ 404: No matching route found for /compiled/maps/swiper.js.map

Ping @nolimits4web

For anyone interested in this issue and is using Webpack. Using string-replace-loader will work as a temporary workaround:
    { // shim for libraries that are depending on a .map file (like Swiper)
      // github.com/nolimits4web/Swiper/issues/1683#issuecomment-316825698
      test: /\.js$/,
      loader: 'string-replace-loader',
      query: {
        search: '//# sourceMappingURL=(.*?).map',
        flags: 'gmi',
        replace: ''
      }
    }

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.
If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with issue


support for .toml files

Hi Tony,
Great tool, I love it!
Could you add support for toml files (used to define python projects), or even better: some functionality to add any other file type (of which I now it's just text) on the fly?

Closing this issue: .toml support coming in the next release


Script?

Hello,
Thank you for this guide! I totally understand what I'm doing with this. However i got 2 things. The first is that you actually don't have to download the updates 10.10.4 and 10.10.5 anymore. Apple updated Yosemite to 10.10.5 for download in the app store.
Now the second one. On the subject Services you wrote a script:
function disable_agent {
echo "Disabling ${1}"
launchctl unload -w /System/Library/LaunchAgents/${1}.plist
}
What language is that? is that applescript? because I'm not really much into programming yet and don't know how to run it.
prov3it

@prov3it that's shell script. If you open a terminal and run echo $0 it'll tell you what flavour of shell you're running, which is almost certainly bash. If you wanted to use that function repeatedly (which you would, why else declare a function?) then you'd create or open your ~/.bashrc file and paste that in, save it, then run source ~/.bashrc to update the shell with the changes. Then you can run the function whenever you open a terminal window.
There are lots of good tutorials on the net for shell scripting.

@prov3it Indeed Apple has released a base 10.10.5 image since I wrote this guide. Would you like to give me the build number and cryptographic hashes of the InstallESD image included there? I will definitely add it to the guide.
I believe @yb66 answered your question - it's in fact a small Bash function. I can explain in a little more detail since it's not clear one can copy and paste the "code blocks" into Terminal.

@yb66 thank you for clearing that up!
@drduh sure! I made a bootable installation usb drive for it using:
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Yosemite --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction
I performed the following command to get the cryptographic hash from the bootable usb drive:
shasum -a256 /Volumes/Install\ OS\ X\ Yosemite/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg
Output:
24c4934d91401dd2f738c7811d35ae16d3d7993586592a64b9baf625fe0427db  /Volumes/Install OS X Yosemite/Install OS X Yosemite.app/Contents/SharedSupport/InstallESD.dmg
Build:
14F27

Can confirm 24c4934d91401dd2f738c7811d35ae16d3d7993586592a64b9baf625fe0427db, ef5cc8851b893dbe4bc9a5cf5c648c10450af6bc and ff4850735fa0a0a1d706edd21f133ef2
$ find "/Volumes/OS X Base System/System" -name "SystemVersion*" -exec defaults read {} \;
{
  ProductBuildVersion = 14F27;
  ProductCopyright = "1983-2015 Apple Inc.";
  ProductName = "Mac OS X";
  ProductUserVisibleVersion = "10.10.5";
  ProductVersion = "10.10.5";
}

I'll update the instructions soon.


Point shape mismatch for gas/diesel cars in Lab 5

In Lab 5 instructions the following Python code is given to visualize outliers:
def auto_scatter_outlier(df, plot_cols):
    import matplotlib.pyplot as plt
    outlier = [0,0,1,1] # Vector of outlier indicators
    fuel = ['gas','diesel','gas','diesel']  # vector of fuel types
    color = ['DarkBlue','DarkBlue','Red','Red'] # vector of color choices for plot
    marker = ['x','o','o','x'] # vector of shape choices for plot
    for col in plot_cols: # loop over the columns
        fig = plt.figure(figsize=(6, 6))
        ax = fig.gca()
        ## Loop over the zip of the four vectors an subset the data and
        ## create the plot using the aesthetics provided
        for o, f, c, m in zip(outlier, fuel, color, marker):
            temp = df.ix[(df['outlier'] == o) & (df['fueltype'] == f)]
            if temp.shape[0] > 0:
                temp.plot(kind = 'scatter', x = col, y = 'lnprice' ,
                           ax = ax, color = c, marker = m)
        ax.set_title('Scatter plot of lnprice vs. ' + col)
        fig.savefig('scatter_' + col + '.png')
    return plot_cols

It`s located under "Visualize outliers in Python" section, step 6.
The typo is in the following lines:
fuel = ['gas','diesel','gas','diesel']  # vector of fuel types
...
marker = ['x','o','o','x'] # vector of shape choices for plot

The point shape has to be different for gas and diesel cars, but, according to the code, it is X for gas cars and O for diesel cars when the samples are not outliers, and O for gas cars and X for diesel cars when the samples are outliers.
The same error could be seen in the "Demo: Finding outliers" lecture video.
Changing the code to
fuel = ['gas','diesel','gas','diesel']  # vector of fuel types
...
marker = ['x','o','x','o'] # vector of shape choices for plot

gives the lnprice vs citympg plot that corresponds to the other gas/diesel plots shown in the lectures: diesel cars are grouped and located above gas cars (more efficient and pricy).

Hi Oleg,  I am sorry, but we are no longer maintaining this course.


1.18.2 Compatibility Please.

Come on. All my other mods have been updated already,

Be a bit more respectful to devs that give you mods for free, yes?

Come on. All my other mods have been updated already,

Welcome to the life of a mod developer, everybody! For the rest of you - thanks for your patience, Vanilla Hammers is out on 1.18.2 now. Let me know if you have any issues. I'll be looking into updating Vanilla Excavator soon as well!


Bug in QuadTreeKD2

Hello, I believe I encountered a bug in QuadTreeKD2. It's not present in QuadTreeKD or QuadTreeKD0.
reproducer (data.txt):
package bug;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;

import org.tinspin.index.qthypercube.QuadTreeKD;
import org.tinspin.index.qthypercube2.QuadTreeKD2;
import org.tinspin.index.qtplain.QuadTreeKD0;

public class HelloWorld {
  public static void main(String[] args) {
    try {
      t();
    } catch (Exception e) {
    }
  }

 public static void t() throws Exception {
    BufferedReader reader = new BufferedReader(new FileReader("data.txt"));
    int n = Integer.parseInt(reader.readLine());
    QuadTreeKD2<Integer> tree = QuadTreeKD2.create(2);
    for (int i = 0; i < n; i++) {
      String[] sp = reader.readLine().split(" ");
      double d1 = Double.parseDouble(sp[0]), d2 = Double.parseDouble(sp[1]);

      tree.insert(new double[]{d1, d2}, i);
    }
    int k = Integer.parseInt(reader.readLine());
    for (int i = 0; i < k; i++) {
      String[] sp = reader.readLine().split(" ");
      double d1 = Double.parseDouble(sp[0]), d2 = Double.parseDouble(sp[1]);

      tree.remove(new double[]{d1, d2});
    }
    {
      String[] sp = reader.readLine().split(" ");
      double d1 = Double.parseDouble(sp[0]), d2 = Double.parseDouble(sp[1]);
      var node = tree.query1nn(new double[]{d1, d2});
      boolean has = tree.contains(node.point());
      System.out.println(n);

      System.out.println(has); // Should print true, but prints false with QuadTreeKD2
    }
  }
}

Thanks for this very nice & reproducible bug report!
I can reproduce this and will have a look as soon as I can.

Analysis: this was two problems:

remove() did not actually remove entries (i.e. set a reference to null) but only shuffled entries around and reduced an entry counter.
kNN search did not respect the counter but searched all entries in a node's entry collection.

The combination cause kNN entries that had supposedly been deleted .
A new release 2.1.3 should be available via maven by tomorrow or so.
Thanks again for reporting this!

Thanks for the fix, now works nicely!


Posix q

Added POSIX Queues test.
Created a combined test app (ipc_bm) for testing on embedded target
Added ARM variable to Makefile to use ARM cross compiler  e.g. make ARM=1 all
updated shell script and python scripts

added more minor comment fixes creating new request


Fix movement hack handling

This fixes #215.

Merged in https://github.com/GlowstoneMC/GlowstonePlusPlus/commit/e33a1ae75236c5a879f0529cdfb1cf4231ef630a.


Main window background settings not working (Transparency/rgba)

Hello,
I tried using the Glassmorphism theme, however the main window remains the default colour.
I tried changing style settings and applying "customize CSS" in the Middle Pane Background option under Dark mode settings, but that doesn't take effect either.
Transparency in "Appearance settings" is switched on and I have tried other modes in Dark Mode Settings for the main window, however the rgba value doesn't work. All border themes with transparent main windows give me the same issue.
Any suggestions on what else I could try?
cheers,
L
Settings I have enabled:

The left sidepane applies the selected background settings correctly, but the middle pane doesn't.

Sorry, but custom CSS is not permitted in stack mode. Allowing custom styles could result in overlapping tabs with transparent backgrounds, which would significantly hinder readability. Disabling stack mode should restore normal functionality.


Backout externalEndpoint changes committed by pull request 125

Backout the externalEndpoint configuration, because external subdomain will be different for each tenant. Instead we should keep relying on req.host; but we eventually need to resolve what protocol (http or https) to use for redirect.

Current coverage is 96.04%

Merging #126 into master will increase coverage by +0.11% as of 039634a

@@            master    #126   diff @@
======================================
  Files           36      36
  Stmts          885     885
  Branches        40      40
  Methods          0       0
======================================
+ Hit            849     850     +1
  Partial          0       0
+ Missed          36      35     -1

Review entire Coverage Diff as of 039634a

Powered by Codecov. Updated on successful CI builds.


Assignment-1

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
What did you learn from the changes you have made?
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist

[ ] I can confirm that my changes are working as intended

Hi Dayaram. Please kindly remember to address the issues I mentioned above. Thank you.

Hi,
I apologize for the delay! I am currently having unplanned worload, I am
almost working 4 almost 4 hours more than regular hours and 12 hours during
weekend. I know these are not the excuses but just letting you know that I
might be late.
Thank you for your understanding!
Regards,
Dayaram
On Thu, Nov 21, 2024, 10:57 a.m. Tianyi Liu @.***>
wrote:

Hi Dayaram. Please kindly remember to address the issues I mentioned
above. Thank you.
—
Reply to this email directly, view it on GitHub
https://github.com/Daya709/algorithms_and_data_structures/pull/1#issuecomment-2491619214,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKQUU3T2I2NEGQMX5HYWTHT2BX7F5AVCNFSM6AAAAABR2NIWZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJRGYYTSMRRGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi Tiyani
Please find my response belo
I noticed that you implemented two versions. Can you explain the connection between them? Is the second version an improved idea from the first one? If so, what is the advantage of the second version?
-- There is no connection between the first and second versions of the code. It demonstrates only two different logic and a second has worse time and space complexity than the first code.
In both versions, when the input is [5,0,1], i.e., Ex2, what is the desired output and what would be the output of your algorithm, respectively?
-- Code has been improved to get the correct output for the [5,0,1]. Thank you for pointing this out.
In your second version, could you elaborate on why you compute the absolute value with abs()?
-- this has been removed in this version
You stated that the space complexity is
O
(
1
)
. In your first version, you create a new set ideal_set = set(range(n + 1)) and in your second version, you created a list missing = []. Could you re-consider the space complexity in both cases? Are they still
O
(
1
)
-- I believe time and space complexity remain the same for range( n+1).
You mentioned in your alternative approach that step 4 will be edge case handling. Could you explain what will be the edge case?
-- This has been removed in the second version.
Thanks,
Dayaram

Hi Dayaram!
Thank you for revising and resubmitting your ADS A1. Please feel free to explore a few more efficient solutions here.
All your ADS assignments have been completed. In future modules, please only merge your PR after it is approved by the learning support. Thank you for your participation, and I wish you all the success in your future endeavours.
Thanks,
Tianyi [LS]

Hi Dayaram!
Thank you for revising and resubmitting your ADS A1. Please feel free to explore a few more efficient solutions here.
All your ADS assignments have been completed. In future modules, please merge your PR after it is approved by the learning support. Thank you for your participation, and I wish you all the success in your future endeavours.
Thanks,
Tianyi [LS]

HI Tianyi,
Thank you so much for your patience and for allowing me more time!
I will follow the link for the more efficient code.
Regards,
Dayaram
On Sun, Nov 24, 2024 at 7:48 PM Tianyi Liu @.***> wrote:

Hi Dayaram!
Thank you for revising and resubmitting your ADS A1. Please feel free to
explore a few more efficient solutions here
https://gist.github.com/meilinz/c208fa8f56fcb7e3340174e5972458b9.
All your ADS assignments have been completed. In future modules, please
merge your PR after it is approved by the learning support. Thank you
for your participation, and I wish you all the success in
your future endeavours.
Thanks,
Tianyi [LS]
—
Reply to this email directly, view it on GitHub
https://github.com/Daya709/algorithms_and_data_structures/pull/1#issuecomment-2496463666,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKQUU3SJPH7JN55SB2WBY7L2CJXUFAVCNFSM6AAAAABR2NIWZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJWGQ3DGNRWGY
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


feat: add Gelato Relay SDK bindings

Adds Rust bindings and types for main Gelato Relay SDK operations.

send relay tx
get supported chains
fetch status of task

Closes #129

Closing in favor of more comprehensive PR


DNS Failure for Kubernetes Service as upstream_url

Summary
I have Kong deployed into a Kubernetes cluster. I want to use Kong as my API gateway in front of services in the cluster. When I create an API, and use the DNS name of the k8s service as the upstream_url, I get {"message":"An unexpected error occurred"} as the response.
If I use the IP of the k8s service (instead of the name), then the request goes through just fine.
I verified that I can curl the service from the kong pod, so dns is working properly inside my cluster.
Kong error:

2017/04/05 18:54:12 [error] 77#0: *19193 [lua] responses.lua:101: before(): failed the initial dns/balancer resolve for 'go-microservice' with: dns server error; 2 server failure, client: <IP_ADDRESS>, server: kong, request: "GET / HTTP/1.1", host: "service-go.apps.arch.mydomain.net:8000"

Steps To Reproduce

Create an API with k8s dns service as upstream

curl -i -X POST
--url http://localhost:8005/apis/
--data 'name=go-microservice'
--data 'hosts=service-go.apps.arch.mydomain.net'
--data 'upstream_url=http://go-microservice:8080'

Additional Details & Logs

Kong version: 0.10.1

I just found if I use the fully qualified name of the service in k8s it works:
curl -i -X POST \
    --url http://localhost:8005/apis/ \
    --data 'name=go-microservice' \
    --data 'hosts=service-go.apps.arch.mydomain.net' \
    --data 'upstream_url=http://go-microservice.default.svc.cluster.local:8080'

Yes, fqdn is required. There is an issue for implementing the dns search and ndots configuration options.

Thanks for confirming @Tieske!


Where is the Analyze package?

Hi there,
I'm test-riding Preview, it's amazing, thanks for this.
I'm also after the Analyze package, Rahul mentioned it here (youtu.be/dh7Mj0cCVjY?list=PLMapeSQlw8ybn7CqkqsII7f_HwKN-k-SM&t=1030).
I couldn't find it anymore in https://github.com/vuedx/languagetools repo. I notice that it's used in this Preview repo - https://github.com/vuedx/preview/blob/main/packages/preview/src/store/ComponentMetadataStore.ts#L1
So I believe the Analyze package is still active? Thanks in advance.

The project is in middle of a refactor. You can find analyze package on v0 branch. https://github.com/vuedx/languagetools/tree/v0/packages/analyze


[Bug]: Domain validation dialog has incorrect instructions

Preflight Checklist

[X] I could not find a solution in the documentation, the existing issues or discussions
[ ] I have joined the ZITADEL chat

Environment
Self-hosted
Version
2.28.1
Describe the problem caused by this bug
When adding a domain to an organization, and choosing the HTTP option, the dialog instructions say to place the validation file at https://.txt.
But in actuality when you click "Validate", what's requested is https:// (i.e. without the .txt extension.)
If you follow the instructions as written, the validation will fail because the URL without the .txt extension will return 404. The error message provides no clue as to what the failure was, nor does any explanation appear in the event logs. I was able to determine the issue by looking at zitadel source code and then at my web server logs.
To reproduce

For an organization, under domains, click "New"
Enter a domain with a web server you can control
Select HTTP as the validation method
Carefully follow the instructions including the full path, file extension included
Click "Validate"

Screenshots
No response
Expected behavior

The URL shown in the dialog should match what is used in the actual request
The error message when validation fails should provide some indication what the failure was that can help resolve the issue.

Operating System
Environment: Kubernetes self-hosted
Relevant Configuration
Nothing special
Additional Context
No response

Thanks @kraney for reporting.
We decided to change the backend check, that it works with the txt.


Enable cycling through completion options using  and

would be great to support this option.

I will consider it. Thanks.

I think it's implemented now.

10x


[Bug]: data object is undefined in index.ejs with latest rspack 1.0.0-beta.0

System Info
N/A
Details
So I have the data object in my index.ejs file which is used for some logic in the index.ejs file by the HTMLWebpackPlugin. Until the previous version, the data object used to work fine, but with this new beta version the data object is "not defined"

Here is an example of how the data object  is used in the index.ejs file:

It works with the 1.0.0-alpha-5 version.
Reproduce link
No response
Reproduce Steps
Please refer to the details section. Given any sample index.ejs file, try accessing the data object as mentioned above.

bump


Bugfix: weekDay tooltip with considering user locale settings, start of dates as the key of dict etc.

this means to fix the bug https://github.com/jasudev/AxisContribution/issues/12 and #14.
Basically 4 issues:

fix the weekDay tooltip considering user's locale settings
sourceDatas should use the start of dates as the dictionary's keys
don't show any grids after the toDate.
reset the parameter type of sourceDatas back to [Date] for backward compatibility.

Kindly ping @jasudev for code review. Thx! :D


Run form fix

first two commits: some clean up to make some conditionals easier to read.
last commit: fixes an issue with the backend being blank. Although we were calling the endpoint, we weren't syncing the results in redux, so the backend wouldn't show up in the form. I only observed the issue directly after a vagrant provision. The fix is one line and we just make sure we fetch the clusters when the simulation page mounts.
We also manually fetch the EC2 info and don't store it in redux this way.  So on the Run panels we're mixing redux and component states, which could be why so many form issues have come from these panels. Filing as an issue separately.

Separate issue filed as #520.

this also removed sem-ver from the package.json

Current coverage is 60.48% (diff: 100%)

Merging #519 into release will not change coverage

@@            release       #519   diff @@
==========================================
  Files            59         59
  Lines          2918       2918
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1765       1765
  Misses         1153       1153
  Partials          0          0

Powered by Codecov. Last update c933804...e878558

@chetnieter ptal?

New error is covered in #521. Apparently the issue links don't work in the code review feature.


Build errors

Please explain how to build this project.
When I run
python demo.py
it writes:
Import error: No module named '_pycaffe'
There is _pycaffe.cpp file, but it is a C++ file, not a Python one. If I need to build some C++ DLL first, please explain how. Yes, there is Makefile file, but it has hardcoded paths inside, like:
-I/home/i-shenfalong/.local/lib/python2.7/site-packages/numpy/core/include/
Please explain how (and what) to build.
Thanks.

Hi, I faced the same problem.
Did you solve it?

I faced the same problem，why use _pycaffe?

I faced the same problem，why use _pycaffe?
Traceback (most recent call last):
File "demo.py", line 3, in
import _pycaffe as caffe
ImportError: libboost_python-py27.so.1.54.0: cannot open shared object file: No such file or directory

I faced the same problem. Did anyone fix it?


TFC and Dynamic Trees falling tree crash 1.12

Hello, I play terrafirmacraft with 9.23 version of Dynamic Trees and in all of my worlds every time when dynamic trees tree is either burning or cut down there is a crash, crash report here https://gist.github.com/Tavarnarmo/84ce3b4cb539d84d9e32fd4d03217026. Already reported this on TFC github because it started happening exactly after update to newest version of it but they think that it isn't TFC so went here.

If you could narrow this down to the mods causing it that would be great as I can't reproduce this with only DT and TFC.

I think that this was because of this mod  After removing it issue went away.

Ah right, looks like it has already been reported (LoliKingdom/LoliASM#17) to them and the author has a fix in mind for a future release.

Ah seems like it was a config issue all along, insert
com.ferreusveritas.dynamictrees.client.QuadManipulator
and
com.ferreusveritas.dynamictrees.models.bakedmodels.BakedModelBlockBranchCactus
in classesThatCallBakedQuadCtor of the config, and it'll work fine.


Peek definition stops working after one/two use/s

VSCode Version:1.51.1 e5a624b788d92b8d34d1392e4c4d9789406efe8f x64
OS Version:Ubuntu 20.04.1 LTS

I am working on C code in Vscode. It has extension C/C++ (C/C++ IntelliSense, debugging, and code browsing.).
The option - peek definition works fine for the first one/two times but then goes away.
Steps to Reproduce:

Open C code (qmail-1.03) (part of company code base)
Right click on a function -> click Peek -> click Peek Definition - works fine
Repeat step 2 -> gives error - No definition found for 'ldaplookup'

Screenshot of peek definition when working:

Screenshot of peed definition on second attempt - not working:

Does this issue occur when all extensions are disabled?: No (cannot use peek without extensions)

Please report the issue against the C++ extension.


[BugFix] max_continuous_version may not be updated after base compaction

What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes https://github.com/StarRocks/starrocks/issues/9984
Problem Summary(Required) ：

max_continuous_version of tablet may not be updated after base compaction. So we need to reconstruct max_continuous_version from zero if input version is starting from zero.
e.g.
1. tablet A is doing schema change, and has a rowset R with version (0, m)
2. create a new tablet B releated tablet A
3. create a initial rowset of tablet B, and the `max_continuous_version` will be set to 1
4. convert rowset R, the version.first(0) is not equal to `max_continuous_version + 1`, so we don't update the max_continuous_version

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

@mergify backport branch-2.4


Error window convolve

Hi,
The following code crashes and we are wondering whether you guys have an idea of what's going on:
# Python 2/3 compatibility
from __future__ import absolute_import, division, print_function
# Pytest
# import pytest
# from xscale.filtering import linearfilters
# from xscale.signal.generator import example_xyt
# Pandas
import pandas as pd
# Xarray
import xarray as xr
# Xscale
import xscale
# Dask
import dask.array as da
# Numpy
import numpy as np
# Scipy
import scipy.signal as sig
# Matplotlib
import matplotlib.pyplot as plt

def example_x(boundaries=False):
	"""
	Generate a  one spatial dimensions ['x'] on a
	regular grid.
	"""
	nx = 128
	x = np.linspace(0, 2 * np.pi, nx)
	# t, y, x = np.meshgrid(t1d, y1d, x1d, indexing='ij')

	# Create a spatio-temporal gaussian noise
	noise = 0.8 * np.random.normal(0, 0.2, nx)

	# Create four spatial patterns
	z1 = np.sin(x)
	z2 = np.sin(2.5 * x)
	z3 = np.sin(x)
	z4 = np.sin(2.5 * x)
	z = z1 + z2 + z3 + z4 + noise
	if boundaries:
		z[0:nx/4] = np.nan
	output = xr.DataArray(z, coords=[x], dims=['x'],name='z')
	return output.chunk({'x': 70})

foo = example_x()
plt.plot(foo)
w = foo.window
w.set()
# w.set(window={'x':'hann'})
w.plot()
plt.show()
res = w.convolve(compute=False)

plt.show()

/home1/homedir5/perso/slgentil/.miniconda2/envs/xscale/lib/python2.7/site-packages/xarray/core/formatting.py:16: FutureWarning: The pandas.tslib module is deprecated and will be removed in a future version.
  from pandas.tslib import OutOfBoundsDatetime
/home1/homedir5/perso/slgentil/.miniconda2/envs/xscale/lib/python2.7/site-packages/xscale-0.1.dev0+15.g78abfdd-py2.7.egg/xscale/filtering/linearfilters.py:241: RuntimeWarning: divide by zero encountered in log10
  response = 20 * np.log10(np.abs(spectrum / abs(spectrum).max()))
f3db=0.059217
f6db=0.098695
Traceback (most recent call last):
  File "xscale_test.py", line 54, in <module>
    res = w.convolve(compute=False)
  File "/home1/homedir5/perso/slgentil/.miniconda2/envs/xscale/lib/python2.7/site-packages/xscale-0.1.dev0+15.g78abfdd-py2.7.egg/xscale/filtering/linearfilters.py", line 159, in convolve
    coeffs = self.coefficients / np.sum(self.coefficients)
  File "/home1/homedir5/perso/slgentil/.miniconda2/envs/xscale/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 1812, in sum
    return sum(axis=axis, dtype=dtype, out=out, **kwargs)
TypeError: sum() got an unexpected keyword argument 'out'

Hi,
We did the following change in xscale/filtering/linearfilters.py
		# Check if the data has more dimensions than the window and add
		# extra-dimensions to the window if it is the case
		# coeffs = self.coefficients / np.sum(self.coefficients)
		coeffs = self.coefficients / self.coefficients.sum()

It's seems to fix the bug. Do you think it's correct?

Indeed, it should work and is compatible with dask array as well. I have made this modification on the fft branch. I will try to merge this branch soon with master.
By the way, if you want to use the window object for convolution you should precise the size of the window with the keyword n. The default window length is set to the size of the data dimensions. Use print(w) to see the window characteristics. These default values are useful to tapper the data with a window of the same size. In practice, you should not have very large window for convolution.

We found another issue with the following example:
import xscale.signal.generator as xgen

foo = xgen.example_xyt()
w = foo.window
w.set(n={'x': 11, 'y': 21}, window={'x':'hanning', 'y':('tukey', 0.25)})
w.convolve(compute=False).visualize()

which leads to:
RuntimeError                              Traceback (most recent call last)
<ipython-input-1-09f9f778a157> in <module>()
     11 w = foo.window
     12 w.set(n={'x': 11, 'y': 21}, window={'x':'hanning', 'y':('tukey', 0.25)})
---> 13 w.convolve(compute=False).visualize()

/home1/homedir5/perso/slgentil/.miniconda2/envs/xscale/lib/python2.7/site-packages/xscale-0.1.dev0+15.g78abfdd-py2.7.egg/xscale/filtering/linearfilters.py in convolve(self, mode, weights, compute)
    162                 mask = self.obj.notnull()
    163                 if weights is None:
--> 164                         weights = im.convolve(mask.astype(float), coeffs, mode=mode)
    165                 filled_data = self.obj.fillna(0.).data
    166

/home1/homedir5/perso/slgentil/.miniconda2/envs/xscale/lib/python2.7/site-packages/scipy/ndimage/filters.pyc in convolve(input, weights, output, mode, cval, origin)
    815     """
    816     return _correlate_or_convolve(input, weights, output, mode, cval,
--> 817                                   origin, True)
    818
    819

/home1/homedir5/perso/slgentil/.miniconda2/envs/xscale/lib/python2.7/site-packages/scipy/ndimage/filters.pyc in _correlate_or_convolve(input, weights, output, mode, cval, origin, convolution)
    647     wshape = [ii for ii in weights.shape if ii > 0]
    648     if len(wshape) != input.ndim:
--> 649         raise RuntimeError('filter weights array has incorrect shape.')
    650     if convolution:
    651         weights = weights[tuple([slice(None, None, -1)] * weights.ndim)]

RuntimeError: filter weights array has incorrect shape.

self.coefficients is indeed 2D while mask is 3D.
Any idea what's going wrong?
cheers
aurelien

The issue was apparently due to the install and the test script.
The following is working:
# install
bash
conda create --name xscale python
source activate xscale
conda config --add channels conda-forge
conda install numpy
conda install scipy
conda install xarray
conda install numba

git clone https://github.com/serazing/xscale.git
cd xscale
git pull origin fft
python setup.py install

cd ..
python test.py

with test.py:
import xscale.signal.generator as xgen
import matplotlib.pyplot as plt
foo = xgen.example_xyt()
print foo
w = foo.window
w.set(n={'x': 11, 'y': 21}, window={'x':'hanning', 'y':('tukey', 0.25)})
w.convolve(compute=False).isel(time=0).plot()
plt.show()

Should I close the issue ?

yes

done


server.json.j2 produces unusable /etc/consul/consul.d/consul.json

The line  "retry_join" : [{{consul_agent_retry_join}}], needs to produce quoted entries, currently it just produces an array of IP addresses or names which are not contained in quotes.
For Example:
{
"server" : true,
"advertise_addr" : "<IP_ADDRESS>",
"data_dir" : "/var/consul",
"client_addr" : "<IP_ADDRESS>",
"bootstrap_expect" : 2,
"retry_join" : [<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>],
"datacenter" : "dc1",
"enable_syslog" : true,
"encrypt" : "EYRY+Ks0+i/DZrEicth1tQ==",
"ports" : {
"dns" : 8600,
"http" : 8500
},

"ui" : true
, "recursors" : ["<IP_ADDRESS>"]
, "acl_master_token" : "afadd880-add1-11e6-82f6-1bb51467000c"
}
For the consul service and cluster to start properly the line in question needs to be:
"retry_join" : ["<IP_ADDRESS>:,"<IP_ADDRESS>","<IP_ADDRESS>"],

Thanks you for your attention. I think I fixed this in the latest head commit. Can you give it a try?


Port diskless replication to Windows

My concern is that Windows pipes are implemented very differently from Unix pipes. On Windows pipes are implemented a network service. The benefit is this is that you can use a pipe across machine boundaries. This is how the IPC$ administrative share works for remote regedit, etc. On Unix a pipe is implemented as a piece of shared kernel memory with a very thin API layer over it. In my tests windows pipes are 10 times slower than using a socket, and orders of magnitude slower than using shared memory. It seems worth the extra performance to go with at least a socket based implementation.
When AzureCache modified their implementation to implement diskless replication, they went with shared memory. I am hoping the performance of our implementation will be good enough to motivate the AzureCache team to accept our changes, rather than continue on with divergent forking code.It would be interesting to compare the performance of a localhost socket with  SIO_LOOPBACK_FAST_PATH relative to shared memory.

@jepickett pipes have a very marginal role in diskless replication. They are used for the forked child process to acknowledge back to the master which slaves were successfully synchronized. The bulk of diskless replication happens over sockets (and shared memory is not really an option there, because slaves don't necessarily run on the same machine as master).
Here's a link to antirez blog describing the implementation of diskless replication: http://antirez.com/news/81
Apologies for not posting that earlier.

I agree with @jepickett that the Sockets should have SIO_LOOPBACK_FAST_PATH set.
I also did not see in the diff where the sockets that are created and duplicated were freed.

Sockets should have SIO_LOOPBACK_FAST_PATH set.

This was set in the parent, and it's unnecessary to redo it for the duplicate descriptor. From https://msdn.microsoft.com/en-us/library/windows/desktop/ms741565(v=vs.85).aspx:
"All of the state information associated with a socket is held in common across all the descriptors because the socket descriptors are duplicated and not the actual socket."

I also did not see in the diff where the sockets that are created and duplicated were freed.

They are not being freed explicitly, but the child process will exit immediately after the sync and the OS will close the child's duplicated descriptor. I could add an explicit closing, but the posix side is not closing them explicitly either.


General Grievance: Watch duboiswoodfloors.com

General Grievance requests the watch of the watch_keyword duboiswoodfloors\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

duboiswoodfloors\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by Spevacus in Charcoal HQ


Explore adopting EditContext API

Exploration done in https://github.com/microsoft/vscode/pull/207699


Feat: improve feedback and contact us heading.

Describe the feature
"GIVE US YOUR FEEDBACK" and "GET IN TOUCH " headings to be more attractive by applying background color.
moreover, adding hover effect to feedback and contact button.
@Its-Aman-Yadav @Kalivarapubindusree please check this and assign this to me.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

issue solved #754


bl602: Update register maps and lower half drivers

Summary
This brings the BL602 port more in-line with NuttX especially with how registers are handled.
Testing
Tested on bl602evb board.
Currently having issues with the UART clock divider register changing.

@Virus-V @xiaoxiang781216 @v01d   Here are my change on top of the original PR.
I am having some issues as after some time the clock register that controls the flash and UART seems to get changed
clk_cfg2 (0x40000008)
After clock configuration
(gdb) p /x *0x40000008
$29 = 0xff8f1993

Some seconds later
(gdb) p /x *0x40000008
$30 = 0xff8f2b97

If I send data out the UART right after configuring the clock I have no issue.

This reminds me of something I found when working on support for GD32VF103: while debugging I could see a register value change if I stepped code (which actually had an effect on code execution, so it was not just a debugging artifact). I eventually concluded it was a gdb issue as I found the problem to not occur by using a different one. I think that latest stable version from SiFive was the functional one (you could try downloading from here: https://github.com/sifive/freedom-tools/releases)

@btashton I have tested your code and I am trying to find out the cause of this problem

@Virus-V I found my bug and fixed it.  Made a mistake using the signal number instead of mask on the AHB slave reset call.
NuttShell (NSH) NuttX-10.0.1
nsh> uname -a
NuttX 10.0.1 91f2f4b76c-dirty Dec 30 2020 12:28:51 risc-v bl602evb
nsh> sleep 3
nsh> ?
help usage:  help [-v] [<cmd>]

  ?       echo    help    ls      mh      mv      ps      uname
  cat     free    kill    mb      mount   mw      sleep   usleep

Builtin Apps:
  timer     getprime  sh        hello     nsh
nsh> ps
  PID PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK   STACK   USED  FILLED COMMAND
    0   0 FIFO     Kthread N-- Ready              00000000<PHONE_NUMBER>72  99.7%! Idle Task
    1 100 FIFO     Task    --- Running            00000000<PHONE_NUMBER>64  19.0%  init
nsh> free
             total       used       free    largest
Umem:       198928      10688     188240     188240
nsh> ls /dev
/dev:
 console
 null
 timer0
 zero
nsh>


Question on experiment settings

Hi, thanks a lot for organizing this benchmark dataset! Can you help clarify two details of the OD benchmark?

For the eval scores reported in the ELEVATER paper, what is the evaluation metric? is it mAP or mAP@50?
For the eval scores reported in the ELEVATER paper, are these scores from the test set or the validation set? Does this line indicate that the number is from the validation set?

Thanks a lot for your help!

Hi, thank you for your interest in our benchmark

It's mAP@50:95 as in COCO evaluation.
We used test set for final reporting. The config was for fine-tuning. For evaluation, we changed the TEST to "test" in the eval code.

Got it! Thanks for your quick reponse!


Missing test file

Several tests reference the following file, which is not part of this repository:
/Users/rjbowli/Development/data/large.minified.json

Yup, file to big for github. Updated so that these tests will be inert if the file cannot be found.


Correct getChequebookBalance spelling (remove extra u)

Unless there was a reason for the extra "u" in getChequeubookBalance, this brings the names to a consistency.

Looks like I have more to learn to be able to contribute a simple fix.  Like how to format a valid commit comment.  Ug.


Aspect of canvas on desktop is locked to 4:3

I have a 4k TV as primary monitor. ALT+enter toggle and both canvas are locked to 4:3 instead of using the whole display. Windows 11, 1.20
Resetting to default its the same, the mod starts up this way.

The size of the desktop window is not comething that Camera2 influences - It simply uses what is available. See the game options


Replace all '\n' chars from converter.js html results

The Editor shows the little \ns from converter.js within the Scribe Editor.

First attempt using this failed.

Fixed and will be out in next debug release.


Sylveon Evolution bug

MrH0li0
Atlas
I sold a HA eevee to Ena_Ai, when he evolved it into sylveon it lost HA. He told me, I tested for myself and had the same bug occur. I tried this on HA eevee -> vaporeon and it worked fine. Could be a bug due to the servers custom sylveon evolution method via shiny stone. Just my guess.
Steps to reproduce the behavior:
Acquire Hidden Ability Eevee
Use shiny stone to evolve it into Sylveon
Sylveons ability is now Cute Charm(non-HA) rather than Pixilate(HA)

known bug apparently, ticket closed


Bug report: JSON to CSV not working for me

Bug report: JSON to CSV not working for me
If I use the Recipe JSON to CSV it just tells me the message:

Error translating from ArrayBuffer to JSON: SyntaxError: JSON.parse: unexpected end of data > at line 1 column 1 of the JSON data

If i use the demo JSON files from https://json.org/example.html I also get the message:

Unable to parse JSON to CSV: TypeError: e.replace is not a function

I was not able to use the recipe at all... Cyberchef 9.04 in Browser (Chrome and Firefox fully patched)
The reverse way CSV to JSON works fine for me!

Hi @Fake4d, the JSON to CSV operation only works on certain types of JSON formatted in specific ways. For example, this recipe works: https://gchq.github.io/CyberChef/#recipe=JSON_to_CSV(',','\\r\\n')&input=WwogICAgewogICAgICAgICJoZWFkZXIxIjogImNlbGwxIiwKICAgICAgICAiaGVhZGVyMiI6ICJjZWxsMiIKICAgIH0KXQ


Delete dweets and comments

Delete your own dweets and comments. The delete button replaces the report button on dweets/comments you own yourself. Relies on API change to merge first. Missing extra delete button for mods to be active on all.
Own dweet:

Other's dweet:

Own comment:

Fixes #20
Also fixes #105 as it adds views for deleted dweets:

Also, needs rebase.

Updated and rebased. Feel free to review/approve but don't merge yet as it relies on API changes coming in a separate PR


Fe assignment 2

drift

Metric
Value

alert_status
:white_check_mark: OK

bugs
0

code_smells
3

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0